/* --- DESIGN TOKENS & VARIABLES --- */
:root {
    /* Colors */
    --color-primary: #0F3B24;      /* Deep Emerald Green */
    --color-primary-light: #1A5436;
    --color-accent: #E5A822;       /* Warm Golden Yellow */
    --color-accent-hover: #C9931C;
    --color-dark: #121212;         /* Charcoal Black */
    --color-dark-alt: #1C2321;
    --color-light: #F4F7F4;        /* Off-White / Soft Green Tint */
    --color-white: #FFFFFF;
    --color-gray: #6B7280;
    --color-gray-light: #E5E7EB;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(15, 59, 36, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- RESET & BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent) !important; }
.text-light { color: var(--color-white) !important; }
.w-100 { width: 100%; }

.bg-dark { background-color: var(--color-dark-alt); color: var(--color-white); }
.bg-light { background-color: var(--color-white); }

/* --- TYPOGRAPHY --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
    font-weight: 400;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

/* --- BUTTONS & LINKS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 168, 34, 0.3);
}

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

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: var(--space-md);
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 12px;
    color: var(--color-primary);
}

/* --- GLASSMORPHISM UTILITIES --- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glass);
}
.bg-dark .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

.logo-icon {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-links a,
.navbar.mobile-menu-open .nav-links a {
    color: var(--color-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--color-primary);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight zoom for parallax/intro effect */
    animation: zoomOut 20s infinite alternate linear;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 59, 36, 0.9) 0%, rgba(15, 59, 36, 0.6) 50%, rgba(15, 59, 36, 0.3) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 0 var(--space-lg);
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: var(--space-xxl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--color-gray);
    font-size: 1.125rem;
}

.image-card {
    position: relative;
    padding: 1rem;
    transform: rotate(2deg);
    transition: var(--transition);
}

.image-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.image-card img {
    border-radius: var(--border-radius);
    width: 100%;
}

.card-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

/* --- SERVICES SECTION --- */
.services-section {
    padding: var(--space-xxl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(229, 168, 34, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(229, 168, 34, 0.3);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(229, 168, 34, 0.1);
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-card h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #A1A1AA;
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem;
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    transition: var(--transition);
}

.feature-box:hover .feature-icon-wrapper {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    color: var(--color-accent);
}

.feature-icon-wrapper svg {
    width: 36px;
    height: 36px;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--color-gray);
}

/* --- COURSES SECTION --- */
.courses-section {
    padding: var(--space-xxl) 0;
}

.courses-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--space-xl);
}

.course-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.course-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover img {
    transform: scale(1.05);
}

.course-content {
    padding: 2rem;
}

.course-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.course-content p {
    color: var(--color-gray);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: var(--space-xxl) 0;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    position: relative;
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: var(--color-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.quote-icon {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.quote-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.author-info strong {
    display: block;
    font-size: 1.125rem;
}

.author-info span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark);
    padding: var(--space-xxl) 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.footer-desc {
    margin: 1.5rem 0;
    font-size: 1.125rem;
    max-width: 400px;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.contact-details i {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-form-wrapper {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
}

.footer-form-wrapper h3 {
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.1);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* --- ANIMATIONS & REVEALS --- */
@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.revealed {
    opacity: 1;
    transform: translate(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid, .courses-carousel, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .card-badge {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* --- POSTER SLIDER SECTION --- */
.posters-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-light);
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--color-white);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%; /* 3 slides */
}

.slide {
    width: 33.333333%;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Poster 1 Styles */
.poster-card {
    background: linear-gradient(135deg, rgba(255,165,0,0.1) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 80%, rgba(255,165,0,0.1) 100%);
    padding: 3rem 2rem;
}

.poster-inner {
    border: 2px solid var(--color-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.poster-heading {
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #D32F2F; /* Reddish like the image */
    text-decoration: underline;
    text-underline-offset: 4px;
}

.poster-list {
    list-style: none;
}

.poster-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1A237E; /* Deep blue like image */
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.poster-list i {
    color: #D32F2F;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.poster-list.tamil-text li {
    font-size: 1.15rem;
}

.poster-divider {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.poster-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed rgba(0,0,0,0.1);
}

.proprietor {
    color: #1A237E;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.consultant {
    color: #D32F2F;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Poster 2: Event Styles */
.poster-event .event-inner {
    padding: 0;
    border: none;
    overflow: hidden;
}

.event-top {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 2rem 0 0 0;
    position: relative;
}

.event-date-badge {
    background: #D32F2F;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    width: 200px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-top: -2rem; /* Pull up */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.event-date-badge h4 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.event-date-badge .date {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.event-center {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem 2rem 1rem;
}

.event-title {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.event-title span {
    color: var(--color-accent);
}

.event-title-tamil {
    font-size: 2rem;
    color: var(--color-primary);
}

.event-bottom {
    display: flex;
    flex-direction: column;
}

.contact-strip {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    font-weight: 600;
    border-top: 2px solid #D32F2F;
    border-bottom: 2px solid #D32F2F;
}

.contact-strip span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #D32F2F;
}

.address-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 1.5rem;
    background: #D32F2F;
    color: #fff;
    text-align: center;
}

.address-strip i {
    color: #fff;
}

@media (max-width: 768px) {
    .poster-grid {
        grid-template-columns: 1fr;
    }
    .poster-card {
        padding: 1rem 0.5rem;
    }
    .poster-inner {
        padding: 1rem;
    }
    .event-top {
        flex-direction: column;
        align-items: center;
    }
    .event-date-badge {
        margin-top: 0;
        border-radius: 0;
        width: 100%;
        margin-bottom: 1rem;
    }
    .event-title {
        font-size: 2.2rem;
    }
    .event-title-tamil {
        font-size: 1.5rem;
    }
    .contact-strip {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
    }
    .address-strip {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .poster-list li {
        font-size: 1rem;
    }
    .poster-list.tamil-text li {
        font-size: 1rem;
    }
}
