html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Navbaringiz balandligi miqdori */
}



/* ASOSIY STRUKTURA */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* NAVBAR & LOGO */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    background: #ffffff;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 55px; }
.logo-text { font-weight: 700; color: #0b3c5d; line-height: 1.1; font-size: 1.1rem; }
.logo-text small { font-size: 0.75rem; color: #328cc1; letter-spacing: 0.5px; }

.nav-links a {
    text-decoration: none; color: #444; font-weight: 600;
    margin: 0 15px; transition: color 0.3s;
}
.nav-links a.active, .nav-links a:hover { color: #e65c00; }

.lang-switcher { display: flex; gap: 5px; }
.lang-btn {
    background: none; border: 1px solid #ccc; padding: 4px 10px;
    cursor: pointer; font-weight: bold; border-radius: 3px; font-size: 0.85rem;
}
.lang-btn.active { background: #0b3c5d; color: white; border-color: #0b3c5d; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #0b3c5d; cursor: pointer; }

/* HERO CAROUSEL */
.hero-carousel { height: 100vh; width: 100%; position: relative; overflow: hidden; }
.hero-slider, .hero-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 3; }
.hero-content { position: relative; z-index: 4; color: #fff; text-align: center; top: 50%; transform: translateY(-50%); max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.1rem; line-height: 1.6; }
.hero-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: #e65c00; }

/* BO'LIMLAR UCHUN SUBTITLE */
.section-subtitle { display: flex; align-items: center; gap: 8px; color: #e65c00; font-size: 0.85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.section-subtitle::before { content: ""; display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid #e65c00; }

/* BIZ HAQIMIZDA */
.about-section { padding: 80px 5%; background: #fff; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; align-items: center; }
.about-image img { width: 100%; border-radius: 4px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.about-content { display: flex; gap: 20px; }
.orange-bar { width: 5px; background: #e65c00; border-radius: 2px; flex-shrink: 0; }
.about-text-wrapper h2 { font-size: 2.3rem; margin: 15px 0; color: #111; line-height: 1.2; }
.about-text-wrapper p { color: #666; line-height: 1.7; font-size: 0.95rem; }

/* XIZMATLARIMIZ */
.services-section { padding: 80px 5%; background: #fafafa; }
.services-container { display: grid; grid-template-columns: 1fr 2.3fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.services-header h2 { font-size: 2.3rem; margin: 15px 0; }
.services-header p { color: #666; font-size: 0.95rem; line-height: 1.6; }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.service-card { display: flex; gap: 15px; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.service-sidebar { writing-mode: vertical-rl; transform: rotate(180deg); color: #bbb; font-weight: bold; border-left: 1px solid #eee; padding-left: 5px; font-size: 0.8rem; }
.service-icon { width: 45px; height: 45px; background: rgba(230,92,0,0.08); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; color: #e65c00; font-size: 1.2rem; }
.service-body h3 { margin-bottom: 8px; font-size: 1.15rem; color: #111; }
.service-body p { color: #666; font-size: 0.9rem; line-height: 1.5; }

/* PORTFOLIO CAROUSEL */
.portfolio-section { padding: 80px 5%; text-align: center; background: #fff; }
.portfolio-header { margin-bottom: 40px; }
.portfolio-header .section-subtitle { justify-content: center; }
.portfolio-header h2 { font-size: 2.3rem; margin-top: 10px; }
.carousel-wrapper { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; }
.carousel-track-container { width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease-in-out; gap: 20px; }
.carousel-slide { flex: 0 0 calc(33.333% - 14px); min-width: 250px; height: 320px; border-radius: 4px; overflow: hidden; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.carousel-slide:hover img { transform: scale(1.05); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #e65c00; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; }
.prev-btn { left: -15px; } .next-btn { right: -15px; }

/* ALOQA */
.contact-section { position: relative; background: #111; padding: 80px 5%; }
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17,17,17,0.9); z-index: 1; }
.contact-container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; max-width: 1200px; margin: 0 auto; gap: 40px; align-items: center; }
.contact-content { color: white; }
.contact-content h2 { font-size: 2.3rem; margin: 15px 0; }
.contact-content p { color: #aaa; font-size: 0.95rem; line-height: 1.6; }
.contact-info-wrapper { display: flex; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.contact-info-box { display: flex; align-items: center; gap: 15px; }
.info-icon { width: 45px; height: 45px; background: #e65c00; display: flex; justify-content: center; align-items: center; border-radius: 4px; color: white; font-size: 1.1rem; }
.info-text h4 { font-size: 0.8rem; color: #aaa; letter-spacing: 0.5px; margin-bottom: 3px; }
.info-text a { color: white; text-decoration: none; font-weight: bold; font-size: 1rem; transition: color 0.2s; }
.info-text a:hover { color: #e65c00; }
.contact-image-space img { width: 100%; max-height: 350px; object-fit: contain; opacity: 0.8; }

/* FOOTER */
.main-footer { background: #070708; color: white; padding: 60px 5% 20px 5%; border-top: 2px solid #1a1a1c; }
.footer-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-col h3 { margin-bottom: 20px; color: white; font-size: 1.2rem; position: relative; padding-bottom: 8px; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 35px; height: 2px; background: #e65c00; }
.footer-col p { color: #aaa; font-size: 0.9rem; line-height: 1.6; }
.footer-link { color: #aaa; text-decoration: none; font-size: 0.9rem; display: inline-block; margin-top: 5px; transition: color 0.2s; }
.footer-link:hover { color: #e65c00; }
.footer-link-large { color: white; font-weight: bold; text-decoration: none; font-size: 1.2rem; display: inline-block; transition: color 0.2s; }
.footer-link-large:hover { color: #e65c00; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1c1c1f; color: #666; font-size: 0.85rem; }

/* SCROLL TO TOP */
.scroll-to-top { position: fixed; bottom: 25px; right: 25px; background: #e65c00; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 100; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* MOBIL VA PLANSHET MOSLASHUVCHANLIGI (RESPONSIVE) */
@media (max-width: 992px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        position: absolute; top: 80px; left: -100%; width: 100%; background: #ffffff;
        flex-direction: column; padding: 20px 0; text-align: center;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); transition: left 0.4s ease;
        display: flex; gap: 15px;
    }
    .nav-links.open { left: 0; }
    .nav-links a { margin: 10px 0; display: block; }

    .about-container { grid-template-columns: 1fr; gap: 30px; }
    .services-container { grid-template-columns: 1fr; gap: 30px; }
    .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    
    .carousel-slide { flex: 0 0 calc(50% - 10px); }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.95rem; }
}

@media (max-width: 650px) {
    .services-grid { grid-template-columns: 1fr; }
    .carousel-slide { flex: 0 0 100%; }
    .contact-image-space { display: none; } /* Kichik telefonlarda ortiqcha yuklama yuklamaslik uchun yuk mashinasini yashiramiz */
    .hero-content h1 { font-size: 1.8rem; }
    .about-text-wrapper h2, .services-header h2, .portfolio-header h2, .contact-content h2 { font-size: 1.8rem; }
}