/* ---- CSS Variables setup for theming ---- */
:root {
    /* Light Mode (Right side of reference) */
    --bg-color: #f4f4f5;
    --text-color: #111111;
    --accent-color: #2563EB;
    /* Bright blue */
    --border-color: #e5e5e5;
    --nav-bg: rgba(244, 244, 245, 0.85);

    /* Fonts */
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Mode (Left side of reference) */
    --bg-color: #0d0d0d;
    --text-color: #f4f4f5;
    --accent-color: #ccff00;
    /* Electric yellow/lime */
    --border-color: #222222;
    --nav-bg: rgba(13, 13, 13, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition), color var(--transition);
}

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

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

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

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

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

/* Base typography */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-color);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    font-weight: normal;
    /* Anton is already bold */
}

/* Star Icon decoration */
.star-icon {
    display: flex;
    justify-content: center;
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
}

.star-icon svg {
    width: 32px;
    height: 32px;
}

.star-icon.small {
    margin-bottom: var(--space-lg);
}

.star-icon.small svg {
    width: 24px;
    height: 24px;
}

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 5vw;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30px;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

.hamburger-btn:hover span:nth-child(2) {
    width: 70%;
}

.logo {
    font-family: 'Inter', cursive;
    /* Simulating handwritten */
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-track {
    width: 44px;
    height: 24px;
    background-color: transparent;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.toggle-thumb {
    width: 14px;
    height: 14px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: var(--text-color);
    color: var(--bg-color);
    transition: var(--transition);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.5;
    transition: var(--transition);
}

.lang-link.active, .lang-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.lang-divider {
    color: var(--text-color);
    opacity: 0.3;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    left: 0;
}

.close-menu {
    position: absolute;
    top: 40px;
    left: 5vw;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 2rem 0;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* ---- Hero Section ---- */
.hero {
    padding-top: 200px;
    padding-bottom: var(--space-lg);
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.hero-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 14rem);
    line-height: 0.85;
    color: var(--accent-color);
    font-weight: normal;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.hero-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(120px, 20vw, 200px);
    aspect-ratio: 2/3;
    border-radius: 100px;
    /* Pill shape */
    overflow: hidden;
    z-index: 10;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
}

.hero-description {
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
    color: var(--text-color);
    opacity: 0.8;
}

/* ---- Single line title for interior pages ---- */
.hero-title-wrapper.single-line .hero-title {
    flex-direction: row;
    font-size: clamp(4rem, 12vw, 10rem);
}


/* ---- Statistics Section ---- */
.statistics {
    padding-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: normal;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.flags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 2rem;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.flags-container:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- About Section (Split layout ref) ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-top: var(--space-lg);
}

.about-image-col {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.about-image-wrapper img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(50%);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.about-text-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.about-text-content h3 {
    font-size: 1.8rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.about-text-content h4 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    margin-top: 2rem;
}

.about-text-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 4px;
}

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

/* ---- Services Lists / Reviews (Like the "WRITING" ref) ---- */
.service-list,
.reviews-list {
    margin-top: var(--space-lg);
}

.service-list-item,
.review-item {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.service-list-item:last-child,
.review-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.service-list-title {
    font-size: 1.25rem;
    font-weight: 500;
    flex: 1;
    min-width: 250px;
}

.service-list-content {
    flex: 2;
    opacity: 0.7;
}

.service-list-content p {
    margin-bottom: 1rem;
}

.review-text {
    flex: 2;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
}

.review-author {
    flex: 1;
    text-align: right;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    min-width: 200px;
}

/* ---- Contact Section ---- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* ---- Custom Select Dropdown ---- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.custom-select-trigger:hover,
.custom-select-trigger.open {
    border-color: var(--accent-color);
}

.custom-select-trigger .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-color);
    border-bottom: 2px solid var(--text-color);
    transform: translateY(-4px) rotate(45deg);
    transition: transform 0.3s;
}

.custom-select-trigger.open .arrow {
    transform: translateY(2px) rotate(-135deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    margin-top: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.custom-option {
    display: block;
    padding: 10px 14px;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    /* Invert text color on hover */
}

/* Scrollbar for custom options */
.custom-options::-webkit-scrollbar {
    width: 8px;
}

.custom-options::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.form-group input::placeholder {
    color: var(--text-color);
    opacity: 0.3;
}

.btn-submit {
    margin-top: 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 40px;
    padding: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--accent-color);
    color: #111;
}

/* ---- Footer Ticker ---- */
.footer {
    padding: var(--space-md) 0;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.marquee-link {
    text-decoration: none;
    display: block;
    width: 100%;
    cursor: pointer;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    padding: var(--space-md) 0;
}

.marquee-inner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    animation: marquee 15s linear infinite;
    gap: 1.5rem;
    padding-right: 1.5rem;
    /* Match gap for seamless loop */
}

.marquee-inner span {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #888;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.marquee-star {
    width: clamp(24px, 4vw, 40px);
    height: auto;
    color: #888;
    transition: color 0.3s ease;
}

/* Pause animation and change color on hover */
.marquee-link:hover .marquee-inner {
    animation-play-state: paused;
}

.marquee-link:hover .marquee-inner span,
.marquee-link:hover .marquee-star {
    color: var(--accent-color);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 900px) {
    :root {
        --space-xl: 4rem;
        /* Reduced from 8rem */
        --space-lg: 2.5rem;
        /* Reduced from 4rem */
        --space-md: 1.5rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-image-wrapper {
        width: clamp(100px, 16vw, 150px);
    }

    .section-title {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    /* Make the mobile view more 'sectioned' by adding subtle borders between sections */
    .section {
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-xl) 0;
    }

    .section:last-of-type {
        border-bottom: none;
    }

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

    .service-list-item,
    .review-item {
        flex-direction: column;
        gap: 1rem;
    }

    .review-author {
        text-align: left;
    }

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