/* Reset CSS and Google Fonts imports */
@import url('https://fonts.googleapis.com/css?family=Roboto:wght@100;300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

/* Global reset for all elements */
* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
}

/* HTML settings */
html {
    font-size: 95.5%; /* Sets a slightly smaller base font size for the whole page */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    scroll-padding-top: 9rem; /* Adds space at the top when scrolling (for fixed headers) */
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

/* Custom scrollbar styles for WebKit browsers */
html::-webkit-scrollbar {
    width: .8rem; /* Thin scrollbar width */
}

html::-webkit-scrollbar-track {
    background: transparent; /* Transparent track color */
}

html::-webkit-scrollbar-thumb {
    background: #fff; /* White thumb color */
    border-radius: 5rem; /* Round thumb corners */
}

/* Banner Section */
.banner {
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-image: url(Images/event\ bg.png); /* Background image */
    background-size: cover; /* Covers the entire banner */
    background-position: center; /* Centers the background image */
    transition: .2s linear; /* Smooth transition effect */
}

/* Content Section */
.contentevent {
    width: 100%;
    position: absolute;
    top: 50%; /* Vertically centers the content */
    transform: translateY(-50%); /* Moves content up by 50% of its own height */
    text-align: center;
    color: white; /* Text color */
}

.contentevent h1 {
    margin-top: 80px; /* Adds space above the heading */
    font-family: 'Caveat', cursive; /* Custom font */
    font-size: 150px; /* Very large font size */
}

/* Navigation Bar */
.navbar {
    width: 85%;
    margin: auto; /* Centers the navbar */
    padding: 35px 0; /* Top and bottom padding */
    display: flex; /* Arranges items in a row */
    align-items: center; /* Vertically centers items */
    justify-content: space-between; /* Evenly spaces items */
}

.icon img {
    float: left; /* Floats the logo image to the left */
    background-color: rgba(8, 4, 0, 0.8); /* Dark background color */
    border-radius: 50%; /* Circular shape for logo */
}

/* Logo */
.logo {
    color: white; /* Text color */
    font-size: 30px; /* Font size */
    font-family: 'Caveat', cursive; /* Custom font */
    padding-left: 10px; /* Space on the left */
    float: left; /* Aligns logo to the left */
    padding-top: 10px; /* Space on the top */
}

.navbar ul li {
    list-style: none; /* Removes default list styles */
    display: inline-block; /* Places items side by side */
    margin: 0 20px; /* Space around each item */
    position: relative; /* Allows absolute positioning */
}

.navbar ul li a {
    text-decoration: none; /* Removes underline */
    color: white; /* Text color */
    text-transform: uppercase; /* Uppercase text */
    font-weight: bold; /* Bold font */
    font-family: Arial, Helvetica, sans-serif; /* Fallback font */
    font-size: 1.2rem; /* Font size */
}

/* Animation for Navigation Links */
.navbar ul li::after {
    content: ''; /* Adds a pseudo-element */
    height: 3px; /* Line height */
    width: 0%; /* Initially hidden */
    background: white; /* White color */
    position: absolute; /* Allows precise positioning */
    left: 0; /* Positioned from the left */
    bottom: -10px; /* Slightly below the link */
    transition: 0.5s; /* Smooth transition */
}

.navbar ul li:hover::after {
    width: 100%; /* Expands line on hover */
}

/* Event section start */
body {
    font-family: sans-serif; /* Default font */
    margin: 0; /* Resets margin */
    padding: 0; /* Resets padding */
    background-color: #f0f0f0; /* Light gray background */
}

.container {
    max-width: 1200px; /* Maximum width */
    margin: 0 auto; /* Centers the container */
    padding: 20px; /* Space inside the container */
}

header {
    display: flex; /* Arranges items in a row */
    justify-content: space-between; /* Evenly spaces items */
    align-items: center; /* Vertically centers items */
    padding: 20px 0; /* Top and bottom padding */
}

.logo {
    font-size: 24px; /* Font size */
    font-weight: bold; /* Bold font */
}

nav ul {
    list-style-type: none; /* Removes default list styles */
    display: flex; /* Arranges items in a row */
    gap: 20px; /* Space between items */
}

nav ul li a {
    text-decoration: none; /* Removes underline */
    color: #333; /* Text color */
}

.event-container {
    display: grid; /* Arranges items in a grid */
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px; /* Space between grid items */
    margin-bottom: 40px; /* Space at the bottom */
}

.event-item {
    background-color: #fff; /* White background */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Hides overflowing content */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Subtle shadow */
}

.event-item img {
    width: 100%; /* Fills the container */
    height: 200px; /* Fixed height */
    object-fit: cover; /* Ensures image covers */
}

.event-item .content {
    padding: 20px; /* Space inside */
}

.gallery {
    display: grid; /* Arranges items in a grid */
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); /* Responsive grid */
    gap: 20px; /* Space between grid items */
}

