/* --- Root Variables and Global Styles --- */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #8ac04e;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --footer-bg: #2c3e50;
    --footer-text: #ffffff;
    --light-gradient-start: #e0f7fa;
    --light-gradient-end: #e8eaf6;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-ar: 'Cairo', sans-serif;
    --font-de: 'Roboto', sans-serif;
    --facebook-blue: #1877F2;
    --tiktok-black: #000000;
    --email-gold: #f59e0b;
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

    /* Responsive font sizes */
    --fs-xs: clamp(0.75rem, 2vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 2.5vw, 1rem);
    --fs-base: clamp(1rem, 3vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 3.5vw, 1.25rem);
    --fs-xl: clamp(1.25rem, 4vw, 1.5rem);
    --fs-2xl: clamp(1.5rem, 5vw, 2rem);
    --fs-3xl: clamp(1.875rem, 6vw, 2.5rem);
    --fs-4xl: clamp(2.25rem, 7vw, 3rem);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #9fdb5a;
    --text-color: #e2e8f0;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
    --footer-bg: #0f1419;
    --footer-text: #e2e8f0;
    --light-gradient-start: #2d3748;
    --light-gradient-end: #1a202c;
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Auto Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #60a5fa;
        --secondary-color: #9fdb5a;
        --text-color: #e2e8f0;
        --bg-color: #1a202c;
        --card-bg: #2d3748;
        --footer-bg: #0f1419;
        --footer-text: #e2e8f0;
        --light-gradient-start: #2d3748;
        --light-gradient-end: #1a202c;
        --border-color: #4a5568;
        --shadow-color: rgba(0, 0, 0, 0.3);
    }
}

/* Apply font based on language direction */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;

    font-family: var(--font-de);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
    letter-spacing: 0;
    word-spacing: 0.1em;
}

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

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

    -webkit-tap-highlight-color: transparent;
}

.tax-number {
    white-space: nowrap;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

section h2 {
    font-size: var(--fs-3xl);
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Section Title Icons */
.section-icon {
    font-size: 0.9em;
    color: var(--secondary-color);
}

.support-column h3 i {
    margin-inline-end: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.9em;
}

/* --- Improved Animated Backgrounds (Softer, Eye-friendly) --- */
@keyframes gentleFloat {

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

    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.05;
    }

    50% {
        transform: translate(-20px, 20px) rotate(180deg);
        opacity: 0.03;
    }

    75% {
        transform: translate(-30px, -10px) rotate(270deg);
        opacity: 0.05;
    }
}

@keyframes subtleGradient {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.pattern-bg {
    position: relative;
    background: linear-gradient(135deg,
            var(--bg-color) 0%,
            color-mix(in srgb, var(--primary-color) 5%, var(--bg-color)) 50%,
            var(--bg-color) 100%);
    background-size: 200% 200%;
    animation: subtleGradient 20s ease infinite;
}

.pattern-bg::before,
.pattern-bg::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.pattern-bg::before {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    animation: gentleFloat 30s ease-in-out infinite;
}

.pattern-bg::after {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    animation: gentleFloat 25s ease-in-out infinite reverse;
}

/* Dark theme adjustments for patterns */
/* Dark theme adjustments for patterns */
[data-theme="dark"] .pattern-bg {
    background: linear-gradient(135deg,
            var(--bg-color) 0%,
            color-mix(in srgb, var(--primary-color) 3%, var(--bg-color)) 50%,
            var(--bg-color) 100%);
}

[data-theme="dark"] .pattern-bg::before,
[data-theme="dark"] .pattern-bg::after {
    opacity: 0.02;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .pattern-bg {
        background: linear-gradient(135deg,
                var(--bg-color) 0%,
                color-mix(in srgb, var(--primary-color) 3%, var(--bg-color)) 50%,
                var(--bg-color) 100%);
    }

    :root:not([data-theme="light"]) .pattern-bg::before,
    :root:not([data-theme="light"]) .pattern-bg::after {
        opacity: 0.02;
    }
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {

    .pattern-bg,
    .pattern-bg::before,
    .pattern-bg::after {
        animation: none !important;
    }
}

/* --- Custom Cursor (Desktop Only) --- */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
}

@media (pointer: fine) and (min-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: block;
    }
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    transition: transform 0.1s ease-out;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary-color);
    transition: transform 0.3s ease-out, background-color 0.3s, opacity 0.3s;
}

