/* ========================================
   KURDFINANCE - Modern Premium Design
   Kimlik. Ekonomi. Gelecek.
   ======================================== */

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

:root {
    /* Color Palette - Premium Teal & Coral */
    --color-primary: #0d9488;
    --color-primary-light: #14b8a6;
    --color-primary-dark: #0f766e;
    --color-secondary: #f43f5e;
    --color-accent: #8b5cf6;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #0d9488 0%, #14b8a6 50%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);

    /* Background Colors */
    --bg-dark: #0a0f1a;
    --bg-darker: #050810;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-card-hover: rgba(20, 30, 50, 0.9);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.7);
    --text-muted: rgba(248, 250, 252, 0.5);

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.3);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 15, 26, 0.95);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-img {
    width: auto;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: clip;
    padding: 100px 24px 60px;
    gap: 20px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -20%;
    right: -10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ========================================
   Map Container & Animated Pieces
   ======================================== */
/* ========================================
   Map Container - 3D Stage Setup
   ======================================== */
.map-container {
    position: relative;
    width: 650px;
    height: 500px;
    z-index: 10;
    /* Perspective only dictates the final flag's 3D look */
    perspective: 1200px;
    -webkit-perspective: 1200px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    overflow: visible;
}

/* 
   Phase 2: Ultra Realistic 3D Flag Map 
   Technique: "Shadow stacking" to create faux-3D thickness 
*/
.map-flag {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    z-index: 100;
    /* Ensure it stays ON TOP of everything */
    will-change: opacity, transform;

    /* 
       THE 3D EFFECT 
       1. Rotate X to show the "plane"
       2. Stacked Drop Shadows to create "Thickness" (Sides)
       3. Big soft shadow for ground distance
    */
    transform: rotateX(15deg) scale(0.95);
    -webkit-transform: rotateX(15deg) scale(0.95);

    filter:
        /* The "Thickness" (Dark Teal Sides) */
        drop-shadow(0 1px 0 #0f766e) drop-shadow(0 2px 0 #0f766e) drop-shadow(0 3px 0 #0f766e) drop-shadow(0 4px 0 #0f766e) drop-shadow(0 5px 0 #0d9488)
        /* The Ground Shadow */
        drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));

    -webkit-filter:
        drop-shadow(0 1px 0 #0f766e) drop-shadow(0 2px 0 #0f766e) drop-shadow(0 3px 0 #0f766e) drop-shadow(0 4px 0 #0f766e) drop-shadow(0 5px 0 #0d9488) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));

    transition: opacity 2.5s ease-out, transform 1.5s ease-out;
}

/* 
   State: Fully Visible
   We keep the rotation to maintain the 3D aspect
*/
.map-flag.visible {
    opacity: 1;
    transform: rotateX(15deg) scale(1) translateY(0);
    -webkit-transform: rotateX(15deg) scale(1) translateY(0);
    animation: flagHover3D 6s ease-in-out infinite;
}

/* 
   3D Hover Animation 
   Floats up and down while maintaining the 3D angle
*/
@keyframes flagHover3D {

    0%,
    100% {
        transform: rotateX(15deg) scale(1) translateY(0);
    }

    50% {
        transform: rotateX(15deg) scale(1) translateY(-10px);
        /* Shadow gets slightly softer and further when it goes up */
        filter:
            drop-shadow(0 1px 0 #0f766e) drop-shadow(0 2px 0 #0f766e) drop-shadow(0 3px 0 #0f766e) drop-shadow(0 4px 0 #0f766e) drop-shadow(0 5px 0 #0d9488) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.4));
    }
}

/* 
   3D Map Pieces 
   FAIL-SAFE CONFIGURATION:
   1. Movement: Pure Translate (No Rotate) -> 100% Smooth on Safari.
   2. Easing: Standard Ease-Out -> 0% Chance of Bounce.
   3. Transition: Handled strictly by CSS.
*/
.map-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 10;

    /* Hardware Acceleration */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    -webkit-will-change: transform, opacity;

    /* Start State: Invisible */
    opacity: 0;
    pointer-events: none;

    /* 
       THE TIMELINE (Cinematic Slow Motion - REFINED)
       - Movement: 4s with a smooth landing (No overshoot to prevent overlap)
       - Opacity: Clean natural fade
    */
    transition: transform 4s cubic-bezier(0.3, 0, 0.2, 1), opacity 2.5s ease-out;
    -webkit-transition: -webkit-transform 4s cubic-bezier(0.3, 0, 0.2, 1), opacity 2.5s ease-out;

    /* Cinematic Visual Style: Soft Shadows (Blur removed per user request) */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    -webkit-filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* 
   Refined Clipping to prevent full-frame overlaps during animation
*/
#piece-bakur {
    transform: translate3d(0, -600px, 0) scale(1) rotateX(15deg);
    -webkit-transform: translate3d(0, -600px, 0) scale(1) rotateX(15deg);
    z-index: 50;
}

#piece-rojhelat {
    transform: translate3d(600px, 0, 0) scale(1) rotateX(15deg);
    -webkit-transform: translate3d(600px, 0, 0) scale(1) rotateX(15deg);
    z-index: 40;
}

