/* ============================================================
   NANDINI SAXENA — DEVELOPER PORTFOLIO
   style.css | Neo-Brutalist Editorial Design
   ============================================================ */

/* -------------------- CSS VARIABLES -------------------- */
:root {
    --bg:           transparent;
    --bg-card:      rgba(255, 255, 255, 0.75);
    --bg-dark:      #111111;
    --text-primary: #111111;
    --text-muted:   #666666;
    --text-light:   #999999;
    --accent:       #6C63FF;
    --accent-soft:  rgba(108, 99, 255, 0.10);
    --accent-mid:   rgba(108, 99, 255, 0.20);
    --border:       #E0E0E0;
    --border-dark:  #CCCCCC;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;

    --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:  0 8px 30px rgba(0,0,0,0.10);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.12);

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -------------------- RESET & BASE -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
            linear-gradient(to right, rgba(108, 99, 255, 0.045) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(108, 99, 255, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul { list-style: none; }

/* -------------------- LAYOUT UTILITIES -------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* -------------------- SCROLL REVEAL ANIMATION -------------------- */
/* Elements that animate on scroll */
.reveal,
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible,
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------- SECTION LABELS -------------------- */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* -------------------- ACCENT -------------------- */
.accent { color: var(--accent); }
.dot    { color: var(--accent); margin: 0 0.3em; }

/* -------------------- BUTTONS -------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: #F5F5F5;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-dark);
    padding: 0.75rem 1.4rem;
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    transform: translateX(4px);
}

/* Ghost button on dark backgrounds (e.g. Featured section) */
.featured .btn-ghost {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.35);
}

.featured .btn-ghost:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

/* Scrolled state — added via JS */
.navbar.scrolled {
    background: rgba(245, 245, 245, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
    padding: 0.85rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: opacity var(--transition);
}

.nav-logo:hover { opacity: 0.7; }

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 5rem;
    position: relative;
    overflow: hidden;
}

/* Grid texture is applied globally on body — no hero-only override needed */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}

/* ------ Hero Content ------ */
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-mid);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.08em;
}

.hero-headline .line {
    display: block;
}

.hero-name {
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 1.5rem;
}

.stat:first-child { padding-left: 0; }

.stat-num {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-dark);
}

/* ------ Hero Image ------ */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-frame {
    position: relative;
    width: 360px;
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #e8e5ff, #f0efff);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Fallback when no image */
.hero-image-frame.no-image .image-fallback {
    display: flex;
}

.image-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
}

.hero-image-frame:not(.no-image) .image-fallback {
    display: none !important;
}

/* Image badge */
.image-badge {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}

/* Decorative elements */
.hero-deco-line {
    position: absolute;
    top: 50%;
    right: -20px;
    width: 60px;
    height: 2px;
    background: var(--accent);
    transform: translateY(-50%);
}

.hero-deco-box {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    opacity: 0.4;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    animation: scroll-anim 1.6s ease-in-out infinite;
}

@keyframes scroll-anim {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50%       { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.featured {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: #fff;
    position: relative;
}

/* Grid texture visible on dark featured section */
.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right, rgba(108, 99, 255, 0.07) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(108, 99, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.featured .container {
    position: relative;
    z-index: 1;
}

.featured .section-label {
    color: var(--accent);
    margin-bottom: 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.featured-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 0.8rem;
}

.featured-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #fff;
    margin-bottom: 1.5rem;
}

.featured-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
    max-width: 520px;
}

.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    background: rgba(108, 99, 255, 0.15);
    color: #a59dff;
    border: 1px solid rgba(108, 99, 255, 0.35);
    border-radius: var(--radius-sm);
}

.featured-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Right: cipher animation visual */
.featured-visual {
    position: relative;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.cipher-animation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.cipher-row {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(108, 99, 255, 0.7);
    letter-spacing: 0.25em;
    overflow: hidden;
    white-space: nowrap;
    height: 1.4em;
    line-height: 1.4;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.projects {
    padding: 7rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Domain Divider — spans full grid width */
.domain-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.domain-divider:first-child {
    margin-top: 0;
}

.domain-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    white-space: nowrap;
}

.domain-label .domain-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}

.domain-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(108, 99, 255, 0.2), transparent);
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Card Image */
.card-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0efff, #e8e5ff);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img {
    transform: scale(1.05);
}

/* Emoji fallback */
.card-img-wrap.no-img .card-img-fallback {
    display: flex;
}

.card-img-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.card-img-wrap:not(.no-img) .card-img-fallback {
    display: none !important;
}

/* Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(108, 99, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.overlay-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.overlay-link:hover { background: rgba(255,255,255,0.15); }

/* Card Body */
.card-body {
    padding: 1.4rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tag-sm {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-mid);
    border-radius: 4px;
}

.card-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-cta {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    transition: transform var(--transition);
}

.card-cta:hover { transform: translateX(4px); }

.card-github {
    color: var(--text-muted);
    transition: color var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
}

.card-github:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

/* ============================================================
   ABOUT SECTION — Redesigned
   ============================================================ */
.about {
    padding: 0 0 7rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* ---------- Marquee Strip ---------- */
.about-marquee-wrap {
    overflow: hidden;
    background: var(--accent);
    padding: 0.75rem 0;
    margin-bottom: 5rem;
    border-bottom: 2px solid rgba(0,0,0,0.12);
}

.about-marquee {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    white-space: nowrap;
}

.about-marquee span {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.mq-dot {
    color: rgba(255,255,255,0.5) !important;
    font-size: 0.6rem !important;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.about-header {
    margin-bottom: 4rem;
}

.about-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 2rem;
}

/* ---------- Body ---------- */
.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-text {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ---------- Stat Chips ---------- */
.about-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.about-chip {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    cursor: default;
}

.about-chip:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    transform: translateY(-2px);
}

.chip-num {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.chip-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ---------- Timeline ---------- */
.about-timeline-col {
    padding-left: 0.5rem;
}

.timeline-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--accent-mid);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tl-item {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
}

.tl-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-dark);
    border: 2px solid var(--bg);
    outline: 2px solid var(--border-dark);
    flex-shrink: 0;
    margin-top: 4px;
    transition: background var(--transition), outline-color var(--transition);
    z-index: 1;
}

.tl-dot--accent {
    background: var(--accent);
    outline-color: var(--accent);
}

.tl-item:hover .tl-dot {
    background: var(--accent);
    outline-color: var(--accent);
}

.tl-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin: 4px 0;
    min-height: 28px;
}

.tl-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 1.8rem;
}

.tl-year {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-light);
    text-transform: uppercase;
}

.tl-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.tl-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.skills {
    padding: 7rem 0;
    background: var(--bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-group {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}

/* Accent top border bar */
.skill-group::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.skill-group:hover {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.skill-group:hover::before {
    opacity: 1;
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(108, 99, 255, 0.12);
}

.skill-icon {
    font-size: 1.3rem;
}

.skill-group-title {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.skill-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
}

.skill-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(108, 99, 255, 0.12);
    border-radius: 10px;
    cursor: default;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    text-align: center;
}

.skill-logo-item:hover {
    background: rgba(108, 99, 255, 0.07);
    border-color: rgba(108, 99, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.12);
}

.skill-logo-item i {
    font-size: 2rem;
    line-height: 1;
    display: block;
}

/* Flask & other non-colored icons */
.skill-logo-item .devicon-flask-original {
    color: #111111;
}

.skill-svg-icon {
    width: 2rem;
    height: 2rem;
    display: block;
    flex-shrink: 0;
}

.skill-logo-item span {
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.skill-logo-item:hover span {
    color: var(--accent);
}

/* Keep old .skill-tag for any fallback use but hidden in skills grid */
.skill-tag {
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    background: rgba(108, 99, 255, 0.07);
    color: var(--text-primary);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 100px;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.skill-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Certifications */
.certs-row {
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.certs-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.certs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-head);
    font-weight: 500;
}

.cert-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: 7rem 0;
    background: var(--bg);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-sub {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 340px;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-link:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    transform: translateX(4px);
}

.contact-link-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid var(--accent-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.contact-link-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-link-value {
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-arrow {
    font-size: 1rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--transition), transform var(--transition);
}

.contact-link:hover .contact-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

/* Grid texture on dark footer */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right, rgba(108, 99, 255, 0.07) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(108, 99, 255, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

.footer-top {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    transition: opacity var(--transition);
}

.footer-top:hover { opacity: 0.7; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {

    .hero-container {
        grid-template-columns: 1fr;
        max-width: 700px;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-image-frame {
        width: 260px;
        height: 300px;
    }

    .hero-deco-line,
    .hero-deco-box { display: none; }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .about-big-num {
        display: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

    .container { padding: 0 1.2rem; }

    /* Navbar */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: rgba(245,245,245,0.88);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    /* Nav toggle animation */
    .nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Hero */
    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .hero-stats {
        gap: 0;
        flex-wrap: wrap;
    }

    .stat {
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certs-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-image-frame {
        width: 220px;
        height: 260px;
    }

    .about-chips {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-timeline-col {
        padding-left: 0;
    }
}