body:hover .cursor-follower.hover {
    transform: scale(1.5) translate(-33%, -33%);
    background-color: rgba(138, 192, 78, 0.2);
    opacity: 0.8;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-logo.visible {
    opacity: 1;
    transform: scale(1);
}

.preloader-logo img {
    max-width: 150px;
    width: 40vw;
}

.preloader-symbol {
    position: absolute;
    font-size: var(--fs-lg);
    color: var(--primary-color);
    opacity: 0.7;
}

/* --- Header & Navigation --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: color-mix(in srgb, var(--card-bg) 95%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: top 0.3s ease-in-out, background-color 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
}

#main-header.hidden {
    top: -120px;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: clamp(50px, 8vw, 65px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-menu ul li a {
    font-weight: bold;
    font-size: var(--fs-base);
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: var(--primary-color);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.nav-menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    transform: rotate(180deg);
}

.theme-toggle:hover i {
    color: #fff;
}

.theme-toggle i {
    position: absolute;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

[data-theme="dark"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    color: var(--secondary-color);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--secondary-color);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--secondary-color);
}

.lang-switcher a {
    font-weight: bold;
    font-size: var(--fs-sm);
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
    cursor: pointer;
    padding: 0;
}

.hamburger-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-bar:nth-child(1) {
    top: 0;
}

.hamburger-bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-bar:nth-child(3) {
    bottom: 0;
}

body.nav-open .hamburger-bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.nav-open .hamburger-bar:nth-child(2) {
    opacity: 0;
}

body.nav-open .hamburger-bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(45deg, var(--light-gradient-start), var(--light-gradient-end));
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
    position: relative;
}

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

.hero-title {
    font-size: var(--fs-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    line-height: 1.3;
}

[dir="rtl"] .hero-title {
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-size: var(--fs-lg);
    opacity: 0;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: var(--fs-base);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    display: inline-block;
    min-width: 140px;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.hero-btn.primary {
    background-color: var(--primary-color);
    color: #fff;
}

.hero-btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-card {
    background: color-mix(in srgb, var(--card-bg) 30%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    box-shadow: 0 15px 35px var(--shadow-color);
    width: clamp(250px, 35vw, 420px);
}

.hero-large-logo {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- About Section --- */
#about {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
    padding: 5rem 0;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--fs-lg);
    line-height: 1.8;
}

/* --- Activities Section --- */
#activities {
    background-color: var(--bg-color);
    padding: 5rem 0;
}

.activities-list {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activities-list li {
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.activities-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.activity-icon {
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-inline-end: 1.5rem;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* --- Goals Section --- */
#goals {
    padding: 5rem 0;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.flip-card {
    background-color: transparent;
    width: min(300px, 90vw);
    height: 200px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--shadow-color);
}

.flip-card-front {
    background-color: var(--card-bg);
    color: var(--text-color);
}

.flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: var(--fs-base);
    line-height: 1.6;
}

.card-icon {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.flip-card-front h3 {
    font-size: var(--fs-xl);
}

/* --- Support Section --- */
#support {
    padding: 5rem 0;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
    text-align: start;
    margin-top: 3rem;
}

.support-column h3 {
    font-size: var(--fs-2xl);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.iban-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-bg);
    padding: 0.75rem 0.75rem 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    gap: 0.5rem;
}

.iban {
    font-weight: bold;
    color: var(--primary-color);
    font-size: var(--fs-base);
    word-break: break-all;
    margin: 0;
    flex: 1;
}

.copy-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-family: inherit;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn:hover {
    background-color: color-mix(in srgb, var(--primary-color) 80%, black);
}

.qr-codes {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.qr-code img {
    width: clamp(140px, 25vw, 180px);
    height: clamp(140px, 25vw, 180px);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.qr-code a:hover img {
    transform: scale(1.05);
}

.tiktok-card .flip-card-front {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    overflow: hidden;
}

.tiktok-card .flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 20%, rgba(37, 244, 238, 0.4) 50%, rgba(254, 44, 85, 0.4) 80%);
    z-index: 1;
}

.tiktok-card .flip-card-front i {
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 0px rgba(254, 44, 85, 0.8), -2px -2px 0px rgba(37, 244, 238, 0.8);
}

.tiktok-card .flip-card-back {
    background-color: var(--tiktok-black);
}

