/* ===================================
   IK Semiconductor Website Styles
   Design System: Interkey Consistency
   =================================== */

/* === CSS Variables === */
:root {
    /* Colors - Interkey Palette */
    --primary-blue: #0B4BA3;
    --secondary-purple: #454072;
    --accent-cyan: #0099CC;
    --industrial-gray: #4A5568;
    --steel-blue: #5A6C7D;
    --success-green: #10B981;
    --warning-amber: #F59E0B;
    --white: #FFFFFF;
    --light-gray: #F7FAFC;
    --dark-navy: #1A202C;
    --text-dark: #2D3748;
    --text-light: #718096;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-arabic: 'Cairo', sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* === Reset & Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

[lang="ar"],
[dir="rtl"] {
    font-family: var(--font-arabic);
    direction: rtl;
}

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

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

ul,
ol {
    list-style: none;
}

/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

/* === Header & Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(11, 75, 163, 0.95);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-menu a {
    color: var(--white);
}

.header.scrolled .nav-toggle span {
    background: var(--white);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo {
    height: 40px;
    width: auto;
}

.logo-text {
    display: none;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-base);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition-base);
}

.lang-toggle {
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-full);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    gap: var(--space-sm);
    transition: var(--transition-base);
}

.lang-toggle:hover {
    background: var(--primary-blue);
    color: var(--white);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #093a82;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-4xl) var(--space-lg);
    margin-top: 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url('../images/herosection.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-3xl);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin: var(--space-sm) auto 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

/* === About Section === */
.about {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Background image layer */
.about-background {
    position: absolute;
    inset: 0;
    background: none;
    background-size: cover;
    opacity: 0.15;
    z-index: 0;
}

/* Dark overlay gradient for better text contrast */
.about-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 75, 163, 0.85) 0%,
            rgba(69, 64, 114, 0.75) 50%,
            rgba(11, 75, 163, 0.85) 100%);
    z-index: 1;
}

/* Ensure content is above background layers */
.about .container {
    position: relative;
    z-index: 2;
}

/* Update text colors for dark background */
.about .section-title {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text {
    max-width: 1000px;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--white);
    margin-bottom: var(--space-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 153, 204, 0.4);
    transition: var(--transition-base);
}

.feature-card:hover .feature-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.6);
}

.feature-card h4 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* Remove the about-image section as it's now the background */
.about-image {
    display: none;
}

@media (max-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

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

    .feature-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* === Capabilities Section === */
.capabilities {
    padding: var(--space-4xl) 0;
    background: var(--light-gray);
}

.capabilities-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.capability-phase {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-base);
}

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

.capability-phase.active {
    border: 2px solid var(--primary-blue);
}

.phase-badge {
    position: absolute;
    top: -12px;
    left: var(--space-lg);
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.phase-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.capability-phase h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.phase-period {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.phase-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.phase-features li {
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-light);
}

.phase-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .capabilities-timeline {
        grid-template-columns: 1fr;
    }
}

/* === Products Section === */
.products {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    padding: var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(11, 75, 163, 0.12);
    transition: all var(--transition-base);
    position: relative;
    border: 2px solid transparent;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan), var(--secondary-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(11, 75, 163, 0.25);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
    transition: all var(--transition-slow);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-image img {
    transform: scale(1.15) translateY(-8px);
    filter: drop-shadow(0 8px 16px rgba(11, 75, 163, 0.3));
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 75, 163, 0) 0%, rgba(11, 75, 163, 0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.product-card:hover .product-badge {
    transform: translateY(0);
}

.product-content {
    padding: var(--space-xl);
    background: var(--white);
}

.product-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    line-height: 1.3;
    transition: color var(--transition-base);
}

.product-card:hover .product-content h3 {
    color: var(--accent-cyan);
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments for products */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .product-image {
        height: 280px;
    }

    .product-content h3 {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
}

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

/* Facilities Grid Styles */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.facility-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    transition: var(--transition-base);
}

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

.facility-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.facility-card:hover .facility-image {
    transform: scale(1.05);
}

.facility-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 75, 163, 0.95) 0%, rgba(11, 75, 163, 0.7) 50%, transparent 100%);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    color: var(--white);
}

