/* =====================================================
   SAFE MERGED STYLE.CSS
   Strategy:
   - Base styles from index11(1).css
   - Only unique styles from project-madhav-dashboard(1).css
   - Prevents selector override conflicts
   ===================================================== */

/* ================= BASE FILE ================= */
:root {
    --bg: #0a0c0f;
    --bg2: #0f1318;
    --bg3: #141920;
    --border: rgba(255,255,255,0.07);
    --text: #e8eaed;
    --muted: #6b7280;
    --accent: #00d4aa;
    --accent2: #f59e0b;
    --accent3: #3b82f6;
    --card: rgba(255,255,255,0.03);
    --card-hover: rgba(0,212,170,0.05);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
  }

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

  html { scroll-behavior: smooth; }

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


  /* VIDEO CONTAINER */
.proj-video-box{
    position:relative;
    width:100%;
    overflow:hidden;
    border-radius:0 0 24px 24px;
    background:#0f0f10;
}

/* VIDEO */
.proj-video{
    width:100%;
    display:block;
    object-fit:cover;

    /* prevents user interaction */
    pointer-events:none;
}

/* OPTIONAL PREMIUM EFFECT */
.proj-video-box::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,0.15),
        transparent 40%
    );

    pointer-events:none;
}


/* ===== VIDEO SECTION ===== */

.img-section{
    padding:60px 20px;
}

.img-section .container{
    max-width:1200px;
    margin:auto;
}

/* CARD */
.proj-img-wrap{
    width:100%;
    overflow:hidden;

    border-radius:20px;

    background:#111;
    border:1px solid rgba(255,255,255,0.08);
}

/* TOP BAR */
.proj-img-bar{
    display:flex;
    align-items:center;
    gap:8px;

    padding:14px 16px;

    background:#1a1a1a;
}

/* DOTS */
.proj-img-dot{
    width:10px;
    height:10px;
    border-radius:50%;
}

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

