/* Global Styles */
:root {
  --primary-bg: #121212;
  --secondary-bg: #1e1e1e;
  --text-color: #ffffff;
  --accent-gradient: linear-gradient(90deg, cyan, red);
  --container-bg: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--primary-bg);
  color: var(--text-color);
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.section-title, .page-title, .event-card h3, .workshop-content h3,
.coordinator-card h3, .footer-section h3 {
    color: #00ffff;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 0 1rem;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 769px) {
    .navbar {
        background: transparent; /* Fully transparent on larger screens */
        backdrop-filter: none; /* Remove blur effect on larger screens */
    }
}

.logo img {
    width: 190px;
    height: 50px;
    object-fit: contain;
}

.nav-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 1rem;
}

.nav-left a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

.nav-left a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-left a:hover::after {
    width: 80%;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    padding: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: 60px; /* Prevent overlap with navbar */
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-text {
    margin-bottom: 1rem;
}

.hero-subheading {
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    margin: 0.5rem 0;
}

.hero img {
    width: 70%;
    margin-bottom: 1rem;
}

.typing-text {
    font-size: 1.2rem;
    min-height: 50px;
}

.event-dates {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    padding-bottom: 1rem;
}

/* Countdown Timer */
.countdown-timer {
    background: var(--container-bg);
    padding: 2rem;
    text-align: center;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.timer-item {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid transparent;
    animation: rotateColors 5s infinite linear;
}

@keyframes rotateColors {
    0% { border-color: cyan; }
    25% { border-color: magenta; }
    50% { border-color: yellow; }
    75% { border-color: lime; }
    100% { border-color: cyan; }
}

.timer-item span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.timer-label {
    font-size: 1rem;
    color: #00ffff;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin: 2rem 0 4rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 10%;
    height: 3px;
    background: var(--accent-gradient);
    margin: 10px auto 0;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 230px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Footer Styles */
.footer {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    color: var(--text-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

.map-container {
    margin-top: 1rem;
    width: 100%;
    height: 150px;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0.5rem 1rem;
    }

    .logo img {
        width: 150px;
        height: 50px;
    }

    .menu-btn {
        display: block;
    }

    .nav-left {
        display: none;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .hero img {
        width: 80%;
    }

    .typing-text {
        font-size: 1rem;
    }

    .event-dates {
        font-size: 1rem;
    }

    .timer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade-in animation to all sections */
section {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

/* Delay animations for each section to create a staggered effect */
section:nth-child(1) {
    animation-delay: 0.2s;
}

section:nth-child(2) {
    animation-delay: 0.4s;
}

section:nth-child(3) {
    animation-delay: 0.6s;
}

section:nth-child(4) {
    animation-delay: 0.8s;
}

section:nth-child(5) {
    animation-delay: 1s;
}

/* About Section Styles */
.about-content {
    background: var(--container-bg); /* Keep the background */
    padding: 2rem; /* Add padding for spacing */
    border-radius: 10px; /* Optional: Add rounded corners */
    text-align: left; /* Left-align the text */
    max-width: 800px; /* Limit the width for better readability */
    margin: 0 auto; /* Center the content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add a subtle shadow */
    opacity: 0; /* Initially hidden for fade-in */
    animation: fadeIn 1.5s ease-out forwards; /* Fade-in animation */
    animation-delay: 0.6s; /* Delay for staggered effect */
}

.about-content p {
    margin-bottom: 1.5rem; /* Add spacing between paragraphs */
    line-height: 1.6; /* Improve readability with line height */
    font-size: 1.1rem; /* Adjust font size */
    color: var(--text-color); /* Ensure text color matches the theme */
}

/* Apply fade-in to other elements */
.hero-content, .countdown-timer, .about-content, .team-grid, .footer-content {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

/* Delay animations for specific elements */
.hero-content {
    animation-delay: 0.2s;
}

.countdown-timer {
    animation-delay: 0.4s;
}

.about-content {
    animation-delay: 0.6s;
}

.team-grid {
    animation-delay: 0.8s;
}

.footer-content {
    animation-delay: 1s;
}