/**
 * IMAVAIS.COM - Premium Stylesheet
 * ================================
 * A distinctive, professional design for the Strategic Explorer
 * Theme: Warm Luxury with Editorial Feel
 */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Colors - Light Theme */
    --color-bg: #faf8f5;
    --color-bg-alt: #f3efe9;
    --color-surface: #ffffff;
    --color-text: #1a1614;
    --color-text-muted: #5c534b;
    --color-text-light: #8c8279;
    
    /* Accent Colors */
    --color-accent: #c45d35;
    --color-accent-hover: #a84d2a;
    --color-accent-light: #f8e6df;
    --color-secondary: #2d5a4a;
    --color-secondary-light: #e3ebe8;
    
    /* Neutral */
    --color-border: #e8e2da;
    --color-border-dark: #d1c9bf;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 22, 20, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 22, 20, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 22, 20, 0.12);
    --shadow-xl: 0 24px 60px rgba(26, 22, 20, 0.16);
    --shadow-glow: 0 0 40px rgba(196, 93, 53, 0.15);
    
    /* Spacing - More compact */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Header - Ultra Compact */
    --header-height: 40px;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-bg: #141210;
    --color-bg-alt: #1e1b18;
    --color-surface: #252220;
    --color-text: #f5f2ef;
    --color-text-muted: #a8a099;
    --color-text-light: #706860;
    --color-border: #3a352f;
    --color-border-dark: #4a443c;
    --color-accent-light: #3d2820;
    --color-secondary-light: #1f302a;
}

/* Dark mode: Stats section */
[data-theme="dark"] .stats-section {
    background: #1a1614;
}

[data-theme="dark"] .stat-label {
    color: var(--color-text-muted);
}

/* Dark mode: Contact section */
[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, #1a1614 0%, #0f0d0c 100%);
}

/* Dark mode: Footer */
[data-theme="dark"] .site-footer {
    background: #0f0d0c;
    color: var(--color-text-muted);
}

/* Dark mode: Page header */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #1a1614 0%, #0f0d0c 100%);
}

/* Dark mode: Map */
[data-theme="dark"] .map-container {
    filter: invert(1) hue-rotate(180deg);
}

[data-theme="dark"] .map-container .leaflet-marker-icon,
[data-theme="dark"] .map-container .custom-div-icon img {
    filter: invert(1) hue-rotate(180deg);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    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);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

[data-theme="dark"] body::before {
    opacity: 0.05;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Focus states */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: white;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-muted);
}

.text-accent {
    color: var(--color-accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    transition: all var(--transition-base);
}

[data-theme="dark"] .site-header {
    background: rgba(20, 18, 16, 0.9);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-top: 2px; /* Slight adjustment for visual centering */
}

/* Logo */
.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--color-accent);
}

.logo-dot {
    color: var(--color-accent);
}

/* Navigation */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    transition: color var(--transition-fast);
}

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

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

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

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-toggle.active span {
    background: #fff;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--color-text);
    box-shadow: var(--shadow-md);
    z-index: 99;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1614 0%, #2d2420 50%, #1a1614 100%);
    z-index: -2;
}

.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-color: #1a1614;
    opacity: 0.5;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 22, 20, 0.6), rgba(45, 36, 32, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) 0;
    color: #fff;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--color-accent);
}

