/* ==========================================
   SCRAPING.BEST-CHOICE.DK - MODERN STYLES
   ========================================== */

:root {
    /* Brand Colors */
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #00a8ff;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --purple: #a855f7;

    /* Background */
    --bg-dark: #0a0e1a;
    /* Main Background */
    --bg-alt: #111623;
    /* Alternating Section (Slightly Lighter/Tinted for visibility) */
    --bg-darker: #020205;
    /* Deep Black/Dark for contrast if needed */
    --card-bg: #1a1f2e;
    --card-hover: #222938;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 31, 46, 0.9), rgba(26, 31, 46, 0.4));

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(0, 136, 204, 0.2);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme="light"] {
    --bg-dark: #ffffff;
    /* Main Background (White) */
    --bg-alt: #f3f4f6;
    /* Alternating Section (Light Grey) */
    --bg-darker: #e5e7eb;
    /* Darker Grey */
    --card-bg: #ffffff;
    --card-hover: #f9fafb;

    --text-primary: #1a1f2e;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* BASE RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

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

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

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 136, 204, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

:root[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    border-radius: 50%;
    /* Make it circular */
    border: 2px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for dark mode */
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.2);
    /* Glow effect */
    transition: all 0.3s ease;
}

:root[data-theme="light"] .logo img {
    border-color: rgba(0, 0, 0, 0.1);
    /* Border for light mode */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu Media Query */
@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        /* Ensure space between logo and burger */
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
        /* Smaller font on mobile */
        display: flex;
        align-items: center;
        z-index: 1002;
        /* Above menu */
    }

    .logo img {
        height: 32px !important;
        /* Smaller logo */
    }

    .logo-text {
        display: none;
        /* Hide long text on very small screens if needed, or adjust size */
    }

    /* Show text on slightly larger mobiles if space permits, or keep hidden/small */
    @media (min-width: 380px) {
        .logo-text {
            display: inline;
            font-size: 1rem;
        }
    }

    .mobile-toggle {
        display: block;
        order: 3;
        /* Ensure it's on the right */
        z-index: 1002;
        /* Above menu */
        padding: 10px;
        /* Increase touch target */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1001;
        /* Below toggle/logo */
    }

    .nav-links.active {
        transform: translateY(0);
    }

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 20px;
}

:root[data-theme="light"] .lang-switcher {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* HERO */
.hero {
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.9) 0%, rgba(10, 14, 26, 0.8) 100%), url('../img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

:root[data-theme="light"] .hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.92) 0%, rgba(248, 249, 250, 0.85) 100%), url('../img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-micro {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    display: block;
}

/* CARDS COMMON */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

:root[data-theme="light"] .card {
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-secondary);
}

/* WHAT WE SCRAPE - TILES */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tile {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: var(--card-hover);
    border: 1px solid transparent;
}

:root[data-theme="light"] .tile {
    background: #f8f9fa;
}

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

/* PROCESS (TIMELINE) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-dark);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

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

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    top: 25px;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.price-card {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    z-index: 10;
    background: var(--card-bg);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 1rem 0;
}

/* CONTACT FORM */
.contact-section {
    background: var(--bg-darker);
}

.contact-container {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
}

:root[data-theme="light"] .form-control {
    background: #fff;
    border-color: #ddd;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 0 60px;
    }



    /* Add hamburger later if needed */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }

    .contact-container {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* UTILS */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

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

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .faq-item {
    border-color: rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
}

.faq-question:hover {
    background: var(--card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Work Example */
.example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .example-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.example-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.example-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.img-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #fff;
    backdrop-filter: blur(4px);
}

.example-arrow {
    color: var(--accent);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

.result-box {
    background: rgba(0, 136, 204, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.cost-item i {
    color: var(--primary);
    width: 24px;
    text-align: center;
}