:root {
    --primary: #0A1628;
    --secondary: #112240;
    --accent-blue: #0EA5E9;
    --accent-green: #10B981;
    --accent-gold: #F59E0B;
    --text-primary: #F1F5F9;
    --text-muted: #94A3B8;
    --card-bg: #1E3A5F;
    --border: rgba(14, 165, 233, 0.25);
    --gradient-hero: linear-gradient(135deg, #0A1628 0%, #0E3460 50%, #0A1628 100%);
    --gradient-cta: linear-gradient(135deg, #0EA5E9, #6366F1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism & Hover Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.glass:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.2);
}

/* Headings */
h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.7);
}

.btn-outline {
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.sticky-header.scrolled {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.sticky-header .nav-links a {
    color: var(--text-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 90vh;
    background: var(--gradient-hero);
    overflow: hidden;
    display: flex;
    align-items: center;

}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-gold);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.2;
    margin: 1.5rem 0 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.date-badges {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.seat-count {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.floating-card {
    max-width: 350px;
    margin-left: auto;
}

.floating-card ul {
    list-style: none;
    margin-top: 1rem;
}

.floating-card li {
    margin-bottom: 0.5rem;
}

/* Countdown */
.countdown-wrapper {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'Bebas Neue', cursive;
}

.countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown span:first-child {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1;
    color: var(--accent-blue);
}

.countdown span:last-child {
    font-size: 1rem;
    color: var(--text-muted);
}

.downtime-box {
    background: rgba(30, 58, 95, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

/* Benefits Grid */
.benefits {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Increased gap */
}

.benefit-card {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 2.5rem 1.5rem;
    /* Explicit box model padding */
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.4);
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Schedule */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active,
.tab:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.schedule-card h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.schedule-card ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.sub-header {
    text-align: center;
    margin: 10px;
    font-size: 1.5rem;
    color: red;
}

/* Audience */
.audience {
    padding: 5rem 0;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audience-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

/* Speaker */
.speaker {
    padding: 1.5rem 0;
}

.speaker-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: center;
}

.speaker-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.speaker-bio .title {
    color: var(--accent-blue);
    font-weight: 500;
}

.rating {
    color: var(--accent-gold);
    margin: 1rem 0;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
}

.testimonial-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    border-radius: 30px;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.testimonial-card {
    min-width: 300px;
    max-width: 500px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.testimonial-card .author {
    margin-top: 1rem;
    font-weight: 600;
}

.testimonial-card .stars {
    color: var(--accent-gold);
}

/* Registration Form */
.form-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.form-group select option {
    background-color: var(--primary);
    color: var(--text-primary);
}

.form-card form button[type="submit"] {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-group input[type="radio"],
.checkbox input[type="checkbox"] {
    accent-color: var(--accent-blue);
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

input.valid {
    border-color: var(--accent-green) !important;
}

input.invalid {
    border-color: #ff4d4d !important;
}

/* Spinner for submit button */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FAQ Accordion */
.faq {
    padding: 5rem 0;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.accordion-header .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col {
    padding: 0.5rem;
}

.footer-col img {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Custom Highlight for Hero */
.highlight-text {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.changing-text {
    animation: colorChange 4s infinite alternate;
}

@keyframes colorChange {
    0% { color: #0EA5E9; text-shadow: 0 0 15px rgba(14, 165, 233, 0.6); }
    50% { color: #10B981; text-shadow: 0 0 15px rgba(16, 185, 129, 0.6); }
    100% { color: #F59E0B; text-shadow: 0 0 15px rgba(245, 158, 11, 0.6); }
}

.tamil-subtitle {
    font-size: 1.4rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin: 0.5rem 0 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.glowing-badge {
    animation: glow pulse 2s infinite;
    box-shadow: 0 0 10px #0EA5E9, 0 0 20px #0EA5E9, 0 0 30px #6366F1;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px #0EA5E9, 0 0 20px #0EA5E9, 0 0 30px #6366F1; }
    50% { transform: scale(1.05); box-shadow: 0 0 15px #10B981, 0 0 30px #10B981, 0 0 45px #6366F1; }
    100% { transform: scale(1); box-shadow: 0 0 10px #0EA5E9, 0 0 20px #0EA5E9, 0 0 30px #6366F1; }
}

/* Bottom CTA Section */
.bottom-cta-section {
    position: relative;
    margin: 5rem 0 0 0; /* Full width so no horizontal auto margin */
    padding: 6rem 0;
    width: 100%;
    background: var(--primary);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-content {
    flex: 1;
    max-width: 600px;
}

.bottom-cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.bottom-cta-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn-cta {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cta-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* Social Icons in Footer */
.footer-col.social {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-col.social a {
    transition: color 0.3s, transform 0.3s;
}

.footer-col.social a:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
}

@media screen and (max-width: 479px) {
    .hero {
        padding: 5rem 0rem 0rem !important;

    }
}

/* Map Column */
.footer-map-col h4 {
    margin-bottom: 12px;
}

/* Responsive Map Wrapper */
.footer-map-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.footer-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Laptop view — map column spans full row or adjusts */
@media (min-width: 769px) {
    .footer-map-col {
        grid-column: 1 / -1; /* Full width row below other columns */
    }

    .footer-map-wrapper {
        padding-bottom: 30%; /* Shorter height on desktop */
    }
}

/* Mobile view — natural full width */
@media (max-width: 768px) {
    .footer-map-col {
        width: 100%;
    }

    .footer-map-wrapper {
        padding-bottom: 56.25%; /* Standard 16:9 on mobile */
    }
}