#piece-bashur {
    transform: translate3d(0, 600px, 0) scale(1) rotateX(15deg);
    -webkit-transform: translate3d(0, 600px, 0) scale(1) rotateX(15deg);
    z-index: 30;

    /* Color Modification removed: Image is now natively white */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    -webkit-filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

#piece-rojava {
    transform: translate3d(-600px, 0, 0) scale(1) rotateX(15deg);
    -webkit-transform: translate3d(-600px, 0, 0) scale(1) rotateX(15deg);
    z-index: 20;
}

/* 
   Cinematic Merge State
   - Perfect central alignment
   - 5% growth for depth enhancement
   - Maintains the 3D perspective angle
*/
.map-piece.start {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.05) rotateX(15deg) !important;
    -webkit-transform: translate3d(0, 0, 0) scale(1.05) rotateX(15deg) !important;
}

/* 
   Ultra-Smooth Cross-Fade
   The transition to 'kurdistan_flag_map.png'
*/
.map-piece.fade-out {
    opacity: 0 !important;
    transform: translate3d(0, 0, 0) scale(1.08) rotateX(15deg) !important;
    -webkit-transform: translate3d(0, 0, 0) scale(1.08) rotateX(15deg) !important;
    transition: opacity 2.5s ease-in, transform 2.5s ease-in;
}

/* Interactive State (Post-Animation) */
.map-piece.interactive {
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) blur(0);
    -webkit-filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) blur(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.map-piece.interactive:hover {
    filter: drop-shadow(0 0 40px rgba(13, 148, 136, 0.4)) brightness(1.1);
    transform: scale(1.1) rotateX(10deg);
    z-index: 150;
}

/* 
   Light Bloom / Glow Effect for the central composition
*/
.map-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 4s ease-in;
    z-index: 5;
}

.map-container.merged::after {
    opacity: 1;
}

/* ========================================
   Tooltip for Map Regions
   ======================================== */
.tooltip {
    position: fixed;
    padding: 12px 18px;
    background: rgba(10, 15, 26, 0.95);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 148, 136, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip .region-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-primary-light);
}

.tooltip .region-desc {
    font-size: 13px;
    opacity: 0.8;
}

.tooltip .region-country {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========================================
   Hero Content
   ======================================== */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-content-bottom {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 4.5s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.badge-icon {
    font-size: 1rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.title-brand {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.brand-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-tagline {
    display: block;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(13, 148, 136, 0.5);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes scroll {

    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
}

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

/* ========================================
   Mission Section
   ======================================== */
.mission-section {
    background: var(--gradient-dark);
}

.mission-content {
    display: flex;
    justify-content: center;
}

.mission-card {
    max-width: 800px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-primary-light);
}

.mission-card p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.mission-card strong {
    color: var(--text-primary);
}

/* ========================================
   Vision Section
   ======================================== */
.vision-section {
    background: var(--bg-darker);
}

.vision-statement {
    max-width: 800px;
    margin: 24px auto 0;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 400;
}

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

.vision-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    overflow: hidden;
}

.vision-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.vision-card.featured {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, var(--bg-card) 100%);
    border-color: rgba(13, 148, 136, 0.3);
}

.vision-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(13, 148, 136, 0.15);
    font-family: 'Outfit', sans-serif;
}

.vision-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.vision-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary-light);
}

