/***************************************
 * Table of Contents:
 * 1. Variables and Base Styles
 * 2. Layout and Structure
 * 3. Navigation
 * 4. Hero Section
 * 5. Card Components and Social Links
 * 6. Content Sections
 * 7. Background Effects
 * 8. Interactive Elements
 * 9. Typography
 * 10. Animations
 * 11. Media Queries
 ***************************************/

/***************************************
 * 1. Variables and Base Styles
 ***************************************/
:root {
    /* Color palette */
    --primary: rgb(72, 99, 224);
    --secondary: rgb(90, 123, 246);
    --accent: rgb(147, 230, 255);
    --red: rgb(255, 92, 124);
    --green: rgb(38, 160, 107);
    --dark: rgb(29, 37, 97);
    --darker: rgb(21, 27, 70);
    --light: rgb(255, 255, 255);
    --gradient-start: rgb(24, 29, 51);
    --gradient-end: rgb(34, 54, 141);

    /* UI Components */
    --card-bg: rgba(255, 255, 255, 0.1);
    --transition: 0.3s ease-in-out;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border: 1px solid rgba(255, 255, 255, 0.12);
    --radius: 20px;
    --radius-sm: 12px;

    /* Typography */
    --font-main: 'Archivo', sans-serif;
    --font-heading: 'Archivo', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: var(--gradient-start);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 300px;
}

/***************************************
 * 2. Layout and Structure
 ***************************************/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    z-index: 2;
    min-height: 100%;
    position: relative;
}

.section {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.103);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
}

/***************************************
 * 3. Navigation
 ***************************************/
.nav-container {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.4s ease;
    height: 76px;
}

.nav-container.transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-container.scrolled {
    background: rgba(24, 29, 51, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    margin: 0 auto;
    height: 100%;
}

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.6rem 0;
    transition: color var(--transition);
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width var(--transition);
    border-radius: 4px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    background-color: var(--accent);
    opacity: 0.2;
    transform: translateX(-50%);
    transition: all var(--transition);
    z-index: -1;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--accent);
}

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

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

/* Nav Logo */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: -5px;
    cursor: pointer;
    position: relative;
    z-index: 101;
    height: 44px;
    width: 44px;
    background-color: transparent;
}

.nav-image-logo {
    width: 44px;
    height: 44px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    pointer-events: none;
}

.nav-image-logo svg,
.nav-image-logo object,
.nav-image-logo img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scrolled .nav-image-logo {
    opacity: 1;
    visibility: visible;
}

.transparent .nav-image-logo {
    opacity: 0;
    visibility: hidden;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 150;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--light);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/***************************************
 * 4. Hero Section
 ***************************************/
.hero-section {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
    padding: 0;
    gap: 1.8rem;
}

.hero-section .site-header,
.hero-section .title-group,
.hero-section .social-links {
    margin-top: 0;
    margin-bottom: 0;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.logo-wrapper {
    width: 300px;
    height: 200px
}
#logo {
    transition: filter var(--transition);
}

#logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.61));
}

.title-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    /* max-width: 550px; */
    text-align: center;
    margin: 0 auto;
}

.title-group h1 {
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(90deg,
        #66c4e0 0%,
        #93e6ff 20%,
        #ffffff 40%,
        #93e6ff 60%,
        hsl(209, 61%, 64%) 80%,
        #66c4e0 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    animation: gradientFlow 10s linear infinite;
}

.title-group p {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.4px;
    transition: letter-spacing var(--transition);
}

/* Scroll indicator */
.scroll-indicator-wrapper {
    height:3rem;
    position:relative;
}
.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light);
    font-size: 2rem;
    opacity: 0.7;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all var(--transition);
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/***************************************
 * 5. Card Components and Social Links
 ***************************************/
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    width: 100%;
    justify-content: center;
}

.card-link {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: var(--border);
    padding: 1.8rem;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    margin: 0 auto;
}

.card-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 3px 0 0 3px;
}

.card-link:nth-child(1)::before {
    background: var(--red);
}

.card-link:nth-child(2)::before {
    background: var(--light);
}

.card-link:nth-child(3)::before {
    background: var(--green);
}

.card-link:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.card-link:nth-child(1):hover {
    box-shadow: 0 15px 50px rgba(255, 92, 125, 0.2);
}

.card-link:nth-child(2):hover {
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.2);
}

.card-link:nth-child(3):hover {
    box-shadow: 0 15px 50px rgba(38, 160, 107, 0.2);
}


.card-link:hover::before {
    opacity: 1;
}

