/* ═══════════════════════════════════════════════════════════════
   MILOŠ SLUKA — GLASSMORPHISM DESIGN SYSTEM v2.0
   ═══════════════════════════════════════════════════════════════ */

/* ── ROOT VARIABLES ─────────────────────────────────────────── */
:root {
    --primary:       #104788;
    --primary-dark:  #0a2e5a;
    --primary-light: #1a6fd4;
    --accent:        #d4af37;
    --accent-light:  #f0cc5a;
    --text-light:    #ffffff;
    --text-dark:     #1a1a2e;
    --bg-light:      #eef2f7;
    --bg-dark:       #070b14;
    --card-light:    rgba(255,255,255,0.65);
    --card-dark:     rgba(255,255,255,0.04);

    /* Glass tokens */
    --glass-light:   rgba(255,255,255,0.60);
    --glass-dark:    rgba(255,255,255,0.05);
    --glass-border-light: rgba(255,255,255,0.80);
    --glass-border-dark:  rgba(255,255,255,0.10);
    --blur:          blur(18px);
    --blur-sm:       blur(10px);

    --shadow-light:  0 8px 40px rgba(16,71,136,0.10);
    --shadow-dark:   0 8px 40px rgba(0,0,0,0.50);
    --glow-primary:  0 0 40px rgba(16,71,136,0.25);
    --glow-accent:   0 0 40px rgba(212,175,55,0.30);

    --radius-xl:  24px;
    --radius-lg:  18px;
    --radius-md:  14px;
    --radius-pill: 50px;
    --transition: all 0.35s cubic-bezier(0.25,0.8,0.25,1);
}

/* ── FONT ────────────────────────────────────────────────────── */
@font-face {
    font-family: 'FjallaOne';
    src: url('../FjallaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: 'FjallaOne', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* ── BODY & ANIMATED BACKGROUND ─────────────────────────────── */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    position: relative;
}

/* Animated orbs — light mode */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: orbFloat 18s ease-in-out infinite alternate;
}
body::before {
    width: 700px; height: 700px;
    top: -200px; left: -200px;
    background: radial-gradient(circle, rgba(16,71,136,0.18) 0%, transparent 70%);
}
body::after {
    width: 600px; height: 600px;
    bottom: -150px; right: -150px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    animation-delay: -9s;
}

@keyframes orbFloat {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(40px,30px) scale(1.08); }
    100% { transform: translate(-20px,50px) scale(0.95); }
}

/* Dark mode body */
body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
}
body.dark-mode::before {
    background: radial-gradient(circle, rgba(16,71,136,0.35) 0%, transparent 70%);
}
body.dark-mode::after {
    background: radial-gradient(circle, rgba(212,175,55,0.20) 0%, transparent 70%);
}

/* All content above orbs */
body > * { position: relative; z-index: 1; }

/* ── NAVIGATION ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-light);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    z-index: 1000;
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: var(--transition);
}

body.dark-mode nav {
    background: rgba(10,15,28,0.55);
    border-color: var(--glass-border-dark);
    box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255,255,255,0.06);
}

.logo img {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(16,71,136,0.2));
}
.logo img:hover { transform: scale(1.06); }

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.25s;
    color: var(--text-dark);
}
body.dark-mode .nav-links a { color: rgba(255,255,255,0.85); }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--primary); }
body.dark-mode .nav-links a:hover { color: var(--accent); }

/* Theme switch */
.theme-switch {
    cursor: pointer;
    font-size: 1.1rem;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(16,71,136,0.08);
    border: 1px solid rgba(16,71,136,0.15);
    color: var(--primary);
    transition: var(--transition);
    margin-left: 0.5rem;
    flex-shrink: 0;
}
.theme-switch:hover {
    background: var(--primary);
    color: white;
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(16,71,136,0.35);
}
body.dark-mode .theme-switch {
    background: rgba(212,175,55,0.10);
    border-color: rgba(212,175,55,0.25);
    color: var(--accent);
}
body.dark-mode .theme-switch:hover {
    background: var(--accent);
    color: var(--bg-dark);
    box-shadow: var(--glow-accent);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 10% 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dce8f5 0%, #c8d8ee 50%, #e8e0f0 100%);
}
body.dark-mode .hero {
    background: radial-gradient(ellipse at 25% 50%, #0f1e3d 0%, #070b14 60%, #0d0a1a 100%);
}

/* Decorative glass blobs in hero */
.hero::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    top: 10%; right: 5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,71,136,0.12) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}
body.dark-mode .hero::before {
    background: radial-gradient(circle, rgba(26,111,212,0.25) 0%, transparent 70%);
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 650px;
    animation: slideInLeft 0.9s cubic-bezier(0.215,0.610,0.355,1.000) both;
    margin-bottom: 4rem;
}

.hero h4 {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 0.8rem;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}
body.dark-mode .hero h4 { color: var(--accent); }

