/* Global Styles */
:root {
    --primary-color: #2563EB;
    --secondary-color: #1E293B;
    --accent-color: #06B6D4;
    --bg-light: #F8FAFC;
    --btn-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    --overlay-color: rgba(15, 23, 42, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--secondary-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.8rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.text-primary-gradient {
    background: linear-gradient(to right, #60A5FA, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin-left: 1rem;
    position: relative;
    opacity: 0.9;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff !important;
    opacity: 1;
}

/* Logo Styles */
.logo-wrapper {
    background: white;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    /* Slightly rounded rect for image compatibility */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 70px;
    /* Fixed height container */
    overflow: hidden;
}

.logo-wrapper:hover {
    transform: scale(1.02);
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    max-width: 250px;
}

.btn-primary {
    background: var(--btn-gradient);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* Mobile Navbar Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        margin-left: 0;
        padding: 0.5rem 0;
    }

    .nav-link::after {
        display: none;
        /* Remove underline effect on mobile for cleaner look */
    }
}

/* Hero Section - Modern Corporate Theme */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    /* High-quality modern architecture/connection background */
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax effect */
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Premium Dark Gradient Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 58, 138, 0.85) 100%);
    z-index: 1;
}

/* Animated Particles/Dots Overlay (CSS Only) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 2;
    animation: moveBackground 50s linear infinite;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 1000px 1000px;
    }
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Typography Enhancements */
.hero-section h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, #60A5FA, #2DD4BF, #60A5FA);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* About Section */
/* About Section Revamp */
#about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content-wrapper {
    padding-right: 2rem;
}

.about-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 4px solid var(--primary-color);
    /* Add a color accent */
    text-align: left;
    /* Align text left for better readability */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.2);
    background: white;
}

.about-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 1rem;
    /* Squircle shape */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 8px 15px -3px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    margin-left: 0;
    /* Align left */
}

.about-card:hover .about-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 12px 20px -3px rgba(37, 99, 235, 0.6);
}

.about-card h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.about-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

/* Add a connector line visual */
.connector-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    z-index: -1;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.experience-badge {
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3);
    background: var(--btn-gradient);
    border: 4px solid white;
    z-index: 10;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Horizontal Stepping Stone Journey */
#journey {
    background: #ffffff;
    padding: 5rem 0;
    position: relative;
}

#journey h2 {
    position: relative;
    z-index: 2;
}

.journey-steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Connecting Line Background */
.journey-steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    /* Vertically align with circle centers */
    left: 50px;
    right: 50px;
    height: 4px;
    background: #e2e8f0;
    z-index: 0;
    transform: translateY(-50%);
}

.journey-step {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1rem;
    transition: transform 0.3s ease;
}

.journey-step:hover {
    transform: translateY(-10px);
}

.step-circle {
    width: 100px;
    height: 100px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.journey-step:hover .step-circle {
    background: var(--btn-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.4);
    transform: scale(1.1);
}

.step-year {
    font-size: 1.2rem;
    line-height: 1;
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.step-content {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.3s ease;
}

/* Little triangle pointing up to circle */
.step-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    transform: translateX(-50%) rotate(45deg);
}

.journey-step:hover .step-content {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.step-content p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Mobile: Stack them */
@media (max-width: 991px) {
    .journey-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .journey-steps-container::before {
        width: 4px;
        height: auto;
        top: 50px;
        bottom: 50px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .journey-step {
        width: 100%;
        max-width: 500px;
        display: flex;
        align-items: flex-start;
        /* Align left */
        text-align: left;
    }

    .step-circle {
        margin: 0 1.5rem 0 0;
        flex-shrink: 0;
        width: 80px;
        height: 80px;
    }

    .step-content {
        flex: 1;
    }

    /* Triangle points left now */
    .step-content::before {
        top: 30px;
        left: -8px;
        transform: translateY(-50%) rotate(-45deg);
    }
}

/* Vision & Mission Revamp */
#vision-mission {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    /* Deep corporate blue */
    position: relative;
    z-index: 1;
}

/* Decorative background pattern */
#vision-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -1;
}

.vision-card {
    background: white;
    padding: 3rem 2.5rem;
    height: 100%;
    border-radius: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    /* Flex layout for side-by-side */
    align-items: flex-start;
    text-align: left;
}

/* Colored accent bar on top */
.vision-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vision-card:hover::after {
    transform: scaleX(1);
}

.vision-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    /* Space between icon and text */
    flex-shrink: 0;
    /* Prevent icon shrinking */
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.vision-card:hover .vision-icon-wrapper {
    background: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.vision-card:hover .vision-icon-wrapper i {
    transform: rotateY(-180deg);
    /* Keep icon facing forward */
}

.vision-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.vision-card p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Leadership & Team Section - Refined Classic */
#team {
    background: #f8fafc;
    padding: 5rem 0;
}

.team-classic-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    margin-top: 30px;
    /* Space for overlapping image */
}

