:root {
    --bg-dark: #08080c;
    --bg-section: #0c0c12;
    --bg-card: #121219;
    --bg-card-hover: #18181f;
    --accent: #c49a4a;
    --accent-light: #d4aa5a;
    --accent-dark: #a67832;
    --accent-glow: rgba(196, 154, 74, 0.25);
    --accent-border: rgba(196, 154, 74, 0.15);
    --accent-bg: rgba(196, 154, 74, 0.06);
    --text: #d8d8e0;
    --text-muted: #6a6a78;
    --text-heading: #ededf0;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent-dark) var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 12, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--text-heading);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.services,
.about,
.portfolio,
.contact {
    padding: 7rem 0;
}

.about,
.contact {
    background: var(--bg-section);
}

.section-header h2,
.about h2,
.contact h2 {
    font-size: 2.75rem;
    font-weight: 700;
}

.stat-number,
.hero-badge-number,
.about-badge-number {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.service-icon,
.contact-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    flex-shrink: 0;
}

.section-tag,
.portfolio-tag {
    display: inline-block;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent-border);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-desc,
.about-text,
.contact-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

:is(.services-grid, .portfolio-grid) [data-animate]:nth-child(2) { transition-delay: 0.1s; }
:is(.services-grid, .portfolio-grid) [data-animate]:nth-child(3) { transition-delay: 0.2s; }
:is(.services-grid, .portfolio-grid) [data-animate]:nth-child(4) { transition-delay: 0.25s; }
:is(.services-grid, .portfolio-grid) [data-animate]:nth-child(5) { transition-delay: 0.35s; }
:is(.services-grid, .portfolio-grid) [data-animate]:nth-child(6) { transition-delay: 0.45s; }

.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    z-index: 10001;
    transition: width 0.05s linear;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-subtle);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.section-tag {
    font-size: 0.7rem;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.5rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-top: 1.5rem;
}

.section-header {
    margin-bottom: 4rem;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.05em;
}

.nav-logo span {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--accent);
    display: block;
    margin-top: -0.25rem;
    font-family: var(--font-body);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

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

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

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

.nav-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: 1.5px solid var(--accent-border);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(196, 154, 74, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 154, 74, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.45s; }
.hero-content > *:nth-child(4) { animation-delay: 0.6s; }
.hero-content > *:nth-child(5) { animation-delay: 0.75s; }

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

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-label-line {
    display: block;
    width: 40px;
    height: 1.5px;
    background: var(--accent);
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-trust i {
    color: var(--accent);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    opacity: 0;
    transform: translateX(40px);
    animation: heroVisualReveal 1s ease 0.5s forwards;
}

@keyframes heroVisualReveal {
    to { opacity: 1; transform: translateX(0); }
}

.hero-shape {
    position: absolute;
    border: 1.5px solid var(--accent);
}

.hero-shape-1 {
    width: 65%;
    height: 75%;
    bottom: 5%;
    right: 12%;
    opacity: 0.4;
}

.hero-shape-2 {
    width: 55%;
    height: 60%;
    bottom: 15%;
    right: 0;
    opacity: 0.2;
    border-style: dashed;
}

.hero-shape-3 {
    width: 35%;
    height: 28%;
    top: 5%;
    left: 8%;
    opacity: 0.08;
    background: var(--accent);
    border: none;
}

.hero-accent-line {
    position: absolute;
    width: 1.5px;
    height: 130%;
    background: linear-gradient(to bottom, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    opacity: 0.15;
    left: 35%;
    top: -15%;
    transform: rotate(12deg);
}

.hero-visual-badge {
    position: absolute;
    bottom: 15%;
    right: 20%;
    text-align: center;
    z-index: 2;
}

.hero-badge-number {
    font-size: 5rem;
    display: block;
}

.hero-badge-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.stats {
    background: var(--bg-section);
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3.5rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-subtle);
}

.services-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 1.25rem;
    row-gap: 0.5rem;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    grid-row: 1 / -1;
    align-self: start;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    align-self: end;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text,
.contact-desc {
    font-size: 1rem;
    margin-top: 1.5rem;
}

.about-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 400;
}

.about-feature i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-badge {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card), rgba(196, 154, 74, 0.04));
    border: 1px solid var(--accent-border);
    padding: 3.5rem 3rem;
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.about-badge-deco {
    position: absolute;
    inset: 12px;
    border: 1px dashed var(--accent-border);
    pointer-events: none;
}

.about-badge-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-badge-number {
    font-size: 5.5rem;
    margin-bottom: 0.75rem;
}

.about-badge-text {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    line-height: 1.6;
}

.portfolio-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.45s ease;
}

.portfolio-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.portfolio-card-1 { background: linear-gradient(160deg, #14101e, #1e1528 40%, #201a2a); }
.portfolio-card-2 { background: linear-gradient(160deg, #0e1218, #141e28 40%, #162230); }
.portfolio-card-3 { background: linear-gradient(160deg, #161210, #221c16 40%, #2a2218); }
.portfolio-card-4 { background: linear-gradient(160deg, #10101a, #181830 40%, #1a1a28); }
.portfolio-card-5 { background: linear-gradient(160deg, #121410, #1c2018 40%, #202820); }
.portfolio-card-6 { background: linear-gradient(160deg, #14101a, #201824 40%, #281e28); }

.portfolio-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    opacity: 0.06;
    color: white;
    line-height: 1;
}

.portfolio-content {
    position: relative;
    z-index: 1;
}

.portfolio-tag {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.portfolio-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-methods {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 0;
}

a.contact-method:hover {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}

.contact-method-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.contact-method-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text);
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    transition: border-color 0.3s ease;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a6a78' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form select option {
    background: var(--bg-dark);
    color: var(--text);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 0.5rem;
}

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand p,
.footer-copyright p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-brand p {
    margin-top: 0.25rem;
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 10rem 0 5rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        justify-content: flex-start;
    }

    .section-header h2,
    .about h2,
    .contact h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: rgba(8, 8, 12, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        border-left: 1px solid var(--border-subtle);
    }

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

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

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        text-align: center;
        justify-content: center;
    }

    .stats-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-divider {
        width: 50px;
        height: 1px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        aspect-ratio: auto;
        min-height: 220px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
    }

    .services,
    .about,
    .portfolio,
    .contact {
        padding: 5rem 0;
    }

    .section-header h2,
    .about h2,
    .contact h2 {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .service-card,
    .contact-form {
        padding: 2rem;
    }

    .about-badge {
        padding: 2.5rem 2rem;
    }

    .about-badge-number {
        font-size: 4rem;
    }
}
