/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #800020; /* Maroon */
    --secondary-color: #C0C0C0; /* Silver */
    --accent-color: #A67B5B; /* Complementary warm brown */
    --dark-color: #4A0010; /* Darker maroon */
    --light-color: #E8E8E8; /* Light silver */
    --text-color: #333333; /* Dark gray for text */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.transparent {
    background-color: transparent;
    box-shadow: none;
    border-bottom: none;
}

header.solid {
    background-color: white;
    box-shadow: 0 2px 10px rgba(128, 0, 32, 0.15);
    border-bottom: 3px solid var(--secondary-color);
}

/* Add space to account for fixed header */
body {
    padding-top: 80px;
}

/* Remove padding when header is transparent */
body.home {
    padding-top: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    animation: logo-pulse 3s infinite alternate;
    transition: opacity 0.4s ease;
}

.logo-transparent {
    display: none;
}

.logo-solid {
    display: none;
}

header.transparent .logo-transparent {
    display: block;
}

header.solid .logo-solid {
    display: block;
}

@keyframes logo-pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all var(--transition-speed);
}

header.transparent .nav-links a {
    color: white;
}

header.solid .nav-links a {
    color: var(--dark-color);
}

/* Navigation hover effects */
header.transparent .nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    transform: scale(1.1);
    display: inline-block;
}

header.solid .nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
    display: inline-block;
}

/* Active link underline */
header.transparent .nav-links a.active {
    color: white;
}

header.solid .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    animation: underline-fade 0.5s ease;
}

header.transparent .nav-links a.active::after {
    background-color: white;
}

header.solid .nav-links a.active::after {
    background-color: var(--primary-color);
}

@keyframes underline-fade {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 0; /* Ensure there's no gap between header and hero */
}

/* Slideshow styles */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Overlay for better text readability */
.slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 0, 16, 0.459); /* Dark maroon overlay */
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    animation: fade-in 1s ease-out;
    position: relative;
    padding: 2rem;
    max-width: 800px;
    background-color: rgba(74, 0, 16, 0);
    border-radius: 10px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 4.0rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Floating math symbols animation */
.math-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.symbol {
    position: absolute;
    color: rgba(192, 192, 192, 0.4);
    font-size: 3rem;
    animation: float 15s infinite linear;
    text-shadow: 1px 1px 3px rgba(128, 0, 32, 0.3);
}

#symbol1 {
    top: 20%;
    left: 15%;
    animation-duration: 15s;
    font-size: 5rem;
}

#symbol2 {
    top: 70%;
    left: 25%;
    animation-duration: 18s;
    animation-delay: 2s;
    font-size: 4rem;
}

#symbol3 {
    top: 30%;
    right: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 6rem;
}

#symbol4 {
    bottom: 25%;
    right: 15%;
    animation-duration: 14s;
    font-size: 5rem;
}

#symbol5 {
    bottom: 15%;
    left: 45%;
    animation-duration: 20s;
    animation-delay: 3s;
    font-size: 4.5rem;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) rotate(360deg);
        opacity: 0.3;
    }
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 5rem 2rem;
    background-color: var(--light-color);
    flex-wrap: wrap;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.feature {
    text-align: center;
    padding: 2rem;
    width: 300px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(192, 192, 192, 0.5);
}

.feature h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Upcoming Events Section */
.upcoming-events {
    padding: 5rem 2rem;
    background-color: #f5f7fa;
}

.upcoming-events h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-color);
}

.events-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.event-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: transform var(--transition-speed);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 100px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: 700;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 600;
}

.event-info {
    padding: 1.5rem;
}

.event-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.event-info p {
    margin-bottom: 1rem;
    color: #7f8c8d;
}

.event-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-speed);
}

.event-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--secondary-color);
    padding-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icons a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/*-------------------------------------------------------------------------------------*/

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    position: absolute;
    left: 1rem;
    top: 0.7rem;
    z-index: 100;
}

header.solid .mobile-menu-toggle {
    color: var(--dark-color);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    max-height: 40px;
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 30px;
}

.mobile-nav-links li {
    margin-bottom: 15px;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    padding: 8px 0;
}

.mobile-nav-links a.active {
    color: var(--secondary-color);
}

.mobile-contact {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.mobile-contact i {
    margin-right: 10px;
    width: 20px;
}

.hotline {
    background-color: var(--primary-color);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.hotline p {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-color);
}

.hotline h3 {
    font-size: 1.3rem;
    color: white;
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    header nav {
        display: none;
    }
    
    .logo img {
        max-height: 40px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .feature {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .events-container {
        flex-direction: column;
        align-items: center;
    }
    
    .event-card {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        padding: 0 1rem 2rem;
    }
    
    /* Adjust symbol sizes for mobile */
    .symbol {
        font-size: 2rem !important;
    }
    
    #symbol1, #symbol2, #symbol3, #symbol4, #symbol5 {
        font-size: 2.5rem !important;
    }
}