:root {
    /* Palette */
    --white: #FEFDFD;
    --oxblood: #730000;
    --alabaster-grey: #EBE3E3;
    --rich-mahogany: #480000;
    --rich-mahogany-2: #3C0000;

    /* Theme Mappings - Light Theme */
    --bg-color: var(--white);
    --text-color: var(--rich-mahogany-2);
    --text-muted: var(--rich-mahogany);
    --accent-color: var(--oxblood);

    --primary-gradient: linear-gradient(135deg, var(--white) 0%, var(--alabaster-grey) 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(72, 0, 0, 0.1);

    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --container-width: 1200px;
    --header-height: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-outline {
    border-color: var(--text-color);
    background: transparent;
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
}

.header-container {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Centered Logo */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateX(-50%) rotate(10deg);
}

.logo img {
    height: 80px;
    width: auto;
}

/* Navigation pushed to the right */
.nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    z-index: 20;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--alabaster-grey) 80%);
    z-index: -1;
}

/* Wrapper that moves around */
.img-float {
    position: absolute;
    animation: moveAround 40s linear infinite;
    will-change: transform;
    z-index: 1;
}

/* When you hover, stop the drifting + bring it on top */
.img-float:hover {
    animation-play-state: paused;
    z-index: 5;
}

/* The actual image / video */
.hero-floating-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    opacity: 0.6;
    object-fit: cover;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.25s ease-out,
        opacity 0.25s ease-out,
        box-shadow 0.25s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Hover effect: small, smooth, not too heavy */
.hero-floating-img:hover {
    transform: scale(1.04);
    opacity: 1;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* Positions + sizes stay on the wrappers */
.img-float-1 {
    top: 5%;
    left: 2%;
    width: 300px;
    height: 220px;
}

.img-float-2 {
    top: 8%;
    right: 2%;
    width: 350px;
    height: 250px;
    animation-direction: reverse;
}

.img-float-3 {
    bottom: 5%;
    left: 3%;
    width: 280px;
    height: 200px;
    animation-delay: 2s;
}

.img-float-4 {
    bottom: 8%;
    right: 3%;
    width: 320px;
    height: 240px;
    animation-delay: 5s;
    animation-direction: reverse;
}

.img-float-5 {
    top: 35%;
    left: -80px;
    width: 260px;
    height: 190px;
    animation-delay: 1s;
}

.img-float-6 {
    top: 45%;
    right: -90px;
    width: 290px;
    height: 210px;
    animation-delay: 3s;
    animation-direction: reverse;
}

.img-float-7 {
    top: 15%;
    left: 40%;
    width: 480px;
    height: 480px;
    max-width: 400px;
    animation-delay: 4s;
}

/* Same keyframes as before */
@keyframes moveAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(40px, 50px) rotate(3deg);
    }

    50% {
        transform: translate(0, 100px) rotate(-2deg);
    }

    75% {
        transform: translate(-40px, 50px) rotate(-3deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 100;
    max-width: 800px;
    pointer-events: none;
}

.hero-content a {
    pointer-events: auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.hero-title .accent {
    font-style: italic;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--text-color);
    color: var(--text-color);
    /* fallback */
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Make hero text black */
.hero-title,
.hero-subtitle {
    color: #000000;
}

/* Also make the word "Excellence" black instead of gradient */
.hero-title .accent {
    font-style: italic;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--text-color);
    color: var(--text-color);
    /* fallback */
}

/* Events Section */
.events-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--alabaster-grey) 80%);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-family: var(--font-serif);
}

/* Events layout: 2 cards side by side on desktop */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    /* allows wrapping on small screens */
    gap: 32px;
    /* space between cards */
    justify-content: center;
    /* center the row of cards */
}

.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    flex: 1 1 480px;
    /* base width so 2 fit side by side */
    max-width: 560px;
    width: 100%;
}

/* On small screens: stack them */
@media (max-width: 900px) {
    .event-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.event-image {
    width: 100%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: auto;
    /* 👈 image scales down with the card */
    display: block;
    object-fit: cover;
    /* safe to keep, won’t hurt */
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-details {
    padding: 20px;
    /* was 30px */
}

.event-title {
    font-size: 1.3rem;
    /* was 1.5rem */
    margin-bottom: 8px;
}

.event-location {
    margin-bottom: 18px;
    /* was 25px */
}

.event-date {
    font-size: 0.75rem;
    /* slightly smaller */
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--alabaster-grey) 80%);
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-logo {
    max-width: 300px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Community Section */
.community-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--alabaster-grey) 80%);
}

.community-section .section-title,
.community-section .community-subtitle {
    font-family: var(--font-main);
    /* same as event cards */
}

.community-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.community-link i {
    font-size: 1.2rem;
}

.community-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Footer */
.footer {
    padding: 60px 0;
    background: radial-gradient(circle at 50% 50%, var(--white) 0%, var(--alabaster-grey) 80%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 80px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--text-color);
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    /* Slightly shrink all text sizes */
    html {
        font-size: 90%;
    }

    /* Hero layout tweaks */
    .hero {
        align-items: center;
        /* was flex-start */
        justify-content: center;
        /* make sure content is centered */
        padding-top: var(--header-height);
        /* a bit of space for the header */
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    /* Make sections less tall on mobile */
    .events-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }

    /* Slightly smaller buttons */
    .btn {
        padding: 10px 22px;
        font-size: 0.8rem;
    }

    /* Nav: you already had this, kept as-is */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Stack about section (you already had this) */
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    /* Newsletter vertical on mobile (you already had this) */
    .newsletter-form {
        flex-direction: column;
    }

    /* 🔹 FLOATING ELEMENTS: resize + reposition on mobile */

    /* Base: smaller floating blocks */
    .img-float-2,
    .img-float-3,
    .img-float-4,
    .img-float-5,
    .img-float-6,
    .img-float-7 {
        width: 44vw;
        height: 34vw;
    }

    /* FLOATING 1 – smaller and in the top-right on mobile */
    .img-float-1 {
        width: 34vw;
        /* smaller: 40% of screen width */
        height: 44vw;
        /* keep it square */
        top: 23%;
        /* a bit down from the top */
        left: 4%;
    }

    /* Bring them closer to screen, avoid going off edge */
    .img-float-2 {
        top: 23%;
        right: 4%;
    }

    .img-float-3 {
        bottom: 25%;
        left: 0%;
    }

    .img-float-4 {
        bottom: 25%;
        right: 0%;
    }

    /* OPTIONAL: if it feels too busy, you can hide a couple on phones: */
    .img-float-5,
    .img-float-6,
    .img-float-7 {
        display: none;
    }

}