/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0b0c10; /* Changed back to dark background for consistency */
    color: #ffffff; /* Default text color to white for dark backgrounds */
    line-height: 1.6;
}

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

/* --- Header / Navigation Bar --- */
.navbar {
    background-color: #1a1a2e; /* Dark blue-ish grey */
    padding: 1rem 2rem;
    border-bottom: 1px solid #2a2a4e;
    color: #ffffff; /* Ensure navbar text is white */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

/* --- 2. Nav Link Underline Animation (UPDATED) --- */

.nav-links a {
    color: #c5c6c7; /* Default light grey color */
    font-weight: 600;
    padding-bottom: 0.25rem;
    position: relative; /* Required for the pseudo-element */
}

/* This creates the base underline element (hidden) */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a90e2; /* Blue underline color */

    transform: scaleX(0); /* Starts hidden (0% width) */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

/* This animates the underline on HOVER (for non-active links) */
.nav-links a:hover:not(.active)::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* This changes the text color on hover */
.nav-links a:hover {
    color: #ffffff;
}

/* This is your NEW active link style */
.nav-links a.active {
    color: #ffffff; /* Makes active text white */
    /* The border-bottom is REMOVED */
}

/* This styles the active link's underline to be visible */
.nav-links a.active::after {
    transform: scaleX(1); /* Makes the underline visible */
    transform-origin: bottom left;

    /* This applies the wipe-in animation on page load! */
    animation: wipeIn 0.5s ease-out forwards; 
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom: 2px solid #4a90e2;
}

/* Base Button Style */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

/* Nav Button Style */
.btn-nav {
    background-color: #4a90e2;
    color: #ffffff;
}

.btn-nav:hover {
    background-color: #3a7bc2;
}

/* --- Hero Section --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzNjUyOXwwfDF8c2VhcmNofDEwfHxzZW1pbmFyfGVufDB8fHx8MTcwMDIwNTQ2OXww&ixlib=rb-4.0.3&q=80&w=1080');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;    
    padding: 0 2rem;
    color: #ffffff;
}

.hero-content {
    max-width: 750px;
    padding: 2.5rem;
    border-radius: 16px;
    
    /* "Glassmorphism" Effect */
    background-color: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

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

/* Primary Button (Gradient) */
.btn-primary {
    background: linear-gradient(90deg, #8e2de2, #4a00e0);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1a1a2e;
}

/* --- UPDATED FEATURES SECTION STYLES --- */
.features {
    padding: 5rem 2rem;
    text-align: center;
    color: #ffffff; /* Ensure text is white against the dark background */
    position: relative; /* Needed for the pseudo-element */
    overflow: hidden; /* Ensures blur doesn't bleed out if content overflows */
    
    /* Background Image for the features section */
    background-image: url('https://images.unsplash.com/photo-1485217988980-11786ced9454?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=400');
 /* Replace with your desired image */
    background-size: cover;
    background-position: center;
}

/* Pseudo-element for the blur and dark overlay */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 12, 16, 0.7); /* Dark overlay */
    backdrop-filter: blur(8px); /* Blur effect */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    z-index: 1; /* Place behind the content */
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative; /* Bring container above the pseudo-element */
    z-index: 2; /* Higher than the pseudo-element's z-index */
}

.feature-card {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent card background for glassmorphism look */
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px); /* Optional: add a slight blur to the cards themselves */
    -webkit-backdrop-filter: blur(5px);
    position: relative; /* Bring card above the pseudo-element */
    z-index: 2; /* Higher than the pseudo-element's z-index */
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(74, 144, 226, 0.2); /* Semi-transparent blue for circle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.icon-circle i {
    font-size: 2.2rem;
    color: #4a90e2; /* Blue icon color */
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff; /* White heading color */
}

.feature-card p {
    font-size: 0.95rem;
    color: #e0e0e0; /* Light grey paragraph color */
    max-width: 250px;
}

/* --- NEW: FEATURED EVENTS SECTION --- */

.events {
    background-color: #f7f9fc; /* Light background to match image */
    color: #333; /* Dark text for readability on light background */
    padding: 5rem 2rem;
    text-align: center;
}

.events-section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.events h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50; /* Dark blue-grey heading */
    margin-bottom: 1rem;
}

.events .subheading {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.events-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; /* Allows cards to stack on small screens */
}