/* TITLE */
.proj-img-bar-label{
    color:#d7d7d7;
    font-size:14px;

    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

/* VIDEO WRAPPER */
.proj-video-box{
    width:100%;
    line-height:0;
}

/* VIDEO */
.proj-video{
    width:100%;
    height:auto;

    display:block;
    object-fit:cover;

    pointer-events:none;
}

/* CAPTION */
.proj-img-caption{
    margin-top:14px;

    text-align:center;
    color:#aaa;

    font-size:14px;
}

/* ===== TABLET ===== */

@media(max-width:768px){

    .img-section{
        padding:50px 16px;
    }

    .proj-img-wrap{
        border-radius:16px;
    }

    .proj-img-bar{
        padding:12px;
    }

    .proj-img-bar-label{
        font-size:12px;
    }
}

/* ===== MOBILE ===== */

@media(max-width:480px){

    .img-section{
        padding:40px 12px;
    }

    .proj-img-wrap{
        border-radius:14px;
    }

    .proj-img-bar{
        padding:10px;
    }

    .proj-img-bar-label{
        font-size:11px;
    }

    .proj-img-caption{
        font-size:12px;
    }
}

  /* ─── NOISE OVERLAY ─── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
  }

  .project-name-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-name-link:hover {
  color: #00eebb; 
}

  /* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

  /* ─── ANIMATED GRID BG ─── */
  .grid-bg {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: rgba(10,12,15,0.85);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
  }

  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }

  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.2s !important;
  }
  .nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }
  .nav-cta::after { display: none !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
  }

  /* ─── SECTIONS ─── */
  section {
    position: relative;
    z-index: 1;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
  }

  .section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--accent);
  }

  h2.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 56px;
  }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
  }

  .hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,170,0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
  }

  .hero-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    pointer-events: none;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
    width: 100%;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease forwards;
  }
  .hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
  }

  .hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 8px;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    animation: fadeUp 0.6s 0.2s ease both;
  }
  .hero-title .highlight {
    color: var(--accent2);
    position: relative;
  }

  .hero-desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeUp 0.6s 0.3s ease both;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.6s 0.4s ease both;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover {
    background: #00eebb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,170,0.3);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
  }
  .btn-ghost:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
  }

  .hero-socials {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    animation: fadeUp 0.6s 0.5s ease both;
  }
  .hero-socials a {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
  }
  .hero-socials a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,212,170,0.08);
  }

  /* ─── PROFILE IMAGE ─── */
  .hero-image-wrap {
    position: relative;
    animation: fadeUp 0.6s 0.2s ease both;
    flex-shrink: 0;
  }
  .hero-image-frame {
    width: 280px;
    height: 340px;
    position: relative;
  }
  .hero-image-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent3), var(--accent2));
    z-index: 0;
    opacity: 0.6;
  }
  .profile-img-placeholder {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: var(--bg3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
  }
  .profile-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .profile-img-placeholder .ph-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(0,212,170,0.1);
    border: 2px dashed rgba(0,212,170,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
  }
  .profile-img-placeholder .ph-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
  }
  .hero-image-frame .corner-accent {
    position: absolute;
    bottom: -16px; right: -16px;
    width: 80px; height: 80px;
    border: 2px solid var(--accent2);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.4;
  }
  .stats-row {
    display: flex;
    gap: 20px;
    margin-top: 24px;
  }
  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    flex: 1;
    transition: all 0.2s;
  }
  .stat-card:hover { border-color: rgba(0,212,170,0.3); background: var(--card-hover); }
  .stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
  }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
  }

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

  /* ─── ABOUT ─── */
  #about {
    padding: 120px 0;
    border-top: 1px solid var(--border);
  }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
  }
  .about-text p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 20px;
  }
  .about-text p strong { color: var(--text); font-weight: 500; }
  .about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
    text-decoration: none;
  }
  .chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,212,170,0.06); }
  .chip.accent { border-color: rgba(0,212,170,0.3); color: var(--accent); background: rgba(0,212,170,0.06); }

  /* ─── SKILLS ─── */
  #skills {
    padding: 120px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  /* 5th card (Soft Skills) spans full width — feels like a featured summary card */
  .skills-grid .skill-group:nth-child(5) {
    grid-column: 1 / -1;
  }
  /* On the full-width 5th card, arrange skill tags in a horizontal flex row */
  .skills-grid .skill-group:nth-child(5) .skill-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .skill-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
  }
  .skill-group::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
  }
  .skill-group:hover::before { transform: scaleX(1); }
  .skill-group:hover { border-color: rgba(0,212,170,0.2); background: var(--card-hover); }
  .skill-group h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .skill-group h3 .ico {
    font-size: 1rem;
    opacity: 0.8;
  }
  .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .skill-tag {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    transition: all 0.2s;
  }
  .skill-tag:hover { color: var(--accent); border-color: rgba(0,212,170,0.3); }

  /* ─── EXPERIENCE ─── */
  #experience {
    padding: 120px 0;
    border-top: 1px solid var(--border);
  }
  .timeline {
    position: relative;
    padding-left: 32px;
  }
  .timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), transparent);
  }
  .timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
  }
  .timeline-item.visible { opacity: 1; transform: translateX(0); }
  .timeline-dot {
    position: absolute;
    left: -37px;
    top: 6px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.2);
  }
  .exp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    transition: all 0.3s;
  }
  .exp-card:hover { border-color: rgba(0,212,170,0.2); background: var(--card-hover); }
  .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }
  .exp-role {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
  }
  .exp-period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .exp-company {
    font-size: 0.9rem;
    color: var(--accent2);
    font-weight: 500;
    margin-bottom: 4px;
  }
  .exp-type {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 16px;
  }
  .exp-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .exp-bullets li {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
  }
  .exp-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.8rem;
  }

  /* ─── PROJECTS ─── */
  #projects {
    padding: 120px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
  }
  .project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
  }
  .project-card.visible { opacity: 1; transform: translateY(0); }
  .project-card:hover {
    border-color: rgba(0,212,170,0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  }
  .project-thumb {
    width: 100%;
    height: 180px;
    background: var(--bg3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  .project-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(0,212,170,0.06));
  }
  .project-thumb .ph-project-icon {
    font-size: 2.2rem;
    opacity: 0.5;
  }
  .project-thumb .ph-project-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
  }
  .project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.15);
    padding: 3px 8px;
    border-radius: 3px;
  }
  .project-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }
  .project-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
  }
  .project-links {
    display: flex;
    gap: 10px;
  }
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .project-link:hover { color: var(--accent); }
  .project-link svg { opacity: 0.6; }

  /* ─── EDUCATION ─── */
  #education {
    padding: 120px 0;
    border-top: 1px solid var(--border);
  }
  .edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .edu-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
  }
  .edu-card.visible { opacity: 1; transform: translateY(0); }
  .edu-card:hover { border-color: rgba(0,212,170,0.2); background: var(--card-hover); }
  .edu-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .edu-degree {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
  }
  .edu-uni {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .edu-loc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    opacity: 0.7;
  }
  .edu-badge {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.4rem;
    opacity: 0.15;
  }

  /* ─── CERTIFICATIONS ─── */
  #certifications {
    padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
  }
  .cert-card:hover { border-color: rgba(0,212,170,0.25); background: var(--card-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
  .cert-card .cert-click-hint {
    position: absolute;
    top: 10px; right: 10px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.2s;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    padding: 2px 6px;
    border-radius: 3px;
  }
  .cert-card:hover .cert-click-hint { opacity: 1; }
  .cert-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(0,212,170,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .cert-name {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
  }
  .cert-org {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--accent2);
    letter-spacing: 0.06em;
  }

  /* ─── CERT MODAL ─── */
  .cert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .cert-modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }
  .cert-modal {
    background: var(--bg3);
    border: 1px solid rgba(0,212,170,0.2);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0,212,170,0.05);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .cert-modal-overlay.open .cert-modal {
    transform: translateY(0) scale(1);
  }
  .cert-modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    background: var(--bg3);
    z-index: 1;
    border-radius: 20px 20px 0 0;
  }
  .cert-modal-title-wrap { display: flex; align-items: center; gap: 14px; }
  .cert-modal-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  .cert-modal-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
  }
  .cert-modal-issuer {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent2);
    letter-spacing: 0.06em;
  }
  .cert-modal-close {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    width: 36px; height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s;
    line-height: 1;
  }
  .cert-modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text); border-color: rgba(255,255,255,0.2); }
  .cert-modal-body {
    padding: 28px 32px;
  }
  .cert-preview-area {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }
  .cert-preview-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,0.03) 0%, rgba(59,130,246,0.03) 50%, rgba(245,158,11,0.03) 100%);
  }
  .cert-preview-mock {
    position: relative;
    width: 90%;
    max-width: 440px;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1318 100%);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .cert-preview-mock::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(59,130,246,0.2), rgba(245,158,11,0.3));
    z-index: -1;
  }
  .cert-mock-logo {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
  }
  .cert-mock-title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
  }
  .cert-mock-name-display {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
  }
  .cert-mock-course {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 16px;
  }

  
  .cert-mock-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,0.3), transparent);
    margin: 16px 0;
  }
  .cert-mock-issuer-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .cert-mock-issuer-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent2);
  }
  .cert-mock-seal {
    position: absolute;
    bottom: 16px; right: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
  }
  .cert-modal-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .cert-meta-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
  }
  .cert-meta-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .cert-meta-value {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
  }
  .cert-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
  }
  .cert-btn-primary {
    background: var(--accent);
    color: var(--bg);
    border: none;
  }
  .cert-btn-primary:hover { background: #00eebb; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,170,0.3); }
  .cert-btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
  }
  .cert-btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); background: rgba(255,255,255,0.04); }
  .cert-upload-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(245,158,11,0.05);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* ─── ACHIEVEMENTS ─── */
  #achievements {
    padding: 100px 0;
    border-top: 1px solid var(--border);
  }
  .ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .ach-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.3s;
  }
  .ach-card:hover { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.03); }
  .ach-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(245,158,11,0.2);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
  }
  .ach-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
  }
  .ach-desc {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.7;
  }

  /* ─── CONTACT ─── */
  #contact {
    padding: 120px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
  }
  .contact-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .contact-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .contact-heading .em { color: var(--accent); }
  .contact-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 36px;
  }
  .contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.2s;
  }
  .contact-item:hover { border-color: rgba(0,212,170,0.3); color: var(--accent); background: var(--card-hover); }
  .contact-item-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(0,212,170,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
  }
  .contact-item-text span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .contact-item-text strong {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text);
  }

  /* ─── FOOTER ─── */
  footer {
    padding: 32px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: gap;
    position: relative;
    z-index: 1;
  }
  .footer-copy {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
  }
  .footer-back {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
  }
  .footer-back:hover { color: var(--accent); }

  /* ─── RESPONSIVE ─── */

  /* Tablet landscape: ≤1024px */
  @media (max-width: 1024px) {
    .hero-inner { gap: 48px; }
    .hero-image-frame { width: 240px; height: 290px; }
    .about-grid { gap: 56px; }
    .contact-inner { gap: 56px; }
    .projects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    /* Skills: 2x2 + full-width 5th — clean and balanced */
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid .skill-group:nth-child(5) { grid-column: 1 / -1; }
  }

  /* Tablet portrait / large phone: ≤900px */
  @media (max-width: 900px) {
    nav { padding: 16px 24px; }
    .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%; left: 0; right: 0;
      background: rgba(10,12,15,0.97);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 20px 24px;
      gap: 16px;
      z-index: 200;
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .container { padding: 0 24px; }

    /* ── HERO: stack vertically, image compact ── */
    #hero {
      padding: 80px 0 48px;
      min-height: auto;
    }
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 32px;
      text-align: center;
    }
    .hero-image-wrap {
      order: -1;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .hero-image-frame { width: 160px; height: 196px; }
    .hero-image-frame .corner-accent { display: none; }
    .hero-name { font-size: 2.4rem; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-desc { margin-left: auto; margin-right: auto; max-width: 480px; }
    .hero-actions { justify-content: center; }
    .hero-socials { justify-content: center; }
    .stats-row { justify-content: center; flex-wrap: wrap; }

    /* Skills: 2 cols on tablet */
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    /* 5th card spans full row */
    .skills-grid .skill-group:nth-child(5) { grid-column: 1 / -1; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    h2.section-title { margin-bottom: 36px; }
    #about, #experience, #education, #achievements { padding: 80px 0; }
    #skills, #projects, #certifications, #contact { padding: 80px 0; }
    footer { flex-direction: column; gap: 12px; text-align: center; padding: 24px; }
    .cert-modal { max-width: 95vw; }
    .cert-modal-body { padding: 20px 24px; }
    .cert-modal-header { padding: 22px 24px 16px; }
  }

  /* Phone: ≤600px */
  @media (max-width: 600px) {
    .container { padding: 0 16px; }
    nav { padding: 14px 16px; }

    /* ── HERO mobile ── */
    #hero { padding: 72px 0 40px; }
    .hero-inner { gap: 24px; }
    .hero-image-frame { width: 130px; height: 158px; }
    .hero-name { font-size: 2rem; letter-spacing: -0.03em; }
    .hero-title { font-size: 1rem; }
    .hero-desc { font-size: 0.9rem; max-width: 100%; }
    .hero-badge { font-size: 0.62rem; padding: 5px 12px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .hero-socials { gap: 10px; margin-top: 20px; }
    .stats-row { gap: 8px; flex-wrap: wrap; }
    .stat-card { padding: 8px 8px; min-width: 108px; }
    .stat-num { font-size: 1.1rem; }

    /* Skills: 2 cols on phone */
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    /* 5th card stays full-width — feels intentional, like a feature card */
    .skills-grid .skill-group:nth-child(5) { grid-column: 1 / -1; }

    .projects-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr; }
    .ach-grid { grid-template-columns: 1fr; }
    #about, #experience, #education, #achievements, #certifications { padding: 60px 0; }
    #skills, #projects, #contact { padding: 60px 0; }
    h2.section-title { font-size: 1.75rem; margin-bottom: 28px; }
    .exp-card { padding: 20px; }
    .exp-header { flex-direction: column; gap: 4px; }
    .timeline { padding-left: 20px; }
    .timeline-dot { left: -26px; }
    .contact-inner { gap: 32px; }
    .cert-modal-meta { grid-template-columns: 1fr; }
    .cert-modal { border-radius: 16px; }
    .cert-modal-header { border-radius: 16px 16px 0 0; }
    .cert-preview-mock { padding: 20px; }
    .cert-modal-actions { flex-direction: column; }
    .cert-btn { width: 100%; justify-content: center; }
  }

  /* Very small: ≤400px */
  @media (max-width: 400px) {
    .hero-name { font-size: 1.7rem; }
    .hero-image-frame { width: 110px; height: 134px; }
    .nav-logo { font-size: 0.95rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .skills-grid .skill-group:nth-child(5) { grid-column: auto; }
  }

  /* ─── CERT IMAGE IN MODAL ─── */
  .cert-preview-area.has-image { min-height: 200px; padding: 0; }
  .cert-preview-area.has-image img {
    width: 100%; height: 100%; max-height: 360px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    padding: 12px;
  }
  .cert-preview-area .cert-no-image-note {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-align: center;
    padding: 8px 16px 0;
  }

  /* ─── COLLEGE ACTIVITIES CAROUSEL ─── */
  #activities {
    padding: 100px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .carousel-wrapper {
    position: relative;
    overflow: hidden;
  }
  .carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
  }
  .activity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 16px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .activity-card:hover {
    border-color: rgba(0,212,170,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  .activity-thumb {
    width: 100%;
    height: 180px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
  }
  .activity-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .activity-thumb-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px; width: 100%; height: 100%;
  }
  .activity-thumb-icon { font-size: 2.4rem; opacity: 0.45; }
  .activity-thumb-hint {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .activity-thumb-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,212,170,0.15);
    border: 1px solid rgba(0,212,170,0.3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
  }
  .activity-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
  .activity-type {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 8px;
  }
  .activity-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    line-height: 1.3;
  }
  .activity-desc {
    font-size: 0.865rem;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
  }
  .activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .activity-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.15);
    padding: 3px 8px;
    border-radius: 3px;
  }
  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
  }
  .carousel-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
  }
  .carousel-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,212,170,0.08);
  }
  .carousel-btn:disabled { opacity: 0.3; cursor: default; }
  .carousel-dots {
    display: flex; gap: 8px; align-items: center;
  }
  .carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
    border: none; padding: 0;
  }
  .carousel-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 3px;
  }

  @media (max-width: 900px) {
    .activity-card { flex: 0 0 calc(50% - 12px); }
  }
  @media (max-width: 600px) {
    .activity-card { flex: 0 0 calc(100% - 0px); min-width: unset; }
    #activities { padding: 60px 0; }
  }

  /* ─── SCROLL REVEAL ─── */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* ================= UNIQUE DASHBOARD STYLES ================= */
