/* ==========================================================================
   DEVLOPN — Landing page
   ========================================================================== */

:root {
    --bg-0: #06080f;
    --bg-1: #0a0e1a;
    --bg-2: #0f1424;
    --bg-elev: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text-primary: #f2f4f8;
    --text-secondary: #a5adbd;
    --text-muted: #6b7385;

    --accent: #6366f1;
    --accent-2: #22d3ee;
    --accent-3: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.45);

    --success: #10b981;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --container: 1200px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-0);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background layers --------------------------------------------------------- */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(34, 211, 238, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(168, 85, 247, 0.12), transparent 60%);
}

.grid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 80%);
}

/* Layout utilities ---------------------------------------------------------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 16px 0;
}

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

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.06);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Buttons ------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -10px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-elev);
    color: var(--text-primary);
    border-color: var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav {
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
}

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

/* Header / Nav -------------------------------------------------------------- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(6, 8, 15, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.header.is-scrolled { border-bottom-color: var(--border); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo-mark {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-2);
    padding: 4px 8px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.btn-nav { color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s var(--ease);
}

/* Hero ---------------------------------------------------------------------- */

.hero {
    padding: 80px 0 140px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    font-size: 0.83rem;
    font-weight: 500;
    border-radius: 999px;
    margin-bottom: 28px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.hero-title .gradient-text {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    max-width: 640px;
    margin: 0 auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-unit { font-size: 1.1rem; opacity: 0.6; }

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Hero visual --------------------------------------------------------------- */

.hero-visual {
    max-width: 680px;
    margin: 80px auto 0;
    position: relative;
    z-index: 1;
}

.code-window {
    background: linear-gradient(180deg, rgba(15, 20, 36, 0.9), rgba(10, 14, 26, 0.9));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 20px 60px -10px var(--accent-glow);
    backdrop-filter: blur(16px);
}

.code-window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3a3f4f;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-title {
    margin-left: 14px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-window-body {
    padding: 22px 26px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow-x: auto;
}

.c-kw { color: #c084fc; }
.c-fn { color: var(--accent-2); }
.c-cls { color: #fbbf24; }
.c-str { color: #86efac; }

/* Services ------------------------------------------------------------------ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 32px 28px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, var(--accent) 50%, transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.14);
}

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

.service-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    color: var(--accent-2);
    margin-bottom: 22px;
}

.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.service-tags li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
}

/* Expertise ----------------------------------------------------------------- */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.tech-category {
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}

.tech-category:hover {
    border-color: rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.03);
}

.tech-category h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
    font-weight: 500;
}

.tech-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-category li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 18px;
    position: relative;
}

.tech-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* Timeline ------------------------------------------------------------------ */

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--accent-3), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg-0);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.timeline-content {
    padding: 24px 28px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s var(--ease);
}

.timeline-content:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.035);
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.timeline-client {
    font-weight: 600;
    color: var(--accent-2);
    font-size: 0.95rem;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-bottom: 14px;
    line-height: 1.65;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.tag-list li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 9px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    color: #c7c9d9;
}

/* Portfolio ----------------------------------------------------------------- */

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    text-align: left;
    max-width: 100%;
}

.portfolio-header h2 { margin-top: 12px; }

.carousel-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent-2);
}

.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 4px 28px;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 360px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

.project-media {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(168, 85, 247, 0.12));
}

.project-media--video iframe,
.project-media img,
.project-media > video {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.project-media[data-accent="cyan"] {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(99, 102, 241, 0.14));
}

.project-media[data-accent="purple"] {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.14));
}

.project-media[data-accent="pink"] {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(251, 146, 60, 0.14));
}

.project-media[data-accent="emerald"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.14));
}

.project-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent 80%);
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Phone mockup placeholders ------------------------------------------------- */

.phone-frame {
    position: relative;
    width: 150px;
    height: 300px;
    background: linear-gradient(180deg, #1a1f32, #0a0e1a);
    border-radius: 26px;
    padding: 8px;
    box-shadow:
        0 30px 60px -15px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    z-index: 1;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.15), transparent 40%);
}

.phone-label {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.03em;
}

.phone-placeholder-1 { background: linear-gradient(160deg, #6366f1, #a855f7); }
.phone-placeholder-2 { background: linear-gradient(160deg, #22d3ee, #6366f1); }
.phone-placeholder-3 { background: linear-gradient(160deg, #a855f7, #ec4899); }
.phone-placeholder-4 { background: linear-gradient(160deg, #ec4899, #fb923c); }
.phone-placeholder-5 { background: linear-gradient(160deg, #10b981, #22d3ee); }

.project-info {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.project-info .tag-list { margin-top: 6px; }

/* Carousel dots ------------------------------------------------------------- */

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dot {
    width: 26px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease);
}

.carousel-dot.is-active {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    width: 40px;
}

.carousel-dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.25);
}

/* Portfolio CTA ------------------------------------------------------------- */

.portfolio-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding: 28px;
    background: var(--bg-elev);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
}

.portfolio-cta p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin: 0;
}

/* Process ------------------------------------------------------------------- */

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.process-step {
    padding: 32px 26px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    transition: all 0.25s var(--ease);
}

.process-step:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.step-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-2);
    padding: 4px 10px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 6px;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Contact ------------------------------------------------------------------- */

.contact-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.6;
}

.contact-text {
    position: relative;
    z-index: 1;
}

.contact-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin: 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.contact-text p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1rem;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.meta-item {
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.meta-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.meta-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer -------------------------------------------------------------------- */

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s var(--ease);
}

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

/* Reveal on scroll ---------------------------------------------------------- */

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

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

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 860px) {
    section { padding: 80px 0; }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        bottom: 0;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 32px 28px;
        background: rgba(10, 14, 26, 0.97);
        border-left: 1px solid var(--border);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
    }

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

    .nav-toggle { display: flex; }

    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-stats { gap: 36px; }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 28px;
    }

    .section-header { margin-bottom: 48px; }

    .timeline-meta { flex-direction: column; align-items: flex-start; gap: 4px; }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .carousel-track { gap: 14px; }

    .project-card { flex-basis: 85vw; max-width: 340px; }

    .phone-frame { width: 130px; height: 260px; }
}

@media (max-width: 520px) {
    .container { padding: 0 18px; }

    .hero { padding: 40px 0 80px; }

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

    .hero-stats {
        padding-top: 36px;
        gap: 28px;
    }

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

    .code-window-body { font-size: 0.8rem; padding: 16px 18px; }

    .contact-meta { grid-template-columns: 1fr; }
}

/* Accessibility ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

::selection {
    background: var(--accent);
    color: #fff;
}
