:root {
    --bg: #f7f5f2;
    --ink: #101010;
    --muted: #5a5a5a;
    --accent: #0f766e;
    --accent-soft: #d7f2ef;
    --line: rgba(16, 16, 16, 0.1);
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 700px at 10% -10%, #e8f5f3 0%, rgba(232, 245, 243, 0) 60%),
        radial-gradient(900px 700px at 90% 0%, #fcefe4 0%, rgba(252, 239, 228, 0) 55%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 14px),
        linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 14px);
    background-size: auto, auto, 14px 14px, 14px 14px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

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

.page {
    position: relative;
    z-index: 1;
}

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 999px;
    opacity: 0.6;
    filter: blur(0px);
    transform: translate3d(0, 0, 0);
}

.shape-one {
    width: 360px;
    height: 360px;
    background: rgba(15, 118, 110, 0.2);
    top: 10vh;
    left: -120px;
}

.shape-two {
    width: 420px;
    height: 420px;
    background: rgba(247, 216, 190, 0.55);
    top: 60vh;
    right: -160px;
}

.shape-three {
    width: 240px;
    height: 240px;
    background: rgba(15, 118, 110, 0.18);
    top: 130vh;
    left: 20vw;
}

.container {
    width: min(1200px, 100% - 64px);
    margin: 0 auto;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    position: relative;
    scroll-margin-top: 90px;
}

.section.alt {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.headline {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 3.4vw + 1rem, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 24px;
}

.subhead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 560px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(247, 245, 242, 0.45);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.brand {
    font-family: "Space Grotesk", sans-serif;
    
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: 240px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.95rem;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

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

.nav-toggle:active {
    transform: scale(0.95);
}

.hamburger-icon,
.close-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    position: absolute;
}

.hamburger-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.close-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.nav.open .hamburger-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.nav.open .close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn.primary {
    background: var(--ink);
    color: #fff;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn.secondary {
    background: transparent;
    color: var(--ink);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(16, 16, 16, 0.06);
}

/* ==========================================
   PREMIUM MOBILE MENU - FULL SCREEN OVERLAY
   ========================================== */

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: backdropFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 242, 0.92) 100%);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.menu-overlay.closing .menu-panel {
    animation: slideOutRight 0.3s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

/* Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(16, 16, 16, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.4);
}

.menu-logo img {
    height: 32px;
    width: auto;
    animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
}

.menu-close:hover {
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    transform: scale(1.1) rotate(90deg);
}

.menu-close:active {
    transform: scale(0.95);
}

/* Menu Items */
.menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    gap: 0;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--ink);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
    animation: menuItemFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-item .ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.6) 0%, rgba(15, 118, 110, 0) 70%);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.menu-item[data-index="0"] {
    animation-delay: 0.15s;
}
.menu-item[data-index="1"] {
    animation-delay: 0.2s;
}
.menu-item[data-index="2"] {
    animation-delay: 0.25s;
}
.menu-item[data-index="3"] {
    animation-delay: 0.3s;
}
.menu-item[data-index="4"] {
    animation-delay: 0.35s;
}
.menu-item[data-index="5"] {
    animation-delay: 0.4s;
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    transition: all 0.3s ease;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-item:hover {
    background: rgba(15, 118, 110, 0.06);
    border-left-color: var(--accent);
    padding-left: 36px;
    color: var(--accent);
}

.menu-item:hover::before {
    width: 100%;
}

.menu-item:hover .menu-icon {
    transform: scale(1.2) rotate(12deg);
}

.menu-item:active {
    transform: scale(0.98);
}

/* Menu Footer */
.menu-footer {
    padding: 32px 28px;
    border-top: 1px solid rgba(16, 16, 16, 0.08);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #0d5f58 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
    text-align: center;
}

.menu-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.4);
}

.menu-cta:active {
    transform: translateY(-2px);
}

.menu-cta svg {
    transition: transform 0.3s ease;
}

.menu-cta:hover svg {
    transform: translateX(4px);
}

/* Social Icons */
.menu-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.15) translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.3);
}

.social-icon:active {
    transform: scale(1.05);
}

/* ==========================================
   DESKTOP MENU - HIDDEN ON MOBILE
   ========================================== */

