@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    /* Sophisticated Color Palette */
    --primary-navy: #0F172A;
    --primary-blue: #1E293B;
    --accent-blue: #0EA5E9;
    --light-blue: #3B82F6;
    --sky-blue: #0284C7;
    
    --primary-red: #B91C1C;
    --accent-red: #DC2626;
    --light-red: #EF4444;
    --coral-red: #F87171;
    
    --pure-white: #FFFFFF;
    --off-white: #F8FAFC;
    --light-gray: #F1F5F9;
    --mid-gray: #64748B;
    --dark-gray: #334155;
    --charcoal: #1E293B;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 50%, var(--sky-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
    --gradient-red: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    background: var(--pure-white);
}

/* Enhanced Navigation with Updated Sizing */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover .logo-img {
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.75rem 0;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-red);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a:hover {
    color: var(--accent-blue);
    transform: translateY(-1px);
}

.nav-item a:hover::before {
    width: 100%;
}

.nav-item.active a {
    color: var(--accent-blue);
}

.nav-item.active a::before {
    width: 100%;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-header .subtitle, .section-header p {
    font-size: 1.125rem;
    color: var(--mid-gray);
    line-height: 1.7;
    font-weight: 400;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--pure-white);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
}

.page-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Company Profile Section */
.company-profile {
    padding: var(--spacing-3xl) 0;
    background: var(--pure-white);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.profile-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.profile-text p {
    color: var(--mid-gray);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.7;
}

.office-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.office-image {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.office-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.office-image.large {
    grid-column: span 2;
}

.stats-section {
    background: var(--off-white);
    border-radius: 20px;
    padding: var(--spacing-2xl);
    margin-top: var(--spacing-3xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--pure-white);
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--mid-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Facilities Section */
.facilities {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.facility-card {
    background: var(--pure-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.facility-image {
    height: 230px;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.facility-content {
    padding: var(--spacing-lg);
}

.facility-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* Milestones Section */
.milestones {
    padding: var(--spacing-3xl) 0;
    background: var(--pure-white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.milestone {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    display: flex;
    align-items: center;
}

.milestone:nth-child(odd) {
    flex-direction: row;
}

.milestone:nth-child(even) {
    flex-direction: row-reverse;
}

.milestone-content {
    background: var(--pure-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: var(--spacing-lg);
    width: calc(50% - 40px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
}

.milestone:nth-child(odd) .milestone-content {
    margin-right: 40px;
}

.milestone:nth-child(even) .milestone-content {
    margin-left: 40px;
}

.milestone-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.milestone-year {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.milestone-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: var(--spacing-sm);
}

.milestone-description {
    color: var(--mid-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--primary-navy);
    color: var(--pure-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar.scrolled {
        padding: 0.875rem 0;
    }
    
    .logo-img {
        height: 45px;
        max-width: 160px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 30px;
    }

    .milestone {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .milestone-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .milestone-year {
        left: 30px !important;
        transform: translateY(-50%) !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.875rem 0;
    }
    
    .nav-menu {
        display: none;
    }

    .logo-img {
        height: 40px;
        max-width: 140px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 140px 0 60px;
    }

    .office-gallery {
        grid-template-columns: 1fr;
    }

    .office-image.large {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Engineering Process Section */
.engineering-process {
    padding: var(--spacing-3xl) 0;
    background: var(--off-white);
}

.process-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.process-gallery-bottom {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.process-gallery-bottom .process-image-card {
    flex: 0 0 calc((100% - var(--spacing-lg)) / 3);
}

.process-image-card {
    background: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    height: 300px;
    background-size: cover;
    background-position: center;
}

.process-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Responsive Design for Engineering Process */
@media (max-width: 1024px) {
    .process-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-gallery {
        grid-template-columns: 1fr;
    }
    
    .process-image-card {
        height: 250px;
    }
}

/* Add this to the END of your about-us.css file to fix mobile timeline */

@media (max-width: 768px) {
    /* Page Header Mobile */
    .page-header {
        padding: 120px 0 50px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
        padding: 0 var(--spacing-md);
    }

    /* Company Profile Mobile */
    .company-profile {
        padding: var(--spacing-xl) 0;
    }

    .profile-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .profile-text h2 {
        font-size: 1.75rem;
    }

    .profile-text p {
        font-size: 1rem;
    }

    .office-gallery {
        grid-template-columns: 1fr;
    }

    .office-image {
        height: 200px;
    }

    .office-image.large {
        grid-column: span 1;
    }

    /* Stats Section Mobile */
    .stats-section {
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Engineering Process Mobile */
    .engineering-process {
        padding: var(--spacing-xl) 0;
    }

    .process-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .process-gallery-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .process-gallery-bottom .process-image-card {
        flex: 1;
        width: 100%;
    }

    .process-image-card {
        height: 220px;
    }

    /* Facilities Mobile */
    .facilities {
        padding: var(--spacing-xl) 0;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .facility-image {
        height: 200px;
    }

    .facility-content {
        padding: var(--spacing-md);
    }

    .facility-content h3 {
        font-size: 1.2rem;
    }

    /* Timeline Mobile Fix */
    .milestones {
        padding: var(--spacing-xl) 0;
    }

    .timeline {
        padding: 0 var(--spacing-md);
    }

    .timeline::before {
        left: 15px;
        width: 3px;
    }

    .milestone {
        flex-direction: row !important;
        padding-left: 0;
        margin-bottom: var(--spacing-xl);
    }

    .milestone-content {
        width: calc(100% - 50px) !important;
        margin-left: 50px !important;
        margin-right: 0 !important;
    }

    .milestone-year {
        left: 15px !important;
        transform: translate(-50%, -50%) !important;
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }

    .milestone-title {
        font-size: 1.1rem;
    }

    .milestone-description {
        font-size: 0.9rem;
    }

    /* Section Headers Mobile */
    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Footer Mobile */
    .footer p {
        font-size: 0.85rem;
        padding: 0 var(--spacing-md);
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .page-header {
        padding: 110px 0 40px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .profile-text h2 {
        font-size: 1.5rem;
    }

    .profile-text p {
        font-size: 0.95rem;
    }

    .office-image {
        height: 180px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .process-image-card {
        height: 200px;
    }

    .facility-image {
        height: 180px;
    }

    .milestone-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }

    .milestone-content {
        width: calc(100% - 40px) !important;
        margin-left: 40px !important;
        padding: var(--spacing-md);
    }

    .milestone-title {
        font-size: 1rem;
    }

    .milestone-description {
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }
}