:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --gray: #6b6b6b;
    --light: #e8e8e8;
    --off-white: #f4f3f1;
    --white: #fafaf8;
    --accent: #e85d04;
    --accent-dim: rgba(232, 93, 4, 0.08);
    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

* {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--off-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

p {
    line-height: 1.6;
    margin: 0;
}

a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.15s;
}

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

b, strong, .medium {
    font-weight: 600;
}

input, textarea, select {
    border-radius: 0 !important;
}

.form-control:focus {
    border-color: var(--light);
    box-shadow: none;
}

.btn {
    border-radius: 0 !important;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    transition: all 0.2s;
}

.btn-dark {
    background: var(--black);
    border-color: var(--black);
}

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

/**
 * Navbar
 */
.navbar {
    background: var(--white) !important;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light);
}

.navbar-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--black) !important;
}

.nav-link {
    color: var(--gray) !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.15s;
}

.nav-link:hover {
    color: var(--black) !important;
}

.lang-switch {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

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

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.03em;
}

.section-sub {
    color: var(--gray);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
}

/**
 * Hero
 */
.hero-section {
    padding: var(--space-xl) 0 var(--space-lg);
    background: var(--white);
    position: relative;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, var(--light) 30%);
}

.hero-logo {
    width: 280px;
    max-width: 60%;
}

.hero-title {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.hero-section .text-muted {
    color: var(--gray) !important;
    font-size: 0.95rem;
}

/**
 * Service cards
 */
.service-card {
    padding: var(--space-md);
    background: var(--white);
    border-left: 3px solid var(--light);
    height: 100%;
    transition: border-color 0.2s;
}

.service-card:hover {
    border-left-color: var(--accent);
}

.service-card i {
    color: var(--accent) !important;
    font-size: 1.25rem !important;
}

.service-card h2 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.service-card p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

/**
 * Private cards
 */
.private-card {
    padding: var(--space-md) 1.5rem;
    background: var(--white);
    border-left: 3px solid var(--light);
    height: 100%;
    text-align: left;
    transition: border-color 0.2s;
}

.private-card:hover {
    border-left-color: var(--accent);
}

.private-card i {
    color: var(--accent) !important;
    font-size: 1.25rem !important;
}

.private-card h2 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.private-card p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

/**
 * Skills
 */
#skills .row {
    row-gap: 2.5rem !important;
}

#skills h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--black);
    display: flex;
    align-items: center;
}

#skills h3 i {
    color: var(--accent);
    font-size: 0.85rem;
    width: 1.25rem;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-list li:last-child {
    border-bottom: none;
}

/**
 * Showcase
 */
.showcase-block {
    margin-bottom: var(--space-lg);
}

.showcase-block:last-child {
    margin-bottom: 0;
}

.showcase-block > h3 {
    font-size: 1.1rem;
    padding-bottom: 0.75rem;
    margin-bottom: var(--space-sm);
    border-bottom: 2px solid var(--black);
    display: flex;
    align-items: center;
}

.showcase-block > h3 i {
    color: var(--accent);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.showcase-block > .text-muted {
    color: var(--gray) !important;
    font-size: 0.9rem;
}

.showcase-item {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-left: 3px solid var(--light);
    transition: border-color 0.2s;
}

.showcase-item:hover {
    border-left-color: var(--accent);
}

.showcase-item strong {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.showcase-item p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.tech-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dark);
    background: var(--accent-dim);
    border: 1px solid rgba(232, 93, 4, 0.15);
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/**
 * Industries
 */
.industry-tag {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--dark);
    background: var(--white);
    border-left: 2px solid var(--light);
    text-align: left;
    transition: border-color 0.15s;
}

.industry-tag:hover {
    border-left-color: var(--accent);
}

/**
 * References
 */
#references {
    padding: var(--space-lg) 0;
}

#references .text-muted {
    color: var(--gray) !important;
    font-size: 0.95rem;
}

/**
 * Contact
 */
#contact {
    position: relative;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 30%, var(--light) 30%);
}

