/*
    style.css
    Global and section-specific styles.
    
    OPTIMIZATION NOTES:
    - Defined a standard transition variable.
    - Optimized transitions to use 'transform' and 'opacity' for better performance.
    - Ensured project features stack nicely on mobile.
    - Removed background-attachment: fixed on .vision-section for mobile performance.
*/

:root {
    --primary-blue: #081d4d;
    --secondary-blue: #233c81;
    --accent-yellow: #e67004;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --gold: #d49537;
    --light-gold: #f4e8c1;
    --transition-speed: 0.4s; /* New: Standard transition time */
}

body {
    /* Used a better font stack for smooth fallback */
    font-family: 'Montserrat', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    letter-spacing: 0.3px;
    line-height: 1.7;
    /* New: Use Antialiasing for smoother font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: 'Playfair Display', serif, Georgia, "Times New Roman", Times, serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}


/* Enhanced Typography */
p,
.footer-link,
.leader-desc,
.project-desc {
    font-weight: 400;
    letter-spacing: 0.3px;
}

.section-title {
    letter-spacing: 1px;
    padding-top: 5px;
}

/* Center alignment improvements - kept for original structure */
.hero-content,
.vision-item,
.leadership-card,
.project-card,
.gallery-item,
.cta-content,
.footer-heading,
.copyright {
    text-align: center;
}

/* --- Hero Banner (Performance Optimized) --- */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Performance hint for video */
    transform: translateZ(0); 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(9, 33, 88, 0.4) 0%, rgba(10, 37, 99, 0.4) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-logo {
    margin-bottom: 2.5rem;
    max-width: 340px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* --- Premium Button (Smoother Hover) --- */
.btn-premium {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--gold) 100%);
    border: none;
    color: var(--light-bg);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 6px;
    /* Optimized transition: only transform, box-shadow, background, and color */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease, color 0.4s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Hover effect */
.btn-premium:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
    outline: 2px solid var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(214, 149, 55, 0.5);
}



/* --- Section Styling (Standardized Padding) --- */
section {
    padding: 6rem 0;
}
.section-with-less-padding { /* Kept for compatibility */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.section-title {
    position: relative;
    margin-bottom: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: inline-block;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    margin-top: 15px;
}

.section-title.center {
    text-align: center;
    display: block;
}

.section-title.center:after {
    margin: 15px auto;
}

.premium-divider {
    height: 3px;
    width: 100px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    margin: 2rem auto;
    border-radius: 3px;
}

/* About Section */
#about .hover-zoom {
    overflow: hidden;
    transition: transform var(--transition-speed) ease-in-out;
}

#about .hover-zoom:hover {
    transform: scale(1.03);
}


/* Vision Section - Removed background-attachment: fixed for mobile performance */
.vision-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    /* background-attachment: fixed; <-- Removed */
    background-position: center;
    position: relative;
}

.vision-icon {
    width: 90px;
    height: 90px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-blue);
    font-size: 2.2rem;
    /* Optimized transition */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 2px solid var(--accent-yellow);
}

.vision-item:hover .vision-icon {
    background: var(--primary-blue);
    color: var(--accent-yellow);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(10, 36, 99, 0.4);
}

/* Leadership Section - UPDATED */
.team-section {
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.team-section:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--primary-blue);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.leadership-card {
    height: 380px;
    perspective: 1000px;
    margin-bottom: 30px;
}

.leadership-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.leadership-card:hover .leadership-inner {
    transform: rotateY(180deg);
}

.leadership-front,
.leadership-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.leadership-front {
    background: white;
    color: var(--dark-text);
}

.leadership-back {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    color: var(--dark-text);
    transform: rotateY(180deg);
    overflow-y: auto;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.leader-img {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.1);
}

.leader-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.leader-role {
    color: var(--accent-yellow);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.leader-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-text);
}

/* Section spacing + title */
.projects-section {
    padding: 100px 0;
    /* Simplified background */
    background: var(--light-bg); 
}

.section-title.center {
    display: block;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.section-title.center::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    margin: 15px auto;
}

/* Filter (static style) */
.project-filter {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project-filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
}

.project-filter-btn.active,
.project-filter-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

/* New CSS for Project Cards */
@media (max-width: 768px) {
    /* Kept for compatibility */
    .project-grid-container {
        display: flex !important;
    }

    .project-swiper-container {
        display: none !important;
    }
}

/* Card (Smoother Hover) */
.project-card {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
    /* Optimized transition */
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .25); /* Stronger shadow */
}

/* Image Container */
.project-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* Swiper container for project images */
.project-image-swiper {
    width: 100%;
    height: 100%;
}

.project-image-swiper .swiper-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Status pill */
.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    z-index: 10;
}

.status-completed {
    background: #10b981;
}

.status-ongoing {
    background: #f59e0b;
}

.status-upcoming {
    background: #3b82f6;
}

