/* ===================================================================== */
/* STILURI GLOBALE, VARIABILE & FONTURI                                  */
/* ===================================================================== */
:root {
    --color-background: #ffffff;
    --color-text-primary: #1a202c;
    --color-text-secondary: #4a5568;
    --color-accent: #3182ce;
    --color-header-bg: rgba(255, 255, 255, 0.8);
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ===================================================================== */
/* HEADER                                                              */
/* ===================================================================== */
.main-header {
    padding: 20px 5%;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}
.logo-container {
    /* Aici va veni SVG-ul */
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* ===================================================================== */
/* HERO SECTION                                                        */
/* ===================================================================== */
#hero {
    text-align: center;
    padding: 100px 20px 80px 20px;
    position: relative;
    overflow: hidden;
}
.hero-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    filter: brightness(0.7);
}
.hero-video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
}
#hero h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    color: var(--color-text-primary);
    margin-bottom: 0.5em;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#hero p {
    font-size: clamp(1.1em, 2.5vw, 1.3em);
    max-width: 650px;
    margin: 0 auto 50px auto;
    color: var(--color-text-secondary);
}
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.button-red, .button-green {
    display: block;
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.button-red:hover, .button-green:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.button-red img, .button-green img {
    width: 100%;
    height: auto;
}

/* ===================================================================== */
/* SECTIUNI GENERALE                                                     */
/* ===================================================================== */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
section h2 {
    text-align: center;
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--color-text-primary);
    margin-bottom: 60px;
}

/* Tutorial Section */
#tutorial .video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    color: #999;
    box-shadow: var(--box-shadow);
    overflow: hidden; /* Important pentru video */
}
#tutorial video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fachbereiche / Portal Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.grid-subtitle {
    grid-column: 1 / -1; /* Ocupa toata latimea */
    font-size: 1.4em;
    color: var(--color-text-primary);
    margin-top: 40px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-accent);
}
.portal-grid h3:first-of-type {
    margin-top: 0;
}
.portal-button {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 1.1em;
    transition: all 0.2s ease-in-out;
    box-shadow: var(--box-shadow);
}
.portal-button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Reviews Section */
#reviews {
    background-color: #EDF2F7;
    text-align: center;
}
/* Aici vor veni stilurile pentru sliderul de testimoniale */

/* ===================================================================== */
/* FOOTER                                                              */
/* ===================================================================== */
footer {
    background-color: #2c3e50;
    color: #cbd5e0;
    padding: 50px 20px;
    text-align: center;
}
.footer-links {
    margin-bottom: 20px;
}
.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.copyright {
    font-size: 0.8em;
    color: #718096;
}