#contact i {
    margin-right: 0.35rem;
}

.contact-dot {
    margin: 0 0.5rem;
    color: var(--gray);
}

.contact-links span {
    display: inline;
}

@media (max-width: 767px) {
    .contact-links span {
        display: block;
        padding: 0.5rem 0;
    }
}

#contact-form .form-control {
    background: var(--white);
    border: 1px solid var(--light);
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--dark);
    transition: border-color 0.2s;
}

#contact-form .form-control::placeholder {
    color: var(--gray);
}

#contact-form .form-control:focus {
    border-color: var(--accent);
}

#contact-feedback {
    font-size: 0.875rem;
}

#contact a {
    color: var(--accent);
    font-weight: 500;
}

#contact a:hover {
    color: var(--dark);
}

#contact .text-muted {
    color: var(--gray) !important;
    font-size: 0.9rem;
}

/**
 * Section alternation
 */
.bg-white {
    background: var(--white) !important;
}

/**
 * Footer spacer
 */
#contact {
    padding-bottom: var(--space-lg);
}

/**
 * Mobile menu toggle (hamburger)
 */
.mobile-menu-toggle {
    position: relative;
    z-index: 1001;
    width: 26px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 0;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1),
                opacity 0.25s ease;
    transform-origin: center;
}

/* Morph to X when active */
.mobile-menu-toggle.is-active .toggle-bar:first-child {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active .toggle-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .toggle-bar:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/**
 * Mobile fullscreen overlay
 */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0.4s;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0s 0s;
}

.mobile-overlay-inner {
    padding: 0 2rem;
    position: relative;
}

/* Accent line that wipes in */
.mobile-overlay-accent {
    position: absolute;
    top: -3rem;
    left: 2rem;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.mobile-overlay.is-open .mobile-overlay-accent {
    width: 48px;
}

/**
 * Mobile nav links
 */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    overflow: hidden;
}

.mobile-nav-link {
    display: block;
    font-family: var(--font);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--black);
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.4s ease,
                color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--accent);
}

.mobile-overlay.is-open .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger each link */
.mobile-overlay.is-open .mobile-nav-list li:nth-child(1) .mobile-nav-link { transition-delay: 0.08s; }
.mobile-overlay.is-open .mobile-nav-list li:nth-child(2) .mobile-nav-link { transition-delay: 0.13s; }
.mobile-overlay.is-open .mobile-nav-list li:nth-child(3) .mobile-nav-link { transition-delay: 0.18s; }
.mobile-overlay.is-open .mobile-nav-list li:nth-child(4) .mobile-nav-link { transition-delay: 0.23s; }
.mobile-overlay.is-open .mobile-nav-list li:nth-child(5) .mobile-nav-link { transition-delay: 0.28s; }
.mobile-overlay.is-open .mobile-nav-list li:nth-child(6) .mobile-nav-link { transition-delay: 0.33s; }

/* Reset delay on close for snappy exit */
.mobile-overlay .mobile-nav-list li .mobile-nav-link {
    transition-delay: 0s;
}

/**
 * Mobile nav footer (lang switch + location)
 */
.mobile-nav-footer {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease 0.35s,
                transform 0.4s ease 0.35s;
}

.mobile-overlay.is-open .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-lang-switch {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent) !important;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--accent);
    transition: background 0.2s, color 0.2s;
}

.mobile-lang-switch:hover {
    background: var(--accent);
    color: var(--white) !important;
}

.mobile-nav-location {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Lock body scroll when overlay is open */
body.mobile-menu-open {
    overflow: hidden;
}

/**
 * Responsive
 */
@media (max-width: 991px) {
    .navbar .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 767px) {
    .section {
        padding: var(--space-lg) 0;
    }

    .hero-section {
        padding: var(--space-lg) 0 var(--space-md);
    }

    .showcase-block {
        margin-bottom: var(--space-md);
    }
}

/* Hide overlay on desktop */
@media (min-width: 992px) {
    .mobile-overlay {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none !important;
    }
}