/* Body */
.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.project-title {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
}

.project-desc {
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* Features */
.project-features {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.feature {
    text-align: center;
    flex: 1;
}

.feature i {
    font-size: 1.15rem;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.feature span {
    display: block;
    font-size: .86rem;
    color: #6b7280;
}

/* Buttons (works with or without Bootstrap) */
.project-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.project-buttons .btn {
    flex: 1;
    padding: .65rem 1rem;
    font-size: .92rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* Swiper Custom Styling */
.project-image-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
    width: 8px;
    height: 8px;
}

.project-image-swiper .swiper-pagination-bullet-active {
    background: var(--accent-yellow);
    opacity: 1;
}

/* --- Gallery Section - Optimized Hover --- */
.gallery-section {
    background: var(--light-bg);
    padding: 1.5rem;
    margin-top: 0;
}

.gallery-swiper {
    padding: 20px 0 50px;
}

.gallery-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 280px;
    width: 100%;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimized: Only transition transform */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bottom-up gradient for focus */
    background: linear-gradient(0deg, rgba(1, 2, 5, 0.8) 0%, rgba(1, 4, 12, 0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
    padding: 20px;
}

.gallery-overlay a {
    text-decoration: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    font-weight: 700;
    /* Optimized text animation */
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
    opacity: 1;
}


.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-swiper .swiper-pagination-bullet {
    background: var(--primary-blue);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--accent-yellow);
    opacity: 1;
}

/* cta section */
.cta-section {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* Performance hint for video */
    transform: translateZ(0);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 37, 99, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Animations - No Change Needed */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium elements - No Change Needed */
.premium-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent-yellow);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.accent-1 {
    top: -100px;
    left: -100px;
}

.accent-2 {
    bottom: -100px;
    right: -100px;
}

/* --- Samyak Section (Child Cards) - Smoother Hover --- */
.samyak-section {
    margin-top: 20px;
    background: linear-gradient(90deg, #bfcbd8 0%, #ffffff 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.samyak-title {
    text-align: center;
    color: #0a2463;
    font-weight: 700;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
}

.child-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Optimized transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.child-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 40px;
    color: #0a2463;
    margin-bottom: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.child-card:hover .card-icon {
    color: #e67004;
    transform: rotate(-10deg);
}

.card-title {
    color: #e67004;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 20px;
}

.card-text {
    font-size: 15px;
    color: #555;
    margin: 0;
}


/* --- Responsive Adjustments (Consolidated and Cleaned) --- */
@media (max-width: 1200px) {
    .hero-logo {
        width: 150px;

    }

    .hero-tagline {
        font-size: 1.6rem;
        text-align: center;
    }
}

@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
        text-align: center;
    }

    .btn-premium {
        padding: 0.8rem 1.8rem;
    }

    .leadership-card {
        height: 400px;
    }

    /* Navbar styling moved to hdr-ftr.css */

}

@media (max-width: 768px) {
    section {
        padding: 3rem 0; /* Reduced padding for smaller screens */
    }

    .hero-section {
        height: 80vh;
    }

    .hero-logo {
        max-width: 250px;
        margin-bottom: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .btn-outline-light-premium {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    /* Hide non-active filter buttons on mobile */
    .project-filter-btn:not(.active) {
        display: none;
    }
    .project-filter-btn.active {
        margin-bottom: 10px;
    }

    /* Hide grid on mobile, show swiper (Kept original logic) */
    .project-grid-container {
        display: none;
    }

    .project-swiper-container {
        display: block;
    }
    
    .project-card-item {
        max-width: 90%; /* Center the card */
        margin-left: auto;
        margin-right: auto;
    }

    .leadership-card {
        height: 380px;
    }

    .project-img-container {
        height: 200px;
    }

    .project-image-swiper .swiper-slide img {
        height: 200px;
    }

    .gallery-item {
        height: 250px;
    }

    .modal-premium .modal-dialog {
        margin: 1rem;
    }

    .modal-premium .modal-body {
        padding: 1.5rem;
    }

    /* Project Features Mobile Fix */
    .project-features {
        flex-direction: column;
        gap: 10px;
    }

    .feature {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        gap: 10px;
    }

    .feature i {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
    }

    .hero-logo {
        width: 150px !important;
    }

    .hero-tagline {
        font-size: 1rem;

    }

    .btn-premium {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .vision-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .leadership-card {
        height: 350px;
    }


    .leader-name {
        font-size: 1.2rem;
    }

    .project-info {
        padding: 15px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .gallery-item {
        height: 220px;
    }

}

@media (max-width: 400px) {
    .hero-tagline {
        font-size: 0.9rem;
    }

    .btn-premium {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .leader-name {
        font-size: 1.1rem;
    }

    .leader-role {
        font-size: 0.85rem;
    }

    .project-title {
        font-size: 1.1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}