.team-classic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.team-img-header {
    margin-top: -40px;
    /* Negative margin for overlap */
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.img-circle-container {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.img-circle-container i {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #94a3b8;
}

/* If user adds images later, this will handle it */
.img-circle-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card-body-content {
    padding: 0 2rem 2rem 2rem;
    text-align: center;
}

.card-body-content h4 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.role-badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    background: rgba(37, 99, 235, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.card-body-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.team-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social-links a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.team-social-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Team Grid Members */
.team-member-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding-bottom: 1.5rem;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

.member-img-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto 1rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    /* Gradient border effect */
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    /* Inner white border */
}

.team-social-overlay {
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-social-overlay {
    opacity: 1;
    transform: translateY(0);
}

.team-social-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.team-social-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    /* No specific leader-spotlight adjustments needed anymore */
}

/* Contact Section Revamp */
#contact {
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.contact-info-box {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    /* Flex layout to align icon/text */
    align-items: flex-start;
}

.contact-info-box:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
    border-color: rgba(37, 99, 235, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.contact-details {
    margin-left: 1.5rem;
}

.contact-details h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Contact Form Inputs Specificity Fix */
#contact .form-floating>.form-control {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

#contact .form-floating>.form-control:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

#contact .form-floating>label {
    color: #94a3b8;
}

#contact .form-floating>.form-control:focus~label,
#contact .form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--accent-color);
    opacity: 1;
    background: transparent;
    /* Fix if label bg is interfering */
}

.form-control-file-wrapper {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-control-file-wrapper:hover {
    border-color: var(--primary-color);
    background: rgba(15, 23, 42, 0.8);
}

.form-control-file-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Footer styling tweaks */
footer {
    background: #020617 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* =========================================
   Entry Animations 
   ========================================= */

/* Base state for all animated elements */
.animate-up,
.animate-left,
.animate-right,
.animate-zoom,
.animate-fade {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* Initial States */
.animate-up {
    transform: translateY(40px);
}

.animate-left {
    transform: translateX(-40px);
}

.animate-right {
    transform: translateX(40px);
}

.animate-zoom {
    transform: scale(0.9);
}

.animate-fade {
    transform: translateY(0);
}

/* Just fade */

/* Active State (Triggered by JS) */
.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger Delays (can be used alongside JS data-delay) */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* =========================================
   Responsive Mobile Adjustments 
   ========================================= */

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(15, 23, 42, 0.98);
        padding: 1.5rem;
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 0.75rem 0;
    }
}

@media (max-width: 768px) {

    /* Reduce large hero text */
    h1.display-3 {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        min-height: 600px;
        /* Allow scrolling content */
        padding-top: 6rem;
        padding-bottom: 4rem;
        background-attachment: scroll;
        /* No parallax on mobile for performance */
    }

    /* Adjust Section Spacing */
    section {
        padding: 3rem 0;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    /* About Stats Grid */
    .about-stats-container {
        gap: 1rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .about-card h5 {
        font-size: 1.1rem;
    }

    /* Journey Steps - Mobile Refined */
    .journey-steps-container {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
        gap: 3rem;
    }

    /* Hide the connecting line on mobile for cleaner look */
    .journey-steps-container::before {
        display: none;
    }

    .journey-step {
        width: 100%;
        max-width: 100%;
        /* Allow full width */
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column !important;
        /* Force stack */
        align-items: center !important;
        /* Force center */
        text-align: center !important;
    }

    .step-circle {
        margin: 0 0 1.5rem 0 !important;
        /* Reset margin from 991px query */
    }

    .step-content {
        width: 100%;
    }

    /* Reset triangle to point up (original desktop style) since we are stacking vertically again */
    .step-content::before {
        top: -8px !important;
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }

    /* Team Cards */
    .team-classic-card {
        margin-top: 40px;
        /* Keep overlap space */
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contact-details h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    /* Extra small devices */
    h1.display-3 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    /* REMOVED the generic .d-flex.gap-3 rule that broke social icons */

    /* Stack About Stats vertically */
    .about-stats-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Increase gap for stacked items */
    }

    /* Vision & Mission Cards - Stack Icon and Text */
    .vision-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .vision-icon-wrapper {
        margin-right: 0;
        margin-bottom: 1.5rem;
        margin-left: auto;
        margin-right: auto;
        /* Center the icon */
    }

    .logo-wrapper {
        padding: 0.5rem 1rem;
    }

    /* Ensure Social Icons stay horizontal and centered */
    #contact .d-flex.gap-3 {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}