/* 
 * Rescue Hytale - Main Stylesheet
 * A community-driven project to rescue Hytale game
 * Modern redesign
 */

/* ===== IMPORT GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Light mode (default) - Modern color palette */
    --bg-color: #f9fafb;
    --bg-color-alt: #ffffff;
    --text-color: #374151;
    --text-color-muted: #6b7280;
    --heading-color: #111827;
    --link-color: #3b82f6;
    --link-hover-color: #2563eb;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --primary-color: #3b82f6;
    --primary-hover-color: #2563eb;
    --secondary-color: #6b7280;
    --secondary-hover-color: #4b5563;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --header-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #111827;
    --footer-text: #f9fafb;
    --footer-link: #d1d5db;
    --cookie-bg: #1f2937;
    --cookie-text: #f9fafb;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* Dark mode - Modern color palette */
[data-theme="dark"] {
    --bg-color: #111827;
    --bg-color-alt: #1f2937;
    --text-color: #f3f4f6;
    --text-color-muted: #d1d5db;
    --heading-color: #f9fafb;
    --link-color: #60a5fa;
    --link-hover-color: #93c5fd;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --primary-color: #60a5fa;
    --primary-hover-color: #93c5fd;
    --secondary-color: #9ca3af;
    --secondary-hover-color: #d1d5db;
    --accent-color: #a78bfa;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --error-color: #f87171;
    --header-bg: rgba(31, 41, 55, 0.98);
    --footer-bg: #0f172a;
    --footer-text: #f3f4f6;
    --footer-link: #9ca3af;
    --cookie-bg: #0f172a;
    --cookie-text: #f3f4f6;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    margin-top: 0;
    margin-bottom: var(--space-lg);
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

ul, ol {
    padding-left: 1.5rem;
    margin-top: 0;
    margin-bottom: var(--space-md);
}

strong {
    font-weight: 600;
}

/* Selection styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* ===== LAYOUT ===== */
main {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-1 * var(--space-md));
    margin-left: calc(-1 * var(--space-md));
    gap: var(--space-lg);
}

.col {
    flex: 1 0 0%;
    padding-right: var(--space-md);
    padding-left: var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--space-sm);
}

.mb-2 {
    margin-bottom: var(--space-md);
}

.mb-3 {
    margin-bottom: var(--space-lg);
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.mb-5 {
    margin-bottom: var(--space-2xl);
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: var(--space-sm);
}

.mt-2 {
    margin-top: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-lg);
}

.mt-4 {
    margin-top: var(--space-xl);
}

.mt-5 {
    margin-top: var(--space-2xl);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    white-space: normal;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.02em;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--secondary-hover-color);
    border-color: var(--secondary-hover-color);
}

.btn-accent {
    color: #fff;
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-accent:hover {
    color: #fff;
    background-color: var(--accent-color);
    filter: brightness(110%);
}

.btn-outline-primary {
    color: var(--primary-color);
    background-color: transparent;
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-color);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    background-color: transparent;
    border-color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: var(--secondary-color);
}

.btn-link {
    font-weight: 500;
    color: var(--link-color);
    background-color: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    box-shadow: none;
    min-width: auto;
}

.btn-link:hover {
    color: var(--link-hover-color);
    text-decoration: none;
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: translateY(0);
}

.btn-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--link-hover-color);
    transition: width 0.3s ease;
}

