:root {
    --bg-deep: #050505;
    --text-light: #f5f5f5;
    
    /* Logodan olingan maxsus ranglar palitrasi */
    --logo-teal: #00A99D;
    --accent-blue: #0d47a1;
    --accent-lightblue: #00bfff;
    --accent-red: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Gorizontal skrollni butunlay o'chiradi */
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.92)), 
                url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-light);
    overflow-x: hidden;
}

/* Interaktiv Canvas foni */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Navbar'dan (1000) kattaroq raqam */
    pointer-events: none; /* Bu juda muhim: nuqtachalar sichqoncha bosilishiga to'sqinlik qilmaydi */
}

/* Yuqori Menyu (Glassmorphism) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 42px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #999;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--logo-teal);
}

.btn-contact {
    background: linear-gradient(135deg, var(--logo-teal), var(--accent-blue));
    color: var(--text-light) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 600 !important;
}

/* Umumiy sahifalar */
.section {
    padding: 120px 8% 80px 8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.line {
    height: 3px;
    width: 70px;
    background: linear-gradient(to right, var(--logo-teal), var(--accent-lightblue));
    margin-bottom: 50px;
}

/* Hero Bosh Sahifa */
.hero {
    justify-content: center;
    align-items: flex-start;
}

.hero-content {
    max-width: 750px;
}

.subtitle {
    display: block;
    height: 30px; /* Matn uchun doimiy joy ajratish */
    color: var(--accent-red);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    overflow: hidden; /* Matn tashqariga chiqib ketmasligi uchun */
}

/* --- TYPING TEXT OPTIMIZATION --- */
#typing-text {
    display: inline-block;
    /* !important ni olib tashladik, lekin rangni o'zgarishdan himoyalash uchun "color-gamut" va "forced-color-adjust" dan foydalanamiz */
    color: #e74c3c; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-right: 2px solid #e74c3c;
    padding-right: 8px;
    white-space: nowrap;
    min-height: 1.5em;
    /* Honor va boshqa qurilmalar rangni o'zgartirmasligi uchun */
    forced-color-adjust: none; 
    -webkit-text-fill-color: #e74c3c; /* Bu mobil brauzerlar uchun eng kuchli himoya */
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #e74c3c }
}

/* Sarlavha siljimasligi uchun */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.highlight {
    color: var(--logo-teal);
    text-shadow: 0 0 40px rgba(0, 169, 157, 0.2);
}

.description {
    font-size: 1.25rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 45px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--logo-teal);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 169, 157, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 169, 157, 0.4);
    background-color: var(--accent-lightblue);
}

/* Xizmatlar Kartochkalari */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(5px);
    padding: 45px 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 169, 157, 0.3);
    background-color: rgba(20, 20, 20, 0.7);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 45px;
    height: 4px;
    margin-bottom: 25px;
    border-radius: 2px;
}

.card-icon.cyan { background-color: var(--logo-teal); box-shadow: 0 0 15px var(--logo-teal); }
.card-icon.blue { background-color: var(--accent-lightblue); box-shadow: 0 0 15px var(--accent-lightblue); }
.card-icon.red { background-color: var(--accent-red); box-shadow: 0 0 15px var(--accent-red); }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Katalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 35px;
}

.catalog-item {
    height: 320px;
    background-color: rgba(30, 30, 30, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 35px;
    background: linear-gradient(to top, rgba(5,5,5,0.95), rgba(5,5,5,0));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.catalog-item:hover .item-overlay {
    transform: translateY(0);
    opacity: 1;
}

.item-overlay h4 { font-size: 1.4rem; margin-bottom: 5px; color: #fff; }
.item-overlay p { color: var(--logo-teal); font-size: 0.9rem; }

/* YANGILANGAN ALOQA BO'LIMI (Ixcham va yonma-yon kiber-grid) */
.contact-section {
    min-height: auto !important;
    padding: 120px 8% 100px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-box {
    background-color: rgba(13, 13, 13, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top: 4px solid var(--logo-teal);
    max-width: 1100px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.contact-box h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.contact-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 40px;
}

/* 3 ta elementni yonma-yon tekis grid qilish */
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.contact-item-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #cccccc;
    padding: 22px 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

/* Kursor borganda yuqoriga qalqish va neon porlash */
.contact-item-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(0, 169, 157, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text small {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.contact-text span {
    font-size: 1rem;
    font-weight: 600;
}

/* Kiber kvadrat shaklidagi ikona qutilari */
.icon-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Tugmalar ranglar balansi */
.phone-icon { background: linear-gradient(135deg, var(--logo-teal), var(--accent-blue)); }
.telegram-icon { background: linear-gradient(135deg, var(--accent-lightblue), var(--accent-blue)); }
.instagram-icon { background: linear-gradient(135deg, #006aff, #00c6ff); }

/* Neon Glow effektlari */
.contact-item-link:hover .phone-icon { box-shadow: 0 0 15px rgba(0, 169, 157, 0.6); }
.contact-item-link:hover .telegram-icon { box-shadow: 0 0 15px rgba(0, 191, 255, 0.6); }
.contact-item-link:hover .instagram-icon { box-shadow: 0 0 15px rgba(0, 106, 255, 0.6); }

footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* DAA */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.94);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, 
.reveal-zoom.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Mobil qurilmalar uchun moslashuvchanlik (Responsive) */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .nav-links { display: none; }
    .contact-box { padding: 40px 20px; }
    .contact-box h2 { font-size: 1.8rem; }
    .contact-details { grid-template-columns: 1fr; } /* Telefon ekranda avtomat 1 qator bo'ladi */
}
/* Doimiy animatsiya */
.animate-text {
    display: inline-block;
    width: fit-content; /* Faqat matn egallagan joygacha cheklaydi */
    transition: all 0.4s ease; /* Kursor kelganda silliq o'tish uchun */
    animation: pulseEffect 3s infinite ease-in-out; /* 3 soniyalik doimiy loop */
    cursor: pointer;
}

/* Kursor olib kelinganda o'zgarish */
.animate-text:hover {
    transform: scale(1.1) rotate(2deg); /* Kattalashadi va biroz qiyshayadi */
    color: #00A99D; /* Rang o'zgaradi */
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); /* Yorqinlik effekti */
}

/* Highlight (Developer) qismi ham kursor kelganda o'zgarishi uchun */
.animate-text:hover .highlight {
    color: #ffffff; /* Kursor kelganda ikkinchi rang */
}



/* Doimiy loop animatsiyasi (Keyframe) */
@keyframes pulseEffect {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px); /* Sekin tepaga chiqib tushadi */
        opacity: 0.8;
    }
}

#typing-text {
    display: inline-block; /* Buni qo'shish matnni to'g'ri ko'rsatadi */
    border-right: 2px solid #00A99D; /* Test uchun o'zgaruvchi o'rniga rangni to'g'ridan-to'g'ri qo'yib ko'ring */
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
    min-height: 1.2em; /* Matn balandligini saqlash uchun */
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #00A99D; }
}