*, *::before, *::after {
box-sizing: border-box; margin: 0; padding: 0;
}

html {
scroll-behavior: smooth;
}

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

/* ─── NOISE OVERLAY ─── */
  body::before {
content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ─── SCROLLBAR ─── */
  ::-webkit-scrollbar {
width: 4px;
}

::-webkit-scrollbar-track {
background: var(--bg);
}

::-webkit-scrollbar-thumb {
background: var(--accent); border-radius: 2px;
}

/* ─── ANIMATED GRID BG ─── */
  .grid-bg {
position: fixed;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════════
     NAV — exact copy from original index.html
     ══════════════════════════════════════════ */
  nav {
position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: rgba(10,12,15,0.85);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-logo {
font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.nav-logo span {
color: var(--accent);
}

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

.nav-links a {
font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
width: 100%;
}

.nav-cta {
background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.2s !important;
}

.nav-cta:hover {
background: var(--accent) !important; color: var(--bg) !important;
}

.nav-cta::after {
display: none !important;
}

.hamburger {
display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
display: block;
    width: 22px; height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* ══════════════════════════════════════════
     FOOTER — exact copy from original index.html
     ══════════════════════════════════════════ */
  footer {
padding: 32px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-copy {
font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.footer-back {
font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-back:hover {
color: var(--accent);
}

/* ─── SHARED UTILS ─── */
  .container {
max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
position: relative; z-index: 1;
}

.section-label {
font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
content: '';
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--accent);
}

h2.section-title {
font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 40px;
}

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

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

.btn-primary {
display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg);
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
background: #00eebb;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,212,170,0.3);
}

.btn-ghost {
display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text);
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.btn-ghost:hover {
border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

/* ─── BACK BAR ─── */
  .back-bar {
position: relative;
    z-index: 1;
    padding: 100px 0 0;
}

.back-btn {
display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    transition: all 0.2s;
}

.back-btn:hover {
color: var(--accent);
    border-color: rgba(0,212,170,0.4);
    background: rgba(0,212,170,0.06);
    transform: translateX(-3px);
}

/* ─── PROJECT HERO ─── */
  .proj-hero {
padding: 40px 0 72px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.proj-hero-glow {
position: absolute;
    width: 700px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,170,0.07) 0%, transparent 70%);
    top: -100px; right: -200px;
    pointer-events: none;
}

.proj-hero-glow2 {
position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
    bottom: 0; left: -100px;
    pointer-events: none;
}

.proj-category {
display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.2);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.proj-category .dot {
width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1);
}

50% {
opacity: 0.5; transform: scale(0.8);
}

}
  .proj-title {
font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 20px;
}

.proj-title .em {
color: var(--accent);
}

.proj-tagline {
font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.proj-meta-row {
display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.proj-meta-chip {
display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--card);
}

.proj-actions {
display: flex; gap: 14px; flex-wrap: wrap;
}

/* ─── PROJECT IMAGE PLACEHOLDER ─── */
  .img-section {
position: relative;
    z-index: 1;
    padding: 0 0 80px;
}

.proj-img-wrap {
border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg3);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,170,0.08);
}

.proj-img-bar {
display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
}

.proj-img-dot {
width: 10px; height: 10px; border-radius: 50%;
}

.proj-img-dot.red {
background: #ff5f56;
}

.proj-img-dot.yellow {
background: #ffbd2e;
}

.proj-img-dot.green {
background: #27c93f;
}

.proj-img-bar-label {
font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    margin-left: 8px;
    letter-spacing: 0.06em;
}

/* The placeholder frame */
  .proj-img-placeholder {
position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background:
      repeating-linear-gradient(
        45deg,
        rgba(0,212,170,0.015) 0px,
        rgba(0,212,170,0.015) 1px,
        transparent 1px,
        transparent 20px
      ),
      var(--bg3);
}

/* Actual screenshot — fill src="" with your image path to activate */
  .proj-img-placeholder .proj-screenshot {
position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Hide img tag when src is blank so placeholder shows */
  .proj-img-placeholder .proj-screenshot[src=""] {
display: none;
}

/* Centered placeholder content (visible when no screenshot) */
  .ph-body {
position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: none;
}

.ph-ring {
width: 76px; height: 76px;
    border-radius: 50%;
    border: 2px dashed rgba(0,212,170,0.3);
    background: rgba(0,212,170,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    animation: spin-slow 14s linear infinite;
}

@keyframes spin-slow {
to { transform: rotate(360deg);
}

}
  .ph-title {
font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.ph-hint {
font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(107,114,128,0.55);
    text-align: center;
    max-width: 340px;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.ph-code {
display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 5px 14px;
    border-radius: 5px;
    border: 1px dashed rgba(0,212,170,0.25);
    background: rgba(0,212,170,0.04);
    color: rgba(0,212,170,0.55);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.proj-img-caption {
font-family: var(--font-mono);
    font-size: 0.63rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
    letter-spacing: 0.06em;
}

/* ─── OVERVIEW ─── */
  .overview-section {
padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.overview-grid {
display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-body p {
font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.overview-body p strong {
color: var(--text); font-weight: 500;
}

.info-card {
background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.info-card-header {
padding: 16px 22px;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.info-card-body {
padding: 22px;
}

.info-row {
display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.info-row:last-child {
border-bottom: none; padding-bottom: 0;
}

.info-key {
font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}

.info-val {
font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: right;
}

.tag {
display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(0,212,170,0.1);
    color: var(--accent);
    border: 1px solid rgba(0,212,170,0.2);
}

.tag.amber {
background: rgba(245,158,11,0.1);
    color: var(--accent2);
    border-color: rgba(245,158,11,0.2);
}

/* ─── KPI SECTION ─── */
  .kpi-section {
padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.kpi-big-grid {
display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.kpi-big-card {
background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kpi-big-card::before {
content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.kpi-big-card:hover::before {
transform: scaleX(1);
}

.kpi-big-card:hover {
border-color: rgba(0,212,170,0.2);
    background: var(--card-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.kpi-big-icon {
font-size: 1.4rem; margin-bottom: 14px;
}

.kpi-big-value {
font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-big-label {
font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
}

/* ─── INSIGHTS ─── */
  .insights-section {
padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.insights-grid {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.insight-card {
background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
    transition: all 0.3s;
}

.insight-card:hover {
border-color: rgba(0,212,170,0.2); background: var(--card-hover);
}

.insight-num {
font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
    opacity: 0.6;
}

.insight-title {
font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.insight-desc {
font-size: 0.85rem; color: var(--muted); line-height: 1.7;
}

/* ─── TOOLS ─── */
  .tools-section {
padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.tools-grid {
display: flex; flex-wrap: wrap; gap: 14px;
}

.tool-chip {
display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.tool-chip:hover {
border-color: rgba(0,212,170,0.3);
    background: var(--card-hover);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ─── FEATURES ─── */
  .features-section {
padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.features-grid {
display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}

.feature-item {
display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.feature-item:hover {
border-color: rgba(0,212,170,0.2); background: var(--card-hover);
}

.feature-icon {
width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(0,212,170,0.1);
    border: 1px solid rgba(0,212,170,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-title {
font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.feature-desc {
font-size: 0.82rem; color: var(--muted); line-height: 1.65;
}

/* ─── DATASET & FILES ─── */
  .dataset-section {
padding: 80px 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.dataset-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}

.dataset-body p {
font-size: 0.97rem; color: var(--muted); line-height: 1.9; margin-bottom: 14px;
}

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

.dataset-list li {
font-size: 0.88rem; color: var(--muted);
    padding-left: 18px; position: relative; line-height: 1.65;
}

.dataset-list li::before {
content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 0.8rem;
}

.file-card {
background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}

.file-card-header {
padding: 16px 20px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.file-item {
display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    transition: background 0.2s; gap: 12px;
}

.file-item:last-child {
border-bottom: none;
}

.file-item:hover {
background: rgba(0,212,170,0.04);
}

.file-item-left {
display: flex; align-items: center; gap: 12px;
}

.file-icon {
width: 32px; height: 32px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; border: 1px solid var(--border); background: var(--card); flex-shrink: 0;
}

.file-name {
font-family: var(--font-mono); font-size: 0.75rem; color: var(--text);
}

.file-size {
font-family: var(--font-mono); font-size: 0.63rem; color: var(--muted); margin-top: 2px;
}

.file-download {
display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 5px;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); font-family: var(--font-mono);
    font-size: 0.63rem; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none; transition: all 0.2s; white-space: nowrap;
}

.file-download:hover {
border-color: rgba(0,212,170,0.4); color: var(--accent); background: rgba(0,212,170,0.06);
}

/* ─── CONCLUSION ─── */
  .conclusion-section {
padding: 80px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.conclusion-inner {
background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 48px 56px;
    position: relative; overflow: hidden;
}

.conclusion-inner::before {
content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent3), transparent);
}

.conclusion-inner p {
font-size: 1.05rem; color: var(--muted); line-height: 1.9; max-width: 680px;
}

.conclusion-inner p strong {
color: var(--text); font-weight: 500;
}

/* ─── CONTACT CTA ─── */
  .contact-cta {
padding: 80px 0; background: var(--bg2);
    border-top: 1px solid var(--border);
    position: relative; z-index: 1;
}

.contact-cta-inner {
display: flex; align-items: center;
    justify-content: space-between; gap: 40px; flex-wrap: wrap;
}

.contact-cta-text h3 {
font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700; color: var(--text);
    letter-spacing: -0.03em; margin-bottom: 8px;
}

.contact-cta-text p {
font-size: 0.95rem; color: var(--muted); max-width: 440px;
}

.contact-cta-text .em {
color: var(--accent);
}

/* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
nav { padding: 16px 24px;
}

.nav-links {
display: none; flex-direction: column;
      position: absolute; top: 100%; left: 0; right: 0;
      background: rgba(10,12,15,0.97); backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      padding: 20px 24px; gap: 16px; z-index: 200;
}

.nav-links.open {
display: flex;
}

.hamburger {
display: flex;
}

}
  @media (max-width: 768px) {
.overview-grid, .dataset-grid { grid-template-columns: 1fr; gap: 32px;
}

.kpi-big-grid {
grid-template-columns: repeat(2, 1fr);
}

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

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

.conclusion-inner {
padding: 28px 24px;
}

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

.info-card {
position: static;
}

footer {
flex-direction: column; gap: 12px; text-align: center; padding: 24px;
}

.proj-img-placeholder {
aspect-ratio: 16 / 9;
}

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

footer {
padding: 20px 16px;
}

.kpi-big-grid {
grid-template-columns: 1fr 1fr;
}

.proj-title {
font-size: 2rem;
}

.proj-actions {
flex-direction: column;
}

.btn-primary, .btn-ghost {
width: 100%; justify-content: center;
}