.vision-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.vision-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Why Section
   ======================================== */
.why-section {
    background: var(--gradient-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.why-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon.danger {
    background: rgba(244, 63, 94, 0.15);
}

.why-icon.danger svg {
    stroke: var(--color-secondary);
}

.why-icon.success {
    background: rgba(13, 148, 136, 0.15);
}

.why-icon.success svg {
    stroke: var(--color-primary-light);
}

.why-icon svg {
    width: 28px;
    height: 28px;
}

.why-card-header h3 {
    font-size: 1.3rem;
}

.why-card-content h4 {
    font-size: 1.1rem;
    color: var(--color-primary-light);
    margin-bottom: 12px;
}

.why-card-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.problem-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.problem-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.problem-icon {
    font-size: 1.1rem;
}

.philosophy-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.philosophy-icon {
    font-size: 2rem;
}

.philosophy-content h4 {
    font-size: 1rem;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.philosophy-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-style: italic;
}

/* ========================================
   How Section
   ======================================== */
.how-section {
    background: var(--bg-darker);
}

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

.how-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

.how-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.how-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

.how-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.how-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.how-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Token Section
   ======================================== */
.token-section {
    background: var(--gradient-dark);
    overflow: hidden;
}

.token-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.token-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.token-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.token-3d {
    perspective: 1000px;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}


/* 3D Rotating Coin Image */
.token-coin {
    position: relative;
    width: 280px;
    height: 280px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.coin-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: coinSpin 10s linear infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes coinSpin {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}



.token-info {
    padding-right: 40px;
}

.token-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.token-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.token-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.token-feature:hover {
    background: rgba(251, 191, 36, 0.15);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.3rem;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-section {
    background: var(--bg-darker);
}

.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---- Premium Tab Button ---- */
.tab-btn {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
}

/* Shine sweep on hover */
.tab-btn-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 60%
    );
    transform: skewX(-15deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.tab-btn:hover .tab-btn-shine {
    left: 130%;
}

.tab-icon {
    font-size: 1.2rem;
    line-height: 1;
    filter: grayscale(0.4);
    transition: filter 0.25s ease, transform 0.25s ease;
}

/* Title */
.tab-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    transition: color 0.25s ease;
}

/* Chevron arrow */
.tab-btn-arrow {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.tab-btn-arrow svg {
    width: 12px;
    height: 12px;
    stroke: var(--text-muted);
    transition: stroke 0.25s ease;
}

/* ---- Hover State ---- */
.tab-btn:hover {
    border-color: rgba(13, 148, 136, 0.5);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.12);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.tab-btn:hover .tab-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.tab-btn:hover .tab-btn-arrow {
    border-color: rgba(13, 148, 136, 0.5);
    background: rgba(13, 148, 136, 0.1);
    transform: translateX(2px);
}

.tab-btn:hover .tab-btn-arrow svg {
    stroke: var(--color-primary-light);
}

/* ---- Active State ---- */
.tab-btn.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.25) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-color: rgba(13, 148, 136, 0.6);
    color: white;
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.22), 0 0 0 1px rgba(13, 148, 136, 0.35) inset;
    transform: translateY(-2px);
}

.tab-btn.active .tab-icon {
    filter: grayscale(0);
}

.tab-btn.active .tab-title {
    color: white;
}

.tab-btn.active .tab-btn-arrow {
    background: rgba(13, 148, 136, 0.4);
    border-color: rgba(13, 148, 136, 0.7);
}

.tab-btn.active .tab-btn-arrow svg {
    stroke: white;
}

/* Animated left border accent for active */
.tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transform: scaleY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.tab-btn.active::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Pulse ring for active */
.tab-btn.active::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 148, 136, 0.35);
    animation: tabPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tabPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.025); }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.project-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, var(--bg-card) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.project-card.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, var(--bg-card) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--gradient-gold);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.project-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   KurdPass (Ekosistem Altyapı) Tab
   ======================================== */
.kurdpass-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(13, 148, 136, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.kurdpass-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.kurdpass-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.kurdpass-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.kurdpass-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    text-align: center;
}

.kurdpass-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.kurdpass-card-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

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

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

