/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    color: #1a1a2e;
    background: #fafafa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== COLORS ========== */
:root {
    --main: #bf9d19;
    --main-light: #d4b534;
    --main-bg: rgba(191, 157, 25, 0.04);
    --container: #3e3208;
    --container-light: #5d4f0a;
    --accent: #8a7312;
    --text: #1a1a2e;
    --text-light: #4a4a5a;
    --border: #e2e8f0;
    --section-bg: #ffffff;
    --section-alt: #f8f9fc;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
}
h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    letter-spacing: -0.03em;
}
h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -0.02em;
}
h3 {
    font-size: 1.3rem;
    font-weight: 700;
}
.subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 640px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--main);
    color: #fff;
}
.btn-primary:hover {
    background: var(--main-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(191, 157, 25, 0.3);
}
.btn-outline {
    background: transparent;
    color: var(--main);
    border: 2px solid var(--main);
}
.btn-outline:hover {
    background: var(--main);
    color: #fff;
}
.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--main);
    border-color: #fff;
}

/* ========== NAV ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--main);
}
.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(
        135deg,
        var(--main) 50%,
        var(--container-light) 50%
    );
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--main);
    transform: scaleX(0);
    transition: transform 0.2s;
}
.nav-links a:hover {
    color: var(--main);
}
.nav-links a:hover::after {
    transform: scaleX(1);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--container);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 25% 45%,
            rgba(191, 157, 25, 0.25) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 75% 60%,
            rgba(62, 50, 8, 0.5) 0%,
            transparent 50%
        );
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}
.hero h1 {
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero h1 span {
    background: linear-gradient(135deg, var(--main-light), var(--main));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}
.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 36px;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat h4 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.hero-stat p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
}

/* ========== SECTIONS ========== */
section {
    padding: 100px 0;
    background: var(--section-bg);
}
section.hero {
    background: var(--container);
}
section.section-alt {
    background: var(--section-alt);
}
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main);
    margin-bottom: 12px;
}
.section-header {
    margin-bottom: 56px;
}
.section-header h2 {
    margin-bottom: 12px;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--main);
}
.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.feature-card:nth-child(1) .icon {
    background: rgba(191, 157, 25, 0.1);
    color: var(--main);
}
.feature-card:nth-child(2) .icon {
    background: rgba(62, 50, 8, 0.08);
    color: var(--container-light);
}
.feature-card:nth-child(3) .icon {
    background: rgba(138, 115, 18, 0.08);
    color: var(--accent);
}
.feature-card:nth-child(4) .icon {
    background: rgba(191, 157, 25, 0.1);
    color: var(--main);
}
.feature-card:nth-child(5) .icon {
    background: rgba(62, 50, 8, 0.08);
    color: var(--container-light);
}
.feature-card:nth-child(6) .icon {
    background: rgba(138, 115, 18, 0.08);
    color: var(--accent);
}
.feature-card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.feature-card p {
    color: var(--text-light);
    font-size: 0.93rem;
}

