        /* ... SINU OLEMASOLEV CSS KOOD JÄÄB SIIA SAMAKS ... */
        :root {
            /* --- PALETT: LUXURY & WARMTH --- */
            --c-bg: #FFFBF6;            
            --c-text: #2D232E;          
            
            /* Aktsendid */
            --c-peach: #FFAD94;        
            --c-yellow: #FBEF97;        
            --c-lilac: #DCD6F7;        
            --c-mint: #C9E4CA;          
            
            /* Dark Mode (Ekspertidele) */
            --c-deep: #161316; 
            --c-card-bg: #1E1B20;
            --c-border-dark: rgba(255,255,255,0.1);
            
            /* Rollide värvid */
            --role-tech: #CCFF00;  /* Kristjan */
            --role-sys: #FF4D4D;   /* Mart */
            --role-art: #00F0FF;   /* Tarmo */
            --role-law: #FFD700;   /* Kasso */

            --font-head: 'Fraunces', serif;
            --font-body: 'Outfit', sans-serif;

            --radius-L: 32px;
            --radius-M: 16px;
            --shadow-soft: 0 20px 40px rgba(45, 35, 46, 0.06);
            --transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* GLOBALS & TEXTURE */
        .noise {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            pointer-events: none; z-index: 999; opacity: 0.03;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
        }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        html { scroll-behavior: smooth; }
        
        body {
            background-color: var(--c-bg);
            color: var(--c-text);
            font-family: var(--font-body);
            line-height: 1.6;
            overflow-x: hidden;
            padding-bottom: 0;
        }

        h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }
        h1 { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
        h1 span { font-style: italic; color: #FF8066; }
        h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); text-align: center; position: relative; z-index: 2; }
        p { font-size: 1.1rem; opacity: 0.9; }
        .center-p { margin: 0 auto 3rem auto; text-align: center; }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; }
        section { padding: 8rem 0; }

        .btn {
            display: inline-block; padding: 1.1rem 2.8rem;
            background-color: var(--c-text); color: white;
            border-radius: 50px; text-decoration: none; font-weight: 600;
            transition: var(--transition); box-shadow: 0 10px 20px rgba(0,0,0,0.1); cursor: pointer;
            letter-spacing: 0.05em;
        }
        .btn:hover { transform: translateY(-3px); background: #453a47; box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
        .btn-outline { background: transparent; color: var(--c-text); border: 2px solid var(--c-text); }
        .btn-outline:hover { background: #fff; border-color: var(--c-text); }

        /* HEADER & HERO (Sinu lemmik) */
        header { padding: 2rem 0; display: flex; justify-content: space-between; align-items: center; }
/* --- UUS LOGO (TÜPOGRAAFILINE) --- */
.logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 300; /* Peenem algus "Veebi" */
    text-decoration: none;
    color: var(--c-text);
    letter-spacing: -0.03em; /* Tihedam kiri on moodsam */
    position: relative;
    padding: 0.5rem 0; /* Eemaldame taustavärvi polstri */
    background: transparent; /* Eemaldame lilla tausta */
    border-radius: 0;
    transform: none; /* Eemaldame pöörde, et oleks soliidsem */
    display: inline-flex;
    align-items: center;
}

/* "kunst" osa - Rõhutatud ja artistlik */
.logo span:not(.dot) {
    font-weight: 600; /* Paksem */
    font-style: italic; /* Fraunces italic on väga ilus */
    font-variation-settings: "SOFT" 100, "WONK" 1; /* Fraunces eripära, kui font toetab */
    margin-left: 2px;
}

/* Punkt lõpus - Aktsent */
.logo .dot {
    color: var(--c-peach);
    font-size: 2.5rem; /* Suurem punkt */
    line-height: 0;
    margin-left: 2px;
    margin-top: -5px; /* Tõstame veidi */
    transition: transform 0.4s ease;
}

/* Hover efekt */
.logo:hover .dot {
    color: var(--c-lilac);
    transform: scale(1.5);
}
        .nav-links a { margin-left: 2.5rem; text-decoration: none; color: var(--c-text); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
        .nav-links a:hover { color: var(--c-peach); }

        .hero { padding-top: 4rem; position: relative; }
        .hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: center; }
        
        .blob { position: absolute; z-index: -1; filter: blur(70px); opacity: 0.5; animation: float 10s infinite ease-in-out; }
        @keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(30px, -30px); } }

        .hero-img-box { position: relative; }
        .hero-img { 
            width: 100%; aspect-ratio: 4/5; object-fit: cover;
            border-radius: 200px 200px 20px 20px; 
            border: 3px solid var(--c-text); 
            box-shadow: 20px 20px 0 var(--c-peach);
            background: white; transition: var(--transition);
        }
        .hero-img:hover { transform: scale(1.02); box-shadow: 25px 25px 0 var(--c-peach); }
        
        .badge-float {
            position: absolute; bottom: 40px; left: -40px;
            background: #fffbdc; padding: 1.2rem 2rem;
            border-radius: 50px; font-weight: 700; border: 2px solid var(--c-text);
            transform: rotate(5deg); box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
            font-family: var(--font-head);
        }

        /* --- LOOGIKA FLOW --- */
        .logic-section { background: white; border-radius: var(--radius-L); padding: 5rem 3rem; border: 2px solid #f0f0f0; box-shadow: var(--shadow-soft); }
        .logic-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.5rem; align-items: center; text-align: center; }
        
        .step-card { padding: 2rem; background: var(--c-bg); border-radius: 24px; transition: var(--transition); }
        .step-card:hover { transform: translateY(-5px); }
        .step-icon { font-size: 3rem; margin-bottom: 0.8rem; display: block; }
        .step-arrow { font-size: 2.5rem; color: var(--c-peach); font-weight: 300; }

        /* --- TEENUSED & HINNASTUS (PARANDATUD) --- */
        .services-section { padding: 4rem 0 8rem 0; }
        .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
        
        .service-box { 
            background: white; padding: 3rem 2rem; border-radius: var(--radius-M); 
            border: 2px solid #f5f5f5; text-align: left; transition: var(--transition);
            position: relative;
        }
        .service-box:hover { border-color: var(--c-peach); transform: translateY(-10px); box-shadow: var(--shadow-soft); }
        
        /* Featured Card (Sprint) */
        .service-box.featured { border: 2px solid var(--c-text); box-shadow: 15px 15px 0 var(--c-lilac); z-index: 2; transform: scale(1.02); }
        .service-box.featured:hover { transform: scale(1.02) translateY(-5px); }
        
        .price-tag { font-size: 2.2rem; font-family: var(--font-head); font-weight: 700; margin: 1rem 0; display: block; color: var(--c-text); }
        .price-sub { font-size: 1rem; color: #666; font-weight: 400; font-family: var(--font-body); }

        .service-box h3 { margin-bottom: 0.5rem; font-size: 1.4rem; }
        .service-box ul { list-style: none; margin-top: 1.5rem; padding: 0; }
        .service-box li { margin-bottom: 0.8rem; font-size: 0.95rem; display: flex; align-items: start; }
        .service-box li::before { content: "✦"; color: var(--c-peach); margin-right: 10px; font-weight: bold; }

        /* --- HORISONTAALNE PORTFOOLIO (STICKY) --- */
        .sticky-wrapper { position: relative; height: 400vh; margin-bottom: 0; }
        .sticky-container { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; display: flex; align-items: center; background: var(--c-bg); z-index: 10; }
        .horizontal-track { display: flex; gap: 4rem; padding: 0 5vw; width: max-content; will-change: transform; }
        
        .portfolio-intro { min-width: 400px; padding-right: 4rem; }
        .portfolio-intro h2 { text-align: left; margin-bottom: 1rem; }
        
        .work-card {
            min-width: 500px; background: white; border-radius: var(--radius-L);
            border: 1px solid #eee; overflow: hidden; position: relative;
            transition: transform 0.4s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.08);
        }
        .work-card:hover { transform: translateY(-15px) scale(1.02); border-color: var(--c-text); }
        .work-img { width: 100%; height: 350px; object-fit: cover; }
        .work-content { padding: 2.5rem; }
        
        .sticker-time {
            position: absolute; top: 20px; right: 20px;
            background: white; border: 2px solid var(--c-text);
            padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 0.9rem;
            z-index: 2; transform: rotate(3deg); box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
        }
        .sticker-time.fast { background: var(--c-yellow); transform: rotate(-3deg); }

        /* --- RASKEKAHURVÄGI (PREMIUM DARK) --- */
        /* --- EKSPERDID (UUS NAISELIK & PROFESIONAALNE DISAIN) --- */