.kurdpass-card h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.kurdpass-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.2) 0%, var(--bg-dark) 50%, rgba(139, 92, 246, 0.2) 100%);
    text-align: center;
    padding: 100px 0;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ========================================
   Join Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 90vw;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(10, 15, 26, 0.98));
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(13, 148, 136, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: #0f172a;
    color: var(--text-primary);
    padding: 8px 12px;
}

/* Checkbox Grid (Category selector) */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
    line-height: 1.3;
}

.checkbox-card:hover {
    border-color: rgba(13, 148, 136, 0.5);
    background: rgba(13, 148, 136, 0.07);
    color: var(--text-primary);
}

.checkbox-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
    padding: 0;
}

.checkbox-card input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox-card input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.checkbox-card:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(13, 148, 136, 0.12);
    color: var(--text-primary);
}

.checkbox-grid.invalid .checkbox-card {
    border-color: #f43f5e;
}

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

.form-group input.invalid,
.form-group select.invalid {
    border-color: #f43f5e;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.form-message {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 12px;
    min-height: 20px;
    transition: var(--transition-base);
}

.form-message.success {
    color: var(--color-primary-light);
}

.form-message.error {
    color: #f43f5e;
}

.modal-submit {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 16px;
    cursor: pointer;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Boşluk biraz azaltıldı */
    align-items: flex-start;
    /* Sol hiza garanti */
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-logo {
    width: auto;
    height: 36px;
    object-fit: contain;
}

.footer-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0;
    margin-left: 14px;
    /* Optik hizalama */
    line-height: 1.2;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-base);
}

.footer-col a:hover {
    color: var(--color-primary-light);
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .map-container {
        width: 400px;
        height: 300px;
    }

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

    .vision-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }

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

    .token-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .token-info {
        padding-right: 0;
        order: 2;
    }

    .token-visual {
        order: 1;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .map-container {
        width: 90vw;
        height: 68vw;
        max-width: 360px;
        max-height: 270px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 26, 0.98);
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .vision-card:last-child {
        grid-column: auto;
        max-width: none;
    }

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

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

    .token-features {
        grid-template-columns: 1fr;
    }

    .projects-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 18px;
        white-space: normal;
    }

    .tab-title {
        flex: 1;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .hero {
        padding: 100px 16px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }

    .mission-card {
        padding: 32px 24px;
    }

    .why-card {
        padding: 28px;
    }

    .how-card {
        padding: 24px;
    }

    .project-card {
        padding: 24px;
    }
}

/* ========================================
   Reduced Motion Support
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Floating Language Switcher Widget (GFG-style)
   ======================================== */
.float-lang-widget {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.float-lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    min-width: 100px;
    letter-spacing: 0.01em;
}

.float-lang-trigger:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.float-flag-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.float-flag {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.float-trigger-label {
    flex: 1;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a2e;
}

.float-caret {
    width: 14px;
    height: 14px;
    stroke: #555;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.float-lang-widget.open .float-caret {
    transform: rotate(180deg);
}

/* Dropdown list */
.float-lang-list {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 8px;

    /* Hidden by default */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        transform 0.3s ease;
}

.float-lang-widget.open .float-lang-list {
    max-height: 220px;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.float-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1a1a2e;
    text-align: left;
    width: 100%;
    min-width: 120px;
    transition: background 0.15s ease, color 0.15s ease;
}

.float-lang-item:last-child {
    border-bottom: none;
}

.float-lang-item:hover {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
}

.float-lang-item.active-lang {
    background: rgba(13, 148, 136, 0.12);
    color: #0d9488;
    font-weight: 700;
}

.float-lang-name {
    flex: 1;
}

@media (max-width: 480px) {
    .float-lang-widget {
        bottom: 16px;
        left: 16px;
    }
}

/* ========================================
   Cookie Consent Popup
   ======================================== */
.cookie-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 450px;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.cookie-popup.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-link {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    margin-left: 4px;
}

.cookie-link:hover {
    color: var(--color-primary);
}

.cookie-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-accept, .cookie-reject {
    white-space: nowrap;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.cookie-reject {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cookie-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cookie-popup {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .cookie-actions {
        width: 100%;
        flex-direction: column-reverse;
    }
    .cookie-accept, .cookie-reject {
        width: 100%;
    }
}