﻿  :root {
    --bg: #fafbfc;
    --bg-dark: #0b1a1c;
    --bg-card: #ffffff;
    --dark: #0c1e21;
    --text: #1a2e31;
    --muted: #6d8a8e;
    --subtle: #c2d4d6;
    --border: #e2ecee;
    --turq: #0a9396;
    --turq-light: #94d2bd;
    --turq-dark: #005f73;
    --turq-glow: #00b4d8;
    --turq-pale: #e8f6f5;
    --coral: #e76f51;
    --radius: 14px;
    --grid-color: rgba(10,147,150,0.06);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: var(--turq); color: white; }
  a { color: inherit; text-decoration: none; }

  /* ===== GRID BACKGROUND (global) ===== */
  .grid-bg {
    position: fixed;
    inset: 0;
    background-image:
      linear-gradient(var(--grid-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
  }

  /* Axis numbers (blueprint style) */
  .grid-bg::after {
    content: '';
    position: fixed;
    top: 0; left: 60px;
    width: 1px; height: 100%;
    background: rgba(10,147,150,0.08);
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 18px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  nav.scrolled {
    background: rgba(250, 251, 252, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav-logo {
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.5px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nav-logo .dot {
    width: 8px; height: 8px;
    background: var(--turq);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2.5s infinite;
  }

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

  .nav-links { display: flex; gap: 30px; align-items: center; }

  .nav-links a {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s;
    letter-spacing: 0.5px;
  }

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

  .nav-cta {
    background: var(--turq) !important;
    color: white !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-size: 0.73rem !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
  }

  .nav-cta:hover { background: var(--turq-dark) !important; transform: translateY(-1px); }

  /* ===== HERO ===== */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 50px;
    position: relative;
    z-index: 1;
  }

  .hero-content { max-width: 700px; position: relative; }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--turq-pale);
    border: 1px solid rgba(10,147,150,0.15);
    border-radius: 50px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--turq-dark);
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeUp 0.7s 0.2s forwards;
  }

  .hero-badge .status-dot {
    width: 6px; height: 6px;
    background: var(--turq);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  .hero-title {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
  }

  .hero-title .turq { color: var(--turq); }

  .hero-title .code-accent {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    font-size: 0.75em;
    color: var(--turq);
  }

  .hero-sub {
    margin-top: 30px;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 300;
    max-width: 520px;
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
  }

  .hero-sub strong { color: var(--dark); font-weight: 600; }

  .hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
  }

  .btn {
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
  }

  .btn-primary {
    background: var(--turq);
    color: white;
  }

  .btn-primary:hover { background: var(--turq-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(10,147,150,0.25); }

  .btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 1.5px solid var(--border);
  }

  .btn-secondary:hover { border-color: var(--turq); color: var(--turq); transform: translateY(-2px); }

  /* Hero side viz */
  .hero-viz {
    position: absolute;
    top: 50%; right: 50px;
    transform: translateY(-50%);
    width: 400px;
    opacity: 0;
    animation: fadeIn 1s 0.8s forwards;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .profile-photo-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  }

  .profile-photo {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    background: linear-gradient(145deg, var(--turq-pale), rgba(10,147,150,0.08));
  }

  /* Placeholder when no image */
  .profile-photo-placeholder {
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(145deg, var(--turq-pale), rgba(10,147,150,0.06));
    color: var(--turq);
    position: relative;
    overflow: hidden;
  }

  .profile-photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(10,147,150,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(10,147,150,0.05) 1px, transparent 1px);
    background-size: 25px 25px;
  }

  .photo-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(10,147,150,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
  }

  .photo-hint {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--turq-dark);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
  }

  .profile-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--bg-card);
  }

  .profile-info-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
  }

  .profile-info-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.5px;
  }

  .profile-info-location {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--turq);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .viz-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  }

  .viz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .viz-header-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .viz-header-badge {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.58rem;
    padding: 3px 10px;
    background: var(--turq-pale);
    color: var(--turq);
    border-radius: 50px;
    font-weight: 600;
  }

  /* Animated bar chart */
  .viz-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding-top: 10px;
  }

  .viz-bar {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    position: relative;
    animation: growBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: bottom;
    opacity: 0;
  }

  @keyframes growBar {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
  }

  .viz-bar:nth-child(1) { height: 45%; background: var(--turq-pale); animation-delay: 1s; }
  .viz-bar:nth-child(2) { height: 72%; background: var(--turq-light); animation-delay: 1.1s; }
  .viz-bar:nth-child(3) { height: 55%; background: var(--turq-pale); animation-delay: 1.2s; }
  .viz-bar:nth-child(4) { height: 88%; background: var(--turq); animation-delay: 1.3s; }
  .viz-bar:nth-child(5) { height: 65%; background: var(--turq-light); animation-delay: 1.4s; }
  .viz-bar:nth-child(6) { height: 92%; background: var(--turq); animation-delay: 1.5s; }
  .viz-bar:nth-child(7) { height: 78%; background: var(--turq-light); animation-delay: 1.6s; }
  .viz-bar:nth-child(8) { height: 100%; background: var(--turq-dark); animation-delay: 1.7s; }

  .viz-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.58rem;
    color: var(--subtle);
  }

  .viz-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  .viz-metric {
    padding: 14px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
  }

  .viz-metric-num {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    color: var(--dark);
    line-height: 1;
  }

  .viz-metric-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
  }

  /* ===== METRICS STRIP ===== */
  .metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
  }

  .metric-item {
    background: var(--bg-card);
    padding: 40px 35px;
    text-align: center;
    transition: all 0.3s;
  }

  .metric-item:hover { background: var(--turq-pale); }

  .metric-num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--dark);
    line-height: 1;
  }

  .metric-num .unit {
    font-size: 0.5em;
    font-weight: 500;
    color: var(--turq);
  }

  .metric-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ===== ABOUT ===== */
  .about {
    padding: 130px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
  }

  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--turq);
    margin-bottom: 22px;
  }

  .section-tag::before {
    content: '//';
    color: var(--subtle);
  }

  .about-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
  }

  .about-text {
    font-size: 0.93rem;
    line-height: 1.9;
    color: var(--muted);
    font-weight: 300;
  }

  .about-text strong { color: var(--dark); font-weight: 600; }

  .tech-stack {
    margin-top: 40px;
  }

  .tech-stack-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
  }

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

  .tech-item {
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tech-item:hover {
    border-color: var(--turq);
    background: var(--turq-pale);
    color: var(--turq-dark);
    transform: translateY(-2px);
  }

  .tech-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Code snippet card */
  .about-code {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 30px;
    overflow: hidden;
    position: relative;
  }

  .code-window-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
  }

  .code-window-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
  }

  .code-window-dots span:first-child { background: #ff5f57; }
  .code-window-dots span:nth-child(2) { background: #febc2e; }
  .code-window-dots span:nth-child(3) { background: #28c840; }

  .code-block {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.78rem;
    line-height: 2;
    color: rgba(255,255,255,0.5);
  }

  .code-block .kw { color: var(--turq-light); }
  .code-block .fn { color: var(--turq-glow); }
  .code-block .str { color: var(--coral); }
  .code-block .cmt { color: rgba(255,255,255,0.2); font-style: italic; }
  .code-block .var { color: #e9d8a6; }
  .code-block .num { color: var(--turq-light); }
  .code-block .op { color: rgba(255,255,255,0.35); }

  .code-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: var(--turq);
    animation: blink 1.1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
  }

  @keyframes blink { 50% { opacity: 0; } }

  /* ===== EXPERIENCE ===== */
  .experience {
    padding: 130px 50px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
  }

  .experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
  }

  .experience-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
  }

  .experience-subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 1px;
  }

  .timeline {
    position: relative;
    padding-left: 50px;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--turq), var(--turq-light), var(--border));
    border-radius: 2px;
  }

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

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

  .timeline-dot {
    position: absolute;
    left: -50px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--turq);
    z-index: 2;
    transition: all 0.3s;
  }

  .timeline-item:hover .timeline-dot {
    background: var(--turq);
    box-shadow: 0 0 0 6px rgba(10,147,150,0.12);
  }

  .timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 35px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
  }

  .timeline-card:hover {
    border-color: var(--turq);
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(10,147,150,0.08);
  }

  .timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 20px;
  }

  .timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.3;
  }

  .timeline-date {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--turq);
    letter-spacing: 1px;
    white-space: nowrap;
    padding: 4px 12px;
    background: var(--turq-pale);
    border-radius: 6px;
    flex-shrink: 0;
  }

  .timeline-company {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--turq-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .timeline-company .loc {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 400;
  }

  .timeline-desc {
    font-size: 0.83rem;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 18px;
  }

  .timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .timeline-tag {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    padding: 4px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    transition: all 0.3s;
  }

  .timeline-card:hover .timeline-tag {
    border-color: rgba(10,147,150,0.2);
    color: var(--turq-dark);
  }

  /* Live indicator for current role */
  .timeline-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--turq);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

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

  /* ===== EDUCATION ===== */
  .education {
    padding: 130px 50px;
    background: var(--bg-dark);
    color: var(--bg);
    position: relative;
    z-index: 1;
    border-radius: 30px;
    margin: 0 20px;
  }

  .education-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(148,210,189,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,210,189,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    border-radius: 30px;
  }

  .education-header { margin-bottom: 60px; position: relative; }

  .education-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
  }

  .education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
  }

  .edu-column-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--turq-light);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .edu-column-title::before {
    content: '//';
    color: var(--muted);
  }

  .edu-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 14px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
  }

  .edu-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 3px;
    height: 0;
    background: var(--turq);
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 3px 0 0 3px;
  }

  .edu-card:hover::before { height: 100%; }

  .edu-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(10,147,150,0.25);
    transform: translateY(-3px);
  }

  .edu-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
  }

  .edu-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
  }

  .edu-year {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.63rem;
    font-weight: 600;
    color: var(--turq);
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .edu-school {
    font-size: 0.8rem;
    color: var(--turq-light);
    font-weight: 400;
    margin-bottom: 6px;
  }

  .edu-detail {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
  }

  /* Cert specific */
  .cert-issuer {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
  }

  .cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--turq);
    padding: 3px 10px;
    background: rgba(10,147,150,0.12);
    border-radius: 50px;
    letter-spacing: 0.5px;
  }

  .cert-badge .check { font-style: normal; }

  /* ===== PROJECTS ===== */
  .projects {
    padding: 130px 50px;
    background: var(--bg-dark);
    border-radius: 30px 30px 0 0;
    position: relative;
    z-index: 2;
  }

  .projects-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(148,210,189,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148,210,189,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    border-radius: 30px 30px 0 0;
  }

  .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    position: relative;
  }

  .projects-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
  }

  .projects-count {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 1px;
  }

  .projects-row { display: flex; flex-direction: column; gap: 16px; position: relative; }

  .project-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
  }

  .project-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(10,147,150,0.3);
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  }

  .project-visual {
    height: 340px;
    position: relative;
    overflow: hidden;
  }

  .project-gradient {
    width: 100%; height: 100%;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .project-card:hover .project-gradient { transform: scale(1.04); }

  .pg-1 { background: linear-gradient(145deg, #005f73, #0a9396, #94d2bd); }
  .pg-2 { background: linear-gradient(145deg, #003845, #00b4d8, #90e0ef); }
  .pg-3 { background: linear-gradient(145deg, #0b1a1c, #005f73, #0a9396); }
  .pg-4 { background: linear-gradient(145deg, #1a535c, #4ecdc4, #a7f3d0); }

  /* Blueprint grid inside project visual */
  .project-blueprint {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
  }

  .project-icon {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    color: rgba(255,255,255,0.9);
  }

  .project-num {
    position: absolute;
    top: 18px; left: 22px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    z-index: 2;
  }

  .project-content {
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .project-category {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--turq);
    margin-bottom: 15px;
  }

  .project-name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: white;
  }

  .project-desc {
    font-size: 0.83rem;
    line-height: 1.8;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 25px;
  }

  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
  }

  .tech-badge {
    padding: 5px 12px;
    border: 1px solid rgba(148,210,189,0.15);
    border-radius: 6px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--turq-light);
  }

  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--turq-light);
    transition: gap 0.3s, color 0.3s;
  }

  .project-card:hover .project-link { gap: 15px; color: var(--turq-glow); }

  /* ===== THOUGHTS ===== */
  .thoughts {
    padding: 130px 50px;
    background: var(--bg-dark);
    position: relative;
  }

  .thoughts-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: white;
    margin-bottom: 55px;
  }

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

  .thought-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
  }

  .thought-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: var(--turq);
    border-radius: 3px 0 0 3px;
    transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .thought-card:hover::before { height: 100%; }

  .thought-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(10,147,150,0.2);
    transform: translateY(-4px);
  }

  .thought-date {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.62rem;
    color: var(--turq);
    letter-spacing: 1px;
    margin-bottom: 18px;
  }

  .thought-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
  }

  .thought-excerpt {
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 300;
  }

  .thought-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--turq-light);
    transition: color 0.3s;
  }

  .thought-card:hover .thought-read { color: var(--turq-glow); }

  /* ===== GALLERY ===== */
  .gallery {
    padding: 130px 50px;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
  }

  .gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 55px;
  }

  .gallery-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
  }

  .gallery-subtitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 1px;
  }

  /* Filter tabs */
  .gallery-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 35px;
    flex-wrap: wrap;
  }

  .gallery-filter {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s;
    background: none;
  }

  .gallery-filter:hover,
  .gallery-filter.active {
    border-color: var(--turq);
    color: white;
    background: var(--turq);
  }

  /* Masonry-style grid */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--turq);
  }

  .gallery-item.tall {
    grid-row: span 2;
  }

  .gallery-img-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .gallery-item:hover .gallery-img {
    transform: scale(1.04);
  }

  /* Placeholder for gallery items */
  .gallery-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
  }

  .gallery-item.tall .gallery-placeholder {
    aspect-ratio: 0.52;
  }

  .gp-1 { background: linear-gradient(145deg, #e8f6f5, #d4efed); }
  .gp-2 { background: linear-gradient(145deg, #005f73, #0a9396); }
  .gp-3 { background: linear-gradient(145deg, #fef3ee, #fde8d8); }
  .gp-4 { background: linear-gradient(145deg, #0b1a1c, #153032); }
  .gp-5 { background: linear-gradient(145deg, #e8f6f5, #c9ece8); }
  .gp-6 { background: linear-gradient(145deg, #f0f4f5, #dfe8ea); }

  .gallery-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
  }

  .gallery-placeholder .gp-icon {
    font-size: 2rem;
    opacity: 0.5;
    position: relative;
    z-index: 1;
  }

  .gallery-placeholder .gp-label {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
    position: relative;
    z-index: 1;
  }

  .gp-2 .gp-icon, .gp-2 .gp-label,
  .gp-4 .gp-icon, .gp-4 .gp-label { color: white; }

  /* Gallery hover overlay */
  .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11,26,28,0.85) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
  }

  .gallery-item:hover .gallery-overlay { opacity: 1; }

  .gallery-overlay-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
  }

  .gallery-overlay-cat {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.62rem;
    color: var(--turq-light);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ===== TESTIMONIALS ===== */
  .testimonials {
    padding: 130px 50px;
    background: var(--turq-pale);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .testimonials::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,147,150,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .testimonials-header { margin-bottom: 60px; }

  .testimonials-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
  }

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

  .testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-color: var(--turq);
  }

  .testimonial-quote-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--turq-light);
    margin-bottom: 18px;
    font-family: Georgia, serif;
  }

  .testimonial-text {
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--turq-pale), var(--turq-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--turq-dark);
    flex-shrink: 0;
  }

  .testimonial-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--dark);
    line-height: 1.3;
  }

  .testimonial-role {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.63rem;
    color: var(--muted);
    letter-spacing: 0.5px;
    margin-top: 1px;
  }

  /* ===== FLOATING CV BUTTON ===== */
  .cv-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--dark);
    color: white;
    border-radius: 50px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: floatIn 0.6s 1.5s forwards;
  }

  .cv-float:hover {
    background: var(--turq);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(10,147,150,0.3);
  }

  .cv-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    font-size: 0.85rem;
  }

  @keyframes floatIn {
    to { opacity: 1; transform: translateY(0); }
  }

  /* ===== LANGUAGE TOGGLE ===== */
  .lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    margin-left: 12px;
  }

  .lang-btn {
    padding: 6px 12px;
    border: none;
    background: none;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
  }

  .lang-btn.active {
    background: var(--turq);
    color: white;
    box-shadow: 0 2px 8px rgba(10,147,150,0.25);
  }

  .lang-btn:hover:not(.active) { color: var(--turq-dark); }

  /* ===== CONTACT ===== */
  .contact {
    padding: 130px 50px 90px;
    position: relative;
    z-index: 1;
  }

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

  .contact-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .contact-title .turq { color: var(--turq); }

  .contact-desc {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--muted);
    font-weight: 300;
    max-width: 400px;
  }

  .contact-links { display: flex; flex-direction: column; }

  .contact-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
  }

  .contact-link-item:first-child { border-top: 1px solid var(--border); }
  .contact-link-item:hover { padding-left: 12px; }

  .contact-link-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .contact-link-name .icon {
    width: 32px; height: 32px;
    background: var(--turq-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: background 0.3s;
  }

  .contact-link-item:hover .icon { background: var(--turq); color: white; }

  .contact-link-value {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    transition: color 0.3s;
  }

  .contact-link-item:hover .contact-link-value { color: var(--turq); }

  .contact-arrow {
    font-size: 1rem;
    color: var(--subtle);
    transition: all 0.3s;
  }

  .contact-link-item:hover .contact-arrow { color: var(--turq); transform: translateX(4px); }

  /* ===== FOOTER ===== */
  .footer {
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
  }

  .footer-right { display: flex; gap: 25px; align-items: center; }
  .footer-dot { width: 4px; height: 4px; background: var(--turq); border-radius: 50%; }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1100px) {
    .hero-viz { display: none; }
  }

  @media (max-width: 900px) {
    .hero { padding: 120px 30px 80px; }
    .about { grid-template-columns: 1fr; gap: 50px; padding: 90px 30px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card { grid-template-columns: 1fr; }
    .project-visual { height: 220px; }
    .projects, .thoughts, .contact { padding: 90px 30px; }
    .experience { padding: 90px 30px; }
    .education { padding: 90px 30px; margin: 0 10px; border-radius: 20px; }
    .education-content { grid-template-columns: 1fr; gap: 40px; }
    .gallery { padding: 90px 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item.tall { grid-row: span 1; }
    .gallery-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .testimonials { padding: 90px 30px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cv-float { bottom: 20px; right: 20px; padding: 12px 18px; font-size: 0.7rem; }
    .timeline { padding-left: 40px; }
    .timeline-dot { left: -40px; }
    .thoughts-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .metrics-strip { grid-template-columns: repeat(2, 1fr); }
    nav { padding: 14px 25px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .lang-toggle { margin-left: 0; }
    .footer { padding: 25px 30px; flex-direction: column; gap: 12px; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  }