.gallery-item {
    position: relative; /* Allows relative positioning */
    overflow: hidden; /* Hides overflowing content */
    border-radius: 8px; /* Rounded corners */
}

.gallery-item img {
    width: 100%; /* Fills the container */
    height: 500px; /* Adjusts height */
    object-fit: cover; /* Ensures image covers */
    transition: transform 0.3s ease; /* Smooth scale transition */
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slightly scales up on hover */
}

.gallery-item .caption {
    position: absolute; /* Allows absolute positioning */
    bottom: 0; /* Positioned at the bottom */
    left: 0; /* Positioned from the left */
    right: 0; /* Positioned from the right */
    background-color: rgba(0,0,0,0.7); /* Semi-transparent background */
    color: #fff; /* Text color */
    padding: 10px; /* Space inside */
    transform: translateY(100%); /* Initially hides */
    transition: transform 0.3s ease; /* Smooth transition */
}

.gallery-item:hover .caption {
    transform: translateY(0); /* Shows on hover */
}

/* Footer section */
.footer {
    padding: 0px;
    margin: 0;
    box-sizing: border-box;
    background-color: black;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0.9;
}

/* Footer container */
.footer-container {
    width: 100%;
    padding: 60px 30px 20px;
}

/* Footer logo section (currently empty) */
.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

/* Footer quick links section */
.footer-links {
    margin: 30px 0;
    text-align: center;
}

/* Footer quick links heading */
.footer-links h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Footer quick links list */
.footer-links ul {
    display: flex;
    justify-content: center; /* Center align quick links horizontally */
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
}

/* Footer quick links list items */
.footer-links ul li {
    margin: 10px;
}

/* Footer quick links anchor styles */
.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    opacity: 0.9;
    transition: 0.5s;
}

/* Footer quick links hover effect */
.footer-links ul li a:hover {
    background-color: rgba(8, 4, 0, 0.8); /* Transparent dark brown color for hover effect */
    transition: 0.5s;
}

/* Social icons container */
.social-icons {
    display: flex;
    justify-content: center; /* Center align icons horizontally */
    margin-top: 20px;
}

/* Social icons link styles */
.social-icons a {
    text-decoration: none;
    padding: 10px;
    background-color: white;
    margin: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social icons styles */
.social-icons a i {
    font-size: 2em;
    color: black;
    opacity: 0.9;
}

/* Social icons hover effect */
.social-icons a:hover {
    background-color: rgba(8, 4, 0, 0.8); /* Transparent dark brown color for hover effect */
    transition: 0.5s;
}

.social-icons a:hover i {
    color: white;
    transition: 0.5s;
}

/* Responsive design for footer links on smaller screens */
@media (max-width: 700px) {
    .footer-links ul {
        flex-direction: column; /* Stack items vertically */
    }
    .footer-links ul li {
        width: 100%;
        text-align: center;
    }
}
