/* Google Fonts Import */
/* Google Fonts Import - Moved to HTML for performance */

:root {
    /* Colors */
    --primary-color: #b10f36;
    --text-color: #111111;
    --bg-color: #FAFAFA;
    --white: #FFFFFF;
    --grey-light: #e0e0e0;

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    /* Desktop */
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 1.8rem;
    }
}

.aka-title {
    color: #000;
    /* Black as requested */
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities & Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: #f0f0f0;
}

/* Navbar (Permanent Sticky/Compact State) */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    /* Adjust based on content */
    z-index: 1000;

    /* Compact Styling */
    padding: 10px 40px;
    border-radius: 50px;
    /* Fully rounded */
    background: rgba(255, 255, 255, 0.95);
    /* Opaque */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);

    transition: all 0.3s ease;
}

/* Ensure logo/links work in both modes */
.nav-container {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

/* Ensure links are visible and centered */
.navbar .nav-container {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
}

.navbar .logo {
    font-size: 1.2rem;
}


/* Parallax Hero (Minimal Redesign) */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-minimal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.top-label {
    position: relative;
    top: auto;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    color: #333;
    z-index: 10;
    margin-bottom: -20px;
    /* Pull it slightly closer to the big text */
}

.hero-layers {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    /* Added gap as requested */
}

.big-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 18vw;
    /* Massive responsive text */
    line-height: 0.8;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
    position: relative;
    z-index: 1;
    /* Behind image */
    user-select: none;
}

.hero-img-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    /* Center over text */
    height: 90vh;
    /* Tall image */
    z-index: 2;
    /* In front of text */
    pointer-events: none;
}

.hero-main-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.hero-tagline {
    position: absolute;
    bottom: 40px;
    font-family: var(--font-body);
    /* Serif/Serif-style from ref? sticking to sans for now */
    font-size: 1.1rem;
    color: #555;
    z-index: 10;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .big-text {
        font-size: 25vw;
    }

    .hero-img-container {
        height: 85vh;
        /* Increased size */
        transform: translate(-50%, -42%);
        /* Kept centered */
    }

    .top-label {
        top: 20px;
        font-size: 15px;
    }

    .hero-tagline {
        bottom: 20px;
        font-size: 0.9rem;
    }
}

/* Infinite Gallery (2 Rows) */
.infinite-gallery {
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
    /* No background color */
}

.gallery-row {
    margin-bottom: 0px;
    /* removed gap for seamless look, or add small margin? Let's add small margin if needed, but 'no gap' is usually cleaner for grid-like feel. User said "equal size images". */
    margin-bottom: 8px;
    /* Small gap between rows */
    overflow: hidden;
    display: flex;
    /* Ensures track is treated as block */
}

.gallery-track {
    display: flex;
    gap: 8px;
    /* Small gap between images */
    width: max-content;
    /* Ensure it fits all content */
}

.scroll-left .gallery-track {
    animation: scroll-left 40s linear infinite;
}

.scroll-right .gallery-track {
    animation: scroll-right 40s linear infinite;
}

.infinite-gallery img {
    height: 200px;
    /* Fixed equal height */
    width: 300px;
    /* Fixed equal width */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    filter: grayscale(20%);
    transition: all 0.3s;
}

.infinite-gallery img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    z-index: 2;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Achievements Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cert-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    /* box-shadow removed for minimal look */
    border: 1px solid #eee;
    /* Subtle border instead */
    transition: transform 0.3s;
}

.cert-item:hover {
    transform: translateY(-5px);
}

.cert-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.caption {
    padding: 15px;
    font-weight: 700;
    text-align: center;
    background: #fff;
    border-top: 2px solid var(--primary-color);
}

/* Lightbox */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
    /* Show only when active */
}

.lightbox-content {
    max-height: 80vh;
    max-width: 90vw;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* Contact CTA Redesign */
.contact-cta-section {
    background-color: #f9f9f9;
    /* Very light gray for separation */
}

.contact-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    background: #fff;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact-image-col {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
}

.contact-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contact-image-col:hover .contact-feature-img {
    transform: scale(1.05);
}

.contact-text-col {
    flex: 1;
    padding-right: 40px;
}

.cta-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #eef2ff;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.cta-heading-large {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    color: #111;
    margin-bottom: 25px;
}

