﻿* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}

/* --- Hero Background --- */
.hero-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite;
    /* Changed to rely on padding for dynamic height */
    padding: clamp(3rem, 8vw, 6rem) 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

    .hero-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
        opacity: 0.3;
        z-index: -1;
    }

.hero-text {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
    position: relative;
    z-index: 15;
}

/* --- Animations --- */
.floating-card {
    transform: translateY(20px);
    opacity: 0;
    animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* --- Card Styles --- */
.card-hover {
    transition: all 0.3s ease;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.leadership-card,
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem !important;
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- Section Divider --- */
.section-divider {
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    height: 2px;
    margin: clamp(2rem, 4vw, 3rem) 0;
    width: 100%;
}

/* --- Number Counter --- */
.number-counter {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #667eea;
    line-height: 1.2;
}

/* --- Timeline --- */
.timeline-item {
    position: relative;
    padding-left: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.5rem;
        width: clamp(0.625rem, 1.5vw, 0.75rem);
        height: clamp(0.625rem, 1.5vw, 0.75rem);
        background: #667eea;
        border-radius: 50%;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        left: 0.3rem;
        top: 1.25rem;
        width: 2px;
        height: calc(100% - 1rem);
        background: linear-gradient(to bottom, #667eea, transparent);
    }

    .timeline-item:last-child::after {
        display: none;
    }

/* --- Image Visibility & Responsiveness --- */
img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- CTA Buttons --- */
.cta-button-secondary {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    white-space: nowrap;
    min-width: auto;
}

    .cta-button-secondary:hover {
        background-color: #ffffff !important;
        color: #2563eb !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .cta-button-secondary i {
        color: inherit !important;
        margin-right: 0.5rem;
    }

/* --- Responsive Typography --- */
.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.card-title {
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.body-text {
    font-size: clamp(0.875rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}

/* --- Responsive Spacing --- */
.section-spacing {
    padding-top: clamp(2rem, 5vw, 5rem);
    padding-bottom: clamp(2rem, 5vw, 5rem);
}

/* --- Stats Section --- */
.stats-number {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: #667eea;
    line-height: 1.2;
}

.stats-label {
    font-size: clamp(0.75rem, 1.5vw, 1.125rem);
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* --- Certification Badges --- */
/* This ensures 2 columns on mobile and 3 on desktop */
.certification-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
}

.certification-badge {
    transition: all 0.3s ease;
    padding: clamp(0.75rem, 2vw, 1.5rem);
}

    .certification-badge:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    }

    .certification-badge h3 {
        font-size: clamp(0.875rem, 3vw, 1.15rem); /* Scaled font for readability */
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .certification-badge p {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Keeps heights uniform */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .certification-badge .bg-blue-100,
    .certification-badge .bg-green-100,
    .certification-badge .bg-purple-100,
    .certification-badge .bg-yellow-100,
    .certification-badge .bg-red-100,
    .certification-badge .bg-indigo-100,
    .certification-badge .bg-orange-100 {
        /* Smaller icon containers for 2-column mobile layout */
        width: clamp(2.5rem, 10vw, 4.5rem);
        height: clamp(2.5rem, 10vw, 4.5rem);
        margin-bottom: 0.75rem;
    }

    .certification-badge i {
        font-size: clamp(1rem, 4vw, 1.75rem);
    }

/* --- Leadership Cards --- */
.leadership-img {
    width: clamp(6rem, 15vw, 8rem);
    height: clamp(6rem, 15vw, 8rem);
}

.leadership-card {
    padding: clamp(1.5rem, 3vw, 2rem);
}

    .leadership-card img {
        width: clamp(6rem, 15vw, 8rem);
        height: clamp(6rem, 15vw, 8rem);
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }

    .leadership-card h3 {
        font-size: clamp(1rem, 2vw, 1.25rem);
        margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    }

    .leadership-card p {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    }

    .leadership-card .flex span {
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
        padding: clamp(0.25rem, 0.5vw, 0.375rem) clamp(0.5rem, 1vw, 0.75rem);
    }

/* --- Manufacturing Grid --- */
.manufacturing-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 2rem);
    grid-template-columns: 1fr;
}

    .manufacturing-grid img {
        height: clamp(12rem, 30vw, 16rem);
        object-fit: cover;
    }

    .manufacturing-grid .p-8 {
        padding: clamp(1rem, 3vw, 2rem);
    }

    .manufacturing-grid h3 {
        font-size: clamp(1.125rem, 2.5vw, 1.5rem);
        margin-bottom: clamp(0.75rem, 2vw, 1rem);
    }

    .manufacturing-grid p {
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.6;
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }

    .manufacturing-grid span {
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
        padding: clamp(0.25rem, 0.5vw, 0.375rem) clamp(0.5rem, 1vw, 0.75rem);
    }

/* --- YouTube Video Section --- */
.youtube-video-section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.video-container-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: clamp(2rem, 3vw, 3rem);
}

.video-container {
    position: relative;
    width: 100%;
    max-height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 1.5vw, 1.5rem);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: clamp(0.5rem, 2vw, 1.5rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: clamp(0.5rem, 1.5vw, 1.5rem);
    }

    /* Hover effect for video container */
    .video-container:hover {
        box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25);
        transform: translateY(-5px);
    }

/* Mobile adjustments for video */
@media (max-width: 575px) {
    .video-container-wrapper {
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .video-container {
        border-radius: 0.5rem;
    }
}


/* --- Hero Badge --- */
.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
    border-radius: 3rem;
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    flex-wrap: wrap;
    justify-content: center;
}

    .hero-badge i {
        font-size: clamp(1rem, 2vw, 1.25rem);
    }

    .hero-badge span {
        font-size: clamp(0.813rem, 1.5vw, 1.125rem);
    }

/* --- Glass Effect --- */
.glass-effect {
    padding: clamp(1rem, 3vw, 2rem);
}

    .glass-effect img {
        width: clamp(6rem, 15vw, 10rem);
        height: clamp(6rem, 15vw, 10rem);
        margin-bottom: clamp(0.75rem, 2vw, 1rem);
    }

    .glass-effect h3 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: clamp(0.75rem, 2vw, 1rem);
    }

    .glass-effect p {
        font-size: clamp(0.875rem, 1.5vw, 1.125rem);
        line-height: 1.6;
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }

    .glass-effect .flex {
        gap: clamp(0.75rem, 2vw, 1rem);
    }

    .glass-effect .rounded-full {
        padding: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    .glass-effect i {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }

/* --- Mobile Optimizations (320px - 575px) --- */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .cta-button-secondary {
        width: 100%;
        max-width: 100%;
    }

    .hero-bg {
        padding: 2rem 0;
    }

    .grid {
        gap: 1rem !important;
    }

    .manufacturing-grid img {
        height: 10rem;
    }

    .timeline-item {
        padding-left: 1.25rem;
    }

    .leadership-card,
    .certification-badge {
        margin-bottom: 1rem;
    }

        .certification-badge .p-2 {
            padding: 0.4rem !important; /* Compact footer tags in badges */
        }

        .certification-badge span {
            font-size: 0.7rem !important;
        }
}

/* --- Tablet Optimizations (576px - 991px) --- */
@media (min-width: 576px) and (max-width: 991px) {
    .hero-bg {
        padding: 2rem 0;
    }

    .grid {
        gap: 1.5rem !important;
    }

    .manufacturing-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Desktop Optimizations (992px+) --- */
@media (min-width: 992px) {
    .manufacturing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-bg {
        padding: 2rem 0;
    }

    .certification-grid {
        grid-template-columns: repeat(4, 1fr); /* 3 columns for desktop */
    }
}

/* --- Large Desktop (1200px+) --- */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* --- Extra Large Desktop (1400px+) --- */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

/* --- Utility Classes --- */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bg-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* --- Floating Particles --- */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* --- Prevent horizontal scroll --- */
body {
    overflow-x: hidden;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

/* --- Responsive Container Padding --- */
.container {
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* --- Footer CTA Section --- */
.hero-bg h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.hero-bg .text-xl {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    line-height: 1.5;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.hero-bg .flex {
    gap: clamp(0.75rem, 2vw, 1rem);
}

/* --- Print Styles --- */
@media print {
    .hero-bg,
    .floating-particle,
    .cta-button-secondary {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- High Contrast Mode --- */
@media (prefers-contrast: high) {
    .gradient-text {
        -webkit-text-fill-color: #667eea;
        color: #667eea;
    }
}