.facility-caption p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .facility-card {
        height: 300px;
    }
}

/* === Location Section === */
.location {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.location-map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
}

.location-map {
    width: 100%;
    height: 100%;
    display: block;
}

.location-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 75, 163, 0.95) 0%, rgba(11, 75, 163, 0.7) 50%, transparent 100%);
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
    color: var(--white);
    text-align: center;
}

.location-caption p {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .location-map-container {
        height: 400px;
    }
}

/* === Certifications Section === */
.certifications {
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-md);
}

.certification-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 8px 20px rgba(69, 64, 114, 0.12);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--success-green), var(--primary-blue), var(--secondary-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.certification-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(69, 64, 114, 0.25);
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-icon-wrapper {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.certification-card img {
    height: 160px;
    width: auto;
    object-fit: contain;
    transition: all var(--transition-slow);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.certification-card:hover img {
    transform: scale(1.15) rotateY(5deg);
    filter: drop-shadow(0 8px 16px rgba(69, 64, 114, 0.3));
}

.certification-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--transition-slow);
    z-index: 1;
}

.certification-card:hover .certification-glow {
    opacity: 1;
    width: 180px;
    height: 180px;
}

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

.certification-card h3 {
    font-size: 1.625rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-md);
    font-weight: 700;
    transition: color var(--transition-base);
}

.certification-card:hover h3 {
    color: var(--success-green);
}

.certification-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.certification-status {
    display: inline-block;
    background: linear-gradient(135deg, var(--success-green), #059669);
    color: var(--white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.certification-card:hover .certification-status {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .certification-icon-wrapper {
        height: 160px;
    }

    .certification-card img {
        height: 140px;
    }

    .certification-card h3 {
        font-size: 1.375rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Timeline Section === */
.timeline {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: var(--space-4xl) 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

/* Horizontal timeline connector line with gradient */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 60px;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary-blue) 0%,
            var(--accent-cyan) 50%,
            var(--secondary-purple) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(11, 75, 163, 0.4);
    z-index: 1;
}

.timeline-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s ease both;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Timeline dot indicator */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 60px;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--accent-cyan);
    box-shadow: 0 0 0 6px var(--white), 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: all var(--transition-base);
}

/* Active state for timeline dot */
.timeline-item.active::before {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 6px rgba(11, 75, 163, 0.25),
        0 0 25px rgba(11, 75, 163, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
    width: 26px;
    height: 26px;
}

/* Pulse animation for active dot */
@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Timeline content card */
.timeline-content {
    background: var(--white);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    border: 2px solid var(--light-gray);
    text-align: center;
    margin-top: calc(60px + var(--space-2xl));
    width: 100%;
    min-height: 120px;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.timeline-item.active .timeline-content {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--white) 0%, rgba(11, 75, 163, 0.02) 100%);
}

/* Arrow pointing to timeline dot */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 14px 16px 14px;
    border-color: transparent transparent var(--white) transparent;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.timeline-item h3 {
    font-size: 1.125rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    line-height: 1.4;
}

.timeline-item h3::before {
    content: '📅';
    font-size: 1rem;
}

.timeline-item p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        gap: var(--space-2xl);
        padding: var(--space-xl) 0;
    }

    .timeline-container::before {
        left: 20px;
        top: 0;
        bottom: 0;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg,
                var(--primary-blue) 0%,
                var(--accent-cyan) 50%,
                var(--secondary-purple) 100%);
    }

    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        padding-left: var(--space-3xl);
        width: 100%;
    }

    .timeline-item::before {
        left: 20px;
        top: var(--space-xl);
        transform: translateX(-50%);
    }

    .timeline-content {
        margin-top: 0;
        text-align: left;
    }

    .timeline-content::before {
        left: 0;
        top: var(--space-xl);
        bottom: auto;
        transform: translateY(-50%);
        border-width: 10px 12px 10px 0;
        border-color: transparent var(--white) transparent transparent;
    }

    .timeline-item h3 {
        font-size: 1.125rem;
        justify-content: flex-start;
    }

    .timeline-item p {
        font-size: 0.875rem;
    }
}