.cta-desc {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.btn-primary-large {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-primary-large:hover {
    background-color: #920d2d;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive CTA */
@media (max-width: 900px) {
    .contact-cta-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
    }

    .contact-image-col {
        width: 100%;
        height: 300px;
        order: -1;
        /* Image top */
    }

    .contact-text-col {
        padding-right: 0;
        text-align: center;
    }

    .cta-heading-large {
        font-size: 2.5rem;
    }

    .cta-desc {
        max-width: 100%;
    }
}

/* Modern Animated Button */
.btn-modern {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(177, 15, 54, 0.4);
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(177, 15, 54, 0.6);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-modern:hover::after {
    left: 100%;
}

/* Split Layouts (Bio) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

/* Feature Card Design (Meipadam) */
.feature-card {
    display: flex;
    background: linear-gradient(105deg, #fff0e3 0%, #ffffff 70%);
    /* Warm peach to white */
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin: 40px 0;
    min-height: 500px;
}

.feature-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h2 {
    font-size: 3.5rem;
    /* Large impact heading */
    line-height: 1.1;
    margin-bottom: 20px;
    color: #111;
}

.feature-lead {
    font-family: var(--font-body);
    /* Or unique font? */
    font-size: 1.5rem;
    color: #555;
    font-style: italic;
    margin-bottom: 30px;
}

.feature-list-styled {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.feature-list-styled li {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list-styled li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-image-container {
    flex: 1;
    position: relative;
    min-height: 100%;
}

.feature-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Clean transition on right side */
}

@media (max-width: 900px) {
    .feature-card {
        flex-direction: column;
        border-radius: 20px;
    }

    .feature-image-container {
        height: 300px;
    }

    .feature-image-container img {
        position: relative;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 900px) {

    /* Navbar Mobile */
    .mobile-menu-btn {
        display: flex;
    }

    /* Fix Header on Mobile */
    .navbar {
        min-width: 0;
        /* Remove 600px limit */
        width: 90%;
        padding: 8px 20px;
        /* Reduced padding */
        top: 10px;
    }

    /* Shrink Logo */
    .navbar .logo {
        font-size: 1.1rem;
    }

    /* Shrink Hamburger */
    .navbar .mobile-menu-btn {
        gap: 5px;
        transform: scale(0.9);
        /* Sizing down */
    }

    .navbar .mobile-menu-btn span {
        height: 2px;
        /* Thinner lines */
        width: 25px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        /* Hidden by default */
        visibility: hidden;
        /* Prevent horizontal scroll triggers */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1500;
        /* Reset any sticky specific styles that might leak? No, nav-links is child */
    }

    .nav-links.nav-active {
        transform: translateX(0);
        visibility: visible;
    }

    /* Hamburger Animation when Active */
    .mobile-menu-btn.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: #000;
    }

    .mobile-menu-btn.toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: #000;
    }

    /* Section adjustments */
    .home-hero h1 {
        font-size: 3rem;
    }

    .big-text {
        font-size: 15vw;
        /* Adjust massive text */
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .bio-image {
        order: -1;
        /* Image first on mobile */
    }

    /* Feature Card Mobile */
    .feature-card {
        margin: 20px 0;
        border-radius: 20px;
    }

    .feature-content {
        padding: 30px;
    }

    .feature-content h2 {
        font-size: 2.2rem;
    }

    .feature-image-container {
        height: 250px;
    }

    /* CTA Banner Mobile */
    .cta-banner {
        padding: 40px 0;
        /* Add padding back */
        margin: 40px 0;
    }

    .cta-layout {
        flex-direction: column;
        gap: 40px;
    }

    /* Reorder: Title -> Text -> Image (Last) */
    .cta-left {
        order: 1;
    }

    .cta-right {
        order: 2;
        padding: 0 20px;
        text-align: center;
    }

    .cta-center-img {
        order: 3;
        margin-top: 20px;
    }

    .cta-title {
        font-size: 3.5rem;
    }

    .overlap-img {
        height: auto;
        width: 80%;
        transform: none;
        /* Remove desktop overlap transform */
        margin-bottom: -60px;
        /* Overlap downwards slightly or just stick out? */
    }

    /* Fix Discipline Section Padding on Mobile */
    section.discipline-section {
        padding: 50px 0 50px 0 !important;
        /* Remove the huge 200px bottom pad */
    }
}

/* Discipline Section Spacing Override */
section.discipline-section {
    padding: 50px 0px 200px 0px;
}

/* Mid-Page CTA Banner */
.cta-banner {
    background-color: #8a0b29;
    /* Deep Brand Red */
    padding: 0;
    /* User requested 0 */
    position: relative;
    overflow: visible;
    /* Allow image overlap */
    margin: 0;
    /* User requested 0 */
}

.cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* No Z-index here, let children handle it */
}

.cta-left {
    flex: 1;
    z-index: 2;
}

.cta-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 6rem;
    line-height: 0.85;
    text-transform: uppercase;
    margin: 0;
}

.cta-center-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.overlap-img {
    width: auto;
    /* height removed */
    /* object-fit removed */
    transform: scale(1.2) translateY(-50px);
    /* Move UP to overlap section above */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    /* Let clicks pass through if it covers anything important? Nah, button is elsewhere */
}

.cta-right {
    flex: 1;
    color: #fff;
    text-align: left;
    padding-left: 40px;
    z-index: 2;
    max-width: 400px;
}

.cta-right p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.btn-clean-white {
    display: inline-block;
    padding: 15px 40px;
    background-color: #fff;
    color: #8a0b29;
    font-weight: 800;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    border-radius: 4px;
    transition: transform 0.3s;
}

.btn-clean-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .cta-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-left,
    .cta-right {
        text-align: center;
        padding: 0;
    }

    .cta-title {
        font-size: 4rem;
    }

    .overlap-img {
        height: 300px;
        transform: scale(1);
    }
}

.bio-image img {
    border-radius: 10px;
}

/* Glassmorphism Training Section */
.training-glass-section {
    position: relative;
    background-color: #111;
    /* Fallback */
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 80px;
}

.glass-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/images/Rathi-Priya-pose-3.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 16px;
    color: #fff;
    transition: transform 0.3s, background 0.3s;
    text-align: center;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid #fff;
    color: #fff;
}

.btn-glass:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-text-front h1 {
        font-size: 2.5rem;
    }

    .hero-bg-text {
        font-size: 20vw;
        top: 30%;
    }

    .hero-image-wrapper {
        height: 50%;
        width: 100%;
    }

    .split-layout {
        flex-direction: column !important;
    }
}

/* Info Grid Sections (Heritage & Advanced Disciplines) */
.info-section {
    background-color: var(--bg-color);
    position: relative;
    /* Clean white/light bg */
}

.info-section.alt-bg {
    background-color: #f8f8f8;
    /* Slightly darker for contrast */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.info-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Equal height columns */
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(177, 15, 54, 0.08);
    border-color: rgba(177, 15, 54, 0.1);
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #111;
    position: relative;
    padding-bottom: 15px;
}

.info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.info-card:hover h3::after {
    width: 100px;
}

.info-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

.info-card .card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}