/*
Theme Name: Numan Iftikhar Portfolio 4
Theme URI: https://numaniftikhar.com
Author: Numan Iftikhar
Author URI: https://numaniftikhar.com
Description: Premium portfolio for Numan Iftikhar
Version: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: numan-portfolio-4
*/

/* ============================================
   NUMAN IFTIKHAR — Premium portfolio
   Tokens: near-black canvas, emerald→teal accent
   ============================================ */

:root {
    --bg: #0a0a0b;
    --bg-elev: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f4f5;
    --text-2: #d4d4d8;
    --text-3: #a1a1aa;
    --accent: #10b981;
    --accent-2: #14b8a6;
    --accent-grad: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --glow: rgba(16, 185, 129, 0.28);
    --violet: rgba(139, 92, 246, 0.16);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --space: 8px;
    --container: 1200px;
    --header-offset: 96px;
    --font: Inter, ui-sans-serif, system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --shadow-btn: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 10px 30px rgba(16, 185, 129, 0.22);
    --ease: 200ms ease;
}

@font-face {
    font-family: Inter;
    src: url("assets/fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("assets/fonts/inter-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("assets/fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("assets/fonts/jetbrains-mono-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

section[id], #trusted-by { scroll-margin-top: var(--header-offset); }

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% -10%, rgba(16, 185, 129, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 8%, rgba(20, 184, 166, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 45% at 80% 85%, var(--violet), transparent 55%);
}

body::after { display: none; }

.topology {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    mix-blend-mode: screen;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.045;
    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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; transition: color var(--ease); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: rgba(16, 185, 129, 0.35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent-grad);
    color: #04110c;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); color: #04110c; }
.btn-outline, .btn-ghost, .btn-accent {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover, .btn-ghost:hover, .btn-accent:hover {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.08);
}
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 24px; }
.btn-full { width: 100%; }

/* Nav */
#navbar {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}
.nav-pill {
    width: min(1120px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 18px;
    background: rgba(10, 10, 11, 0.62);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: padding var(--ease), width var(--ease);
}
#navbar.scrolled .nav-pill { padding: 6px 8px 6px 16px; }
.logo { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.02em; flex-shrink: 0; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1100;
}
.nav-links a {
    color: var(--text-3);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}
.hamburger span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
#hero {
    padding: 132px 0 56px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
    gap: 48px;
    align-items: center;
}
.hero-kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 14px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    margin-bottom: 22px;
}
.hero-kicker-dot, .hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}
.hero-copy h1 {
    font-size: clamp(52px, 8vw, 92px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.88;
    margin-bottom: 18px;
}
.hero-firstname {
    display: block;
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: -0.04em;
}
.hero-role, .hero-title {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}
.grad {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    max-width: 65ch;
    color: var(--text-3);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-socials { display: flex; gap: 10px; margin-bottom: 8px; }
.hero-socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-3);
}
.hero-socials a:hover { color: var(--text); border-color: var(--accent); }
.hero-meta { color: var(--text-3); font-size: 0.88rem; margin-top: 8px; }
.hero-meta a { color: #6ee7b7; }
.hero-visual { justify-self: stretch; }
.terminal {
    position: relative;
    background: #070708;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.terminal-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3f3f46;
}
.terminal-bar span:nth-child(1) { background: #f87171; }
.terminal-bar span:nth-child(2) { background: #fbbf24; }
.terminal-bar span:nth-child(3) { background: #34d399; }
.terminal-bar em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-3);
    letter-spacing: 0.08em;
}
.terminal-body {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.7;
    padding: 18px 18px 56px;
    color: #d4d4d8;
    white-space: pre-wrap;
    min-height: 240px;
}
.terminal-body .cmt { color: #71717a; }
.terminal-body .prm { color: #6ee7b7; }
.terminal-body .cmd { color: #e4e4e7; }
.terminal-body .ok { color: #a7f3d0; }
.terminal-body .dim { color: #a1a1aa; }
.terminal-body .cursor {
    color: #34d399;
    animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.portrait-chip {
    position: absolute;
    right: -18px;
    bottom: -22px;
    width: 132px;
    padding: 4px;
    background: #111;
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    transform: rotate(-3deg);
}
.portrait-chip img,
.portrait-frame img {
    width: 100%;
    height: 158px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 12px;
    display: block;
}
.trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 64px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-item {
    padding: 18px 16px 18px 0;
    border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; padding-right: 0; }
.trust-item strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.trust-item span { font-size: 0.75rem; color: var(--text-3); }

/* Cards + spotlight */
.glass, .skill-card, .service-card, .project-card, .stat-card, .info-card,
.testimonial-card, .cert-card, .why-card, .education-card, .timeline-content,
.contact-card, .roadmap-card, .process-step, .booking-highlight-item,
.skills-explore, .how-i-work {
    position: relative;
    background:
        radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(16, 185, 129, 0.12), transparent 42%),
        var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.skill-card:hover, .service-card:hover, .project-card:hover, .stat-card:hover,
.testimonial-card:hover, .cert-card:hover, .why-card:hover, .roadmap-card:hover {
    transform: translateY(-3px);
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.18);
}

/* Logo strip */
#trusted-by { padding: 28px 0 8px; position: relative; z-index: 2; }
.trusted-label {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
}
.trusted-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.trusted-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.trusted-track:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trusted-logos {
    display: flex;
    align-items: center;
    gap: 36px;
    padding-right: 36px;
}
.trusted-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}
.brand-logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.58);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color var(--ease);
}
.trusted-item:hover { color: var(--text); }
.trusted-item:hover .brand-logo { background-color: var(--brand, #10b981); }

/* Sections */
section { padding: 132px 0; position: relative; z-index: 2; }
.section-header { margin-bottom: 40px; }
.section-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6ee7b7;
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}
.section-line { display: none; }
.section-subtitle {
    max-width: 65ch;
    color: var(--text-3);
    margin-top: 12px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}
.about-content h3 {
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.about-content p {
    color: var(--text-3);
    max-width: 65ch;
    margin-bottom: 14px;
}
.about-content strong { color: var(--text); }
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.stat-card { padding: 18px; text-align: left; }
.stat-number, .stat-plus {
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 4px;
}
.info-card { padding: 8px 20px; }
.info-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.info-value { font-weight: 500; }
.info-value.available { color: #34d399; }
.cert-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}
.cert-card { padding: 16px; }
.cert-card h4 { font-size: 0.88rem; margin-bottom: 4px; }
.cert-provider { font-size: 0.75rem; color: var(--text-3); }

/* Skills / services bento */
.skills-grid, .services-grid, .why-grid, .testimonials-grid, .certs-grid, .projects-grid {
    display: grid;
    gap: 16px;
}
.skills-grid { grid-template-columns: repeat(3, 1fr); }
.skill-card, .service-card { padding: 24px; overflow: hidden; }
.skill-card h3, .service-card h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.skill-card-desc, .service-card > p { color: var(--text-3); font-size: 0.92rem; }
.skill-tags, .timeline-tags, .project-tech-stack, .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.skill-tags span, .timeline-tags span, .project-tech-stack span, .blog-tags span, .hero-pills li {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-3);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.skills-explore { display: flex; gap: 12px; padding: 18px 20px; margin-top: 16px; color: var(--text-3); font-size: 0.9rem; }
.line-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.service-icon, .skill-icon, .why-icon, .project-icon { color: #6ee7b7; }

.services-grid {
    counter-reset: svc;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(140px, auto);
}
.service-card { padding-top: 28px; }
.service-card::after {
    counter-increment: svc;
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    top: 16px;
    right: 18px;
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-3);
    letter-spacing: 0.08em;
}
.service-card:nth-child(1), .service-card:nth-child(2) { grid-column: span 2; }
.service-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}
.service-includes li {
    color: var(--text-3);
    font-size: 0.7rem;
    font-family: var(--mono);
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
}
.service-includes li::before { content: none; }

.how-i-work { padding: 28px; margin-top: 24px; }
.how-title { text-align: center; margin-bottom: 20px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.process-step { padding: 16px; text-align: center; }
.process-arrow { display: none; }
.step-number { font-family: var(--mono); color: #6ee7b7; margin-bottom: 8px; }
.process-step p { color: var(--text-3); font-size: 0.82rem; }

#mlops-focus { padding: 28px 0 8px; }
.mlops-focus-content {
    max-width: 720px;
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 22px;
}
.mlops-focus-content p { color: var(--text-3); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(#10b981, rgba(16, 185, 129, 0.1));
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}
.timeline-date span {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: #6ee7b7;
}
.timeline-content { padding: 22px; margin-top: 8px; }
.timeline-header h3 { font-size: 1.1rem; }
.timeline-header .company { color: #6ee7b7; font-weight: 500; display: block; }
.timeline-header .location { color: var(--text-3); font-size: 0.82rem; }
.timeline-details li {
    color: var(--text-3);
    font-size: 0.9rem;
    margin: 8px 0;
    padding-left: 12px;
    position: relative;
}
.timeline-details li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); position: absolute; left: 0; top: 9px; }
.timeline-details strong { color: var(--text); }

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

/* Projects */
.projects-grid { grid-template-columns: 1fr 1fr; }
.project-card { padding: 24px; overflow: hidden; }
.project-card.flagship { grid-column: span 2; }
.project-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.project-title { font-size: 1.2rem; margin-bottom: 6px; }
.project-subtitle { color: var(--text-3); font-size: 0.9rem; margin-bottom: 12px; }
.flagship-tag, .reference-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    vertical-align: middle;
}
.project-architecture {
    background: #eef2e8;
    border-radius: 14px;
    padding: 12px 12px 40px;
    margin: 14px 0;
    overflow: hidden;
}
.project-architecture img {
    width: 100%;
    max-height: 280px;
    min-height: 160px;
    object-fit: contain;
    background: #f7f8f3;
    border-radius: 8px;
    opacity: 1;
}
.arch-label {
    position: absolute;
    left: 12px; right: 12px; bottom: 8px;
    font-size: 0.75rem;
    color: #111;
    font-weight: 500;
}
.project-architecture { position: relative; }
.project-details li { color: var(--text-3); font-size: 0.9rem; margin: 8px 0; padding-left: 18px; position: relative; }
.project-details li i { position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 0.75rem; }
.project-psr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0;
}
.project-psr div {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-3);
}
.project-psr strong { display: block; color: var(--text); font-size: 0.72rem; font-family: var(--mono); margin-bottom: 4px; }
.project-link, .project-github {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-3);
}
.project-github:is([href=""], [href="#"], :not([href])), .project-github[hidden] { display: none !important; }
.badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    color: var(--text-2);
    margin: 4px 4px 0 0;
}

.roadmap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.roadmap-card { padding: 22px; }
.roadmap-status { font-family: var(--mono); font-size: 0.72rem; color: #6ee7b7; }
.roadmap-card p { color: var(--text-3); margin-top: 8px; }

.why-grid { grid-template-columns: repeat(3, 1fr); }
.why-card { padding: 22px; }
.why-card p { color: var(--text-3); font-size: 0.9rem; }
.hire-banner-content {
    margin-top: 48px;
    text-align: center;
    padding: 56px 24px;
    border-radius: 28px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.18), transparent 55%),
        var(--bg-elev);
}
.hire-text h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.hire-text p { color: var(--text-3); max-width: 60ch; margin: 0 auto 22px; }
.hire-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card { padding: 24px; }
.testimonial-text { color: var(--text-2); font-size: 0.95rem; margin: 12px 0 16px; }
.testimonial-text::before {
    content: "“";
    display: block;
    font-size: 2.4rem;
    line-height: 0.8;
    color: rgba(16, 185, 129, 0.45);
    margin-bottom: 8px;
}
.author-name { font-weight: 600; display: block; }
.author-role { color: var(--text-3); font-size: 0.8rem; }
.testimonial-stars { color: #34d399; font-size: 0.75rem; }
.testimonials-cta { text-align: center; margin-top: 28px; color: var(--text-3); }
.education-card { display: flex; gap: 16px; padding: 22px; align-items: center; }
.edu-content span { display: block; color: var(--text-3); font-size: 0.88rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.blog-image { height: 160px; background: #111; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-content { padding: 18px; }
.blog-read-more { color: #6ee7b7; font-size: 0.85rem; }

.booking-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.booking-highlight-item { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; }
.booking-topics li { color: var(--text-3); padding: 6px 0; }
.booking-form-wrapper {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
}
.booking-note { color: var(--text-3); font-size: 0.8rem; margin-top: 8px; }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; }
.contact-card { padding: 18px; margin-bottom: 12px; }
.contact-card a { color: #6ee7b7; }
.contact-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-3);
}
.contact-form {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.form-group { position: relative; margin-bottom: 18px; }
.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 14px 8px;
    color: var(--text);
    font: inherit;
}
.form-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-3);
    font-size: 0.85rem;
    pointer-events: none;
    transition: 0.15s ease;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 6px;
    font-size: 0.68rem;
    color: #6ee7b7;
}

#footer { padding: 40px 0 48px; position: relative; z-index: 2; border-top: 1px solid var(--border); }
.footer-content { text-align: center; color: var(--text-3); }
.footer-logo { font-weight: 600; color: var(--text); display: inline-block; margin-bottom: 8px; }
.footer-socials { display: flex; justify-content: center; gap: 14px; margin: 12px 0; }
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--border);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-grad);
    z-index: 10001;
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    animation: none;
}
.reveal.active {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.arch-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 20000;
    padding: 24px;
}
.arch-modal.active { opacity: 1; visibility: visible; }
.arch-modal img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 12px; background: #f4f4f5; }
.arch-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #111;
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal.active { opacity: 1; transform: none; filter: none; transition: none; }
    .trusted-track, .hero-kicker-dot, .hero-badge .dot, .terminal-body .cursor { animation: none; }
    .skill-card:hover, .service-card:hover, .project-card:hover { transform: none; }
}