.menu-overlay {
    display: none !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    font-size: 0.95rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.meta-pill {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(16, 16, 16, 0.08);
    padding: 8px 16px;
    border-radius: 999px;
}

.hero-visual {
    position: relative;
}

.visual-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.panel-pill {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.panel-pill span {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.panel-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.panel-text {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 24px;
}

.panel-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    font-weight: 700;
    font-size: 1.2rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.visual-card {
    position: absolute;
    right: -20px;
    bottom: -20px;
    background: rgba(16, 16, 16, 0.92);
    color: #fff;
    padding: 18px 20px;
    border-radius: 18px;
    width: 220px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.visual-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
}

.visual-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.grid {
    display: grid;
    gap: 24px;
}

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

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 22px;
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.card h3 {
    font-family: "Space Grotesk", sans-serif;
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(16, 16, 16, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
}

.project-media {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 4 / 3;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .project-media img {
    transform: scale(1.05);
}

.services {
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.services-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.6;
    filter: blur(0px);
}

.services-orb.one {
    width: 220px;
    height: 220px;
    background: rgba(15, 118, 110, 0.18);
    top: 12%;
    left: 6%;
}

.services-orb.two {
    width: 280px;
    height: 280px;
    background: rgba(247, 216, 190, 0.5);
    bottom: 12%;
    right: 8%;
}

.services-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: start;
}

.services-intro {
    position: sticky;
    top: 120px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.services-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.services-stack {
    position: relative;
    display: grid;
    gap: 28px;
    padding-left: 48px;
}

.services-rail {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(16, 16, 16, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.services-rail-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.85), rgba(15, 118, 110, 0.1));
    box-shadow: 0 0 20px rgba(15, 118, 110, 0.35);
}

.service-card {
    position: relative;
    transform-style: preserve-3d;
}

.service-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 26px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: radial-gradient(140px 140px at 8% 0%, rgba(15, 118, 110, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.service-card:hover .service-card-inner {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-card-inner::before {
    opacity: 1;
}

.service-node {
    position: absolute;
    left: -36px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.12);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.service-card:hover .service-icon {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.35);
    filter: saturate(1.2);
}

.service-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.service-title {
    margin: 6px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
}

.service-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-cta:hover {
    transform: translateX(4px);
}

.services-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
}

.tech {
    display: block;
    min-height: auto;
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}

.tech-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.tech-orb {
    position: absolute;
    border-radius: 999px;
    opacity: 0.5;
}

.tech-orb.one {
    width: 260px;
    height: 260px;
    background: rgba(15, 118, 110, 0.16);
    top: 10%;
    left: 8%;
}

.tech-orb.two {
    width: 320px;
    height: 320px;
    background: rgba(247, 216, 190, 0.45);
    bottom: 12%;
    right: 10%;
}

.tech-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.tech-tabs-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 36px;
}

.tech-tabs {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(16, 16, 16, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}

.tech-tabs::-webkit-scrollbar {
    display: none;
}

.tech-tab {
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.tech-tab.active {
    color: var(--ink);
}

.tech-underline {
    position: absolute;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    width: 0;
    left: 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    z-index: 1;
}

.tech-card {
    position: relative;
}

.tech-card-inner {
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 20px;
    padding: 18px 16px 20px;
    display: grid;
    gap: 12px;
    place-items: center;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tech-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(180px 120px at 20% 0%, rgba(15, 118, 110, 0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.tech-card:hover .tech-card-inner {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.14);
}

.tech-card:hover .tech-card-inner::after {
    opacity: 1;
}

.tech-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.12);
    display: grid;
    place-items: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
}

.tech-icon img {
    width: 28px;
    height: 28px;
    filter: grayscale(1) contrast(0.9) brightness(0.2);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.tech-card:hover .tech-icon {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 18px 32px rgba(15, 118, 110, 0.32);
}

.tech-card:hover .tech-icon img {
    transform: scale(1.08) rotate(-6deg);
    filter: none;
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.portfolio {
    display: block;
    padding: 50px 0 140px;
    overflow-x: hidden;
}

.portfolio-intro {
    margin-bottom: 10px;
}

.portfolio-sticky {
    position: relative;
    height: min(78vh, 540px);
    display: flex;
    align-items: center;
    perspective: 1400px;
}

.portfolio-track {
    display: flex;
    gap: 32px;
    padding: 0 max(6vw, 32px);
    will-change: transform;
}

.portfolio-card {
    flex: 0 0 clamp(280px, 58vw, 520px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(16, 16, 16, 0.08);
    border-radius: 28px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    will-change: transform;
}

.portfolio-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #eae5dc;
    transform: translateZ(40px);
}

.portfolio-mask {
    position: absolute;
    inset: 0;
    clip-path: inset(0% 0% 0% 0%);
    will-change: clip-path;
}

.portfolio-image-wrap {
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.portfolio-card:hover .portfolio-image-wrap {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg, rgba(16, 16, 16, 0) 10%, rgba(16, 16, 16, 0.78) 100%);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}

.portfolio-overlay h3 {
    margin: 0;
    font-size: 1.2rem;
}

.portfolio-overlay p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transform: translateZ(20px);
}

.portfolio-index {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.portfolio-name {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
}

.portfolio-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio-tags .tag {
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
}

.about-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(16, 16, 16, 0.08);
}

.about-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.about-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.about-item span {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(16, 16, 16, 0.08);
}

.testimonial p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
}

.person {
    display: flex;
    gap: 14px;
    align-items: center;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 16, 16, 0.08);
}

.contact-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(16, 16, 16, 0.08);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input,
textarea {
    font-family: "Manrope", sans-serif;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(16, 16, 16, 0.15);
    background: rgba(255, 255, 255, 0.9);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.footer {
    padding: 80px 0 40px;
    font-size: 0.95rem;
    color: var(--muted);
    border-top: 1px solid rgba(16, 16, 16, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(247, 245, 242, 0.8) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand img {
    width: 100px;
    height: auto;
}

.footer-brand p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.footer-heading {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-divider {
    height: 1px;
    background: rgba(16, 16, 16, 0.08);
    margin: 32px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-copyright {
    font-weight: 500;
}

.footer-meta {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 48px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1000px) {
    .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .visual-card {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
    }

    .services-intro {
        position: static;
    }

    .services-stack {
        padding-left: 0;
    }

    .services-rail {
        display: none;
    }

    .service-node {
        display: none;
    }

    .portfolio {
        padding: 120px 0;
    }

    .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tech-tabs-wrap {
        justify-content: flex-start;
    }

    .portfolio-sticky {
        height: auto;
    }

    .portfolio-track {
        flex-direction: column;
        padding: 0;
    }

    .portfolio-card {
        flex: 1 1 auto;
    }
}

@media (max-width: 820px) {
    .nav-links,
    .nav .btn.primary {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    /* Show premium menu overlay on mobile */
    .menu-overlay {
        display: flex !important;
    }

    .nav.open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: -1;
        backdrop-filter: blur(2px);
        animation: fadeIn 0.3s ease;
    }

    .nav.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        padding: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav.open .nav-links a {
        padding: 16px 24px;
        border-radius: 0;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--ink);
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(16, 16, 16, 0.06);
        display: block;
        text-align: center;
    }

    .nav.open .nav-links a:last-child {
        border-bottom: none;
    }

    .nav.open .nav-links a:hover {
        background: rgba(15, 118, 110, 0.08);
        color: var(--accent);
        padding-left: 32px;
        text-align: left;
    }

    .nav.open .btn.primary {
        display: flex;
        margin: 0;
        width: 100%;
        justify-content: center;
        animation: slideUp 0.3s ease 0.1s both;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(16, 16, 16, 0.08);
        padding: 16px 24px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(12px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .grid.three,
    .grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(1200px, 100% - 32px);
    }

    .nav-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand {
        flex: 1;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .hamburger-icon {
        width: 20px;
        height: 20px;
    }

    /* Premium menu responsive adjustments */
    .menu-panel {
        max-width: 100%;
    }

    .menu-header {
        padding: 20px 24px;
    }

    .menu-logo img {
        height: 28px;
    }

    .menu-items {
        padding: 24px 0;
    }

    .menu-item {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .menu-footer {
        padding: 24px;
    }

    .menu-cta {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .nav.open .nav-links a {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .nav.open .nav-links a:hover {
        padding-left: 28px;
    }

    .nav.open .btn.primary {
        padding: 14px 20px;
    }

    .hero-meta {
        gap: 12px;
    }

    .panel-metrics {
        grid-template-columns: 1fr;
    }

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

@media (hover: none) {
    .portfolio-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .card,
    .project-media img {
        transition: none;
    }

    .tech-card-inner,
    .tech-icon,
    .tech-icon img {
        transition: none;
    }

    .services-word {
        opacity: 1;
        transform: none;
    }
}