.card-link:hover .arrow {
    transform: translateX(10px);
    opacity: 1;
}

.card-link:hover .icon-container {
    background: var(--primary);
    /* transform: scale(1.05); */
}

.card-link:hover .link-content h2 {
    transform: translateY(-2px);
    color: var(--accent);
}

.icon-container {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.link-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.link-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform var(--transition), color var(--transition);
}

.link-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 400;
}

.arrow {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all var(--transition);
}

/***************************************
 * 6. Content Sections
 ***************************************/
/* Section Headers */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--light);
    position: relative;
    padding-bottom: 0.85rem;
    font-family: var(--font-heading);
    transition: text-shadow var(--transition);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 5px;
    background: var(--accent);
    border-radius: 3px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 15px;
    height: 0;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: height var(--transition), opacity var(--transition);
    opacity: 0;
}

.section-content {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.about-container {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    min-height: 0; /* Helps with proper flex height calculation */
}

.about-content {
    flex: 1;
    width: 60%;
    display: flex;
    flex-direction: column;
}

/* About section image gallery */
.about-image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 40%;
    height: auto; /* Allow it to size based on content */
    align-self: stretch; /* Stretch to match parent container height */
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    flex: 1; /* Equal distribution of space */
    height: 0; /* Needed to make flex-grow work properly with aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
    position: absolute; /* Take the image out of the flow */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-start);
    color: var(--light);
    padding: 8px 12px;
    font-size: 0.85rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;

}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

/* News & Events Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.news-item {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 1.8rem;
    border: var(--border);
    transition: all var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--light);
    text-decoration: none;
    height: 100%;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none; /* Ensure no underline appears */
    box-shadow: 0 0 0 2px var(--accent), 0 8px 25px rgba(0, 0, 0, 0.15); /* Custom focus outline */

}

.news-item:hover .news-title {
    color: var(--accent);
    transform: translateY(-2px);
}

.news-item:focus {
    outline: none; /* Remove default outline */
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.4;
    color: #ffffff;
    transition: transform var(--transition), color var(--transition);
    text-decoration: none; /* Prevent underline on hover */
}

.news-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-decoration: none; /* Prevent underline on hover */
}

.news-readmore {
    display: flex;
    align-items: center;
    margin-top: auto;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
}

.news-readmore i {
    opacity: 0;
    margin-left: 4px;
    transform: translateX(-8px);
    transition: all var(--transition);
}

.news-item:hover .news-readmore {
    color: var(--light);
}

.news-item:hover .news-readmore i {
    opacity: 1;
    transform: translateX(4px);
}

/* Get Involved Section */
.get-involved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.involvement-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 2.2rem 2rem;
    border: var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.involvement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.involvement-card:hover::before {
    opacity: 1;
}

.involvement-card:hover {
    transform: translateY(-7px);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.involvement-card:hover .involvement-icon {
    transform: scale(1.1);
    color: var(--light);
}

.involvement-card:hover .involvement-title {
    color: var(--light);
    transform: translateY(-3px);
}

.involvement-icon {
    font-size: 2.6rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    transition: all 0.5s ease;
}

.involvement-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform var(--transition), color var(--transition);
}

.involvement-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0 0.8rem;
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 400;
}

footer h1, footer p {
    transition: text-shadow var(--transition), opacity var(--transition);
}

/***************************************
 * 7. Background Effects
 ***************************************/
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-start);
    opacity: 0.95;
    z-index: -20;
}

/* Section backgrounds */
.section-background {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -10;
    opacity: 0;
    background-size: cover;
    background-position: bottom right;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.section-background::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg,
                rgba(24, 29, 51, 0.9) 0%,
                rgba(24, 29, 51, 0.8) 40%,
                rgba(24, 29, 51, 0.6) 70%,
                rgba(24, 29, 51, 0.3) 100%);
    z-index: 1;
}

.section-background.active {
    opacity: 1;
}