.hero h1 {
    color: #fff;
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.hero-name {
    display: block;
    background: linear-gradient(135deg, #fff 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(196, 93, 53, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 93, 53, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text .highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* Skill Cards - Base */
.skills-grid {
    display: grid;
    gap: var(--space-md);
}

.skill-card {
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.skill-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
}

.skill-card h4 {
    margin: 0;
    font-size: 1rem;
}

.skill-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* =========================
   STYLE: DARK & BOLD
   ========================= */
.skills-grid.style-dark .skill-card {
    background: linear-gradient(135deg, #1a1614 0%, #2d2420 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-grid.style-dark .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(196, 93, 53, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skills-grid.style-dark .skill-card:hover {
    border-color: rgba(196, 93, 53, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skills-grid.style-dark .skill-card:hover::before {
    opacity: 1;
}

.skills-grid.style-dark .skill-icon {
    background: rgba(196, 93, 53, 0.15);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(196, 93, 53, 0.3);
}

.skills-grid.style-dark .skill-card h4 {
    color: #fff;
}

.skills-grid.style-dark .skill-card p {
    color: rgba(255, 255, 255, 0.7);
}

/* =========================
   STYLE: LIGHT & CLEAN
   ========================= */
.skills-grid.style-light .skill-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.skills-grid.style-light .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-slow);
}

.skills-grid.style-light .skill-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.skills-grid.style-light .skill-card:hover::before {
    transform: scaleY(1);
}

.skills-grid.style-light .skill-icon {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.skills-grid.style-light .skill-card h4 {
    color: var(--color-text);
}

.skills-grid.style-light .skill-card p {
    color: var(--color-text-muted);
}

/* =========================
   STYLE: GLASSMORPHISM
   ========================= */
.skills-grid.style-glass .skill-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.skills-grid.style-glass .skill-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.skills-grid.style-glass .skill-icon {
    background: linear-gradient(135deg, rgba(196, 93, 53, 0.2), rgba(42, 157, 143, 0.2));
    color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(196, 93, 53, 0.2);
}

.skills-grid.style-glass .skill-card h4 {
    color: var(--color-text);
}

.skills-grid.style-glass .skill-card p {
    color: var(--color-text-muted);
}

/* =========================
   STYLE: MINIMAL LINES
   ========================= */
.skills-grid.style-minimal .skill-card {
    background: transparent;
    border: none;
    border-left: 3px solid var(--color-accent);
    border-radius: 0;
    padding-left: var(--space-xl);
}

.skills-grid.style-minimal .skill-card:hover {
    background: rgba(196, 93, 53, 0.05);
    border-left-width: 5px;
    padding-left: calc(var(--space-xl) - 2px);
}

.skills-grid.style-minimal .skill-icon {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.skills-grid.style-minimal .skill-card h4 {
    color: var(--color-text);
}

.skills-grid.style-minimal .skill-card p {
    color: var(--color-text-muted);
}

/* =========================
   STYLE: GRADIENT ACCENT
   ========================= */
.skills-grid.style-gradient .skill-card {
    background: var(--color-surface);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)), 
                      linear-gradient(135deg, var(--color-accent), var(--color-teal));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.skills-grid.style-gradient .skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(196, 93, 53, 0.2);
}

.skills-grid.style-gradient .skill-icon {
    background: linear-gradient(135deg, #c45d35, #2a9d8f) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(196, 93, 53, 0.3);
}

.skills-grid.style-gradient .skill-icon i {
    color: #fff !important;
}

.skills-grid.style-gradient .skill-card h4 {
    color: var(--color-text);
}

.skills-grid.style-gradient .skill-card p {
    color: var(--color-text-muted);
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: var(--color-text);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: var(--space-2xl) 0;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   TRAVEL MAP SECTION
   ======================================== */
.travel-section {
    background: var(--color-bg-alt);
}

#worldMap {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.countries-list {
    margin-top: var(--space-xl);
}

.continent-group {
    margin-bottom: var(--space-lg);
}

.continent-name {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.continent-name::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.country-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.country-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.country-tag:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.country-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Custom Leaflet Markers */
.custom-div-icon {
    background: transparent !important;
    border: none !important;
}

.custom-marker {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-marker:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.custom-marker img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-body);
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.9rem;
}

.leaflet-popup-tip {
    background: var(--color-surface);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: linear-gradient(135deg, var(--color-text) 0%, #2d2420 100%);
    color: #fff;
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-2xl);
    align-items: center;
}

.contact-info h2 {
    color: #fff;
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--color-accent);
}

.contact-link i {
    width: 20px;
    color: var(--color-accent);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-xl) 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: #fff;
}

/* ========================================
   PAGE HEADER (For inner pages)
   ======================================== */
.page-header {
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--color-text) 0%, #2d2420 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--color-accent) 0%, transparent 60%);
    opacity: 0.1;
}

.page-header h1 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* ========================================
   CARDS (Blog, Gallery)
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card-image-placeholder {
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
}

.card-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
}

.card-content {
    padding: var(--space-xl);
}

.card-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: var(--color-accent);
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: var(--space-md);
}