.hero h1 {
    font-size: 4.2rem;
    line-height: 1.05;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}
body.dark-mode .hero h1 { color: #fff; }

.hero .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.75;
    font-weight: 300;
    line-height: 1.7;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    animation: fadeIn 1.4s ease both;
}
.hero-image img {
    max-height: 95%;
    width: auto;
    filter: drop-shadow(-20px 10px 50px rgba(16,71,136,0.25));
    z-index: 2;
    transition: transform 0.5s ease;
}
.hero-image:hover img { transform: scale(1.02); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary, .btn-calc {
    display: inline-block;
    padding: 0.95rem 2.4rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(16,71,136,0.30), inset 0 1px 0 rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}
.btn-primary::before, .btn-calc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    border-radius: inherit;
    pointer-events: none;
}
.btn-primary:hover, .btn-calc:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(16,71,136,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

body.dark-mode .btn-primary,
body.dark-mode .btn-calc {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #0a0e1a;
    box-shadow: 0 8px 24px rgba(212,175,55,0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-calc:hover {
    box-shadow: 0 14px 36px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.btn-white {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1.1rem 3rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: var(--blur-sm);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.40);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}
.btn-white:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(212,175,55,0.40);
}

/* ── CONTENT SECTIONS ────────────────────────────────────────── */
.section-container {
    padding: 6rem 10%;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}
.section-container-sub {
    margin-top: 30px;
    padding-top: 2rem;
}

/* ── SERVICE CARDS ───────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--glass-light);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.85);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

body.dark-mode .card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
    box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255,255,255,0.06);
}
body.dark-mode .card::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(16,71,136,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}
body.dark-mode .card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}
body.dark-mode .card h3 { color: var(--accent); }

.card p {
    margin-bottom: 2rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
body.dark-mode .card p { color: rgba(255,255,255,0.55); }

.card-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(16,71,136,0.10) 0%, rgba(212,175,55,0.10) 100%);
    border: 1px solid rgba(16,71,136,0.12);
    backdrop-filter: var(--blur-sm);
}
body.dark-mode .card-icon {
    background: linear-gradient(135deg, rgba(16,71,136,0.20) 0%, rgba(212,175,55,0.15) 100%);
    border-color: rgba(212,175,55,0.15);
}

.card i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card .btn-primary:hover { transform: none; }
body.dark-mode .card .btn-primary:hover { transform: none; }

/* ── CALCULATOR CONTAINER ────────────────────────────────────── */
.calculator-container {
    background: var(--glass-light);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--shadow-light), inset 0 1px 0 rgba(255,255,255,0.9);
    animation: fadeInUp 0.8s cubic-bezier(0.2,0.8,0.2,1) forwards;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.calculator-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

body.dark-mode .calculator-container {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.07);
    box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255,255,255,0.06);
}
body.dark-mode .calculator-container::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* ── FORM INPUTS ─────────────────────────────────────────────── */
.input-group { margin-bottom: 1.6rem; }
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    opacity: 0.85;
}
body.dark-mode .input-group label { color: rgba(255,255,255,0.6); }

input, textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(16,71,136,0.15);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.70);
    backdrop-filter: var(--blur-sm);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
input:focus, textarea:focus {
    outline: none;
    background: rgba(255,255,255,0.90);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16,71,136,0.12), 0 2px 8px rgba(0,0,0,0.04);
}
input:hover { border-color: rgba(16,71,136,0.35); }

body.dark-mode input,
body.dark-mode textarea {
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
body.dark-mode input:focus,
body.dark-mode textarea:focus {
    background: rgba(255,255,255,0.09);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}
body.dark-mode input:hover { border-color: rgba(255,255,255,0.25); }

/* Native select hidden — replaced by custom */
select { display: none !important; }

/* ── CUSTOM SELECT ───────────────────────────────────────────── */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid rgba(16,71,136,0.15);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.70);
    backdrop-filter: var(--blur-sm);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.custom-select-trigger:hover {
    border-color: rgba(16,71,136,0.35);
    background: rgba(255,255,255,0.85);
}

body.dark-mode .custom-select-trigger {
    background: rgba(255,255,255,0.05);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
body.dark-mode .custom-select-trigger:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
}