.experts-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    /* Õrn taustamuster või gradient, et eristuda valgest taustast */
    background: linear-gradient(180deg, var(--c-bg) 0%, #FDF6F3 100%); 
}

/* Tausta dekoratsioonid (pehmed mullid) */
.expert-blob {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232, 188, 196, 0.15) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}
.blob-1 { top: -10%; right: -10%; }
.blob-2 { bottom: -10%; left: -10%; background: radial-gradient(circle, rgba(201, 228, 202, 0.15) 0%, transparent 70%); }

.experts-intro {
    text-align: left;
    max-width: 800px;
    margin-bottom: 5rem;
    position: relative; z-index: 2;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem; /* Suur vahe kaartide vahel */
    position: relative; z-index: 2;
}

/* Kaardi disain */
.expert-card {
    background: white;
    border-radius: 30px; /* Väga pehmed nurgad */
    padding: 3.5rem; /* Palju ruumi sees */
    box-shadow: 0 10px 40px rgba(45, 35, 46, 0.04); /* Väga pehme vari */
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.expert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(45, 35, 46, 0.08);
    border-color: var(--c-peach);
}

/* Ülemine dekoratiivne joon */
.expert-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: #eee; transition: 0.3s;
}
/* Igal kaardil oma värv */
.card-tech::before { background: linear-gradient(90deg, #CCFF00, #96c93d); } /* Kristjan */
.card-sys::before { background: linear-gradient(90deg, #FF4D4D, #ff9a9e); } /* Mart */
.card-art::before { background: linear-gradient(90deg, #00F0FF, #a18cd1); } /* Tarmo */
.card-law::before { background: linear-gradient(90deg, #FFD700, #fbc2eb); } /* Kasso */

/* Sisu paigutus */
.expert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.expert-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

.expert-name {
    font-family: var(--font-head);
    font-size: 2.2rem;
    color: var(--c-text);
    line-height: 1.1;
    margin: 0;
}

.expert-img {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.expert-bio {
    font-size: 1rem;
    color: #555;
    line-height: 1.8; /* Hea loetavus */
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Oskuste sildid */
.expert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.skill-pill {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f4f4f4;
    color: #666;
    font-weight: 600;
}

/* Fun Fact kast */
.expert-fact {
    background: #FFFBF6; /* Kreemikas taust */
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}
.fact-icon { font-size: 1.2rem; filter: grayscale(1); opacity: 0.5; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .experts-section { padding: 4rem 1.5rem; }
    .experts-grid { grid-template-columns: 1fr; gap: 2rem; }
    .expert-card { padding: 2rem; }
    .expert-name { font-size: 1.8rem; }
    .expert-header { align-items: center; }
    .expert-img { width: 70px; height: 70px; }
    .experts-intro h2 { text-align: left; }
}

        /* --- MARQUEE --- */
/* --- INFINITE EXPERIENCE WALL --- */
.experience-wall {
    padding: 6rem 0;
    background: var(--c-bg);
    overflow: hidden;
    position: relative;
}

/* Äärte hajutamine (Fade effect) */
.experience-wall::before,
.experience-wall::after {
    content: "";
    position: absolute; top: 0; width: 200px; height: 100%;
    z-index: 2; pointer-events: none;
}
.experience-wall::before { left: 0; background: linear-gradient(to right, var(--c-bg), transparent); }
.experience-wall::after { right: 0; background: linear-gradient(to left, var(--c-bg), transparent); }

.wall-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative; z-index: 3;
}

/* Konteiner ridadele */
.wall-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Vahe ridade vahel */
    transform: rotate(-2deg); /* Kerge kalle annab dünaamikat */
    width: 120%; /* Et kalle ei jätaks nurki tühjaks */
    margin-left: -10%;
}

/* Ühine raja stiil */
.wall-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* Animatsioonid */
.scroll-left { animation: scrollLeft 60s linear infinite; }
.scroll-right { animation: scrollRight 60s linear infinite; }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

/* Üksiku projekti "Silt" */
.project-tag {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: transform 0.3s;
    font-size: 0.95rem;
    color: var(--c-text);
}

.project-tag:hover {
    transform: scale(1.05);
    border-color: var(--c-peach);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 10;
}

.tag-icon { font-size: 1.2rem; }
.tag-cat { 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    color: #999; 
    background: #f5f5f5; 
    padding: 3px 8px; 
    border-radius: 10px; 
    margin-left: 10px;
    font-weight: 700;
}

/* Highlighted tags (et oleks visuaalset rütmi) */
.project-tag.highlight {
    background: var(--c-text);
    color: white;
}
.project-tag.highlight .tag-cat {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .wall-container { transform: rotate(0deg); width: 100%; margin-left: 0; gap: 1rem; }
    .project-tag { padding: 0.6rem 1rem; font-size: 0.85rem; }
    .scroll-left, .scroll-right { animation-duration: 40s; } /* Kiirem mobiilis */
}
        /* --- KONTAKT (Glassmorphism) --- */
        .contact-wrapper { 
            background: rgba(255,255,255,0.8); backdrop-filter: blur(20px);
            border-radius: var(--radius-L); padding: 6rem 3rem; text-align: center; 
            box-shadow: 0 30px 80px rgba(0,0,0,0.08); 
            max-width: 900px; margin: 0 auto; position: relative; z-index: 20; top: 60px; border: 1px solid white;
        }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
        input, textarea { width: 100%; padding: 1.2rem; border: 1px solid #ddd; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; background: #fff; transition: 0.3s; }
        input:focus, textarea:focus { border-color: var(--c-text); box-shadow: 0 0 0 4px rgba(45, 35, 46, 0.05); outline: none; }

        /* --- ERILINE FOOTER --- */
        footer {
            background-color: var(--c-text); color: #fff;
            padding: 10rem 0 4rem 0; position: relative; z-index: 10;
            overflow: hidden; margin-top: -100px; /* Kontaktvormi all */
        }
        
        .footer-bg-text {
            position: absolute; top: 50px; left: 50%; transform: translateX(-50%);
            font-size: 18vw; font-family: var(--font-head); opacity: 0.03;
            white-space: nowrap; line-height: 1; pointer-events: none; user-select: none;
        }

        .footer-content { display: grid; grid-template-columns: 1fr 1fr; max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
        .footer-links a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 0.8rem; font-size: 1.1rem; transition: 0.3s; }
        .footer-links a:hover { color: var(--c-peach); padding-left: 10px; }

        /* --- MOBIILI OPTIMEERIMINE --- */
        .mobile-nav-bar { display: none; }

        @media (max-width: 900px) {
            h1 { font-size: 3rem; text-align: center; }
            .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
            .hero-img { border-radius: 40px; margin: 0 auto; width: 100%; max-width: 350px; }
            .badge-float { bottom: -20px; font-size: 0.9rem; padding: 0.8rem 1.2rem; }
            
            .logic-steps { display: flex; flex-direction: column; }
            .step-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
            .step-card { width: 100%; }

            .services-grid { grid-template-columns: 1fr; }
            .service-box.featured { transform: none; margin: 1rem 0; }

            /* Mobile Swipe Portfolio */
            .sticky-wrapper { height: auto; margin-bottom: 0; }
            .sticky-container { position: relative; height: auto; background: transparent; }
            .portfolio-intro { min-width: 100%; padding: 0 0 2rem 0; text-align: left; }
            .horizontal-track { 
                display: flex; flex-direction: row; overflow-x: auto; 
                scroll-snap-type: x mandatory; padding: 10px 1.5rem 40px 1.5rem; 
                width: calc(100% + 3rem); margin-left: -1.5rem; gap: 1rem;
                transform: none !important; -webkit-overflow-scrolling: touch;
            }
            .horizontal-track::-webkit-scrollbar { display: none; }
            .work-card { min-width: 85vw; scroll-snap-align: center; margin: 0; }

            /* Team */
            .team-section { padding: 4rem 1.5rem; border-radius: 20px; margin-top: 3rem; }
            .team-grid { grid-template-columns: 1fr; gap: 2rem; }
            .member-header { padding: 1.5rem 1.5rem 0 1.5rem; }
            .member-body { padding: 1.5rem; }

            /* Footer & Mobile Nav */
            .footer-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
            .footer-links { text-align: center; }
            footer { padding-bottom: 120px; } 
            .nav-links { display: none; }
            
            .logo{
                margin:auto;
            }
            
            .mobile-nav-bar {
                display: flex; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
                width: 70%; max-width: 350px; background: rgba(45, 35, 46, 0.85);
                backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
                border-radius: 50px; padding: 12px 25px; z-index: 1000;
                justify-content: space-between; align-items: center;
                box-shadow: 0 10px 30px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1);
            }
            .nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 600; }
            .nav-icon { font-size: 1.4rem; margin-bottom: 3px; }
            .nav-item.active { color: var(--c-peach); }
            
            .btn-outline {display:hidden;visibility:hidden;}
        }
        
        
        
/* --- TÄIUSTATUD PORTFOOLIO KAARDID --- */

/* Pildi konteiner, mis määrab kõrguse ja maskib sisu */
.work-img-wrapper {
    width: 100%;
    height: 350px; /* Fikseeritud kõrgus */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

/* Tavaline pilt */
.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease, filter 0.3s ease;
    display: block;
}

/* --- SCROLL EFFECT LOGIC --- */

/* Kui on "scroll-active" tüüpi kaart */
.work-card.scroll-active .work-img {
    height: auto; /* Laseme pildil olla nii pikk kui ta on */
    min-height: 100%; 
    object-fit: cover; /* Tagab, et laius oleks täidetud */
    /* Muudame ülemineku aega pikemaks, et kerimine oleks sujuv */
    transition: transform 4s ease-in-out; 
    transform: translateY(0);
}

/* Hover efekt scrollival kaardil */
.work-card.scroll-active:hover .work-img {
    /* Arvutus: Liiguta pilti üles (-100%), aga jäta 
       350px (konteineri kõrgus) nähtavaks alla jõudes.
    */
    transform: translateY(calc(-100% + 350px));
}

/* Tavaline hover efekt staatilistele piltidele */
.work-card:not(.scroll-active):hover .work-img {
    transform: scale(1.05);
}

/* Väike fix stickerile, et see oleks alati peal */
.sticker-time {
    z-index: 5;
}




/* --- UNIVERSAALNE PILDI WRAPPER --- */
.work-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative; /* Oluline positsioneerimiseks */
    background-color: #f4f4f4;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* --- TÜÜP 1: SCROLL (PIKK PILT) --- */
/* --- PIKA PILDI (SCROLL) SUNDIMINE --- */

.type-scroll .work-img-wrapper .work-img {
    /* 1. Tühistame kõik piirangud, mis pilti kokku suruvad */
    height: auto !important; 
    max-height: none !important; /* See on kriitiline rida! */
    min-height: 100%;
    
    /* 2. Tagame, et pilt täidab laiuse */
    width: 100%;
    display: block;
    object-fit: cover; /* Või 'contain', kui tahad et servad ei lõikaks */
    
    /* 3. Algpositsioon ja sujuvus */
    transform: translateY(0);
    will-change: transform; /* Optimeerib brauseri tööd */
    
    /* 4. Aeglustame veelgi (20s on hea väga pika pildi jaoks) */
    transition: transform 12s ease-in-out; 
}

/* HOVER EFEKT */
.type-scroll:hover .work-img-wrapper .work-img {
    /* Arvutus: Sõida pildi lõpuni, jättes alla 350px nähtavaks */
    transform: translateY(calc(-100% + 350px)); 
}

/* --- TÜÜP 2: STATIC (Tavaline zoom) --- */
/* Rakendub kõigile, mis pole scroll või gallery aktiivne faas */
.work-card:not(.type-scroll):not(.type-gallery) .work-img-wrapper:hover .work-img {
    transform: scale(1.05);
}

/* --- TÜÜP 3: GALLERY (SLAIDID) --- */
.gallery-hidden {
    display: none; /* Alguses peidetud */
}

/* Galerii pildid peavad olema põhipildi peal */
.gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Alguses nähtamatud */
    z-index: 2;
    background: white; /* Et ei paistaks läbi laadimise ajal */
}

/* Klass, mille JS lisab aktiivsele pildile */
.work-img.active-slide {
    opacity: 1;
    z-index: 3;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}



/* --- VÄLISLINK PORTFOOLIOS --- */
.portfolio-external-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text); /* Sinu tume tekstivärv */
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.portfolio-external-link:hover {
    opacity: 1;
    border-bottom-color: var(--c-text);
    transform: translateY(-1px);
}





.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 160px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-M);
    z-index: 1000;
    max-height: 300px; /* Lubab sadu keeli kerida */
    overflow-y: auto;
    padding: 10px 0;
}

.lang-dropdown a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 20px !important;
    margin: 0 !important;
    font-size: 0.9rem;
    color: var(--c-text);
    text-decoration: none;
}

.lang-dropdown a:hover {
    background: var(--c-bg);
    color: var(--c-peach);
}

.lang-dropdown a.active {
    font-weight: 700;
    background: #f0f0f0;
}

.lang-btn, .lang-dropdown a {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}



/* AI LOGIC SECTION STYLES */
.ai-logic-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, rgba(255,251,246,0) 0%, rgba(220,214,247,0.15) 50%, rgba(255,251,246,0) 100%);
}