.event-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
    overflow: hidden; /* To round the image corners */
    flex: 1; /* Allows cards to grow */
    min-width: 320px; /* Minimum width before stacking */
    max-width: 360px; /* Maximum width */
    text-align: left; /* Aligns card content to the left */
    display: flex;
    flex-direction: column; /* Stacks image, content, and button */
}

.event-image-container {
    position: relative;
    height: 220px;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image from stretching */
    display: block;
}

.event-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #4a90e2; /* Blue tag background */
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes content fill remaining space */
}

.event-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.event-info {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes button to the bottom */
}

.event-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.event-info li i {
    color: #4a90e2; /* Blue icon color */
    width: 16px;
    text-align: center;
}

/* New button style for cards */
.btn-details {
    background-color: #4a90e2;
    color: #ffffff;
    text-align: center;
    width: 100%;
    padding: 0.75rem 1rem;
}

.btn-details:hover {
    background-color: #3a7bc2;
}

/* --- Event Card Hover Animations --- */

.event-card {
    /* ... keep all existing styles ... */
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1;
    min-width: 320px;
    max-width: 360px;
    text-align: left;
    display: flex;
    flex-direction: column;

    /* ADD THIS LINE: */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* This rule makes the card "pop up" */
.event-card:hover {
    transform: scale(1.03); /* Lifts the card up (enlarges it) */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Adds a stronger shadow */
}

.event-image-container img {
    /* ... keep all existing styles ... */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* ADD THIS LINE: */
    transition: transform 0.3s ease;
}

/* This rule makes the image "zoom out" */
.event-card:hover .event-image-container img {
    transform: scale(0.95); /* Scales the image down slightly */
}

/* --- NEW: VIEW ALL EVENTS SECTION --- */

.view-all-events {
    background-color: #ffffff; /* White background as requested */
    padding: 3rem 2rem;
    text-align: center;
    /* Adds a light line to separate it from the section above */
    border-top: 1px solid #e0e0e0; 
}

.view-all-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* New button style based on the image */
.btn-view-all {
    background-color: #4a90e2;
    color: #ffffff;
    padding: 0.75rem 1.5rem; /* A nice padding size */
}

/* Hover effect for the button */
.btn-view-all:hover {
    background-color: #3a7bc2;
    transform: translateY(-2px); /* Lifts the button */
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Animation for the arrow inside the button */
.btn-view-all .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-view-all:hover .arrow {
    transform: translateX(5px); /* Moves arrow to the right */
}
/* --- NEW: FOOTER SECTION --- */

.site-footer {
    background-color: #1a1a2e; /* Same dark color as your navbar */
    color: #c5c6c7; /* Light grey text */
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #2a2a4e;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows sections to stack on small screens */
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Limit width of brand and links sections */
.footer-brand,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px; /* Prevents them from getting too squished */
}

.footer-brand .logo {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #c5c6c7;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4a90e2; /* Blue hover color */
}

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

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: #4a90e2; /* Blue hover color */
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #2a2a4e;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}
/* --- Animation for .btn-nav --- */

/* 1. Add these properties to your existing .btn-nav rule */
.btn-nav {
    background-color: #4a90e2;
    color: #ffffff;
    
    /* Add these two lines */
    position: relative; /* Required for the pseudo-element */
    overflow: hidden; /* Hides the shine until it crosses */
}

/* 2. Add this NEW rule for the shine element */
.btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), /* This is the white 'shine' */
        transparent
    );
    transition: all 0.6s ease; /* Speed of the shine */
}

/* 3. Add this NEW rule for the hover state */
.btn-nav:hover::before {
    left: 100%; /* Moves the shine all the way to the right */
}

/* 4. Let's also add a subtle lift to the button on hover */
.btn-nav:hover {
    background-color: #3a7bc2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.nav-right .btn-nav:hover i {
    transform: translateX(5px); /* Moves icon 5px to the right */
}

/* 3. Add a hover state for the button itself */
.btn-nav:hover {
    background-color: #3a7bc2;
    transform: translateY(-2px); /* Lifts the button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow */
}
.nav-right .btn i {
    margin-left: 0.5rem; 
}
/* Add this for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* --- Global Styles --- */
* {
    /* ... your existing rules ... */
}
@keyframes wipeIn {
    from {
        transform: scaleX(0);
        transform-origin: bottom left;
    }
    to {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}

/* --- NEW: AI Suggestion Modal --- */

/* Re-use modal styles from the calendar app */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1e1e1e; /* Dark modal */
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #e0e0e0;
    line-height: 1.7;
}

/* Loading Spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: block;
    margin: 2rem auto;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}