/* ============================================
   DigiFree - Digital Steps to Freedom
   Premium CSS Styles
   ============================================ */

/* === CSS Custom Properties === */
:root {
    --primary: #1B3A5C;
    --primary-light: #2A5A8C;
    --primary-dark: #0F2440;
    --accent: #F07D00;
    --accent-light: #FF9A2E;
    --accent-dark: #D06800;
    --secondary: #4A90D9;
    --secondary-light: #6AACF0;
    --teal: #00B4A0;
    --teal-light: #00D9C0;
    --bg-dark: #060B18;
    --bg-dark-2: #0C1628;
    --bg-dark-3: #121E38;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-1: linear-gradient(135deg, #1B3A5C, #4A90D9);
    --gradient-2: linear-gradient(135deg, #F07D00, #FF6B35);
    --gradient-3: linear-gradient(135deg, #00B4A0, #4A90D9);
    --gradient-accent: linear-gradient(135deg, #F07D00, #FFB347);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(74, 144, 217, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --layout-max: min(1680px, 96vw);
    --layout-gutter: clamp(16px, 2vw, 32px);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Safari momentum scroll */
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* === Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Container === */
.container {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 var(--layout-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
    flex-shrink: 0;
}

/* Admin Login Button */
.admin-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-accent);
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.admin-login-btn:hover {
    color: var(--accent);
    background: rgba(240, 125, 0, 0.1);
    border-color: rgba(240, 125, 0, 0.3);
}

.admin-login-btn svg {
    flex-shrink: 0;
}

/* Language Picker Dropdown */
.lang-picker {
    position: relative;
    z-index: 1002;
}

.lang-picker-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.lang-picker-btn:hover {
    background: var(--surface-hover);
    border-color: rgba(240, 125, 0, 0.3);
}

.lang-picker-btn .lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.lang-picker-code {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.lang-picker-arrow {
    -webkit-transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.lang-picker.open .lang-picker-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: rgba(12, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.96);
    /* transition: all kullanmak Safari'de sayfa yüklenirken dropdown'un açık görünmesine neden olur */
    -webkit-transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                        visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                        -webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.lang-picker.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transform: translateY(0) scale(1);
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(240, 125, 0, 0.12);
    color: var(--accent);
}

.lang-option .lang-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.lang-option-name {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.lang-option-code {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.5;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Safari iOS fix */
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    position: relative;
    padding: 80px 24px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: glowFloat1 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation: glowFloat2 10s ease-in-out infinite;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: var(--teal);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: glowFloat3 12s ease-in-out infinite;
}

@keyframes glowFloat1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, 50px); }
}

@keyframes glowFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

@keyframes glowFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 1080px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-logo-wrapper {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--glass-border);
    box-shadow: 0 0 60px rgba(240, 125, 0, 0.2), 0 0 120px rgba(74, 144, 217, 0.1);
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 60px rgba(240, 125, 0, 0.2), 0 0 120px rgba(74, 144, 217, 0.1); }
    50% { box-shadow: 0 0 80px rgba(240, 125, 0, 0.35), 0 0 160px rgba(74, 144, 217, 0.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 760px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

.stat-number {
    display: block;
    font-family: var(--font-accent);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-flags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.flag-item {
    font-size: 2rem;
    transition: var(--transition);
    cursor: default;
}

.flag-item:hover {
    transform: scale(1.3);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-2);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out 1.2s both;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 125, 0, 0.3);
}

.cta-arrow {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s ease-out 1.5s both;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--glass-border);
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* === Sections === */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    position: relative;
    padding: 0 16px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.section-tag::before {
    left: -30px;
}

.section-tag::after {
    right: -30px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* === About Section === */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text {
    padding-right: 20px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.about-text p:not(.about-lead) {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-badge-row {
    margin-top: 32px;
}

.eu-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.eu-flag-icon {
    font-size: 2rem;
}

.eu-badge-small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.eu-badge-program {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-light);
    margin-top: 2px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(240, 125, 0, 0.2);
    transform: translateX(8px);
    background: var(--surface-hover);
}

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

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(240, 125, 0, 0.1);
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* === Activities Section === */
.activities {
    background: var(--bg-dark-2);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.activity-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.activity-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 125, 0, 0.15);
    box-shadow: var(--shadow-glow);
}

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

.activity-number {
    font-family: var(--font-accent);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: 12px;
    right: 20px;
    line-height: 1;
}

.activity-card:hover .activity-number {
    color: rgba(240, 125, 0, 0.08);
}

.activity-icon-wrap {
    margin-bottom: 20px;
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: rgba(240, 125, 0, 0.08);
    color: var(--accent);
    transition: var(--transition);
}

.activity-card:hover .activity-icon {
    background: rgba(240, 125, 0, 0.15);
    transform: scale(1.05);
}

.activity-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.activity-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.activity-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.activity-duration,
.activity-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-duration svg,
.activity-location svg {
    color: var(--accent);
    flex-shrink: 0;
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(74, 144, 217, 0.1);
    color: var(--secondary-light);
    border: 1px solid rgba(74, 144, 217, 0.15);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(74, 144, 217, 0.2);
}

/* === Partners Section === */
.partners {
    background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark) 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.partner-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.partner-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: var(--transition);
    opacity: 0;
}

.partner-card[data-country="turkey"]::after {
    background: linear-gradient(90deg, #E30A17, #E30A17);
}

.partner-card[data-country="spain"]::after {
    background: linear-gradient(90deg, #AA151B, #F1BF00, #AA151B);
}

.partner-card[data-country="italy"]::after {
    background: linear-gradient(90deg, #009246, #FFFFFF, #CE2B37);
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-glow);
}

.partner-card:hover::after {
    opacity: 1;
}

.partner-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(240, 125, 0, 0.15);
    color: var(--accent);
    border: 1px solid rgba(240, 125, 0, 0.2);
}

.partner-badge-secondary {
    background: rgba(74, 144, 217, 0.1);
    color: var(--secondary-light);
    border-color: rgba(74, 144, 217, 0.15);
}

.partner-flag {
    font-size: 3rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

.partner-card:hover .partner-flag {
    transform: scale(1.15);
}

.partner-logo-wrap {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--glass-border);
    transition: var(--transition);
}

.partner-card:hover .partner-logo-wrap {
    border-color: rgba(240, 125, 0, 0.3);
    box-shadow: 0 0 30px rgba(240, 125, 0, 0.1);
}

.partner-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-logo-placeholder {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.partner-country {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
}

.partner-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.partner-id {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* === Impact Section === */
.impact {
    background: var(--bg-dark);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.impact-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition-slow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.impact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 180, 160, 0.2);
    box-shadow: 0 0 30px rgba(0, 180, 160, 0.1);
}

.impact-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.impact-circle svg {
    transform: rotate(-90deg);
    width: 120px;
    height: 120px;
}

.impact-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.impact-circle-fill {
    fill: none;
    stroke: url(#circleGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.29;
    stroke-dashoffset: 339.29;
    transition: stroke-dashoffset 2s ease-out;
}

.impact-card:nth-child(1) .impact-circle-fill { stroke: var(--accent); }
.impact-card:nth-child(2) .impact-circle-fill { stroke: var(--teal); }
.impact-card:nth-child(3) .impact-circle-fill { stroke: var(--secondary); }
.impact-card:nth-child(4) .impact-circle-fill { stroke: var(--accent-light); }

.impact-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-accent);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.impact-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.impact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === Timeline Section === */
.timeline-section {
    background: var(--bg-dark-2);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    margin-right: 40px;
    margin-left: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-dark-2);
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
    box-shadow: 0 0 0 4px rgba(240, 125, 0, 0.15);
}

.timeline-item:hover .timeline-dot {
    box-shadow: 0 0 0 8px rgba(240, 125, 0, 0.2);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    width: calc(50% - 40px);
    margin-left: auto;
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content:hover {
    border-color: rgba(240, 125, 0, 0.15);
    background: var(--surface-hover);
}

.timeline-date {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Online Meetings Section === */
.online-meetings-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.meetings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.meeting-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.meeting-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: var(--surface-hover);
}

.meeting-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.meeting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.meeting-card:hover .meeting-image img {
    transform: scale(1.08);
}

.meeting-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(240, 125, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.meeting-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.meeting-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.meeting-date {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.meeting-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}

.meeting-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(240, 125, 0, 0.1);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--accent);
    width: fit-content;
}

.meeting-link:hover {
    background: var(--accent);
    color: var(--text-primary);
}

/* === Contact Section === */
.contact {
    background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(240, 125, 0, 0.1);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-detail {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

.contact-project-info {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.contact-project-info p:last-child {
    margin-bottom: 0;
}

.contact-project-info strong {
    color: var(--text-primary);
}

.contact-form-wrap {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 125, 0, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 12px;
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--bg-dark-2);
    padding: 0 6px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 125, 0, 0.3);
}

/* === Footer === */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    padding: 48px 0 24px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-eu {
    margin-bottom: 24px;
}

/* Erasmus+ Logos Row */
.eu-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.footer-prog-logo {
    display: block;
    object-fit: contain;
    max-height: 52px;
    width: auto;
    filter: brightness(1.05);
    transition: opacity 0.2s;
}

.footer-prog-logo:hover {
    opacity: 0.85;
}

.footer-erasmus-logo {
    max-height: 48px;
}

.footer-ua-logo {
    max-height: 52px;
}

.eu-cofunded-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 51, 153, 0.15);
    border: 1px solid rgba(0, 51, 153, 0.3);
    border-radius: 6px;
    padding: 8px 14px;
}

.eu-cofunded-label {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.eu-disclaimer {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
}

.eu-disclaimer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* Hero EU Badges */
.hero-eu-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero-eu-badge-link {
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.hero-eu-badge-link:hover {
    opacity: 1;
}

.hero-erasmus-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hero-ua-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hero-eu-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.hero-cofunded-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 51, 153, 0.18);
    border: 1px solid rgba(0, 51, 153, 0.35);
    border-radius: 6px;
}

.hero-cofunded-text {
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.4;
    letter-spacing: 0.2px;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-accent);
}

.visit-counter-row {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.2px;
}

#visitCounterValue {
    color: var(--accent-light);
    font-size: 1.02rem;
    font-weight: 700;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* === Video Section === */
.video-section {
    background: var(--bg-dark);
}

.video-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-section .section-header {
    width: 100%;
}

.video-container {
    width: min(100%, 980px);
    margin-inline: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(240, 125, 0, 0.1);
    border: 1px solid var(--glass-border);
    animation: fadeInUp 1s ease-out both;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Mobility Gallery Section === */
.mobility-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}

.mobility-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.mobility-filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobility-filter-btn:hover {
    border-color: rgba(240, 125, 0, 0.3);
    color: var(--text-primary);
}

.mobility-filter-btn.active {
    background: var(--gradient-2);
    border-color: transparent;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    height: 160px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.09);
    transition: var(--transition);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.gallery-item:hover {
    border-color: rgba(240, 125, 0, 0.5);
    box-shadow: 0 4px 18px rgba(240, 125, 0, 0.18);
    transform: translateY(-2px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 55%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 10px;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.3;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.gallery-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(8, 16, 34, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 20;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(240, 125, 0, 0.45);
    border-color: rgba(255, 179, 71, 0.9);
    transform: translateY(-50%) scale(1.06);
}

.lightbox-close:hover {
    transform: scale(1.06);
}

.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    animation: lightboxArrowPulse 1.8s ease-in-out infinite;
}

.lightbox.active .lightbox-next {
    animation-delay: 0.9s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    animation-play-state: paused;
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
    outline: 2px solid #ffb347;
    outline-offset: 2px;
}

@keyframes lightboxArrowPulse {
    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        border-color: rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow: 0 10px 30px rgba(240, 125, 0, 0.5);
        border-color: rgba(255, 179, 71, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lightbox.active .lightbox-prev,
    .lightbox.active .lightbox-next {
        animation: none;
    }
}

/* === Responsive === */

/* ---- Large Tablet / Small Desktop (max-width: 1024px) ---- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        padding-right: 0;
    }

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

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

    .partner-card:last-child {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .video-container {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* ---- Tablet (max-width: 768px) ---- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

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

    .nav-right {
        gap: 10px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 11, 24, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.15rem;
        padding: 8px 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    /* -- Lang Picker Mobile Fix -- */
    .lang-picker-btn {
        padding: 5px 8px;
        gap: 5px;
    }

    .lang-picker-code {
        font-size: 0.75rem;
    }

    .lang-dropdown {
        right: 0;
        min-width: 160px;
    }

    .admin-login-btn span {
        display: none;
    }

    .admin-login-btn {
        padding: 6px 8px;
    }

    /* -- Hero -- */
    .hero {
        padding: 100px 16px 60px;
        min-height: auto;
        min-height: 100svh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
        margin-bottom: 24px;
    }

    .hero-logo {
        width: 130px;
        height: 130px;
    }

    .hero-logo-wrapper {
        margin-bottom: 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 calc(50% - 8px);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .hero-flags {
        gap: 12px;
        margin-bottom: 32px;
    }

    .hero-cta {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

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

    /* -- Sections -- */
    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    /* -- About -- */
    .about-lead {
        font-size: 1.05rem;
    }

    .about-features {
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card:hover {
        transform: translateX(4px);
    }

    /* -- Activities -- */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-card {
        padding: 28px 24px;
    }

    .activity-card:hover {
        transform: translateY(-4px);
    }

    .activity-icon {
        width: 60px;
        height: 60px;
    }

    .activity-icon svg {
        width: 36px;
        height: 36px;
    }

    /* -- Partners -- */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-card {
        padding: 28px 24px;
    }

    .partner-card:last-child {
        max-width: 100%;
    }

    .partner-card:hover {
        transform: translateY(-4px);
    }

    .partner-logo-wrap {
        width: 80px;
        height: 80px;
    }

    .partner-name {
        font-size: 1rem;
    }

    /* -- Impact -- */
    .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .impact-card {
        padding: 28px 16px;
    }

    .impact-card:hover {
        transform: translateY(-4px);
    }

    .impact-circle {
        width: 100px;
        height: 100px;
    }

    .impact-circle svg {
        width: 100px;
        height: 100px;
    }

    .impact-percent {
        font-size: 1.3rem;
    }

    .impact-card h3 {
        font-size: 0.9rem;
    }

    .impact-card p {
        font-size: 0.8rem;
    }

    /* -- Timeline -- */
    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-dot {
        left: 20px;
        top: 0;
    }

    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        margin: 0;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin-right: 0;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-item {
        margin-bottom: 32px;
    }

    /* -- Contact -- */
    .contact-form-wrap {
        padding: 28px;
    }

    .contact-item {
        gap: 12px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-project-info {
        padding: 16px 20px;
    }

    /* -- Footer -- */
    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .eu-disclaimer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px 20px;
    }

    .eu-disclaimer p {
        font-size: 0.75rem;
    }

    .footer {
        padding: 36px 0 20px;
    }

    /* -- Video -- */
    .video-container {
        border-radius: var(--radius-md);
    }

    /* -- Gallery -- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    .gallery-item { height: 130px; }

    .mobility-filters {
        gap: 8px;
        margin-bottom: 28px;
    }

    .mobility-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close { top: 10px; right: 10px; }
    .lightbox-prev,
    .lightbox-next { width: 48px; height: 48px; font-size: 1.5rem; }
}

/* ---- Small Mobile (max-width: 480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    /* -- Navigation -- */
    .nav-logo-text {
        font-size: 1.25rem;
    }

    .nav-logo-img {
        width: 34px;
        height: 34px;
    }

    .nav-right {
        gap: 6px;
    }

    .admin-login-btn {
        padding: 5px 6px;
    }

    .admin-login-btn svg {
        width: 14px;
        height: 14px;
    }

    .lang-picker-btn {
        padding: 4px 6px;
        gap: 3px;
    }

    .lang-picker-btn .lang-flag {
        width: 16px;
        height: 11px;
    }

    .lang-picker-code {
        font-size: 0.7rem;
    }

    .lang-picker-arrow {
        width: 8px;
        height: 8px;
    }

    .lang-dropdown {
        right: -10px;
        min-width: 150px;
    }

    .lang-option {
        padding: 7px 10px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .lang-switch {
        gap: 2px;
        padding: 3px 5px;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 10px 16px;
    }
}

/* ========================================
   Ülke + Gün Sekmeleri (Mobility)
   ======================================== */
.mobility-country-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mob-country-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.mob-country-btn:hover {
    border-color: rgba(240,125,0,0.4);
    color: var(--text-primary);
}

.mob-country-btn.active {
    background: var(--gradient-2);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.mobility-day-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.mob-day-btn {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.mob-day-btn:hover {
    border-color: rgba(74,144,217,0.4);
    color: var(--text-primary);
}

.mob-day-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

    /* -- Hero -- */
    .hero {
        padding: 90px 14px 50px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 12px;
        margin-bottom: 20px;
    }

    .hero-logo {
        width: 110px;
        height: 110px;
    }

    .hero-logo-wrapper {
        margin-bottom: 16px;
    }

    .hero-stats {
        gap: 10px;
    }

    .stat-item {
        flex: 0 0 calc(50% - 6px);
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .hero-flags {
        gap: 10px;
        margin-bottom: 24px;
    }

    .flag-item svg {
        width: 30px;
        height: 20px;
    }

    .hero-cta {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* -- Sections -- */
    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-tag {
        font-size: 0.72rem;
        letter-spacing: 1px;
        padding: 0 12px;
    }

    .section-tag::before,
    .section-tag::after {
        width: 20px;
    }

    .section-tag::before {
        left: -20px;
    }

    .section-tag::after {
        right: -20px;
    }

    /* -- About -- */
    .about-lead {
        font-size: 0.95rem;
        padding-left: 14px;
        line-height: 1.7;
    }

    .about-text p:not(.about-lead) {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .eu-badge {
        padding: 12px 14px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        width: 44px;
        height: 44px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-card h3 {
        font-size: 1.05rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    /* -- Activities -- */
    .activity-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .activity-number {
        font-size: 3rem;
    }

    .activity-icon {
        width: 56px;
        height: 56px;
    }

    .activity-icon svg {
        width: 32px;
        height: 32px;
    }

    .activity-title {
        font-size: 1.05rem;
    }

    .activity-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .activity-meta {
        flex-direction: column;
        gap: 8px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    /* -- Partners -- */
    .partner-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .partner-logo-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .partner-name {
        font-size: 0.95rem;
    }

    .partner-desc {
        font-size: 0.8rem;
    }

    .partner-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }

    .partner-flag svg {
        width: 40px;
        height: 27px;
    }

    /* -- Impact -- */
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .impact-card {
        padding: 24px 20px;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
        border-radius: var(--radius-md);
    }

    .impact-circle {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin: 0;
    }

    .impact-circle svg {
        width: 80px;
        height: 80px;
    }

    .impact-percent {
        font-size: 1.1rem;
    }

    .impact-card h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .impact-card p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    /* -- Timeline -- */
    .timeline-line {
        left: 14px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 40px;
    }

    .timeline-dot {
        left: 14px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-date {
        font-size: 0.72rem;
    }

    .timeline-item {
        margin-bottom: 24px;
    }

    /* -- Contact -- */
    .contact-form-wrap {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .contact-form {
        gap: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.85rem;
        left: 14px;
        top: 14px;
    }

    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label,
    .form-group textarea:focus + label,
    .form-group textarea:not(:placeholder-shown) + label {
        font-size: 0.7rem;
        left: 10px;
    }

    .form-submit {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-item h4 {
        font-size: 0.95rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .contact-project-info p {
        font-size: 0.85rem;
    }

    /* -- Footer -- */
    .footer-brand-text {
        font-size: 1.1rem;
    }

    .footer-logo {
        width: 34px;
        height: 34px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }

    .eu-disclaimer {
        padding: 14px 16px;
    }

    .eu-disclaimer p {
        font-size: 0.72rem;
    }

    /* -- Video -- */
    .video-container {
        border-radius: var(--radius-sm);
        margin: 0 -4px;
    }

    /* -- Gallery -- */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 6px;
    }
    .gallery-item {
        height: 110px;
        border-radius: var(--radius-sm);
    }

    .lightbox-content img {
        border-radius: 4px;
    }
}

/* ---- Very Small Mobile (max-width: 360px) ---- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-badge {
        font-size: 0.68rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

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

    .activity-card,
    .partner-card,
    .impact-card {
        padding: 20px 16px;
    }

    .nav-logo-text {
        font-size: 1.1rem;
    }

    .nav-right {
        gap: 4px;
    }

    .lang-picker-btn {
        padding: 3px 5px;
        gap: 2px;
    }

    .lang-picker-btn .lang-flag {
        width: 14px;
        height: 10px;
    }

    .lang-picker-code {
        font-size: 0.65rem;
    }

    .lang-picker-arrow {
        width: 7px;
        height: 7px;
    }

    .lang-dropdown {
        right: -16px;
        min-width: 140px;
    }

    .admin-login-btn {
        padding: 4px 5px;
    }

    .admin-login-btn svg {
        width: 13px;
        height: 13px;
    }
}

/* ---- Landscape Phone Fix ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 24px 40px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-logo-wrapper {
        margin-bottom: 12px;
    }

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

    .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-stats {
        margin-bottom: 16px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 4px 12px;
    }
}

/* ---- Touch-friendly adjustments ---- */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover {
        transform: none;
    }

    .activity-card:hover {
        transform: none;
    }

    .partner-card:hover {
        transform: none;
    }

    .impact-card:hover {
        transform: none;
    }

    .hero-cta:hover {
        transform: none;
    }

    .flag-item:hover {
        transform: none;
    }

    .form-submit:hover {
        transform: none;
    }
}
