* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: #1a1a1a;
    color: #ffffff;
}

/* Bosh sahifa stilari */
.home-section {
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1448630360428-65456885c650?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255,255,255,0.1);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 4px 20px rgba(255,255,255,0.1); }
    to { text-shadow: 0 4px 30px rgba(255,255,255,0.3), 0 0 60px rgba(255,255,255,0.1); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 0.1em;
}

.enter-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.enter-btn:hover::before {
    left: 100%;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

.enter-btn i {
    transition: transform 0.3s ease;
}

.enter-btn:hover i {
    transform: translateX(5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Asosiy interfeys stilari */
.main-interface {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
}

/* Navigatsiya */
.navbar {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-color: transparent;
}

.nav-btn.back-btn {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

.nav-btn.back-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

/* Kontent bo'limlari */
.content-section {
    padding: 1rem 2rem 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.content-section:not(.active) {
    opacity: 0;
    transform: translateY(30px);
    display: none;
}

.content-section.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    display: flex !important;
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Loyihalar grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.project-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3498db;
}

.project-info p {
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-features span {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Kontakt kartalari */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    flex-grow: 1;
}

.contact-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.contact-link {
    color: #2ecc71;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3498db;
}

.contact-card p {
    opacity: 0.8;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Xarita bo'limi */
.location-container {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
}

.map-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 1000px;
    width: 100%;
}

.map-placeholder {
    position: relative;
    height: 300px;
    overflow: hidden;
    min-height: 250px;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.address-info {
    padding: 1rem;
    background: rgba(0,0,0,0.3);
}

.address-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3498db;
    text-align: center;
}

.address-info p {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.address-info i {
    color: #2ecc71;
    width: 20px;
    flex-shrink: 0;
}

/* Animatsiyalar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive dizayn */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .content-section {
        padding: 0.5rem 1rem 2rem 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }
    
    .enter-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .map-placeholder {
        height: 200px;
        min-height: 180px;
    }
    
    .location-container {
        margin-top: 0.2rem;
    }
    
    .address-info {
        padding: 0.8rem;
    }
    
    .address-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .address-info p {
        font-size: 0.8rem;
        flex-wrap: wrap;
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .map-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
}

/* Scrollbar stilari */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
}