.ai-logic-header {
    text-align: center;
    margin-bottom: 5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-L);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--c-peach), var(--c-lilac));
    opacity: 0;
    transition: 0.3s;
}

.comparison-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--c-peach);
}

.comparison-card:hover::before {
    opacity: 1;
}

.comp-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--c-text);
}

.comparison-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
}

.ai-quote {
    margin-top: 6rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-head);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--c-text);
    opacity: 0.7;
    position: relative;
}

.ai-quote::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    color: var(--c-peach);
    opacity: 0.3;
}

/* Mobiili vaade */
@media (max-width: 900px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ai-logic-section {
        padding: 5rem 1.5rem;
    }
    .ai-quote {
        font-size: 1.1rem;
    }
}














/* --- INSIGHTS / MEISTRIKLASS SECTION --- */
.insights-section {
    padding: 8rem 0;
    background-color: var(--c-bg);
    position: relative;
}

.insights-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sub-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--c-peach);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* GRID LAYOUT */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Automaatne paigutus */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD DESIGN */
.insight-card {
    background: white;
    border-radius: var(--radius-M);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.insight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--c-peach);
}

/* Typography on Card */
.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.insight-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.insight-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.btn-text {
    background: none;
    border: none;
    color: var(--c-text);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}
.btn-text:hover { color: var(--c-peach); margin-left: 5px; }