/* ========================================
   ARTICLE (Single Post/Page)
   ======================================== */
.article-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(135deg, var(--color-text) 0%, #2d2420 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.article-hero-image {
    position: absolute;
    inset: 0;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 22, 20, 0.4), rgba(26, 22, 20, 0.8));
}

.article-container {
    background: var(--color-surface);
    margin-top: -80px;
    position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-3xl) var(--space-2xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--space-xl);
    transition: gap var(--transition-fast);
}

.back-link:hover {
    gap: var(--space-md);
}

.article-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.article-title {
    margin-bottom: var(--space-lg);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-xl);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.85;
}

.article-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.article-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content p {
    margin-bottom: var(--space-lg);
}

.article-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-xl);
    margin: var(--space-xl) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

.article-content ul,
.article-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.article-content li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-muted);
}

/* Related Posts */
.related-section {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-alt);
}

.related-section h3 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.related-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.related-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.related-card h4 {
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.related-card:hover h4 {
    color: var(--color-accent);
}

.related-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ========================================
   GALLERY GRID
   ======================================== */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.photo-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--color-bg-alt);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
}

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

.photo-overlay i {
    color: #fff;
    font-size: 1.3rem;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-border);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-light);
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SCROLL PROGRESS
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    z-index: 101;
    transition: width 50ms linear;
    box-shadow: 0 0 10px rgba(196, 93, 53, 0.5);
}

/* ========================================
   IMAGE PROTECTION
   ======================================== */
.protected-image,
.card-image img,
.photo-item img,
.lightbox-content img,
.article-hero-image img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.card-image,
.photo-item,
.article-hero-image {
    -webkit-touch-callout: none;
}

.card-image::after,
.photo-item::after,
.article-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 36px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .logo {
        font-size: 1rem;
    }

    /* Mobile Menu Overlay */
    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: #1a1614 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        z-index: 999 !important;
        padding: var(--space-2xl) !important;
        margin: 0 !important;
    }

    [data-theme="dark"] .nav-links {
        background: #0f0d0c !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        height: auto !important;
        display: block !important;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85) !important;
        display: block !important;
        padding: 1.25rem 1rem !important;
        transition: all var(--transition-fast);
        letter-spacing: 0.02em;
        height: auto !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--color-accent) !important;
        background: rgba(196, 93, 53, 0.15);
    }

    .nav-links a::after {
        display: none !important;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001 !important;
        position: relative;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero-content {
        padding: var(--space-lg) 0;
    }
    
    .hero-eyebrow {
        font-size: 0.65rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero h1 {
        margin-bottom: var(--space-sm);
    }
    
    .hero-tagline {
        margin-bottom: var(--space-lg);
    }
    
    .hero-scroll {
        bottom: var(--space-md);
    }
    
    .hero-scroll-line {
        height: 30px;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .theme-toggle,
    .back-to-top {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .theme-toggle {
        bottom: var(--space-sm);
        right: var(--space-sm);
    }
    
    .back-to-top {
        bottom: var(--space-sm);
        left: var(--space-sm);
    }
    
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }
    
    #worldMap {
        height: 300px;
        border-radius: var(--radius-md);
    }
    
    .contact-grid {
        text-align: center;
    }
    
    .contact-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .stat-item {
        padding: var(--space-lg);
    }
}
