/* ==========================================
   Hat Oma Nähet - Premium Frontend Styles
   Professional Design System
   
   Original Farbpalette:
   #efce5d - Gold (Primary)
   #ecd68f - Light Gold
   #f1f1ed - Light Gray (BG)
   #c1d2d7 - Light Blue
   #d6c8d3 - Light Purple
   #93a8b7 - Medium Blue
   #74a4a8 - Teal
   #b7a5b7 - Purple
   #668f97 - Dark Teal
   #6d507b - Dark Purple
========================================== */

:root {
    /* Original Color Palette - Default (Gold & Lila) */
    --color-primary: #efce5d;
    --color-primary-light: #ecd68f;
    --color-primary-dark: #d4b84a;
    --color-bg-light: #f1f1ed;
    --color-bg-cream: #e8e8e4;
    --color-blue-light: #c1d2d7;
    --color-purple-light: #d6c8d3;
    --color-blue-medium: #93a8b7;
    --color-teal: #74a4a8;
    --color-purple: #b7a5b7;
    --color-teal-dark: #668f97;
    --color-purple-dark: #6d507b;
    --color-text: #2d2d2d;
    --color-text-light: #555555;
    --color-text-muted: #888888;
    --color-footer-bg: #4a3860;
    --color-footer-dark: #2d2040;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(239, 206, 93, 0.4);
    
    /* Spacing & Sizing */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Color Themes - Basierend auf Originalfarben
========================================== */

/* Theme 2: Teal & Gold (Blau-Grün betont) */
[data-theme="teal"] {
    --color-primary: #74a4a8;
    --color-primary-light: #93b8bc;
    --color-primary-dark: #668f97;
    --color-bg-light: #e8f0f1;
    --color-bg-cream: #dce8ea;
    --color-blue-light: #c1d2d7;
    --color-purple-light: #cdd8dc;
    --color-teal: #74a4a8;
    --color-purple: #93a8b7;
    --color-teal-dark: #5a8085;
    --color-purple-dark: #4a6a75;
    --color-footer-bg: #2a4550;
    --color-footer-dark: #1a2d35;
    --shadow-glow: 0 0 40px rgba(116, 164, 168, 0.4);
}

/* Theme 3: Purple Dream (Lila betont) */
[data-theme="purple"] {
    --color-primary: #b7a5b7;
    --color-primary-light: #d6c8d3;
    --color-primary-dark: #9a889a;
    --color-bg-light: #f0edf0;
    --color-bg-cream: #e5e0e5;
    --color-blue-light: #d6c8d3;
    --color-purple-light: #e0d5e0;
    --color-teal: #9a889a;
    --color-purple: #b7a5b7;
    --color-teal-dark: #7a687a;
    --color-purple-dark: #6d507b;
    --color-footer-bg: #4a3860;
    --color-footer-dark: #2d2040;
    --shadow-glow: 0 0 40px rgba(183, 165, 183, 0.4);
}

/* Theme 4: Ocean Blue (Blau betont) */
[data-theme="ocean"] {
    --color-primary: #93a8b7;
    --color-primary-light: #c1d2d7;
    --color-primary-dark: #7a90a0;
    --color-bg-light: #e8eef2;
    --color-bg-cream: #dce5eb;
    --color-blue-light: #c1d2d7;
    --color-purple-light: #cdd5dc;
    --color-teal: #668f97;
    --color-purple: #93a8b7;
    --color-teal-dark: #5a7a85;
    --color-purple-dark: #4a5a6a;
    --color-footer-bg: #2a3a48;
    --color-footer-dark: #1a2530;
    --shadow-glow: 0 0 40px rgba(147, 168, 183, 0.4);
}

/* Theme 5: Warm Sunset (Gold & Lila warm) */
[data-theme="sunset"] {
    --color-primary: #efce5d;
    --color-primary-light: #f5dc88;
    --color-primary-dark: #d4b040;
    --color-bg-light: #f5f0e8;
    --color-bg-cream: #ebe5d8;
    --color-blue-light: #e0d5c5;
    --color-purple-light: #e5d8d8;
    --color-teal: #a89080;
    --color-purple: #c0a5a5;
    --color-teal-dark: #8a7060;
    --color-purple-dark: #7a5565;
    --color-footer-bg: #453530;
    --color-footer-dark: #2a2018;
    --shadow-glow: 0 0 40px rgba(239, 206, 93, 0.5);
}

/* Theme 6: Soft Rose (Rosa-Lila Töne) */
[data-theme="rose"] {
    --color-primary: #d6c8d3;
    --color-primary-light: #e8dce5;
    --color-primary-dark: #baa8b5;
    --color-bg-light: #f5f0f3;
    --color-bg-cream: #ebe5e8;
    --color-blue-light: #e0d5da;
    --color-purple-light: #e8dce5;
    --color-teal: #b0a0a8;
    --color-purple: #c5b0c0;
    --color-teal-dark: #907888;
    --color-purple-dark: #6d507b;
    --color-footer-bg: #453548;
    --color-footer-dark: #2a2030;
    --shadow-glow: 0 0 40px rgba(214, 200, 211, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Premium Navigation
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-teal-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.logo .logo-text {
    position: relative;
    padding: 3px 0;
}

.logo .logo-text::before,
.logo .logo-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-teal-dark);
}

.logo .logo-text::before {
    top: 0;
}

.logo .logo-text::after {
    bottom: 0;
}

.logo:hover {
    color: var(--color-teal);
}

.logo:hover .logo-text::before,
.logo:hover .logo-text::after {
    background: var(--color-teal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: var(--color-purple-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Theme Switcher in Navigation */
.nav-theme-switcher {
    position: relative;
    margin-left: 10px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.rainbow-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff6b6b,
        #ffd93d,
        #6bcb77,
        #4d96ff,
        #9b59b6,
        #ff6b6b
    );
    animation: rainbow-spin 8s linear infinite;
}

@keyframes rainbow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.theme-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-radius: 3px;
}

.nav-theme-switcher:hover .theme-dropdown,
.nav-theme-switcher.active .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: left;
}

.theme-option:hover {
    background: var(--color-bg-cream);
}

.theme-option.active {
    background: var(--color-primary-light);
}

.theme-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--color-bg-cream);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-purple-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================
   Premium Hero Section with Background Slider
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.hero-slide.active {
    opacity: 1;
    animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.hero-fallback {
    background: linear-gradient(135deg, 
        var(--color-purple-dark) 0%, 
        var(--color-teal-dark) 50%, 
        var(--color-primary-dark) 100%);
}

/* Premium Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(45, 45, 45, 0.4) 0%,
        rgba(45, 45, 45, 0.5) 50%,
        rgba(45, 45, 45, 0.7) 100%
    );
    z-index: 1;
}

/* Subtle Pattern Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 24px;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 .hero-brand {
    position: relative;
    padding: 3px 0;
    display: inline-block;
}

.hero h1 .hero-brand::before,
.hero h1 .hero-brand::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero h1 .hero-brand::before {
    top: 0;
}

.hero h1 .hero-brand::after {
    bottom: 0;
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 4;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.hero-indicator::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-indicator.active {
    background: var(--color-primary);
}

.hero-indicator.active::after {
    border-color: var(--color-primary);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.hero-scroll span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.4);
    font-weight: 600;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(212, 168, 83, 0.5);
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(90, 154, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(90, 154, 160, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    color: white;
    box-shadow: 0 6px 25px rgba(155, 138, 158, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(155, 138, 158, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ==========================================
   Premium About Section
========================================== */
.about {
    padding: 120px 0;
    background: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-purple-light), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: var(--color-text);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.25);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-purple-dark);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header .section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Legacy heading styles */
