/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Define CSS Variables for Colors */
:root {
    --primary-red: #e22b2b;
    --dark-red: #de2e2e;
    --light-red: #fca5a5;
    --darkest-grey: #111827;
    --darker-grey: #374151;
    --dark-grey: #6b7280;
    --light-grey: #e5e7eb;
    --lightest-grey: #f9fafb;
    --white: white;
    --black: #333;
}

body {
    font-family: 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--black); /* Use CSS variable */
    scroll-behavior: smooth;
    min-height: 200vh; /* Added for demonstration of sticky navbar and back-to-top */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility Classes */
.text-red {
    color: var(--primary-red); /* Use CSS variable */
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
    /* CSS handles hover transform */
}

.btn-primary {
    background: var(--white); /* Use CSS variable */
    color: var(--primary-red); /* Use CSS variable */
}

.btn-primary:hover {
    background: var(--lightest-grey); /* Use CSS variable */
    transform: translateY(-2px); /* CSS handles hover transform */
    box-shadow: 0 0 16px 4px rgba(220,38,38,0.5), 0 2px 8px rgba(0,0,0,0.08); /* Added glowing effect */
    filter: brightness(1.1); /* Slightly brighten on hover */
}

.btn-secondary {
    background: transparent;
    color: var(--white); /* Use CSS variable */
    border: 2px solid var(--white); /* Use CSS variable */
}

.btn-secondary:hover {
    background: var(--primary-red); /* Use CSS variable */
    color: var(--white); /* Use CSS variable */
    transform: translateY(-2px); /* CSS handles hover transform */
    box-shadow: 0 0 16px 4px rgba(220,38,38,0.5), 0 2px 8px rgba(0,0,0,0.08); /* Added glowing effect */
    border: 2px solid var(--primary-red);
}
/* Speaker Dropdown */
.dropdown {
    position: relative;
}

.dropdown a {
    display: inline-block;
    color: var(--black); /* Matches other nav links */
    font-weight: 400;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 25px;
    transition: color 0.3s ease;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white); /* Match your theme */
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 999;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--darkest-grey);
    transition: background 0.2s ease;
}

.dropdown-menu li a:hover {
    background: var(--lightest-grey);
    color: var(--primary-red);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
    background: var(--lightest-grey); /* Make navbar white */
    border-radius: 0 0 20px 20px; /* Rounded bottom corners */
    box-shadow: 0 4px 24px rgba(220,38,38,0.08); /* Subtle shadow for depth */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    right: 30px;
    justify-content: flex-end; /* Align links to the right */
    
}


.nav-logo-img {
    height: 100%;
    max-height: 100px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    margin-right: 10px;
}

.nav-logo {
    /* Added a container for the logo text */
    display: flex; /* To align items if logo image/icon is added later */
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white); /* Use CSS variable */
    transition: color 0.3s, background 0.3s, box-shadow 0.3s;
    text-decoration: none; /* Ensure logo link doesn't have underline */
}


.logo-highlight {
    color: var(--primary-red); /* Use CSS variable */
}

.nav-link {
    text-decoration: none;
    color: var(--black); /* Use CSS variable */
    font-weight: 400;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 10px 18px; /* Add horizontal padding for button look */
    position: relative;
    border-radius: 25px; /* Make nav links more button-like */
}


.nav-link:hover {
    color: var(--primary-red); /* Keep text white on hover */
    background: transparent; /* Do not change background color on hover */
    text-shadow: 0 0 8px #fff, 0 0 16px #fff, 0 0 24px #fff; /* White glow effect */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-red); /* Use CSS variable */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001; /* Ensure toggle button is above mobile menu */
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white); /* Use CSS variable */
    margin: 3px 0;
    transition: 0.3s ease-in-out; /* Added transition for bar animation */
}

/* Hamburger menu animation - controlled by .open class added by JS */
.nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, 0%, var(--primary-red) 50%, var(--dark-red) 100%); /* Use CSS variables */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(135deg, rgba(220, 8, 8, 0.7) 0%, --primary-red 100%),
        var(--hero-bg-image, url('animation-1.jpg'));
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    animation: heroZoom 15s infinite linear, slideBackground 15s infinite linear;
    transition: ease-;
    z-index: 1;
    filter: blur(1.5px) brightness(1.12) contrast(1.08);
    opacity: 0.97;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); /* Triangular bottom */
}

@keyframes heroZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes slideBackground {
    0%, 33.33% {
        background-image: linear-gradient(#91050580, rgba(19, 3, 113, 0.648)), url('animation-1.jpg');
    }
    33.34%, 66.66% {
        background-image: linear-gradient(#91050580,rgba(19, 3, 113, 0.648)), url('img-1.jpg');
    }
    66.67%, 100% {
        background-image: linear-gradient(#91050580, rgba(19, 3, 113, 0.648)), url('img-2.jpg');
    }
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--lightest-grey);
    z-index: -1; /* Ensure overlay is below content but above background */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;

}



.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-highlight {
    font-size: 4rem;
    color: var(--lightest-grey); /* Use CSS variable */
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    color: var(--white); /* Use CSS variable */
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
   
}

.info-icon {
    font-size: 20px;
    color: var(--primary-red);
    /* Consider adding a slight color or background */
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}



.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--white); /* Use CSS variable */
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 12px;
    background: var(--white); /* Use CSS variable */
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Section styles (reused) */
.about, .schedule, .contact, .speakers { /* Include speakers if uncommented */
    padding: 100px 0;
}

.about, .schedule {
    background: var(--lightest-grey); /* Use CSS variable */
}

.contact, .speakers {
    background: var(--white); /* Use CSS variable */
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--darkest-grey); /* Use CSS variable */
}

