/* ========================================================
   ABHASH KHADKA — PORTFOLIO • DARK THEME DESIGN SYSTEM
   ======================================================== */

:root {
    /* Colors — Dark palette */
    --bg-primary: #0b0f1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --bg-elevated: #161d2f;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --white: #ffffff;
    --green: #34d399;

    /* Spacing */
    --section-py: 120px;
    --container-max: 1120px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Misc */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xl: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 72px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    position: relative;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-hover);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 30px;
}

/* ===== NAVBAR ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(11, 15, 26, 0.92);
    border-bottom-color: var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    z-index: 1001;
}

.logo img {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2)) !important;
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
}

.mobile-menu-btn {
    display: none;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.mobile-menu-btn .close-icon {
    display: none;
}

.mobile-menu-btn.active .menu-icon {
    display: none;
}

.mobile-menu-btn.active .close-icon {
    display: block;
}

/* ===== HERO ===== */
.hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.8;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.6);
    }
}

.cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero image */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    position: relative;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 26, 0.5) 100%);
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SERVICES ===== */
.services-section {
    padding: var(--section-py) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    padding: 36px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    transition-delay: calc(var(--delay, 0) * 0.08s);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-glow);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
}

.service-icon.icon-pink {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

.service-icon.icon-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.service-icon.icon-green {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== WORK ===== */
.work-section {
    padding: var(--section-py) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    transition-delay: calc(var(--delay, 0) * 0.08s);
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    border-color: var(--border-hover);
}

.work-img {
    width: 100%;
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.gradient-1 {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-info {
    padding: 22px 24px 26px;
}

.work-tag {
    display: inline-block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 6px;
}

.work-info h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.work-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== ABOUT ===== */
.about-section {
    padding: var(--section-py) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 72px;
    align-items: center;
}

.about-portrait {
    border-radius: var(--radius-xl);
    width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
}

.about-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.about-content>p {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tech-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    border-color: var(--accent-1);
    color: var(--text-primary);
}

.stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-item {
    position: relative;
    padding-left: 16px;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: inline;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* Inline testimonial */
.inline-quote {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    position: relative;
}

.inline-quote::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.08;
}

.inline-quote p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.inline-quote cite {
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-section {
    padding: var(--section-py) 0;
}

.contact-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 72px 56px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    text-align: left;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-footer {
    margin-top: 36px;
    text-align: center;
}

.contact-footer>p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-email:hover {
    color: var(--accent-1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* ===== FOOTER ===== */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    height: 22px;
    width: auto;
    opacity: 0.4;
}

.footer-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

/* ===== ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-py: 88px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-image-frame {
        max-width: 320px;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

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

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

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

    .about-image {
        max-width: 340px;
        margin: 0 auto;
    }

    .stats-row {
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-py: 72px;
    }

    /* Mobile nav */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        margin-top: 12px;
        padding: 14px 32px !important;
        font-size: 1rem !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero */
    .hero-section {
        padding-top: 120px;
        padding-bottom: 64px;
        min-height: auto;
    }

    .hero-image-frame {
        max-width: 260px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-glow {
        width: 500px;
        height: 500px;
    }

    /* Services & Work */
    .services-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px 24px;
    }

    /* About */
    .stats-row {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .contact-wrapper {
        padding: 36px 24px;
    }

    .contact-header h2 {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --section-py: 56px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .stats-row {
        gap: 16px;
    }

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

    .tech-badge {
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .inline-quote {
        padding: 20px;
    }
}

/* ========================================================
   LIGHT REDESIGN OVERRIDES
   ======================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-1: #2563eb;
    --accent-2: #0ea5e9;
    --accent-glow: rgba(37, 99, 235, 0.12);
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --green: #16a34a;
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

body {
    background: #ffffff;
    color: var(--text-primary);
}

#navbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#navbar.scrolled {
    background: #ffffff;
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.section-tag,
.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section {
    padding-top: 128px;
    padding-bottom: 84px;
    border-bottom: 1px solid #f1f5f9;
}

.hero-glow {
    top: -24%;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, rgba(14, 165, 233, 0.05) 40%, transparent 72%);
}

.hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 760px;
    margin: 0 auto;
}

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

.subtitle {
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    justify-content: center;
}

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

.badge {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
    color: #1e293b;
    border: 1.5px solid var(--border);
    background: #ffffff;
}

.btn-ghost:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: var(--border-hover);
}

.hero-image-frame,
.about-portrait,
.service-card,
.work-card,
.inline-quote,
.contact-wrapper {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-image-frame::after {
    background: linear-gradient(180deg, transparent 62%, rgba(15, 23, 42, 0.14) 100%);
}

.services-section,
.about-section,
.contact-section {
    background: #ffffff;
}

.work-section {
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.services-grid,
.work-grid {
    gap: 24px;
}

.service-card,
.work-card {
    background: #ffffff;
}

.service-card:hover,
.work-card:hover {
    background: #ffffff;
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
}

.service-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.service-icon.icon-pink {
    background: #fdf2f8;
    color: #db2777;
}

.service-icon.icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.service-icon.icon-green {
    background: #f0fdf4;
    color: #16a34a;
}

.work-tag {
    color: #1d4ed8;
}

.work-overlay {
    background: rgba(15, 23, 42, 0.24);
}

.tech-badge {
    background: #f8fafc;
    color: #334155;
    border: 1px solid var(--border);
}

.tech-badge:hover {
    background: #eff6ff;
    color: #0f172a;
}

.inline-quote p {
    color: #334155;
}

.contact-wrapper {
    background: #ffffff;
}

.form-group input,
.form-group textarea {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.social-links a {
    border: 1px solid var(--border);
    color: #64748b;
    background: #ffffff;
}

.social-links a:hover {
    border-color: transparent;
}

footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .nav-links {
        background: #ffffff;
    }

    .hero-section {
        padding-top: 112px;
        padding-bottom: 56px;
    }

    .hero-grid {
        gap: 36px;
    }
}