.btn-link:hover::after {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon i, .btn-icon svg {
    margin-right: 0.5rem;
}

/* ===== HEADER ===== */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    position: relative;
    z-index: 1001;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 45px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav li {
    margin-left: 2rem;
    position: relative;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav li.active a {
    color: var(--primary-color);
}

.main-nav li.active a::after {
    width: 100%;
}

.main-nav .btn {
    margin-left: 0;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Language Dropdown */
.language-switcher {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 1.5rem;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

[data-theme="dark"] .dropdown-toggle:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

.dropdown-icon {
    margin-left: 0.5rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.75rem 0;
    margin: 0;
    background-color: var(--bg-color-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
    text-decoration: none;
}

[data-theme="dark"] .dropdown-menu a:hover {
    background-color: rgba(96, 165, 250, 0.1);
}

.dropdown-menu li.active a {
    font-weight: 600;
    color: var(--primary-color);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
}

.dark-mode-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.dark-mode-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: rotate(15deg);
}

[data-theme="dark"] .dark-mode-btn:hover {
    background-color: rgba(96, 165, 250, 0.15);
}

.dark-mode-icon, .light-mode-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.dark-mode-icon {
    opacity: 1;
    transform: translateY(0);
}

.light-mode-icon {
    opacity: 0;
    transform: translateY(20px);
}

[data-theme="dark"] .dark-mode-icon {
    opacity: 0;
    transform: translateY(-20px);
}

[data-theme="dark"] .light-mode-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO SECTION ===== */
.hero {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8rem 0 6rem;
    text-align: center;
    background-image: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(139, 92, 246, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
    margin: 0.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-copyright {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--bg-color-alt);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text .btn {
    margin-top: 1rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px var(--shadow-color);
    transition: all 0.5s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.5;
}

.about-image:hover img {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 30px 50px var(--shadow-color);
}

.image-copyright {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== ROADMAP SECTION ===== */
.roadmap {
    position: relative;
    padding: var(--space-3xl) 0;
    background-color: var(--bg-color);
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.05;
    z-index: 0;
}

.roadmap-content {
    position: relative;
    z-index: 1;
    margin-top: var(--space-2xl);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    z-index: 2;
}

.timeline-content {
    background-color: var(--bg-color-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px var(--shadow-color);
}

.timeline-content h3 {
    color: var(--heading-color);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-color);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.goal-progress {
    margin-top: var(--space-lg);
}

.progress-bar {
    height: 10px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-color-muted);
    text-align: right;
}

.roadmap-cta {
    max-width: 800px;
    margin: var(--space-3xl) auto 0;
    text-align: center;
    background-color: var(--bg-color-alt);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px var(--shadow-color);
}

.roadmap-cta h3 {
    color: var(--heading-color);
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
}

.roadmap-cta p {
    color: var(--text-color);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles for roadmap */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-marker {
        width: 40px;
        height: 40px;
    }

    .marker-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .roadmap-cta {
        padding: var(--space-xl);
    }
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--bg-color);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--bg-color-alt);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.faq-question.active {
    color: var(--primary-color);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-color);
    padding: 0 1.5rem 1.5rem;
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: -1px;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--bg-color-alt);
    position: relative;
}

/* YouTube icon styling for contact page */
.contact .social-icon svg {
    fill: #FF0000; /* YouTube red color */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 2px;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 15px 40px var(--shadow-color);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color-alt);
    background-clip: padding-box;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-control:focus {
    color: var(--text-color);
    background-color: var(--bg-color-alt);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-control::placeholder {
    color: var(--text-color-muted);
    opacity: 0.7;
}

textarea.form-control {
    height: auto;
    min-height: 180px;
    resize: vertical;
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.form-group.has-error .form-control {
    border-color: var(--error-color);
}

.form-group.has-error .form-label {
    color: var(--error-color);
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

/* ===== DONATE SECTION ===== */
.donate {
    background-color: var(--bg-color);
    position: relative;
}

.donate::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.donate-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-color-alt);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.donate-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.donate-option {
    flex: 1;
    min-width: 120px;
    padding: 1.5rem 1rem;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.donate-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-color);
}

.donate-option.active {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.donate-custom {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.donate-custom-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.donate-custom-input .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.donate-submit {
    margin-top: 2rem;
    text-align: center;
}

.donate-submit .btn {
    min-width: 200px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 2;
    min-width: 250px;
}

.footer-logo img {
    height: 135px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: translateY(-3px);
    filter: brightness(1.2);
}

.footer-logo p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    flex: 1;
    min-width: 180px;
}

.footer-links h4 {
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-link);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--footer-text);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--cookie-bg);
    color: var(--cookie-text);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.cookie-consent .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
}

.cookie-content {
    flex: 2;
    min-width: 300px;
}

.cookie-content h3 {
    color: var(--cookie-text);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.cookie-content p {
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

.cookie-buttons {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 0.5rem;
}

.cookie-buttons .btn {
    flex: 1;
    min-width: 0;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 100%;
        padding: 0 var(--space-lg);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Header mobile styles */
    .site-header .container {
        flex-wrap: wrap;
    }

    .logo {
        flex: 1;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .main-nav {
        flex-basis: 100%;
        order: 4;
        display: none;
    }

    .main-nav.active {
        display: block;
        margin-top: 1rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
    }

    .language-switcher {
        margin-right: 0;
        margin-left: auto;
        order: 2;
    }

    .dark-mode-toggle {
        order: 1;
        margin-right: 1rem;
    }

    /* Grid adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Footer adjustments */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .donate-container {
        padding: 2rem 1.5rem;
    }

    .donate-options {
        flex-direction: column;
    }

    .cookie-consent {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .cookie-consent .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-buttons {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