.about h2, .articles h2, .contact h2, .map-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    color: var(--color-purple-dark);
    margin-bottom: 20px;
}

.about h2::after, .articles h2::after, .contact h2::after, .map-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    margin: 20px auto 0;
    border-radius: 2px;
}

.about-content {
    margin-top: 60px;
}

.about-text {
    max-width: 750px;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 50px 40px;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-teal));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrap {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.feature:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
}

.feature h3 {
    font-family: var(--font-heading);
    color: var(--color-purple-dark);
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: 600;
}

.feature p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==========================================
   Premium Articles Section
========================================== */
.articles {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg-cream) 100%);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, transparent 50%, var(--color-primary) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.article-card:hover::before {
    opacity: 1;
}

.article-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-blue-light) 100%);
    font-size: 4rem;
}

.article-category {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-content {
    padding: 32px;
}

.article-content h3 {
    font-family: var(--font-heading);
    color: var(--color-purple-dark);
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Article Sizes */
.article-sizes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

.sizes-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-right: 4px;
}

.size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    background: var(--color-bg-cream);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.article-card:hover .size-badge {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
}

.no-articles {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    color: var(--color-text-light);
    box-shadow: var(--shadow);
}

/* ==========================================
   Premium Contact Section
========================================== */
.contact {
    padding: 120px 0;
    background: linear-gradient(180deg, white 0%, var(--color-bg-cream) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-purple-light), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary-light);
    color: var(--color-purple-dark);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-purple-dark);
    margin-bottom: 15px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Premium Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-teal), var(--color-primary));
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-card:hover::after {
    transform: scaleX(1);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: white;
    box-shadow: 0 6px 20px rgba(90, 154, 160, 0.3);
}

.contact-card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-purple-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-card-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Premium Map Container */
.map-container {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-header {
    padding: 22px 28px;
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-teal-dark) 100%);
}

.map-header h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin: 0;
    font-weight: 600;
}

.map-frame {
    position: relative;
}

.map-frame iframe {
    display: block;
}

.btn-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: white;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-route:hover {
    background: linear-gradient(135deg, var(--color-teal-dark) 0%, var(--color-purple-dark) 100%);
}

.btn-route:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-route svg {
    flex-shrink: 0;
}

/* Premium Contact Form Container */
.contact-right {
    position: sticky;
    top: 100px;
}

