/* ================= VARIABLES ================= */
:root {
    --primary-navy: #0e244d;
    --accent-blue: #86b9e0;
    --white: #ffffff;
    --light-bg: #f8fbff;
    --text-dark: #0e244d;
    --card-bg: #ffffff;
}

body.dark-mode {
    --primary-navy: #86b9e0;
    --accent-blue: #4a90e2;
    --white: #121c2f;
    --light-bg: #0a111f;
    --text-dark: #e0e0e0;
    --card-bg: #16243d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: var(--white); color: var(--text-dark); transition: 0.3s; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ================= HEADER & NAV ================= */
.header-wrapper { position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.top-bar-main { background: #0e244d; padding: 20px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 85px; width: auto; transition: transform 0.3s; }
.nav-logo:hover { transform: scale(1.05); }

.main-nav a { color: white; text-decoration: none; margin: 0 15px; font-weight: 600; text-transform: uppercase; transition: color 0.3s; }
.main-nav a:hover { color: var(--accent-blue); }

/* --- Social & Toggle Area --- */
.actions-side { display: flex; align-items: center; gap: 45px; }

.social-links { display: flex; gap: 30px; }
.social-links a { color: white; font-size: 1.7rem; transition: 0.3s; }
.social-links a:hover { color: var(--accent-blue); transform: scale(1.2); }

/* --- Premium Toggle Switch --- */
.theme-switch-wrapper { display: flex; align-items: center; gap: 15px; border-left: 1px solid rgba(255,255,255,0.3); padding-left: 25px; height: 40px; }
#mode-text { color: white; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; width: 90px; }

.theme-switch { position: relative; display: inline-block; width: 64px; height: 32px; }
.theme-switch input { display: none; }

.slider { position: absolute; top:0; left:0; right:0; bottom:0; background-color: #86b9e0; transition: .4s; border-radius: 34px; border: 2px solid white; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; overflow: hidden; cursor: pointer; }
.ball { position: absolute; height: 22px; width: 22px; left: 3px; bottom: 3px; background-color: white; transition: 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); border-radius: 50%; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.sun-icon { color: #f1c40f; font-size: 14px; z-index: 1; transform: translateX(2px); }
.moon-icon { color: #f5f6fa; font-size: 13px; z-index: 1; transform: translateX(-2px); }

input:checked + .slider { background-color: #0e244d; border-color: #86b9e0; }
input:checked + .slider .ball { transform: translateX(32px); background-color: white; }

.accent-line { background: #86b9e0; height: 6px; }

/* ================= HERO ================= */
header { 
    /* Setări de poziționare */
    position: relative;
    padding: 160px 20px 100px; /* Spațiu sus/jos */
    background: linear-gradient(to bottom, var(--light-bg), var(--white));
    
    /* === AICI E SECRETUL ALINIERII === */
    display: flex;             
    flex-direction: column;    /* Le așază una sub alta (coloană) */
    justify-content: center;   /* Le centrează pe verticală */
    align-items: center;       /* Le centrează pe orizontală (stânga-dreapta) */
    text-align: center;        /* Asigură că textul din interior e centrat */
    min-height: 80vh;          /* Ocupă 80% din ecran */
}

/* Stilul pentru KINART */
header h1 { 
    font-size: 6rem;           /* Font mare și impunător */
    font-weight: 800;          /* Foarte gros */
    letter-spacing: 15px;      /* Spațiu mare între litere pentru eleganță */
    color: var(--primary-navy); 
    text-transform: uppercase; 
    margin-bottom: 10px;       /* Distanță mică față de slogan */
    line-height: 1.1;          /* Previne spațierea prea mare pe verticală */
}

/* Stilul pentru Slogan */
header p { 
    font-size: 1.8rem;         /* Mărime slogan */
    font-weight: 300;          /* Font subțire pentru contrast cu titlul */
    color: var(--accent-blue); /* Culoarea de accent (albastru deschis) */
    letter-spacing: 2px;
    margin-bottom: 40px;       /* Distanță față de buton */
    text-transform: uppercase; /* Opțional: sloganul cu majuscule arată mai "pro" */
}

/* Ajustare pentru Mobil */
@media (max-width: 768px) {
    header h1 {
        font-size: 3.5rem;     /* Mai mic pe telefon */
        letter-spacing: 5px;   /* Reducem spațierea să nu iasă din ecran */
    }
    header p {
        font-size: 1.2rem;
    }
}

/* ================= ECHIPĂ (CARDS - TOATE MARI) ================= */
section { padding: 80px 0; }
h2 { text-align: center; margin-bottom: 60px; color: var(--primary-navy); text-transform: uppercase; font-size: 2.2rem; }

/* Containerul principal devine o grilă flexibilă */
.team-stack { 
    display: flex; 
    flex-wrap: wrap;       /* Permite cardurilor să treacă pe rândul următor */
    justify-content: center; /* Le centrează pe pagină */
    gap: 50px;             /* Spațiu generos între ele (sus-jos și stânga-dreapta) */
}

/* Stilul Standard pentru TOATE cardurile (Acum toate sunt mari) */
.flip-card { 
    perspective: 1000px; 
    width: 100%; 
    max-width: 550px;      /* Lățimea maximă "Mare" */
    height: 600px;         /* Înălțimea "Mare" */
    /* Nu mai avem margin-bottom, folosim gap-ul de mai sus */
}

.flip-card-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }
.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 25px; padding: 30px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* Fața Cardului - Imagine Mare pentru toți */
.flip-card-front { background: var(--card-bg); justify-content: center; }
.flip-card-front img { 
    width: 280px;          /* Poză mare */
    height: 280px; 
    border-radius: 50%; 
    border: 7px solid var(--accent-blue); 
    margin-bottom: 30px; 
    object-fit: cover; 
}
.flip-card-front h3 { font-size: 1.8rem; margin-top: 10px; color: var(--primary-navy); }
.click-hint { margin-top: 15px; color: var(--accent-blue); font-style: italic; font-size: 0.9rem; }

/* Spatele Cardului */
.flip-card-back { background: var(--primary-navy); color: white; transform: rotateY(180deg); justify-content: flex-start; cursor: pointer; }

/* Navigare Pagini */
.pages-container { width: 100%; flex-grow: 1; text-align: center; overflow-y: auto; padding: 5px; cursor: default; }
.card-page { display: none; animation: fadeIn 0.4s; }
.card-page.active { display: block; }
.card-page h4 { color: var(--accent-blue); margin-bottom: 20px; font-size: 1.4rem; border-bottom: 1px solid var(--accent-blue); }
.card-page p { font-size: 1.1rem; line-height: 1.6; }

/* Controale */
.controls-wrapper { width: 100%; margin-top: auto; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 15px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: default; }
.page-controls { display: flex; gap: 20px; align-items: center; }
.page-controls button { background: var(--accent-blue); border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; color: var(--primary-navy); transition: 0.3s; }
.page-controls button:hover { background: white; transform: scale(1.1); }
.back-btn { background: transparent; border: 1px solid var(--accent-blue); color: var(--accent-blue); padding: 5px 15px; border-radius: 20px; cursor: pointer; transition: 0.3s; }
.back-btn:hover { background: var(--accent-blue); color: var(--primary-navy); }

/* ================= SERVICII ================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.service-card { background: var(--card-bg); padding: 40px 20px; border-radius: 15px; text-align: center; border-bottom: 5px solid var(--accent-blue); transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-card i { font-size: 3rem; color: var(--accent-blue); margin-bottom: 20px; }

/* ================= GALERIE ================= */
.gallery-grid-interactive {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px; /* Spațiere generoasă între carduri */
}

/* --- STRUCTURA CARDULUI --- */
.gallery-card {
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    
    /* 1. DIMENSIUNI FIXE */
    width: 100%;
    max-width: 550px;
    height: 600px;  /* Înălțimea totală a cardului */
    
    /* 2. FLEXBOX PENTRU AȘEZARE VERTICALĂ */
    display: flex;
    flex-direction: column; /* Elementele stau unul sub altul */
}

/* --- ZONA DE SUS (IMAGINEA) --- */
.gallery-image-wrapper {
    width: 100%;
    
    /* AICI E SECRETUL: Nu punem 100%, ci o dimensiune fixă */
    height: 480px;  /* Ocupă primii 480px din cei 600px totali */
    
    background-color: #000;
    position: relative;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    
    /* --- SCHIMBARE --- */
    /* În loc de 'cover', punem 'contain'. */
    object-fit: contain;
    
    transition: transform 0.5s;
}

/* --- ZONA DE JOS (TEXT + BUTOANE) --- */
.gallery-controls {
    /* Ocupă restul spațiului rămas (600px - 480px = 120px) */
    flex-grow: 1; 
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: var(--card-bg);
    z-index: 2; /* Se asigură că stă deasupra, just in case */
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Zona Imaginii (Ocupă 75% din card) */
.gallery-image-wrapper {
    width: 100%;
    height: 450px; 
    overflow: hidden;
    background-color: #000;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Poza umple tot spațiul fără să se deformeze */
    transition: transform 0.5s;
}

/* Zona de jos (Controale + Titlu) */
.gallery-controls {
    flex-grow: 1; /* Ocupă restul spațiului de jos */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    background: var(--card-bg);
}

/* Titlul și Contorul */
.gallery-info {
    text-align: center;
}

.gallery-info h3 {
    font-size: 1.4rem;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.gallery-counter {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: bold;
    background: rgba(134, 185, 224, 0.15);
    padding: 3px 10px;
    border-radius: 10px;
}

/* Butoanele Stânga/Dreapta */
.gallery-controls button {
    background: var(--primary-navy);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-controls button:hover {
    background: var(--accent-blue);
    transform: scale(1.1);
}

/* Adaptare Night Mode */
body.dark-mode .gallery-info h3 {
    color: white;
}


/* Butonul Google Reviews */
.btn-google-reviews {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-google-reviews:hover {
    background-color: #4285F4; /* Albastrul Google */
    color: white;
    border-color: #4285F4;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(66, 133, 244, 0.3);
}

/* ================= CONTACT ================= */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 50px; align-items: stretch; }
.contact-info { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }
.info-item { display: flex; align-items: center; gap: 20px; }
.info-item i { font-size: 1.8rem; color: var(--accent-blue); width: 40px; text-align: center; }
.info-item h4 { margin-bottom: 5px; color: var(--primary-navy); }
.social-footer a { color: var(--primary-navy); font-size: 1.5rem; margin-right: 15px; transition: 0.3s; }
.social-footer a:hover { color: var(--accent-blue); }
.map-box { flex: 1; min-width: 300px; height: 400px; }
.map-box iframe { width: 100%; height: 100%; border: none; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

footer { text-align: center; padding: 40px; background-color: var(--light-bg); margin-top: 60px; font-weight: bold; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .flip-card.highlight { max-width: 100%; height: 550px; }
    .nav-logo { height: 70px; }
}

@media (max-width: 600px) {
    .nav-flex { flex-direction: column; gap: 20px; }
    .actions-side { gap: 20px; }
    .theme-switch-wrapper { border-left: none; padding-left: 0; }
    header { padding-top: 100px; }
    .flip-card.highlight .flip-card-front img { width: 220px; height: 220px; }
}

/* Stil pentru iconițele din cardurile de servicii */
.flip-card-front i {
    font-size: 5rem; /* Le face mari și vizibile */
    color: var(--accent-blue);
    margin-bottom: 25px;
}

/* Asigură-te că serviciile se aliniază ca echipa */
#services .team-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Distanța dintre carduri */
}

/* Stil Buton WhatsApp */
.btn-whatsapp {
    display: inline-flex;       /* Aliniază iconița cu textul */
    align-items: center;        /* Centrează vertical textul */
    justify-content: center;
    gap: 10px;                  /* Spațiu între iconiță și scris */
    
    background-color: #25D366;  /* Verdele oficial WhatsApp */
    color: white;               /* Text alb */
    
    padding: 15px 35px;         /* Dimensiunea butonului */
    border-radius: 50px;        /* Colțuri rotunjite (pilulă) */
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;      /* Fără subliniere */
    text-transform: uppercase;
    
    /* Umbră verde strălucitoare */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;  /* Animație fină la hover */
}

/* Efect când pui mouse-ul pe buton */
.btn-whatsapp:hover {
    background-color: #128C7E;  /* Un verde mai închis la hover */
    transform: translateY(-3px); /* Se ridică puțin */
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); /* Umbra devine mai puternică */
}

/* Stil pentru iconița din buton */
.btn-whatsapp i {
    font-size: 1.5rem; /* Iconița puțin mai mare decât textul */
}