.background-default {
    background-color: var(--gradient-start);
    background-image: linear-gradient(215deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.background-about {
    background-image: url('res/bgr1.avif');
}

.background-get-involved {
    background-image: url('res/alomvolgy1080.avif');
}

.background-news {
    background-image: linear-gradient(215deg, #224 0%, var(--gradient-end) 100%);
}

/***************************************
 * 8. Interactive Elements
 ***************************************/
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.2px;
    box-shadow: 0 5px 15px rgba(138, 158, 255, 0.3);
}

.btn:hover {
    background: var(--light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(138, 158, 255, 0.4);
}

/* Text link styles */
.section-content a {
    color: var(--accent);
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
    font-weight: 500;
    display: inline-block;
}

.section-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.section-content a:hover {
    color: var(--light);
}

.section-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* List items and icons */
.section-content ul li {
    position: relative;
    transition: transform var(--transition), color var(--transition);
}

.section-content i {
    transition: transform var(--transition);
}

/***************************************
 * 9. Typography
 ***************************************/
/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    /* margin-bottom: 0.8rem; */
    color: var(--light);
    font-weight: 700;
}

h1 {
    font-size: 3.4rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.2rem;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.6rem;
    letter-spacing: -0.2px;
}

h4 {
    font-size: 1.3rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

/* Paragraphs and general text */
p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

strong, b {
    font-weight: 600;
}

small {
    font-size: 0.85rem;
    opacity: 0.85;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    opacity: 0.7;
}

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

.text-large {
    font-size: 1.2rem;
}

.text-small {
    font-size: 0.9rem;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(90deg, #ffffff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Lists */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

blockquote p {
    font-size: 1.1rem;
    line-height: 1.6;
}

blockquote cite {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    opacity: 0.7;
    font-style: normal;
}

/* Special text treatments */
.lead-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

.caption-text {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

.highlight {
    background-color: rgba(147, 230, 255, 0.15);
    padding: 0 0.3rem;
    border-radius: 3px;
}

/* Links and buttons text */
a, button {
    font-weight: 500;
}

.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Update responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .lead-text {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .lead-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
}

/***************************************
 * 11. Media Queries
 ***************************************/
/* Larger screens */
@media (max-width: 1250px) {
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .card-link {
        max-width: 500px;
        width: 100%;
    }
}

/* Medium screens */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        text-align: center;
    }

    .title-group h1 {
        font-size: 2.7rem;
    }

    .title-group p {
        font-size: 1.2rem;
    }

    .logo-wrapper {
        width: 250px;
    }

    /* Navigation changes */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(135deg, var(--gradient-start) 0%, var(--darker) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 2.5rem;
        z-index: 99;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Layout changes */
    .news-grid, .get-involved-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hero section */
    .hero-section {
        min-height: calc(100vh - 50px);
    }

    .hero-section .social-links {
        padding: 0;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 1.8rem;
    }

    /* Card changes */
    .card-link {
        padding: 1.5rem;
        min-width: unset;
    }

    .icon-container {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .link-content h2 {
        font-size: 1.05rem;
    }

    .link-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }

    .about-content {
        width: 100%;
    }

    .about-image-gallery {
        width: 100%;
        flex-direction: row;
        height: auto;
        min-height: 200px; /* Minimum height for gallery on mobile */
    }

    .gallery-item {
        height: auto; /* Allow aspect ratio to adjust */
        flex: 1;
        position: relative;
        padding-top: 0; /* Reset padding */
    }

    .gallery-item img {
        position: relative; /* Reset position for mobile */
        height: 200px; /* Fixed height for mobile */
    }
}

/* Small screens */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 2.5rem;
    }

    .title-group h1 {
        font-size: 2.2rem;
    }

    .title-group p {
        font-size: 1.1rem;
    }

    .card-link {
        padding: 1rem;
    }

    .icon-container {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .link-content h2 {
        font-size: 1rem;
    }

    .link-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .news-item, .involvement-card {
        padding: 1.5rem;
    }

    /* Make social links more compact */
    .hero-section .social-links {
        gap: 1rem;
    }

    .card-link {
        padding: 1.2rem;
        gap: 1rem;
    }

    .icon-container {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 14px;
    }

    .arrow {
        font-size: 1rem;
    }
    .gallery-item.main-image {
        aspect-ratio: 16/9;
    }

    .about-image-gallery {
        flex-direction: column;
        min-height: auto; /* Reset min-height */
    }

    .gallery-item {
        height: 180px; /* Fixed height for smaller screens */
    }

    .gallery-item img {
        height: 100%; /* Fill container */
    }
}

/* Height-based media queries */
@media (max-height: 700px) {

    .hero-section .social-links {
        gap: 1rem;
    }
}

@media (max-height: 600px) {


    .hero-section .site-header {
        flex: 0 0 auto;
    }

    .hero-section .social-links {
        flex: 0 0 auto;
    }

    .hero-section .title-group {
        flex: 0 0 auto;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .title-group h1 {
        animation: none;
        background-size: 100%;
        background: linear-gradient(90deg, #ffffff, var(--accent));
    }
}