/* === Partners Section === */
.partners {
    padding: var(--space-4xl) 0;
    background: var(--light-gray);
}

.partners-content {
    text-align: center;
}

.partner-featured {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.partner-logo {
    height: 80px;
    width: auto;
}

.partner-info {
    text-align: left;
    flex: 1;
}

.partner-info h4 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.partner-info p {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.partner-link {
    color: var(--primary-blue);
    font-weight: 600;
}

@media (max-width: 768px) {
    .partner-featured {
        flex-direction: column;
        text-align: center;
    }

    .partner-info {
        text-align: center;
    }
}

/* === Vision 2030 Section === */
.vision2030 {
    padding: var(--space-4xl) 0;
    position: relative;
    color: var(--white);
    overflow: hidden;
    min-height: 600px;
}

/* Background with image and overlay */
.vision-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.vision2030::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(11, 75, 163, 0.95) 0%,
            rgba(69, 64, 114, 0.95) 50%,
            rgba(11, 75, 163, 0.95) 100%);
    z-index: 1;
}

.vision2030 .container {
    position: relative;
    z-index: 2;
}

.vision2030 .section-header {
    margin-bottom: var(--space-3xl);
}

.vision2030 .section-title {
    color: var(--white);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-md);
}

.vision2030 .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.vision-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.vision-card::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 ease;
}

.vision-card:hover::before {
    left: 100%;
}

.vision-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Animated Icon Text - Rotating Words */
.vision-icon-text {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    position: relative;
    overflow: hidden;
}

.rotating-word {
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary);
    letter-spacing: 0.15rem;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vision-card h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-md);
    color: var(--white);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.vision-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.vision-logo {
    max-width: 350px;
    margin: 0 auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: var(--transition-base);
}

.vision-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vision2030 {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .vision2030 .section-title {
        font-size: 2rem;
    }

    .vision2030 .section-subtitle {
        font-size: 1.125rem;
    }

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

    .vision-icon-text {
        font-size: 3rem;
        height: 70px;
    }

    .vision-card h3 {
        font-size: 1.25rem;
    }

    .vision-description {
        font-size: 0.875rem;
    }

    .vision-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .vision-icon-text {
        font-size: 2.5rem;
        height: 60px;
    }

    .vision-card {
        padding: var(--space-xl);
    }
}

/* === Contact Section === */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-md);
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 75, 163, 0.1);
}

.form-group:nth-child(4),
.form-group:nth-child(5) {
    grid-column: span 2;
}

.contact-form button {
    grid-column: span 2;
    justify-self: start;
}

.contact-info {
    background: var(--light-gray);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: var(--space-lg);
}

.contact-info p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group:nth-child(4),
    .form-group:nth-child(5) {
        grid-column: span 1;
    }

    .contact-form button {
        grid-column: span 1;
    }
}

/* === Footer === */
.footer {
    background: var(--dark-navy);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-col h4 {
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-logo {
    height: 40px;
    margin-bottom: var(--space-md);
}

.subsidiary {
    font-style: italic;
    opacity: 0.8;
}

.vision-logo {
    max-width: 150px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* === Utility Classes === */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

/* ===================================
   Image Lightbox/Modal Styles
   =================================== */

/* Make product, certification, and facility images clickable */
.products-grid .product-image img,
.certifications-grid .certification-card img,
.facility-image,
.location-map {
    cursor: pointer;
    transition: var(--transition-base);
}

.products-grid .product-image img:hover,
.certifications-grid .certification-card img:hover,
.facility-image:hover,
.location-map:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-base);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

/* Lightbox content container */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Lightbox image */
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

/* Lightbox caption */
.lightbox-caption {
    color: var(--white);
    margin-top: var(--space-md);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    max-width: 800px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox iframe */
.lightbox-content iframe {
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    line-height: 1;
    padding: 0;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-cyan);
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-content img {
        max-height: 85vh;
    }

    .lightbox-content iframe {
        width: 95vw;
        height: 70vh;
    }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}