/* ============================================
   ANFKA.UZ - RASMIY SAYT STILLARI
   BARCHA RANG VA SHRIFTLARNI SHU YERDAN 
   O'ZGARTIRISH MUMKIN
   ============================================ */

:root {
    /* ASOSIY RANGLAR - O'ZGARTIRISH MUMKIN */
    --primary-color: #1a3c6e;       /* Asosiy ko'k */
    --primary-dark: #0f2647;        /* To'q ko'k */
    --primary-light: #2a5ca0;       /* Och ko'k */
    --accent-color: #e8a817;        /* Oltin/aktsent rang */
    --accent-hover: #c98f14;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #0a0f1a;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    
    /* SHRIFTLAR */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* O'LCHAMLAR */
    --navbar-height: 80px;
    --container-max: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}
/* ============================================
   UMUMIY SOZLAMALAR
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 60, 110, 0.3);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 168, 23, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--navbar-height);
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
    /* RASM: logo.png ni images/ papkasiga joylang */
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.navbar.scrolled .logo-text {
    color: white;
}

/* NAV MENU */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* TELEFON RAQAM NAVBARDA */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.nav-phone i {
    color: var(--accent-color);
}

/* MOBIL MENU TOGGLE */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d1b2a 50%, #1b2838 100%);
}

/* HERO ORQA FON RASMI */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    /* RASM: hero-bg.jpg - Asosiy banner orqa fon rasmi */
    /* Bu yerga ofis/binoning keng suratini qo'ying */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, 
        rgba(26, 60, 110, 0.6) 0%, 
        rgba(10, 15, 26, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 168, 23, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   XIZMATLAR BO'LIMI
   ============================================ */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(26, 60, 110, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   NATIJALAR BO'LIMI (Bosh sahifa preview)
   ============================================ */
.results-preview {
    background: white;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.result-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.result-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.result-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* RASM: project-1.jpg, project-2.jpg, project-3.jpg */
}

.result-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.result-info {
    padding: 25px;
}

.result-info h3 {
    margin-bottom: 10px;
}

.result-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.result-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   ASOSCHILAR BO'LIMI
   ============================================ */
.founders {
    background: var(--bg-light);
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* RASM: founder-1.jpg, founder-2.jpg, founder-3.jpg */
    /* Asoschilarning professional suratlarini images/ papkasiga joylang */
}

.founder-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.founder-role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.founder-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.founder-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.founder-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.founder-social a:hover {
    background: var(--primary-color);
    color: white;
}

/* ============================================
   ANFKA BINOSI BO'LIMI
   ============================================ */
.building-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark), #1a2a3a);
    overflow: hidden;
}

.building-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* RASM: anfka-building.jpg - Anfka binosi/offisi rasmi */
    /* Bu yerga katta, keng binoning suratini qo'ying */
}

.building-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.85);
}

.building-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.building-text h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.building-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.building-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.building-image img {
    width: 100%;
    height: auto;
    /* RASM: anfka-building.jpg - Bu yerda ham xuddi shu rasm */
}

/* ============================================
   STATISTIKA BO'LIMI
   ============================================ */
.stats {
    background: var(--primary-color);
    padding: 60px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* ============================================
   ALOQA BO'LIMI (Bosh sahifa)
   ============================================ */
.contact-preview {
    background: var(--bg-light);
    text-align: center;
    padding: 80px 0;
}

.contact-preview h2 {
    margin-bottom: 15px;
}

.contact-preview p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about img {
    height: 40px;
    margin-bottom: 15px;
    /* RASM: logo.png */
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact-info p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact-info i {
    color: var(--accent-color);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE (MOBILGA MOSLASHUV)
   ============================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .building-content {
        grid-template-columns: 1fr;
    }
    
    .building-image {
        order: -1;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(10, 15, 26, 0.98);
        flex-direction: column;
        padding: 40px 20px;
        gap: 15px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}

/* ============================================
   SAHIFA HEADERLARI (Ichki sahifalar)
   ============================================ */
.page-header {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark), #0d1b2a);
    text-align: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    /* RASM: Har bir sahifa uchun alohida fon rasmi */
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 26, 0.8);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header-content h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

.page-header-content .breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

.page-header-content .breadcrumb a {
    color: var(--accent-color);
}

/* ============================================
   ALOQA SAHIFASI
   ============================================ */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 60, 110, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   PORTFOLIO FILTER
   ============================================ */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ============================================
   SHOWCASE SAHIFASI
   ============================================ */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.showcase-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.showcase-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
    /* RASM: showcase-1.jpg, showcase-2.jpg, showcase-3.jpg */
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

.showcase-item:hover img {
    transform: scale(1.05);
}