.section-description {
    font-size: 1.2rem;
    color: var(--dark-grey); /* Use CSS variable */
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Feature Card styles (About section) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-card {
    background: var(--white); /* Use CSS variable */
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Initial state for JS animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* State when JS adds .is-visible */
.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    /* Consider adding a primary color */
    color: var(--primary-red);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--darkest-grey); /* Use CSS variable */
}

.feature-card p {
    color: var(--dark-grey); /* Use CSS variable */
    line-height: 1.6;
}

/* Speakers Section (Uncomment if used) */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Forces 4 speakers per row */
  gap: 40px;
}

.speaker-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.speaker-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.speaker-image {
  height: 250px;
  overflow: hidden;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-image img {
  transform: scale(1.05);
}

.speaker-info {
  padding: 20px;
}

.speaker-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--darkest-grey);
}

.speaker-title {
  color: var(--primary-red);
  font-weight: 500;
}


/* Schedule Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent; /* Use CSS variable */
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
    /* Initial state for JS animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* State when JS adds .is-visible */
.timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.timeline-time {
    background: var(--primary-red); /* Use CSS variable */
    color: var(--white); /* Use CSS variable */
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0; /* Prevent time from shrinking on smaller screens */
}

.timeline-content {
    background: var(--white); /* Use CSS variable */
    padding: 30px;
    border-radius: 15px;
    margin-left: 30px;
    flex: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--darkest-grey); /* Use CSS variable */
}

.timeline-content p {
    color: var(--dark-grey); /* Use CSS variable */
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 2rem;
    background: var(--fef2f2); /* Define variable if needed */
    color: var(--primary-red); /* Added color */
    padding: 15px;
    border-radius: 50%;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--darkest-grey); /* Use CSS variable */
}

.contact-item p {
    color: var(--dark-grey); /* Use CSS variable */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid var(--light-grey); /* Use CSS variable */
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    width: 100%; /* Ensure form elements take full width */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-red); /* Use CSS variable */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--darkest-grey); /* Use CSS variable */
    color: var(--white); /* Use CSS variable */
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit; /* Inherits white from footer */
}

.footer-section p {
    color: var(--dark-grey); /* Use CSS variable for lighter text */
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: inherit; /* Inherits white from footer */
}

.footer-section ul {
    list-style: none;
    padding: 0; /* Reset padding */
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--dark-grey); /* Use CSS variable */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red); /* Use CSS variable */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--darker-grey); /* Use CSS variable */
    color: var(--white); /* Use CSS variable */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease; /* Added transform transition */
}

.social-link:hover {
    background: var(--primary-red); /* Use CSS variable */
    transform: scale(1.1); /* Added simple hover transform */
}

.footer-bottom {
    border-top: 1px solid var(--darker-grey); /* Use CSS variable */
    padding-top: 30px;
    text-align: center;
    color: var(--dark-grey); /* Use CSS variable */
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Back to Top Button (Added CSS for this) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red); /* Use CSS variable */
    color: var(--white); /* Use CSS variable */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden; /* Hide visually and for screen readers */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease; /* Added transform transition */
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
     transform: translateY(-3px); /* Simple hover effect */
}


/* Scroll Indicator (Newly Added CSS) */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2; /* Ensure it's above overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-star {
    font-size: 2rem;
    margin-top: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.scroll-star.rotate {
    transform: rotate(360deg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex; /* Show hamburger icon */
    }

    .nav-menu {
        position: fixed;
        left: -100%; /* Start off screen */
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: var(--white); /* Use CSS variable */
        width: 100%;
        text-align: center;
        transition: left 0.3s ease; /* Animate left property */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0; /* Slide in */
    }

    .nav-menu .nav-link {
        color: var(--lightest-grey); /* Use CSS variable for mobile menu links */
        margin: 10px 0;
    }

     /* Hide underline animation for mobile menu links */
    .nav-menu .nav-link::after {
        display: none;
    }

    .hero-info {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .timeline::before {
        left: 25px; /* Adjust timeline line position */
    }

     .timeline-item {
        flex-direction: column; /* Stack time and content */
        align-items: center; /* Center items */
     }

    .timeline-time {
        min-width: 100px;
        font-size: 14px;
        padding: 10px 15px;
        margin-bottom: 15px; /* Add space below time */
        margin-left: 0; /* Reset left margin */
    }

    .timeline-content {
        margin-left: 0; /* Reset left margin */
        padding: 20px;
        text-align: center; /* Center content text */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .about,
    .schedule,
    .contact,
    .speakers { /* Include speakers if uncommented */
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .features-grid,
    .speakers-grid { /* Include speakers if uncommented */
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nav-logo-img {
    height: 100%;
    max-height: 40px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    margin-right: 10px;
}
}