:root {
    --brand-green: #005032; 
    --brand-green-dark: #003a24;
    --brand-dark: #0a0a0a;
    --brand-gray: #141414;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;
}

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

@media (max-width: 768px) { * { cursor: auto; } }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body { 
    font-family: 'Roboto Flex', sans-serif; 
    background-color: var(--brand-dark); 
    color: var(--text-light); 
    overflow-x: hidden; 
}

h1, h2, h3 { 
    font-family: 'Roboto Flex', sans-serif; 
    font-weight: 800; 
    letter-spacing: -1px;
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.preloader-logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transform: translateY(100%); 
}

.cursor { position: fixed; top: 0; left: 0; width: 20px; height: 20px; background-color: var(--brand-green); border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); mix-blend-mode: difference; transition: width 0.3s, height 0.3s, background-color 0.3s, mix-blend-mode 0.3s; display: flex; align-items: center; justify-content: center; }
.cursor.active { width: 60px; height: 60px; background-color: #fff; }
.cursor.view-mode { width: 90px; height: 90px; background-color: var(--brand-green); mix-blend-mode: normal; }
.cursor-text { color: #fff; font-size: 11px; font-weight: 600; font-family: 'Roboto Flex', sans-serif; text-transform: uppercase; letter-spacing: 1px; opacity: 0; transition: opacity 0.3s ease; }
.cursor.view-mode .cursor-text { opacity: 1; }

.noise { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9998; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }

.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #000; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; }
.preloader-logo-wrap { overflow: hidden; }
.preloader-text { margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); opacity: 0; text-transform: uppercase; letter-spacing: 3px; }

/* NAVBAR XATOSI TO'G'RILANDI */
.navbar { 
    position: fixed; top: 0; width: 100%; padding: 2rem 5%; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; 
    /* "all" so'zi olib tashlandi. Faqat kerakli xususiyatlar qoldi. 
       Bu GSAP bilan urishib qolishning oldini oladi. */
    transition: padding 0.4s ease, background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease; 
}
.navbar.scrolled { padding: 1rem 5%; background-color: rgba(10, 10, 10, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.logo { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1001; }

.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-links a { color: var(--text-light); text-decoration: none; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0%; height: 1px; background-color: var(--brand-green); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001; }
.hamburger .bar { width: 30px; height: 2px; background-color: #fff; transition: 0.3s; }

.btn-primary { position: relative; display: inline-flex; justify-content: center; align-items: center; padding: 1.2rem 2.5rem; background-color: var(--brand-green); color: #fff; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; border-radius: 4px; overflow: hidden; border: none; font-size: 0.85rem; }
.btn-primary::before { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 100%; background-color: #fff; transition: top 0.4s cubic-bezier(0.76, 0, 0.24, 1); z-index: 1; }
.btn-primary:hover::before { top: 0; }
.btn-primary .btn-text { position: relative; z-index: 2; transition: color 0.4s ease; }
.btn-primary:hover .btn-text { color: var(--brand-green-dark); }
.btn-outline { border: 1px solid rgba(255,255,255,0.2); padding: 0.8rem 1.5rem; border-radius: 4px; }
.btn-outline:hover { border-color: var(--brand-green); }

.hero { height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 10; max-width: 900px; padding-right: 5%; }
.hero-title { font-size: 5.5rem; line-height: 1.1; margin-bottom: 2rem; letter-spacing: -1px; }
.text-green { color: var(--brand-green); font-style: italic; }
.hero-subtitle { font-size: 1.1rem; color: #ddd; margin-bottom: 3rem; max-width: 500px; line-height: 1.8; font-weight: 300; }
.scroll-indicator { position: absolute; bottom: 40px; left: 5%; z-index: 10; display: flex; align-items: center; gap: 15px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; }
.mouse { width: 20px; height: 30px; border: 1px solid rgba(255,255,255,0.5); border-radius: 15px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { top: 5px; opacity: 1; } 100% { top: 20px; opacity: 0; } }

.stats { padding: 8rem 5%; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-item { text-align: left; flex: 1; padding-right: 2rem; }
.stat-number { font-size: 4.5rem; color: #fff; line-height: 1; }
.stat-line { width: 0; height: 1px; background-color: var(--brand-green); margin: 1.5rem 0; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.projects { padding: 10rem 5%; }
.section-header { margin-bottom: 8rem; max-width: 700px; }
.section-header h2 { font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.project-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12rem; }
.project-row.reverse { flex-direction: row-reverse; }
.project-image-wrapper { width: 55%; height: 75vh; overflow: hidden; position: relative; border-radius: 4px; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); }
.project-image { width: 100%; height: 130%; background-position: center; background-size: cover; transform: translateY(-15%); filter: grayscale(100%); transition: filter 0.6s ease; }
.project-image-wrapper:hover .project-image { filter: grayscale(0%); }
.project-details { width: 35%; }
.project-title { font-size: 3rem; margin-bottom: 1rem; }
.project-cat { color: var(--brand-green); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }

.contact { padding: 8rem 5%; display: flex; justify-content: center; }
.contact-box { width: 100%; max-width: 700px; text-align: center; }
.contact-box h2 { font-size: 3rem; margin-bottom: 1.5rem; }
.contact-box p { color: var(--text-muted); margin-bottom: 4rem; font-size: 1.1rem; }
.lead-form { display: flex; flex-direction: column; gap: 2.5rem; align-items: center; }
.input-group { position: relative; width: 100%; max-width: 450px; }
.lead-form input { width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.1rem; font-family: inherit; transition: border-color 0.3s; }
.lead-form input:focus { outline: none; }
.focus-border { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: var(--brand-green); transition: width 0.4s ease; }
.lead-form input:focus ~ .focus-border { width: 100%; }

footer { padding: 5rem 5% 2rem; background-color: #050505; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; border-bottom: 1px solid #1a1a1a; padding-bottom: 4rem; }
.social-links { display: flex; gap: 2rem; }
.social-links a { color: var(--text-muted); text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; }
.social-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; color: #555; font-size: 0.85rem; }
.dev-link { color: var(--brand-green); text-decoration: none; }

.word { overflow: hidden; padding-bottom: 5px; } 

/* XATOLIK TO'G'RILANDI: transition olib tashlandi, faqat GSAP boshqaradi */
.char { transform: translateY(100%); }

/* Karyera qismi */
.career { 
    padding: 10rem 5%; 
    background-color: var(--brand-gray); 
    display: flex; 
    justify-content: center; 
}
.career-container { 
    max-width: 1000px; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 4rem; 
}
.career-info { 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto; 
}
.career-info h2 { 
    font-size: 3.5rem; 
    margin-bottom: 1.5rem; 
    line-height: 1.1; 
}
.career-info p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.8; 
}

.career-form { 
    display: flex; 
    flex-direction: column; 
    gap: 2.5rem; 
    width: 100%; 
}
.career-form .input-row { 
    display: flex; 
    gap: 3rem; 
    width: 100%; 
}
.career-form .input-group { 
    flex: 1; 
    position: relative; 
}

.career-form input, .career-form select {
    width: 100%; 
    padding: 1rem 0; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
    color: #fff; 
    font-size: 1.1rem; 
    font-family: inherit; 
    transition: border-color 0.3s;
}

.career-form select { 
    cursor: pointer; 
    color: var(--text-muted); 
    appearance: none; /* Standart select ko'rinishini olib tashlash */
}
.career-form select:focus { color: #fff; }
.career-form select option { 
    background-color: var(--brand-dark); 
    color: #fff; 
    padding: 10px;
}
.career-form input:focus, .career-form select:focus { outline: none; }

.career-form .focus-border { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 1px; 
    background-color: var(--brand-green); 
    transition: width 0.4s ease; 
}
.career-form input:focus ~ .focus-border, 
.career-form select:focus ~ .focus-border { 
    width: 100%; 
}
.career-form button { 
    align-self: center; 
    margin-top: 1rem; 
}

/* ==========================================
   MIJOZLAR (VIDEOLAR) QISMI
   ========================================== */
   .testimonials {
    padding: 8rem 5%;
    background-color: var(--brand-dark);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Videolar standart YouTube o'lchamida turadi */
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 2px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    
    /* GSAP bilan animatsiya qilish uchun boshlang'ich holat */
    opacity: 0;
    transform: translateY(50px);
}

.video-card:hover {
    transform: translateY(-10px) !important; /* Sal tepaga ko'tariladi */
    border-color: var(--brand-green);
    box-shadow: 0 20px 40px rgba(0, 80, 50, 0.3); /* Yashil tusli soya */
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================
   FAQ - Accordion qismi 
   ========================= */
   .faq {
    padding: 10rem 5%;
    display: flex;
    justify-content: center;
}

.faq-container {
    width: 100%;
    max-width: 900px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.accordion-header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none; /* Bizda yashil dumaloq kursor ishlaydi */
}

.accordion-header h3 {
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.accordion-header:hover h3 {
    color: var(--brand-green);
}

.accordion-header .icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-light);
    transition: transform 0.4s ease, color 0.3s ease;
}

/* Yopish va ochish animatsiyasi */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.accordion-content p {
    padding-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Active Holati */
.accordion-item.active .accordion-header h3 {
    color: var(--brand-green);
}

.accordion-item.active .icon {
    transform: rotate(45deg); /* + belgisi X shakliga o'tadi */
    color: var(--brand-green);
}

/* Mobil versiyada kichik moslashuv */
@media (max-width: 768px) {
    .faq { padding: 6rem 5%; }
    .accordion-header h3 { font-size: 1.1rem; padding-right: 15px; }
}

/* Mobil versiya uchun moslashuvchanlik */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 5rem 5%;
    }
    .video-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .video-card {
        opacity: 1; /* Mobilda ko'rinmay qolmasligi uchun */
        transform: translateY(0);
    }
    .video-card:hover {
        transform: translateY(0) !important;
    }
}

/* Karyera qismi Mobil moslashuvchanligi */
@media (max-width: 768px) {
    .career-info h2 { font-size: 2.5rem; }
    .career-form .input-row { flex-direction: column; gap: 2.5rem; }
}

@media (max-width: 992px) {
    .hero-title { font-size: 4.5rem; }
    .project-image-wrapper { height: 60vh; }
    .project-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

    .brand-logo { height: 35px; }
    .preloader-logo-img { height: 60px; }
    
    .nav-links {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: var(--brand-dark);
        flex-direction: column; justify-content: center; gap: 2rem;
        transform: translateY(-100%); transition: transform 0.5s ease;
        z-index: 1000;
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; }
    
    .hero-content { padding-right: 0; margin-top: 3rem; text-align: center; }
    .hero-overlay { background: linear-gradient(to bottom, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0.95) 100%); }
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 3rem; }
    .scroll-indicator { left: 50%; transform: translateX(-50%); }

    .stats { flex-direction: column; gap: 4rem; text-align: center; padding: 5rem 5%; }
    .stat-item { padding-right: 0; }
    .stat-line { margin: 1rem auto; width: 50px !important; }

    .projects { padding: 5rem 5%; }
    .section-header { margin-bottom: 4rem; text-align: center; }
    .section-header h2 { font-size: 2.5rem; }
    .project-row, .project-row.reverse { flex-direction: column; gap: 2rem; margin-bottom: 5rem; }
    .project-image-wrapper, .project-details { width: 100%; }
    .project-image-wrapper { height: 50vh; }
    .project-details { text-align: center; }
    
    .project-image { filter: grayscale(0%); }

    .contact { padding: 6rem 5%; }
    .contact-box h2 { font-size: 2.5rem; }

    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
    
    .cursor { display: none !important; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .project-image-wrapper { height: 40vh; }
}