/* Decorative Background Text (Huge faded letters) */
.card-bg-text {
    position: absolute;
    top: -20px;
    left: -20px;
    font-family: var(--font-head);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    line-height: 1;
    z-index: 1;
    transition: 0.5s;
    user-select: none;
}
.insight-card:hover .card-bg-text {
    transform: translate(10px, 10px);
    color: rgba(255, 173, 148, 0.1); /* Peach fade */
}

/* Decorative Icon */
.card-decor {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    opacity: 0.2;
    transition: 0.5s;
    filter: grayscale(1);
}
.insight-card:hover .card-decor {
    opacity: 1;
    filter: grayscale(0);
    transform: rotate(15deg) scale(1.2);
}

/* --- MODAL (OVERLAY) STYLES --- */
.insight-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2000;
    background: rgba(255, 251, 246, 0.95); /* Creamy overlay */
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
    padding: 5vh 5vw;
}

.insight-modal.open {
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: fixed;
    top: 30px; right: 30px;
    background: white;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 2001;
    transition: 0.3s;
}
.close-modal:hover { background: var(--c-text); color: white; }

.modal-content {
    max-width: 800px;
    margin: 4rem auto 2rem auto;
    background: white;
    padding: 4rem;
    border-radius: var(--radius-L);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.insight-modal.open .modal-content {
    transform: translateY(0);
}

/* Modal Content Typography */
.modal-content h2 { font-size: 3rem; margin-bottom: 2rem; line-height: 1.1; }
.modal-content h3 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.modal-content p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 1.5rem; color: #444; }
.modal-content ul { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.modal-content li { margin-bottom: 0.5rem; font-size: 1.1rem; }
.modal-intro { font-size: 1.3rem !important; font-style: italic; color: #666; border-left: 4px solid var(--c-peach); padding-left: 20px; margin-bottom: 3rem !important; }

@media (max-width: 768px) {
    .insight-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 2rem; margin-top: 3rem; }
    .modal-content h2 { font-size: 2rem; }
}



/* X-TEE TEEMA */
.theme-xroad:hover {
    border-color: #0072CE; /* Estonia Blue / Trust Blue */
}
.theme-xroad .card-bg-text {
    color: rgba(0, 114, 206, 0.05);
}
.theme-xroad:hover .card-bg-text {
    color: rgba(0, 114, 206, 0.1);
}
.theme-xroad:hover h3 {
    color: #005bb7;
}

/* SEO TEEMA */
.theme-seo:hover {
    border-color: #00C853; /* Growth Green */
}
.theme-seo .card-bg-text {
    color: rgba(0, 200, 83, 0.05);
}
.theme-seo:hover .card-bg-text {
    color: rgba(0, 200, 83, 0.1);
}
.theme-seo:hover h3 {
    color: #009624;
}



/* --- VEEBIRAHU (MAINTENANCE) SECTION --- */
.maintenance-section {
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #FFFBF6 0%, #fff5f0 100%);
}

/* Tausta atmosfäär */
.zen-circle {
    position: absolute;
    top: 50%; left: 0;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255, 173, 148, 0.15) 0%, transparent 70%);
    transform: translate(-30%, -50%);
    pointer-events: none;
    z-index: 0;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* VASAK POOL: ZEN CARD */
.maintenance-visual {
    position: relative;
}

.zen-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 20px 50px rgba(45, 35, 46, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    position: relative;
    transform: perspective(1000px) rotateY(2deg);
    transition: transform 0.5s ease;
}

.zen-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
    box-shadow: 0 30px 60px rgba(45, 35, 46, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.status-dot {
    width: 8px; height: 8px;
    background-color: #00C853; /* Success Green */
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #00C853;
    letter-spacing: 0.5px;
}

.price-display {
    font-family: var(--font-head);
    color: var(--c-text);
    margin-bottom: 2.5rem;
    line-height: 1;
}

.price-display .currency { font-size: 2rem; vertical-align: top; margin-right: 5px; opacity: 0.6; }
.price-display .amount { font-size: 6rem; font-weight: 300; letter-spacing: -2px; }
.price-display .period { font-size: 1.2rem; color: #999; font-family: var(--font-body); margin-left: 10px; }

.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    color: #555;
}

.feature-row .check {
    color: var(--c-peach);
    font-weight: 900;
    background: rgba(255, 173, 148, 0.1);
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

.card-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--c-text);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transform: rotate(-3deg);
}

/* PAREM POOL: TEKST */
.maintenance-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--c-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.accordion {
    margin: 2.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.accordion details {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem 0;
    cursor: pointer;
}

.accordion summary {
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-text);
    transition: color 0.3s;
}

.accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}
.accordion details[open] summary::after { content: '−'; color: var(--c-peach); }
.accordion details[open] summary { color: var(--c-peach); margin-bottom: 1rem; }