/* ========== TECH STACK ========== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.tech-tag {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--main-bg);
    color: var(--main);
    border: 1px solid rgba(191, 157, 25, 0.12);
}
.tech-tag-alt {
    background: rgba(62, 50, 8, 0.06);
    color: var(--container);
    border-color: rgba(62, 50, 8, 0.12);
}
.tech-tag-svelte {
    background: rgba(255, 61, 0, 0.06);
    color: #cc3300;
    border-color: rgba(255, 61, 0, 0.12);
}

/* ========== PROJECT SHOWCASE ========== */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.showcase-text h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.showcase-text p {
    color: var(--text-light);
    margin-bottom: 16px;
}
.showcase-text ul {
    margin-bottom: 20px;
}
.showcase-text ul li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 0.93rem;
}
.showcase-text ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--main);
    font-weight: 700;
}
.showcase-visual {
    background: linear-gradient(135deg, var(--main), var(--container));
    border-radius: 16px;
    padding: 40px;
    color: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.showcase-visual h4 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 8px;
}
.showcase-visual p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.showcase-visual .splash-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ========== CAROUSEL / SLIDER ========== */
.carousel-section {
    background: var(--section-alt);
}
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
    min-width: 100%;
    padding: 60px 48px;
}
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, var(--main) 0%, var(--main-light) 100%);
}
.carousel-slide:nth-child(2) {
    background: linear-gradient(
        135deg,
        var(--container) 0%,
        var(--container-light) 100%
    );
}
.carousel-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    color: #fff;
}
.carousel-slide-inner .splash-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
.carousel-slide-inner h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}
.carousel-slide-inner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.carousel-slide-inner ul li {
    color: rgba(255, 255, 255, 0.8);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.carousel-slide-inner ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: 700;
}
.carousel-placeholder {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}
.carousel-placeholder .mock-screen {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 24px;
    text-align: left;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
}
.carousel-placeholder .mock-screen .bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.carousel-placeholder .mock-screen .bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.carousel-placeholder .mock-screen .line {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}
.carousel-placeholder .mock-screen .line.highlight {
    color: #4ade80;
}
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--main);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}
.carousel-dot.active {
    background: var(--main);
    transform: scale(1.2);
}
.carousel-btn {
    background: var(--main);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: var(--main-light);
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.service-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.service-card:nth-child(1) .icon {
    background: rgba(191, 157, 25, 0.1);
    color: var(--main);
}
.service-card:nth-child(2) .icon {
    background: rgba(62, 50, 8, 0.08);
    color: var(--container-light);
}
.service-card:nth-child(3) .icon {
    background: rgba(138, 115, 18, 0.08);
    color: var(--accent);
}
.service-card:nth-child(4) .icon {
    background: rgba(191, 157, 25, 0.1);
    color: var(--main);
}
.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========== CONTACT / CTA ========== */
.contact-cta {
    background: linear-gradient(135deg, var(--main) 0%, var(--container) 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.contact-cta h2 {
    color: #fff;
    margin-bottom: 16px;
}
.contact-cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 32px;
}
.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
    font-weight: 500;
}
.contact-links a:hover {
    color: #fff;
}

/* ========== FOOTER ========== */
footer {
    background: var(--container);
    color: rgba(255, 255, 255, 0.5);
    padding: 32px 0;
    font-size: 0.85rem;
}
footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
footer a {
    color: rgba(255, 255, 255, 0.6);
}
footer a:hover {
    color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .carousel-slide-inner {
        grid-template-columns: 1fr;
    }
    .carousel-slide {
        padding: 40px 24px;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .hero-stat h4 {
        font-size: 1.6rem;
    }
    .hero {
        padding: 100px 0 60px;
    }
    section {
        padding: 60px 0;
    }
    .contact-links {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITIES ========== */
.text-center {
    text-align: center;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.carousel-label {
    margin-bottom: 12px;
    opacity: 0.6;
}
.carousel-mock-margin {
    margin-top: 12px;
}
.carousel-dots-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== NAV DROPDOWN ========== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    cursor: pointer;
}
.nav-dropdown-toggle::after {
    content: " ▾";
    font-size: 0.7em;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    z-index: 101;
}
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}
.nav-dropdown-menu li a:hover {
    background: var(--main-bg);
    color: var(--main);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    display: block;
}

/* ========== OVERVIEW GRID ========== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.overview-card {
    background: var(--section-bg);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--main);
}
.overview-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
    background: rgba(191, 157, 25, 0.1);
    color: var(--main);
}
.overview-card h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}
.overview-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ========== PAGE HERO ========== */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--container);
    color: #fff;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 25% 45%,
            rgba(191, 157, 25, 0.25) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 75% 60%,
            rgba(62, 50, 8, 0.5) 0%,
            transparent 50%
        );
    z-index: 0;
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}
.page-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