.custom-select-arrow {
    color: var(--primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
}
body.dark-mode .custom-select-arrow { color: var(--accent); }
.custom-select-wrapper.open .custom-select-arrow { transform: rotate(180deg); }

.custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16,71,136,0.12);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background: rgba(255,255,255,0.90);
}
body.dark-mode .custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
    background: rgba(255,255,255,0.09);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(16,71,136,0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
    z-index: 200;
    box-shadow: 0 16px 48px rgba(16,71,136,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
body.dark-mode .custom-select-options {
    background: rgba(15,22,40,0.85);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.custom-select-option {
    padding: 13px 18px;
    cursor: pointer;
    font-size: 0.97rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.custom-select-option:last-child { border-bottom: none; }

body.dark-mode .custom-select-option {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.04);
}

.custom-select-option:hover {
    background: rgba(16,71,136,0.08);
    color: var(--primary);
    padding-left: 24px;
}
body.dark-mode .custom-select-option:hover {
    background: rgba(212,175,55,0.10);
    color: var(--accent);
    padding-left: 24px;
}

.custom-select-option.selected {
    background: rgba(16,71,136,0.10);
    color: var(--primary);
    font-weight: 600;
}
body.dark-mode .custom-select-option.selected {
    background: rgba(212,175,55,0.12);
    color: var(--accent);
}

/* ── RANGE SLIDER ────────────────────────────────────────────── */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 12px 0;
    border: none;
    box-shadow: none;
    display: block !important;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px; width: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    cursor: pointer;
    margin-top: -9px;
    box-shadow: 0 4px 12px rgba(16,71,136,0.35);
    transition: transform 0.15s;
    border: 2px solid rgba(255,255,255,0.8);
}
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
body.dark-mode input[type=range]::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 4px 12px rgba(212,175,55,0.35);
    border-color: rgba(255,255,255,0.15);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    cursor: pointer;
    background: rgba(16,71,136,0.15);
    border-radius: 2px;
}
body.dark-mode input[type=range]::-webkit-slider-runnable-track {
    background: rgba(255,255,255,0.12);
}

.highlight-text-val {
    font-weight: 700;
    color: var(--primary);
    transition: color 0.3s;
}
body.dark-mode .highlight-text-val { color: var(--accent) !important; }

/* ── RESULTS AREA ────────────────────────────────────────────── */
.results-area {
    background: linear-gradient(145deg, rgba(16,71,136,0.06) 0%, rgba(16,71,136,0.12) 100%);
    backdrop-filter: var(--blur-sm);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(16,71,136,0.12);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.results-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,71,136,0.3), transparent);
}

body.dark-mode .results-area {
    background: linear-gradient(145deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.055) 100%);
    border-color: rgba(255,255,255,0.07);
}
body.dark-mode .results-area::before {
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.2), transparent);
}

.result-value {
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'FjallaOne', sans-serif;
    margin: 1rem 0;
    filter: drop-shadow(0 2px 8px rgba(16,71,136,0.15));
}
body.dark-mode .result-value {
    background: linear-gradient(90deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(212,175,55,0.25));
}

/* ── CYPRUS SECTION ──────────────────────────────────────────── */
.cyprus-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1617870544224-039877fd68fa?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
    height: 660px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-attachment: fixed;
    margin-bottom: 0;
    padding-bottom: 60px;
}
.cyprus-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,46,90,0.88), rgba(7,11,20,0.82));
    backdrop-filter: blur(2px);
}
.cyprus-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    padding: 3rem;
}
.cyprus-content h2 { font-size: 2.8rem; margin-bottom: 1rem; }
.cyprus-content p { font-size: 1.15rem; opacity: 0.85; }
.cyprus-logo {
    height: 90px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
    background: #070b14;
    color: white;
    padding: 5rem 10% 2rem;
    border-top: none;
    border-radius: 32px 32px 0 0;
    position: relative;
    margin-top: -60px;
    z-index: 2;
}

body.dark-mode footer {
    background: rgba(7,11,20,0.88);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.45), transparent);
    border-radius: 32px 32px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}
.footer-info h4 { color: var(--accent); margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-info p { margin-bottom: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 300; font-size: 0.95rem; }
.footer-info i { width: 28px; color: var(--accent); opacity: 0.7; }
.footer-info a:hover { color: var(--accent); }

.social-links a {
    font-size: 1.6rem;
    margin-right: 1.2rem;
    color: rgba(255,255,255,0.45);
    transition: all 0.3s;
    display: inline-block;
}
.social-links a:hover {
    color: var(--accent);
    transform: scale(1.15) translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.3);
}
.copyright a:hover { color: var(--accent); }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    nav { width: 95%; padding: 0.5rem 1.2rem; }
    .hero { flex-direction: column; padding-top: 130px; text-align: center; height: auto; min-height: auto; }
    .hero-content { margin-bottom: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero-image { height: 45vh; width: 100%; justify-content: center; }
    .calc-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; }
    .calculator-container { padding: 2rem 1.5rem; }
    .results-area { margin-top: 2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .cyprus-content h2 { font-size: 2rem; }
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(16, 71, 136, 0.25);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 71, 136, 0.55);
    background-clip: padding-box;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.25);
    background-clip: padding-box;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.55);
    background-clip: padding-box;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 71, 136, 0.25) transparent;
}
body.dark-mode * {
    scrollbar-color: rgba(212, 175, 55, 0.25) transparent;
}