@media (max-width: 1024px) {
    .nav-links a { padding: 8px 8px; font-size: 0.78rem; }
    .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; }
    .skills-grid, .why-grid, .testimonials-grid, .projects-grid { grid-template-columns: 1fr; }
    .project-card.flagship { grid-column: auto; }
    .certs-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .service-card:nth-child(1), .service-card:nth-child(2) { grid-column: auto; }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(280px, 86vw);
        height: 100vh;
        background: #111214;
        flex-direction: column;
        align-items: flex-start;
        padding: 88px 20px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    .nav-links.open { right: 0; }
    .nav-links a { width: 100%; padding: 12px 14px; font-size: 0.95rem; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hamburger span { transition: transform var(--ease), opacity var(--ease); }
    .hero-container { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { max-width: 520px; }
    .portrait-chip { right: 16px; bottom: -18px; }
    .trust-row { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    :root { --header-offset: 88px; }
    section { padding: 88px 0; }
    #hero { min-height: 0; padding-top: 120px; }
    .hero-copy h1 { font-size: 48px; }
    .process-steps, .project-psr, .blog-grid, .roadmap-grid { grid-template-columns: 1fr; }
    .nav-actions .btn { display: none; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 28px); }
    .hero-copy h1 { font-size: 40px; }
    .trust-row, .about-stats, .services-grid, .certs-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
}

#preloader, .loader, .loader-ring { display: none !important; }
.chatbot-widget { display: none !important; }
