/***************************************
 * 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;
}

/***************************************
 * 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;
}

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

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

    &.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;

    &.active {
        position: fixed;
        top: 0;
        right: 0;
        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-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;

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

    &::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;
    }

    &:hover {
        color: var(--accent);

        &::after {
            width: 100%;
        }
    }

    &.active {
        color: var(--accent);
        font-weight: 600;

        &::after {
            width: 100%;
        }
    }
}

/* 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;

    svg, object, 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;

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

/***************************************
 * 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;

    .site-header,
    .title-group,
    .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);

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

.title-group {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    text-align: center;
    margin: 0 auto;

    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;
    }

    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;

    &: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%;
    }
}

/***************************************
 * 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;

    &::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;
    }

    &:nth-child(1)::before {
        background: var(--red);
    }

    &:nth-child(2)::before {
        background: var(--light);
    }

    &:nth-child(3)::before {
        background: var(--green);
    }

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

        &::before {
            opacity: 1;
        }

        .arrow {
            transform: translateX(10px);
            opacity: 1;
        }

        .icon-container {
            background: var(--primary);
        }

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

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

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

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

.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;

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

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

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

/***************************************
 * 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);

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

    &::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);

    a {
        color: var(--accent);
        text-decoration: none;
        position: relative;
        transition: color var(--transition);
        font-weight: 500;
        display: inline-block;

        &::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);
        }

        &:hover {
            color: var(--light);

            &::after {
                transform: scaleX(1);
                transform-origin: left;
            }
        }
    }
}

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

.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;
    align-self: stretch;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    flex: 1;
    height: 0;
    padding-top: 0;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    &:hover .image-caption {
        transform: translateY(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;
}

/* 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);
    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;

    &:hover {
        transform: translateY(-7px);
        background: rgba(255, 255, 255, 0.11);
        box-shadow: 0 0 0 2px var(--accent), 0 8px 25px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }

    &:focus {
        outline: none;
    }
}

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

.news-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    overflow: hidden;
}

/* News Images */
.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition);
        mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    }
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    padding: 0 1.8rem 1rem;
}

/* Loading skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.news-item-skeleton {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    border: var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.news-item-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.skeleton-content {
    padding: 0 1.8rem 1rem;
}

.skeleton-date {
    width: 120px;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 0.6rem;
}

.skeleton-excerpt {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 0.5rem;

    &:nth-child(2) { width: 90%; }
    &:nth-child(3) { width: 95%; }
    &:nth-child(4) { width: 85%; }
}

/* Entrance animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out;
}

/* Enhanced transitions */
.news-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    &:hover {
        transform: translateY(-8px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    &:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    transform: translateY(-4px);
    }

}





.news-image img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover .news-image img {
    transform: scale(1.08);
}

/* Add subtle hover effects for text elements */
.news-date {
    transition: color 0.3s ease;
}

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

.news-excerpt {
    transition: color 0.3s ease;
}

.news-item:hover .news-excerpt {
    color: rgba(255, 255, 255, 0.95);
}

/* News Actions */
.news-actions {
    margin-top: 2rem;
    text-align: center;
}

.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);

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

.news-loading, .news-error {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    grid-column: 1 / -1;
}

.news-error {
    color: var(--red);
}

/* 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);

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

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

        &::before {
            opacity: 1;
        }

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

        .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;

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

/***************************************
 * 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;

    &::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;
    }

    &.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%);
}

/***************************************
 * Typography
 ***************************************/
/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    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;

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

strong, b {
    font-weight: 600;
}

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

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

/***************************************
 * 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;
    }

    .gallery-item {
        height: auto;
        flex: 1;
        position: relative;
        padding-top: 0;
    }

    .gallery-item img {
        position: relative;
        height: 200px;
    }
}

/* 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;
        border-radius: 14px;
    }

    .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;
    }

    /* 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;
    }

    .arrow {
        font-size: 1rem;
    }

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

    .gallery-item {
        height: 180px;
    }

    .gallery-item img {
        height: 100%;
    }
}

/* 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));
    }
}