:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --accent: #f77f00;
    --bg: #0b172a;
    --bg-alt: #112240;
    --text: #f8f9fa;
    --text-muted: rgba(248, 249, 250, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(11, 23, 42, 0.45);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, rgba(45, 106, 79, 0.35), transparent 55%),
                radial-gradient(circle at bottom right, rgba(247, 127, 0, 0.35), transparent 60%),
                var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(45, 106, 79, 0.2), transparent 45%),
                radial-gradient(circle at 75% 60%, rgba(247, 127, 0, 0.2), transparent 50%),
                rgba(5, 10, 20, 0.92);
    display: grid;
    place-items: center;
    z-index: 1400;
    overflow: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
}

.page-loader__beam {
    position: absolute;
    width: 130%;
    height: 240px;
    background: linear-gradient(90deg, transparent, rgba(98, 209, 255, 0.28), transparent);
    filter: blur(24px);
    animation: loaderScan 2.6s ease-in-out infinite;
    transform: rotate(-5deg);
}

.page-loader__content {
    position: relative;
    background: rgba(17, 34, 64, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.35rem;
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.loader-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.loader-dots {
    display: inline-flex;
    gap: 6px;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text);
    opacity: 0.75;
    animation: loaderDot 1.2s ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

.is-hidden {
    display: none !important;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.section {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Navigation */
.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(18px);
    background: rgba(11, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(45, 106, 79, 0.35);
}

.brand-text {
    font-size: 1.35rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(45, 106, 79, 0.18);
    color: var(--text);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

/* Hero */
.hero {
    padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-content {
    grid-column: span 7;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.25);
    border: 1px solid rgba(45, 106, 79, 0.4);
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(120deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--text);
    box-shadow: 0 18px 40px rgba(45, 106, 79, 0.35);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(248, 249, 250, 0.3);
}

.button:hover {
    transform: translateY(-3px);
}

[data-accordion-toggle] {
    width: 100%;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
}

[data-accordion-toggle]:hover {
    border-color: rgba(247, 127, 0, 0.4);
}

[data-accordion-toggle] span:last-child {
    font-weight: 700;
    font-size: 1.25rem;
}

.hero-meta {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.meta-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(17, 34, 64, 0.75);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.meta-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.45rem;
}

.meta-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-visual {
    grid-column: span 5;
    position: relative;
}

.data-panel {
    padding: 1.8rem;
    border-radius: var(--radius);
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.2rem;
}

.data-panel h3 {
    font-size: 1.2rem;
}

.panel-grid {
    display: grid;
    gap: 1rem;
}

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

.panel-item span:first-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.panel-item span:last-child {
    font-weight: 600;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(47, 238, 171, 0.12);
    color: #2feeab;
    font-size: 0.9rem;
}

/* Services */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    padding: 2rem;
    border-radius: var(--radius);
    background: rgba(17, 34, 64, 0.75);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, border 0.35s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(247, 127, 0, 0.4);
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 15%, rgba(98, 209, 255, 0.12), transparent 85%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(45, 106, 79, 0.25);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    transition: background 0.3s ease, color 0.3s ease;
}

.repo-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.stats-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(45, 106, 79, 0.18);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stats-cards .stat-card:last-child {
    background: rgba(247, 127, 0, 0.14);
    border-color: rgba(247, 127, 0, 0.35);
}

.stats-cards .stat-card:last-child .stat-value {
    color: var(--primary);
}

.portfolio-hero {
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.portfolio-hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-fade-in {
    opacity: 0;
    animation: pageFadeIn 0.9s ease forwards;
}

.glitch-title {
    position: relative;
    font-size: clamp(3rem, 7vw, 4.2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.45);
    animation: hue-shift 6s ease-in-out infinite;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0.35;
}

.glitch-title::before {
    color: rgba(98, 209, 255, 0.8);
    transform: translate3d(2px, 2px, 0);
}

.glitch-title::after {
    color: rgba(255, 137, 255, 0.8);
    transform: translate3d(-2px, -2px, 0);
    mix-blend-mode: screen;
}

.glitch-title:hover::before,
.glitch-title:hover::after {
    animation: glitch 0.8s steps(2, end) infinite;
}

.glitch-title:hover {
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.portfolio-hero .hero-cta {
    justify-content: center;
    margin-top: 1.5rem;
}

.portfolio-hero-content .typing-text {
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    min-height: 2.2rem;
    display: inline-block;
}

.portfolio-hero-visual-small {
    max-width: 180px;
    margin: 2rem auto 0;
    opacity: 0.9;
}

.portfolio-hero-visual-small lottie-player {
    width: 100%;
    height: 100%;
}

.portfolio-hero::before,
.portfolio-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: -1;
    animation: floaty 16s ease-in-out infinite;
}

.portfolio-hero::before {
    background: rgba(98, 209, 255, 0.4);
    top: -80px;
    left: -40px;
}

.portfolio-hero::after {
    background: rgba(247, 127, 0, 0.32);
    bottom: -120px;
    right: -50px;
    animation-delay: 4s;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading lottie-player {
    width: 120px;
    height: 120px;
}

.portfolio-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.timeline-heading {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-pill {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(17, 34, 64, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

.portfolio-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Process timeline */
.timeline {
    --timeline-offset: 120px;
    --timeline-line: 50px;
    display: grid;
    gap: 1.5rem;
    position: relative;
    padding-left: var(--timeline-offset);
}

.timeline.align-center {
    --timeline-offset: 120px;
    --timeline-line: 50px;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: calc(var(--timeline-line) - 1px);
    width: 2px;
    background: linear-gradient(180deg, rgba(45, 106, 79, 0.4), rgba(247, 127, 0, 0.4));
}

.timeline-item {
    background: rgba(17, 34, 64, 0.7);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}

.timeline .timeline-item {
    display: block;
    padding-left: 100px;
}

.timeline .timeline-item::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    left: calc(var(--timeline-line) - 30px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.2rem;
    line-height: 1.1;
}

.timeline-item h3 {
    margin-bottom: 0.75rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(17, 34, 64, 0.75);
    padding: 1.8rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    box-shadow: var(--shadow);
}

.testimonial-card::after {
    content: '\201D';
    position: absolute;
    font-size: 3.5rem;
    color: rgba(248, 249, 250, 0.12);
    right: 1.5rem;
    top: 0.5rem;
}

.testimonial-author {
    margin-top: 1.4rem;
    font-weight: 600;
}

.testimonial-role {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* API section */
.api-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.api-card {
    background: rgba(17, 34, 64, 0.75);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.8rem;
    box-shadow: var(--shadow);
}

.api-card h3 {
    margin-bottom: 1rem;
}

.api-output {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: rgba(5, 10, 20, 0.65);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    display: grid;
    align-content: center;
    gap: 0.75rem;
}

.api-output span {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Map */
#service-map {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.map-card {
    background: rgba(17, 34, 64, 0.75);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.5rem;
}

.service-areas {
    display: grid;
    gap: 0.75rem;
}

.service-areas li {
    list-style: none;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(45, 106, 79, 0.3);
    background: rgba(45, 106, 79, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Page layouts */
.page-hero {
    text-align: center;
    padding: clamp(5rem, 9vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0.75rem auto 0;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--accent);
}

.page-section {
    background: rgba(11, 23, 42, 0.55);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: clamp(2.5rem, 5vw, 3.5rem);
    box-shadow: var(--shadow);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.grid-two {
    display: grid;
    gap: 2rem;
}

.grid-two.columns {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.list-check li {
    list-style: none;
    position: relative;
    padding-left: 2.2rem;
    margin-bottom: 0.85rem;
}

.list-check li::before {
    content: '\2713';
    position: absolute;
    left: 0.75rem;
    top: 0.1rem;
    color: var(--accent);
    font-weight: 700;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0.75rem;
    text-align: left;
}

.table th {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.table tr:last-child td {
    border-bottom: none;
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(247, 127, 0, 0.18);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

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

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

.terminal-section .section-heading p {
    color: var(--text-muted);
}

.terminal-section .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.terminal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.terminal-card {
    background: linear-gradient(180deg, rgba(17, 34, 64, 0.9), rgba(5, 10, 20, 0.85));
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(5, 10, 20, 0.55);
    overflow: hidden;
}

.terminal-copy p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.terminal-side-card {
    background: rgba(17, 34, 64, 0.82);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: grid;
    gap: 0.65rem;
    transform-origin: center;
}

.terminal-side-card.is-open {
    opacity: 1;
    transform: translateY(0);
}

.terminal-side-card.pulse {
    animation: cardPulse 0.7s ease;
}

.side-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.terminal-side-card .eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
}

.terminal-side-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.terminal-about-list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 0;
}

.terminal-about-list li {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--text-muted);
}

.terminal-about-list i {
    color: var(--accent);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, rgba(45, 106, 79, 0.3), rgba(247, 127, 0, 0.16));
}

.terminal-dots {
    display: inline-flex;
    gap: 6px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-dots span:nth-child(1) {
    background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
    background: #fdbc2e;
}

.terminal-dots span:nth-child(3) {
    background: #28c940;
}

.terminal-title {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.terminal-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(98, 209, 255, 0.14);
    border: 1px solid rgba(98, 209, 255, 0.25);
    color: #c1eaff;
    font-weight: 600;
    font-size: 0.85rem;
}

.terminal-body {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: radial-gradient(circle at 10% 10%, rgba(98, 209, 255, 0.08), transparent 35%),
                radial-gradient(circle at 85% 30%, rgba(247, 127, 0, 0.08), transparent 30%),
                rgba(5, 10, 20, 0.75);
    padding: 1.2rem;
    min-height: 240px;
    max-height: 280px;
    overflow: hidden;
    position: relative;
    border-radius: 0 0 var(--radius) var(--radius);
}

.terminal-line {
    color: #d1f5ff;
    margin-bottom: 0.55rem;
    line-height: 1.6;
}

.terminal-line .prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 16px;
    background: #c1eaff;
    animation: cursorBlink 1s steps(2, end) infinite;
    vertical-align: middle;
}

.terminal-cursor.idle {
    opacity: 0.5;
    animation: none;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.contact-card {
    background: rgba(17, 34, 64, 0.75);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(5, 10, 20, 0.65);
    color: var(--text);
    font-size: 1rem;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(247, 127, 0, 0.45);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(47, 238, 171, 0.15);
    color: #2feeab;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    background: rgba(5, 10, 20, 0.65);
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.footer-links {
    display: grid;
    gap: 0.5rem;
}

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

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.portfolio-footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(11, 23, 42, 0.9), rgba(5, 10, 20, 0.8));
    margin-top: 3rem;
}

.portfolio-footer__header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.portfolio-footer__header .brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.portfolio-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

@keyframes loaderScan {
    0% {
        transform: translateY(-120%) rotate(-5deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(120%) rotate(-5deg);
        opacity: 0.6;
    }
}

@keyframes loaderDot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.55;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes floaty {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(12px, -16px, 0) scale(1.05);
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes cardPulse {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow);
    }
    35% {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 30px 70px rgba(5, 10, 20, 0.65);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: var(--shadow);
    }
}

@keyframes hue-shift {
    0% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(35deg);
    }
    100% {
        filter: hue-rotate(0deg);
    }
}

@keyframes glitch {
    0% {
        clip-path: inset(0 0 80% 0);
        transform: translate3d(1px, -1px, 0);
    }
    20% {
        clip-path: inset(15% 0 60% 0);
        transform: translate3d(-1px, 1px, 0);
    }
    40% {
        clip-path: inset(30% 0 40% 0);
        transform: translate3d(2px, 0, 0);
    }
    60% {
        clip-path: inset(10% 0 50% 0);
        transform: translate3d(-2px, 0, 0);
    }
    80% {
        clip-path: inset(20% 0 60% 0);
        transform: translate3d(1px, -1px, 0);
    }
    100% {
        clip-path: inset(0 0 80% 0);
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader,
    .page-loader__beam,
    .loader-dots span,
    .reveal-up,
    .card,
    .portfolio-hero::before,
    .portfolio-hero::after,
    .side-reveal {
        animation: none !important;
        transition: none !important;
    }

    .reveal-up {
        opacity: 1;
        transform: none;
    }

    .side-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .hero-visual {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        inset: 72px 1.5rem auto;
        background: rgba(11, 23, 42, 0.95);
        flex-direction: column;
        border-radius: var(--radius);
        padding: 1.5rem;
        gap: 1rem;
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading lottie-player {
        width: 80px;
        height: 80px;
    }

    .portfolio-hero-content {
        text-align: left;
    }

    .portfolio-hero-content .typing-text {
        white-space: normal;
        border-right: none;
    }

    .timeline {
        --timeline-offset: 80px;
        --timeline-line: 40px;
        padding-left: var(--timeline-offset);
    }

    .timeline .timeline-item {
        padding-left: 84px;
    }

    .timeline .timeline-item::before {
        width: 52px;
        height: 52px;
        left: calc(var(--timeline-line) - 26px);
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

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

    .portfolio-hero {
        padding-top: 4rem;
    }

    .portfolio-hero-visual-small {
        max-width: 140px;
    }

    .card {
        padding: 1.5rem;
    }

    .portfolio-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}