.contact-form-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    padding: 35px;
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-teal-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 600;
    position: relative;
}

.form-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
}

.contact-form {
    padding: 35px;
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-purple-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #eaeaea;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-bg-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(116, 164, 168, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--color-purple-dark) 0%, var(--color-teal-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 80, 123, 0.3);
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.success-message h3 {
    font-family: var(--font-heading);
    color: var(--color-purple-dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
}

/* Legacy styles - keeping for backwards compatibility */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.info-item:hover {
    background: var(--color-blue-light);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: var(--font-heading);
    color: var(--color-purple-dark);
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 0 30px 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-right {
        position: static;
    }
    
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Map Section (Legacy)
========================================== */
.map-section {
    padding: 80px 0;
    background: var(--color-blue-light);
}

.map-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

#map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#map iframe {
    display: block;
}

.route-calculator {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.route-calculator h3 {
    font-family: var(--font-heading);
    color: var(--color-purple-dark);
    margin-bottom: 20px;
}

/* ==========================================
   Premium Footer
========================================== */
.footer {
    background: linear-gradient(135deg, var(--color-footer-bg) 0%, var(--color-footer-dark) 100%);
    color: white;
    padding: 100px 0 40px;
    position: relative;
    transition: background 0.5s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-teal) 50%, var(--color-purple) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo h3 .footer-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.footer-logo h3 .footer-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.footer-logo h3 .footer-brand {
    position: relative;
    padding: 3px 0;
    display: inline-block;
}

.footer-logo h3 .footer-brand::before,
.footer-logo h3 .footer-brand::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: white;
}

.footer-logo h3 .footer-brand::before {
    top: 0;
}

.footer-logo h3 .footer-brand::after {
    bottom: 0;
}

.footer-logo p {
    opacity: 0.75;
    line-height: 1.8;
    max-width: 320px;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    margin-bottom: 28px;
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.75;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transition: var(--transition);
    transform: translateX(-10px);
    color: var(--color-primary);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact p {
    opacity: 0.75;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
========================================== */
@media (max-width: 992px) {
    .contact-grid,
    .contact-wrapper,
    .map-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-header h2,
    .about h2, .articles h2, .contact h2, .map-section h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* ==========================================
   Scroll Animations
========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.article-card:nth-child(1) { transition-delay: 0.1s; }
.article-card:nth-child(2) { transition-delay: 0.2s; }
.article-card:nth-child(3) { transition-delay: 0.3s; }
.article-card:nth-child(4) { transition-delay: 0.4s; }
.article-card:nth-child(5) { transition-delay: 0.5s; }
.article-card:nth-child(6) { transition-delay: 0.6s; }

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }

.contact-card:nth-child(1) { transition-delay: 0.1s; }
.contact-card:nth-child(2) { transition-delay: 0.2s; }
.contact-card:nth-child(3) { transition-delay: 0.3s; }
.contact-card:nth-child(4) { transition-delay: 0.4s; }

/* ==========================================
   Article Card Clickable Styles
========================================== */
.article-card {
    cursor: pointer;
}

.article-card .article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(109, 80, 123, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover .article-overlay {
    opacity: 1;
}

.article-card .view-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-purple-dark);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.article-card:hover .view-icon {
    transform: scale(1);
}

/* ==========================================
   Article Modal
========================================== */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 1100px;
    width: 95%;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.article-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.1);
    background: var(--color-bg-light);
}

.modal-close svg {
    color: var(--color-text);
}

.modal-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 500px;
}

.modal-image {
    position: relative;
    background: var(--color-bg-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    padding: 20px;
    background: var(--color-bg-light);
}

.modal-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--color-bg-light), var(--color-purple-light));
}

.modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: var(--color-text);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.modal-details h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-purple-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-description {
    flex: 1;
    margin-bottom: 24px;
}

.modal-description p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Modal Sizes */
.modal-sizes {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--color-bg-light);
}

.modal-sizes .sizes-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.modal-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 14px;
    background: var(--color-bg-cream);
    border: 2px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
}

.modal-size-badge:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.modal-actions {
    padding-top: 20px;
    border-top: 1px solid var(--color-bg-light);
}

.modal-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-purple-dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-actions .btn-primary:hover {
    background: var(--color-purple);
    transform: translateY(-2px);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-container {
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        width: 100%;
        min-height: auto;
    }
    
    .modal-image img {
        width: 100%;
        max-height: 50vh;
        object-fit: contain;
        padding: 16px;
    }
    
    .modal-placeholder {
        min-height: 200px;
    }
    
    .modal-details {
        padding: 24px;
    }
    
    .modal-details h2 {
        font-size: 1.5rem;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .article-modal {
        padding: 10px;
    }
    
    .modal-container {
        width: 100%;
        border-radius: var(--radius);
    }
    
    .modal-image img {
        max-height: 40vh;
        padding: 12px;
    }
    
    .modal-details {
        padding: 20px;
    }
    
    .modal-details h2 {
        font-size: 1.3rem;
    }
    
    .modal-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }
}