.accordion p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    max-width: 90%;
}

.btn-glow {
    background: var(--c-text);
    box-shadow: 0 0 20px rgba(255, 173, 148, 0.4); /* Peach glow */
}
.btn-glow:hover {
    background: black;
    box-shadow: 0 0 30px rgba(255, 173, 148, 0.6);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.cancel-text {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .maintenance-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .zen-card {
        padding: 2rem;
        transform: none; /* Eemalda 3D efekt mobiilis */
    }
    .card-badge {
        right: 0; bottom: -15px;
        transform: rotate(0);
        width: 100%;
        justify-content: center;
    }
    .maintenance-content h2 { font-size: 2.2rem; }
}



/* --- VALUE SECTION (VABADUS & VUNDAMENT) --- */
.value-section {
    padding: 8rem 0;
    background-color: var(--c-bg);
}

.value-header {
    text-align: center;
    margin-bottom: 4rem;
}

.value-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: stretch;
}

/* ÜHINE KAARDI STIIL */
.value-card {
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* --- TUME KAART (MAKSELAHENUS) --- */
.dark-card {
    background: var(--c-text); /* Tume lilla/must */
    color: white;
    box-shadow: 0 20px 50px rgba(45, 35, 46, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dark-card h3 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, var(--c-lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.pricing-model {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.model-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.big-percent {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--c-yellow);
    line-height: 1;
}

.model-desc strong { display: block; font-size: 1.1rem; margin-bottom: 0.3rem; }
.model-desc p { font-size: 0.9rem; margin: 0; opacity: 0.7; }

.dark-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.dark-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    opacity: 0.9;
}

.dark-list li::before {
    content: '•';
    color: var(--c-peach);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-light-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    text-align: center;
    width: fit-content;
}
.btn-light-outline:hover {
    background: white;
    color: var(--c-text);
    border-color: white;
}

/* Dekoratiivne taust tumedale kaardile */
.card-decor-bg {
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 173, 148, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* --- PAREM VEERG (HOSTING & EMAIL) --- */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.light-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.light-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-color: var(--c-peach);
}

/* Hosting Card */
.hosting-card {
    flex-grow: 1; /* Võtab rohkem ruumi */
}

.floating-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: var(--c-mint);
    color: #386641;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-box {
    margin-top: 2rem;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 16px;
}

.comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.save-tag {
    color: white;
    background: var(--c-text);
    padding: 4px 10px;
    border-radius: 8px;
}

.small-note {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin: 0;
}

/* Email Card */
.email-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
}

.email-card .card-icon {
    margin-bottom: 0;
    font-size: 2rem;
}

.email-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.email-card p { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; line-height: 1.5; }
.service-price {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--c-text);
    background: var(--c-yellow);
    padding: 4px 10px;
    border-radius: 6px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .value-grid {
        grid-template-columns: 1fr;
    }
    .value-card { padding: 2rem; }
    .big-percent { font-size: 3rem; }
    .email-card { flex-direction: column; gap: 1rem; }
}