.email-card .flip-card-front {
    background: linear-gradient(135deg, #f0f2f5, #d9d9d9);
}

.email-card .flip-card-front i {
    color: var(--text-color);
}

/* Ensure Email icon is dark in dark mode too for this specific card since bg is light */
[data-theme="dark"] .email-card .flip-card-front i {
    color: #2c3e50;
}

.email-card .flip-card-back {
    background: linear-gradient(135deg, #f0f2f5, #d9d9d9);
    color: #2c3e50;
    /* Ensure text is dark on light bg */
    cursor: pointer;
}

.email-card .flip-card-back h4,
.email-card .flip-card-back p,
.email-card .flip-card-back span {
    color: #2c3e50;
}

.email-card .flip-card-back:hover {
    filter: brightness(0.95);
}

/* Removed previous Light Mode specific fixes as they are now superseded by specific card styling */


.click-hint {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    display: inline-block;
}

.qr-code p {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: var(--fs-base);
}

.qr-buttons-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.social-card {
    height: 150px;
    width: 100%;
    max-width: 400px;
}

.social-card .flip-card-front {
    color: white;
    justify-content: center;
    align-items: center;
}

.social-card .flip-card-back {
    background-color: var(--card-bg);
    color: var(--text-color);
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotateY(180deg);
    padding: 1rem;
}

.social-card .flip-card-back h4 {
    font-size: var(--fs-lg);
    margin-bottom: 0.5rem;
}

.social-card .flip-card-back p {
    font-size: var(--fs-sm);
}

.social-icon {
    font-size: clamp(3rem, 10vw, 5rem);
}

.facebook-card .flip-card-front {
    background-color: var(--facebook-blue);
}

.instagram-card .flip-card-front {
    background-image: var(--instagram-gradient);
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2.5rem 1rem;
}

footer p {
    margin: 0.25rem 0;
    opacity: 0.9;
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* === RESPONSIVE DESIGN === */

/* iPad and Tablet Specific Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    #main-header {
        padding: 1rem 0;
    }

    .logo {
        height: 60px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 2rem 3rem;
    }

    .hero-logo-card {
        width: 100%;
        max-width: 350px;
        padding: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    }

    .hero-buttons {
        gap: 1.5rem;
    }

    .hero-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .cards-container {
        gap: 1.5rem;
    }

    .flip-card {
        width: 280px;
    }
}

/* iPad Pro and Large Tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .container {
        max-width: 960px;
    }

    .hero-logo-card {
        width: 380px;
        padding: 3rem;
    }

    section {
        padding: 5rem 0;
    }
}

/* Tablet Portrait */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-logo-container {
        order: -1;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Show mobile menu */
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: color-mix(in srgb, var(--card-bg) 98%, transparent);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        padding-top: 6rem;
        box-shadow: -5px 0 15px var(--shadow-color);
    }

    body.nav-open .nav-menu {
        right: 0;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-menu ul li a {
        font-size: var(--fs-lg);
        padding: 0.5rem 0;
    }

    /* RTL adjustments */
    [dir="rtl"] .nav-menu {
        left: -100%;
        right: auto;
    }

    [dir="rtl"].nav-open .nav-menu {
        left: 0;
    }

    /* Hero adjustments */
    #hero {
        padding-top: 5rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-container {
        padding: 2rem 1rem;
    }

    .hero-logo-card {
        padding: 1.5rem;
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 1.5rem;
    }

    /* Cards adjustments */
    .flip-card {
        width: 100%;
        max-width: 320px;
    }

    /* Support section adjustments */
    .support-column {
        text-align: center;
    }

    .support-column h3 {
        margin-left: auto;
        margin-right: auto;
    }

    .iban-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .qr-codes {
        gap: 1rem;
    }

    /* Activities */
    .activities-list li {
        padding: 1.2rem;
    }

    .activity-icon {
        margin-inline-end: 1rem;
    }
}

/* --- Photo Gallery Section (Swiper) --- */
#gallery {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.gallery-wrapper {
    width: 100%;
    margin: 0 auto;
}

.swiper {
    width: 100%;
    border-radius: 12px;
}

/* Main Slider Styles */
.gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: var(--card-bg);
}

.gallery-main .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    /* Consistency with container */
}

/* Caption Overlay */
.gallery-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-main .swiper-slide:hover .gallery-caption-overlay,
/* Optionally show caption always or on active? Let's show on hover or always for touch.
   User asked for "Display ... at the bottom", implied always visible usually,
   but overlay on photo might block it. Let's make it always visible if caption exists. */
.gallery-caption-overlay {
    transform: translateY(0);
}

.gallery-caption-overlay p {
    margin: 0;
    font-size: var(--fs-base);
    font-weight: bold;
}

/* Thumbs Slider Styles */
.gallery-thumbs {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 0;
}

.gallery-thumbs .swiper-slide {
    width: 20%;
    /* Will be overriden by slidesPerView but good default */
    aspect-ratio: 1 / 1;
    height: auto;
    opacity: 0.4;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.gallery-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop Side-by-Side Layout (>768px) */
@media (min-width: 769px) {
    .gallery-wrapper {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        max-width: 1200px;
        /* CRITICAL FIX: Defined height for vertical swiper */
        height: 600px;
        overflow: hidden;
    }

    .gallery-main {
        width: 75%;
        max-width: none;
        /* Match parent height */
        height: 100%;
        /* Remove aspect-ratio dependency for height on desktop since we have fixed height */
        aspect-ratio: auto;
    }

    .gallery-thumbs {
        width: 25%;
        height: 100%;
        max-width: none;
        padding: 0;
        aspect-ratio: auto;
    }

    .gallery-thumbs .swiper-slide {
        width: 100% !important;
        margin-bottom: 20px !important;
        /* Ensure thumbs match consistency */
        height: auto !important;
        aspect-ratio: 1/1;
    }
}

/* Mobile Adjustments (<768px) */
@media (max-width: 768px) {
    .gallery-caption-overlay {
        padding: 0.5rem;
    }

    .gallery-caption-overlay p {
        font-size: var(--fs-sm);
    }

    .gallery-wrapper {
        display: block;
    }

    .gallery-main {
        margin-bottom: 10px;
    }
}