/* --- 1. PAGRINDINIAI NUSTATYMAI --- */
:root {
    --bg-dark: #020617;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* SVARBU: Nuotraukos negali būti didesnės už tėvinį elementą */
img { max-width: 100%; display: block; height: auto; }

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- 2. NAVIGACIJA --- */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.text-accent { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-link { color: var(--text-gray); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.lang-link.active { color: white; }
.divider { color: var(--glass-border); }

.btn-sm {
    padding: 8px 20px; background: var(--accent); color: #000;
    border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem;
    display: none; /* Mobiliame paslepiam */
}

/* --- 3. HERO SEKCIJA --- */
.hero-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 80px; padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Kad robotas neišlįstų */
}
.hero-wrapper::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.2; z-index: -1; pointer-events: none;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

.hero-layout {
    display: flex; flex-direction: column-reverse; /* Mobiliame: Tekstas apačioje */
    align-items: center; gap: 20px;
}

.hero-text { text-align: center; max-width: 600px; width: 100%; z-index: 50; }
.badge {
    display: inline-block; padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1); color: var(--accent);
    border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    margin-bottom: 20px; border: 1px solid rgba(34, 197, 94, 0.2);
}
h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.strike { text-decoration: line-through; color: var(--text-gray); text-decoration-color: var(--accent); }
.glow-text { color: var(--accent); text-shadow: 0 0 25px var(--accent-glow); }
.hero-text p { color: var(--text-gray); margin-bottom: 30px; font-size: 1rem; line-height: 1.6; }

.cta-group { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.btn-primary {
    background: var(--accent); color: #000; padding: 14px 28px;
    border-radius: 10px; text-decoration: none; font-weight: 700;
    display: inline-block; transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px var(--accent-glow); }
.btn-ghost {
    background: rgba(255,255,255,0.05); color: white; padding: 14px 28px;
    border-radius: 10px; text-decoration: none; font-weight: 600;
    border: 1px solid var(--glass-border); display: inline-block;
}

/* --- 4. ROBOTO SCENA (FIXED REFERENCE) --- */

.robot-scene {
    position: relative;
    /* TELEFONUI: Tavo nustatytas dydis yra geras */
    width: 300px;
    height: 350px; 
    margin: 0 auto;
    perspective: 1000px;
    z-index: 10;
    /* Pradinis mastelis telefonams (sumažintas) */
    transform: scale(0.7); 
    transform-origin: top center;
    margin-bottom: -40px;
}

.robot-container {
    position: relative; width: 100%; height: 100%;
    animation: float 6s ease-in-out infinite;
}

/* Bendros taisyklės dalims */
.layer { position: absolute; display: block; }

/* A. GALVA */
.head-group {
    position: absolute;
    top: 0%; 
    left: 50%; 
    transform: translateX(-50%); /* Centruota */
    width: 200px;
    z-index: 30;
    transform-style: preserve-3d;
}

.head-img { width: 100%; }

/* B. KŪNAS */
.body-layer {
    top: 135px; /* Kūnas po galva */
    left: 50%; transform: translateX(-50%);
    width: 160px; /* Kūno plotis */
    z-index: 20;
}

/* C. RANKOS - TELEFONO NUSTATYMAI */
/* Čia nustatome rankas telefonui. Pakeičiau į 15px, kad išlįstų iš kūno */
.arm-l-layer { 
    width: 60px; 
    top: 161px; 
    left: 29px; /* <--- PAKEISTA: Stumiame į kairę */
    z-index: 10;
    transform-origin: top right;
}
.arm-r-layer { 
    width: 60px; 
    top: 160px; 
    right: 26px; /* <--- PAKEISTA: Stumiame į dešinę */
    z-index: 10;
    transform-origin: top left;
}

/* D. AKYS */
.eyes-wrapper {
    position: absolute;
    top: 51px;
    left: 50%; transform: translateX(-50%);
    width: 100px;
    height: 40px;
    display: flex; justify-content: space-between; 
    z-index: 40; pointer-events: none;
}
.pupil {
    width: 24px; height: 24px;
    filter: drop-shadow(0 0 5px #22c55e);
}

/* Šešėlis */
.shadow {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 150px; height: 20px; background: black; opacity: 0.4;
    border-radius: 50%; filter: blur(15px);
    animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes shadowPulse { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; } 50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; } }

/* --- 5. SOCIAL SEKCIJA --- */
.social-section { padding: 60px 0; background: #030816; border-top: 1px solid var(--glass-border); }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { font-size: 1.5rem; margin-bottom: 5px; }
.sub-text { color: var(--text-gray); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.glass-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 15px; text-align: left;
}
.card-img { height: 140px; border-radius: 10px; margin-bottom: 15px; }
.g-1 { background: linear-gradient(45deg, #22c55e, #0f172a); }
.g-2 { background: linear-gradient(45deg, #3b82f6, #0f172a); }
.g-3 { background: linear-gradient(45deg, #a855f7, #0f172a); }
.card-meta { color: var(--text-gray); font-size: 0.8rem; margin-bottom: 5px; }
.glass-card h3 { font-size: 1rem; }

/* --- 6. RESPONSIVE (PC / DESKTOP) --- */

@media (min-width: 768px) {
    .hero-layout { flex-direction: row; justify-content: space-between; text-align: left; }
    .hero-text { text-align: left; align-items: flex-start; }
    h1 { font-size: 3.5rem; }
    .cta-group { justify-content: flex-start; }
    .btn-sm { display: inline-block; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
    
    .robot-scene {
        transform: scale(1);
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .robot-scene {
        width: 340px; 
        /* Grąžiname pilną aukštį PC, kad robotas nebūtų nukirstas */
        height: 500px; 
        transform: scale(1);
        margin: 0;
        margin-bottom: 0;
    }
    
    /* PC NUSTATYMAI RANKOMS - Pritraukiame prie kūno */
    /* Nustatome didesnį skaičių nei telefone, kad uždarytume tarpus */
    .arm-l-layer { 
        left: 55px; /* <--- PC FIX: Arčiau centro */
    }
    .arm-r-layer { 
        right: 50px; /* <--- PC FIX: Arčiau centro */
    }
}