:root {
      --bg: #f5f5f5;
      --bg2: #ffffff;
      --surface: #ffffff;
      --border: rgba(0, 0, 0, 0.08);
      --text: #1a1a1b;
      --muted: #5f6368;
      --accent: #007aff;
      --accent2: #0056b3;
      --glow: rgba(0, 122, 255, 0.1);
      --px: max(3rem, calc((100vw - 1100px) / 2));
    }

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

    html {
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    body {
      font-family: 'Cabinet Grotesk', sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    /* NAV — floating pill bar */
    .nav-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      justify-content: center;
      padding: 1rem 1.5rem;
      pointer-events: none;
    }

    nav {
      pointer-events: auto;
      display: flex;
      align-items: center;
      gap: 0.15rem;
      padding: 0.55rem 0.65rem;
      background: rgba(255, 255, 255, 0.85);
      border-radius: 50px;
      box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(0, 0, 0, 0.05);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    nav:hover {
      box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
      transform: translateY(-1px);
    }

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

    .nav-links a {
      color: var(--text);
      text-decoration: none;
      font-size: 0.82rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      padding: 0.5rem 1.05rem;
      border-radius: 50px;
      transition: background 0.25s ease, transform 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      white-space: nowrap;
    }

    .nav-links a:hover {
      background: rgba(0, 0, 0, 0.05);
      transform: translateY(-1px);
    }

    .nav-links a .nav-icon {
      font-size: 0.85rem;
      display: inline-block;
    }

    .nav-mobile-brand {
      display: none;
      font-family: 'Cabinet Grotesk', sans-serif;
      font-weight: 700;
      font-size: 1.1rem;
      padding-left: 0.5rem;
      color: var(--text);
    }

    .mobile-menu-btn {
      display: none;
      font-size: 1.25rem;
      cursor: pointer;
      padding: 0.5rem 0.75rem;
      color: var(--text);
    }

    /* HERO */
    #home {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      padding: 7rem var(--px) 4rem;
      position: relative;
      overflow: hidden;
      gap: 3rem;
    }

    .hero-bg-shape {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 65%;
      background: #2563eb; /* Medium dark blue */
      clip-path: polygon(25% 0, 100% 0, 100% 100%, 55% 100%);
      z-index: 0;
    }

    .hero-bg-grid {
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    }

    .hero-glow {
      position: absolute;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%);
      top: 50%;
      left: 30%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }

    .hero-left {
      position: relative;
      z-index: 2;
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(0, 122, 255, 0.08);
      border: 1px solid rgba(0, 122, 255, 0.2);
      padding: 0.35rem 0.9rem;
      border-radius: 2rem;
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #0056b3;
      margin-bottom: 1.5rem;
    }

    .hero-tag::before {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--accent2);
      border-radius: 50%;
      box-shadow: 0 0 8px var(--accent2);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.3;
      }
    }

    .hero-left h1 {
      font-family: 'Clash Display', sans-serif;
      font-size: clamp(2.5rem, 8vw, 5.5rem);
      font-weight: 700;
      line-height: 0.95;
      letter-spacing: -0.04em;
      margin-bottom: 0.25rem;
    }

    .hero-left h1 .accent-name {
      color: var(--accent);
    }

    .hero-roles {
      display: flex;
      gap: 0.75rem;
      margin: 1.5rem 0;
      flex-wrap: wrap;
    }

    .role-badge {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 0.4rem 0.9rem;
      border-radius: 0.3rem;
      font-size: 0.78rem;
      color: var(--muted);
      letter-spacing: 0.04em;
    }

    .hero-bio {
      font-size: 0.95rem;
      color: var(--muted);
      line-height: 1.75;
      max-width: 460px;
      margin-bottom: 2.5rem;
    }

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

    .btn-primary {
      background: var(--accent);
      color: var(--bg);
      padding: 0.75rem 2rem;
      border-radius: 0.4rem;
      text-decoration: none;
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      transition: box-shadow 0.2s, transform 0.2s;
      display: inline-block;
    }

    .btn-primary:hover {
      box-shadow: 0 0 30px rgba(0, 122, 255, 0.4);
      transform: translateY(-2px);
    }

    .btn-ghost {
      color: var(--text);
      text-decoration: none;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .btn-ghost:hover {
      opacity: 1;
    } 
    /* HERO TECH STACK */
    .hero-tech-stack {
      margin-top: 3rem;
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    .hero-tech-title {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--muted);
    }

    .hero-tech-icons {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem 0;
    }

    .hero-tech-icon {
      width: 44px;
      height: 44px;
      background: #ffffff;
      border: 1px solid rgba(0,0,0,0.06);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 3px 10px rgba(0,0,0,0.04);
      cursor: pointer;
    }

    .hero-tech-icon:not(:first-child) {
      margin-left: -8px;
    }

    .hero-tech-icon:hover {
      transform: translateY(-5px) scale(1.1);
      z-index: 5;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      border-color: rgba(0, 122, 255, 0.2);
    }

    /* TECH WINDOW */
    .hero-right {
      position: relative;
      z-index: 2;
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .tech-window {
      width: 100%;
      max-width: 460px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 0.8rem;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 122, 255, 0.05);
      backdrop-filter: blur(16px);
      overflow: hidden;
      transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
    }

    .tech-window:hover {
      transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
      box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2), 0 0 60px rgba(0, 122, 255, 0.1);
    }

    .tech-header {
      display: flex;
      align-items: center;
      padding: 0.85rem 1.25rem;
      background: rgba(255, 255, 255, 0.03);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .tech-dots {
      display: flex;
      gap: 7px;
    }

    .tech-dot {
      width: 11px;
      height: 11px;
      border-radius: 50%;
    }

    .tech-dot:nth-child(1) {
      background: #ff5f56;
    }

    .tech-dot:nth-child(2) {
      background: #ffbd2e;
    }

    .tech-dot:nth-child(3) {
      background: #27c93f;
    }

    .tech-title {
      flex: 1;
      text-align: center;
      font-family: 'Cabinet Grotesk', sans-serif;
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.05em;
      margin-left: -35px;
      /* offset for dots to keep title centered */
    }

    .tech-body {
      padding: 1.5rem;
      font-family: 'Consolas', 'Monaco', monospace;
      font-size: 0.85rem;
      line-height: 1.7;
      color: #333333;
      overflow-x: auto;
    }

    .code-keyword {
      color: #c678dd;
    }

    .code-string {
      color: #98c379;
    }

    .code-prop {
      color: #e06c75;
    }

    .code-punct {
      color: #abb2bf;
    }

    /* ── HERO EXPERTISE ── */
    .hero-expertise-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      width: 100%;
      max-width: 500px;
      perspective: 1000px;
    }

    .hero-expertise-item {
      background: #ffffff;
      border-radius: 1rem;
      padding: 1.5rem 0.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.03);
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .hero-expertise-item:hover {
      transform: translateY(-8px) rotateX(5deg);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    }

    .hero-expertise-item i {
      font-size: 2.2rem;
      color: var(--accent);
    }

    .hero-expertise-item span {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.02em;
      text-align: center;
      color: #1a1a1b;
      line-height: 1.2;
    }

    /* ── HERO PROFILE FRAME ── */
    .hero-profile-frame {
      position: relative;
      width: clamp(280px, 35vw, 500px);
      height: clamp(280px, 35vw, 500px);
      display: flex;
      align-items: center;
      justify-content: center;
    }
 
    .hero-profile-circle {
      position: relative;
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 12px solid var(--accent);
      overflow: hidden;
      background: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 40px var(--glow);
    }
 
    .hero-profile-circle img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center bottom;
    }

    /* ── TECH SHOWCASE GRID ── */
    .tech-showcase-section {
      background: var(--bg);
      padding: 4rem var(--px) 2rem;
    }

    .tech-showcase-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .tech-showcase-card {
      background: #f0f2f5;
      border-radius: 1rem;
      padding: 1.75rem 1rem 1.25rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
      cursor: default;
    }

    .tech-showcase-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

    .tech-showcase-card i {
      font-size: 2.8rem;
      line-height: 1;
    }

    .tech-showcase-card span {
      font-family: 'Cabinet Grotesk', sans-serif;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
      text-align: center;
      letter-spacing: 0.02em;
    }

    @media (max-width: 768px) {
      .tech-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }

      .tech-showcase-card {
        padding: 1.25rem 0.75rem 1rem;
      }

      .tech-showcase-card i {
        font-size: 2.2rem;
      }
    }

    @media (max-width: 480px) {
      .tech-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* SECTION */
    section {
      padding: 6rem var(--px);
    }

    .section-eyebrow {
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .section-eyebrow::after {
      content: '';
      flex: 0 0 40px;
      height: 1px;
      background: var(--accent);
      opacity: 0.4;
    }

    .section-title {
      font-family: 'Clash Display', sans-serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.1;
      margin-bottom: 1rem;
    }

    /* ABOUT */
    #about {
      background: var(--bg2);
      display: flex;
      flex-direction: column;
    }

    .about-images {
      position: relative;
      height: 500px;
    }

    .about-img {
      position: absolute;
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    .about-img-main {
      width: 280px;
      height: 380px;
      top: 0;
      left: 0;
      border: 1px solid rgba(79, 195, 247, 0.2);
    }

    .about-img-secondary {
      width: 200px;
      height: 260px;
      bottom: 0;
      right: 0;
      border: 1px solid var(--border);
    }

    .about-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
    }

    .about-accent-box {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: var(--surface);
      border: 1px solid rgba(79, 195, 247, 0.25);
      border-radius: 0.75rem;
      padding: 1rem 1.5rem;
      text-align: center;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
      z-index: 10;
    }

    .about-accent-box .num {
      font-family: 'Clash Display', sans-serif;
      font-size: 2rem;
      font-weight: 700;
      color: var(--accent);
    }

    .about-accent-box .lbl {
      font-size: 0.68rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .about-text p {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 1rem;
    }

    .about-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-top: 2.5rem;
    }

    .about-stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 0.75rem;
      padding: 1.25rem 1rem;
      text-align: center;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    .about-stat-card:hover {
      transform: translateY(-4px);
      border-color: rgba(79, 195, 247, 0.4);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    }

    .about-stat-card h4 {
      font-family: 'Clash Display', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 0.25rem;
      line-height: 1;
    }

    .about-stat-card span {
      font-size: 0.7rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      font-weight: 500;
    }

    .about-highlights {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 1.5rem;
    }

    .highlight-chip {
      background: var(--surface);
      border: 1px solid var(--border);
      padding: 0.35rem 0.8rem;
      border-radius: 0.3rem;
      font-size: 0.75rem;
      color: var(--muted);
      transition: border-color 0.2s, color 0.2s;
    }

    .highlight-chip:hover {
      border-color: rgba(79, 195, 247, 0.4);
      color: var(--accent);
    }

    /* SKILLS */
    #skills {
      background: var(--bg);
    }

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

    .skill-category {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 1rem;
      padding: 1.75rem;
      transition: border-color 0.3s, transform 0.3s;
    }

    .skill-category:hover {
      border-color: rgba(79, 195, 247, 0.3);
      transform: translateY(-4px);
    }

    .skill-category-title {
      font-family: 'Clash Display', sans-serif;
      font-size: 0.85rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .skill-bars {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    .skill-bar-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.35rem;
    }

    .skill-bar-name {
      font-size: 0.8rem;
      color: var(--text);
    }

    .skill-bar-track {
      height: 3px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 2px;
      overflow: hidden;
    }

    .skill-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      border-radius: 2px;
      transform-origin: left;
      animation: fillBar 1.2s ease forwards;
      animation-play-state: paused;
    }

    .skill-bar-fill.animate {
      animation-play-state: running;
    }

    @keyframes fillBar {
      from {
        transform: scaleX(0);
      }

      to {
        transform: scaleX(1);
      }
    }

    /* ── SKILLS TABLE ── */
    #skills-table {
      background: var(--bg2);
    }

    .skills-table-wrap {
      margin-top: 3rem;
      border: 1px solid var(--border);
      border-radius: 1rem;
      overflow: hidden;
    }

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

    .skills-table tr {
      border-bottom: 1px solid var(--border);
      transition: background 0.2s;
    }

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

    .skills-table tr:hover {
      background: rgba(118, 255, 3, 0.05);
    }

    .skills-table td {
      padding: 1rem 1.5rem;
      font-size: 0.85rem;
      vertical-align: middle;
    }

    .skills-table td:first-child {
      width: 180px;
      font-family: 'Clash Display', sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #33691e;
      border-right: 1px solid var(--border);
      background: rgba(118, 255, 3, 0.03);
      white-space: nowrap;
    }

    .skills-table td:last-child {
      color: var(--muted);
      line-height: 1.9;
    }

    .tech-tag {
      display: inline-block;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 0.75rem;
      padding: 0.2rem 0.6rem;
      border-radius: 0.25rem;
      margin: 0.15rem 0.2rem 0.15rem 0;
      transition: border-color 0.2s, color 0.2s;
    }

    .tech-tag:hover {
      border-color: rgba(118, 255, 3, 0.4);
      color: #33691e;
    }

    /* PORTFOLIO */
    #portfolio {
      background: var(--bg2);
      padding: 6rem max(1.5rem, calc((100vw - 1400px) / 2));
    }

    /* PORTFOLIO GRIDS */
    .portfolio-grid {
      display: none; /* hidden by default, toggled via JS */
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
      margin-top: 3rem;
      animation: portfolioFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

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

    .portfolio-grid.active {
      display: grid !important;
    }

    @media (max-width: 1024px) {
      .portfolio-web-grid, .portfolio-desktop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
      }
    }

    @media (max-width: 768px) {
      .portfolio-web-grid, .portfolio-desktop-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
      }
    }

    /* WEB APPS (Browser Mockup) */
    .browser-mockup {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
      display: flex;
      flex-direction: column;
    }

    .browser-mockup:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 122, 255, 0.12), 0 0 0 1px rgba(0, 122, 255, 0.15);
      border-color: rgba(0, 122, 255, 0.3);
    }

    .browser-header {
      height: 38px;
      background: #f1f3f4;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 14px;
      gap: 12px;
      flex-shrink: 0;
    }

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

    .browser-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }
    .browser-dot.red { background: #ff5f56; }
    .browser-dot.yellow { background: #ffbd2e; }
    .browser-dot.green { background: #27c93f; }

    .browser-address-bar {
      flex: 1;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.06);
      border-radius: 6px;
      height: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      color: var(--muted);
      max-width: 260px;
      margin: 0 auto;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding: 0 8px;
    }

    .browser-screen {
      position: relative;
      aspect-ratio: 4/3;
      overflow: hidden;
      background: #fafafa;
    }

    .browser-screen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: object-position 3.5s ease-in-out;
    }

    .browser-mockup:hover .browser-screen img {
      object-position: bottom;
    }

    /* MOBILE APPS (Smartphone Mockups) */
    .portfolio-mobile-grid {
      grid-template-columns: repeat(2, minmax(280px, 1fr));
      max-width: 800px;
      margin: 3rem auto 0;
      gap: 3rem;
      justify-content: center;
      align-items: start;
    }

    @media (max-width: 768px) {
      .portfolio-mobile-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
      }
    }

    .mobile-phone-mockup {
      width: 260px;
      height: 520px;
      background: #000000;
      border-radius: 38px;
      border: 10px solid #1a1a1a;
      box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 0 0 2px #2d2d2d,
        inset 0 0 8px rgba(255, 255, 255, 0.15);
      overflow: hidden;
      position: relative;
      margin: 0 auto;
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    }

    .mobile-phone-mockup:hover {
      transform: translateY(-8px);
      box-shadow: 
        0 20px 45px rgba(0, 122, 255, 0.18),
        0 0 0 2px var(--accent),
        inset 0 0 12px rgba(255, 255, 255, 0.2);
      border-color: #111111;
    }

    .mobile-phone-screen {
      width: 100%;
      height: 100%;
      border-radius: 28px;
      overflow: hidden;
      position: relative;
      background: #ffffff;
    }

    .mobile-phone-screen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: object-position 3.5s ease-in-out;
    }

    .mobile-phone-mockup:hover .mobile-phone-screen img {
      object-position: bottom;
    }

    .mobile-phone-notch {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 80px;
      height: 18px;
      background: #1a1a1a;
      border-radius: 10px;
      z-index: 10;
      box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    }

    .mobile-landscape-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
      display: flex;
      flex-direction: column;
      max-width: 420px;
      margin: 0 auto;
    }

    .mobile-landscape-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 122, 255, 0.12), 0 0 0 1px rgba(0, 122, 255, 0.15);
      border-color: rgba(0, 122, 255, 0.3);
    }

    .mobile-landscape-screen {
      position: relative;
      aspect-ratio: 16/9;
      overflow: hidden;
      background: #fafafa;
    }

    .mobile-landscape-screen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: transform 0.6s ease;
    }

    .mobile-landscape-card:hover .mobile-landscape-screen img {
      transform: scale(1.04);
    }

    /* DESKTOP APPS (Desktop Window Mockup) */
    .desktop-mockup {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
      display: flex;
      flex-direction: column;
    }

    .desktop-mockup:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 122, 255, 0.12), 0 0 0 1px rgba(0, 122, 255, 0.15);
      border-color: rgba(0, 122, 255, 0.3);
    }

    .desktop-header {
      height: 38px;
      background: #f1f3f4;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 14px;
      gap: 12px;
      flex-shrink: 0;
    }

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

    .desktop-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
    }
    .desktop-dot.red { background: #ff5f56; }
    .desktop-dot.yellow { background: #ffbd2e; }
    .desktop-dot.green { background: #27c93f; }

    .desktop-title-bar {
      flex: 1;
      text-align: center;
      font-size: 11px;
      font-weight: 500;
      color: var(--muted);
      margin-left: -45px; /* offset window buttons */
    }

    .desktop-screen {
      position: relative;
      aspect-ratio: 16/10;
      overflow: hidden;
      background: #fafafa;
    }

    .desktop-screen img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: object-position 3.5s ease-in-out;
    }

    .desktop-mockup:hover .desktop-screen img {
      object-position: bottom;
    }

    /* PROJECT INFO DETAILS */
    .project-card-wrapper {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .project-card-details {
      padding: 1.25rem 0.25rem 0.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .project-card-title {
      font-family: 'Clash Display', sans-serif;
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: color 0.2s ease;
    }

    .project-card-title:hover {
      color: var(--accent);
    }

    .project-card-desc {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.5;
    }

    .project-card-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.25rem;
    }

    .project-card-tag {
      font-size: 0.7rem;
      font-weight: 600;
      color: var(--accent2);
      background: rgba(0, 122, 255, 0.05);
      border: 1px solid rgba(0, 122, 255, 0.12);
      padding: 0.15rem 0.55rem;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .project-card-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: 0.75rem;
    }

    .project-btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--accent);
      color: #ffffff;
      padding: 0.45rem 1rem;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 700;
      text-decoration: none;
      transition: box-shadow 0.2s, transform 0.2s;
    }

    .project-btn-primary:hover {
      box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
      transform: translateY(-1px);
    }

    .project-btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.45rem 1rem;
      border-radius: 6px;
      font-size: 0.78rem;
      font-weight: 600;
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s;
    }

    .project-btn-secondary:hover {
      background: rgba(0, 0, 0, 0.03);
      border-color: var(--accent);
      color: var(--accent);
    }

    /* PORTFOLIO FILTERS */
    .portfolio-filters {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }

    .portfolio-filter-btn {
      padding: 0.6rem 1.5rem;
      border: 1px solid rgba(79, 195, 247, 0.3);
      background: transparent;
      border-radius: 25px;
      font-size: 0.9rem;
      color: var(--text);
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Cabinet Grotesk', sans-serif;
      font-weight: 500;
    }

    .portfolio-filter-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }

    .portfolio-filter-btn.active {
      background: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
    }

    /* CONTACT */
    #contact {
      background: var(--bg);
    }

    .contact-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
      margin-top: 3rem;
    }

    .contact-info p {
      font-size: 0.9rem;
      color: var(--muted);
      line-height: 1.8;
      margin-bottom: 2rem;
    }

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

    .contact-link {
      display: flex;
      align-items: center;
      gap: 1rem;
      color: var(--muted);
      text-decoration: none;
      font-size: 0.85rem;
      transition: color 0.2s;
      padding: 0.75rem;
      border-radius: 0.5rem;
      border: 1px solid transparent;
    }

    .contact-link:hover {
      color: var(--accent);
      border-color: rgba(79, 195, 247, 0.2);
      background: rgba(79, 195, 247, 0.04);
    }

    .contact-link-icon {
      width: 36px;
      height: 36px;
      background: #f0f0f0;
      border-radius: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
    }

    /* ── NEW CONTACT STYLE ── */
    .contact-details-header {
      margin-bottom: 4rem;
    }

    .contact-details-header h2 {
      font-family: 'Clash Display', sans-serif;
      font-size: 3rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-bottom: 0.5rem;
      color: #000;
    }

    .contact-details-underline {
      width: 100px;
      height: 6px;
      background: var(--accent);
    }

    .contact-grid-modern {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 2rem;
      text-align: center;
      margin-bottom: 4rem;
      justify-content: center;
    }

    .contact-item-modern {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .contact-icon-modern {
      font-size: 2.5rem;
      color: var(--accent);
      margin-bottom: 0.5rem;
    }

    .contact-text-modern {
      font-size: 1.1rem;
      color: #1a1a1b;
      line-height: 1.5;
    }

    .contact-text-modern a {
      color: inherit;
      text-decoration: none;
      transition: color 0.2s;
    }

    .contact-text-modern a:hover {
      color: var(--accent2);
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
    }

    .form-group label {
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.5rem;
    }

    .contact-socials-row {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-top: 4rem;
      flex-wrap: wrap;
    }

    .social-row-link {
      width: 60px;
      height: 60px;
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 1.4rem;
      font-weight: 700;
      font-family: 'Cabinet Grotesk', sans-serif;
      text-decoration: none;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    }

    .social-row-link:hover {
      background: var(--accent);
      color: #000;
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(118, 255, 3, 0.25);
      border-color: var(--accent);
    }

    .form-group input,
    .form-group textarea {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      padding: 0.75rem 1rem;
      font-family: 'Cabinet Grotesk', sans-serif;
      font-size: 0.85rem;
      color: var(--text);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      resize: none;
    }

    /* ── SERVICES STYLE ── */
    #services {
      background: var(--bg2);
      text-align: center;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2.5rem;
      margin-top: 4rem;
      justify-items: center;
    }

    .service-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }

    /* ── DETAILED EXPERTISE CARDS ── */
    .expertise-detailed-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .expertise-card {
      background: #ffffff;
      padding: 2.5rem 2rem;
      border-radius: 1.5rem;
      border: 1px solid rgba(0, 0, 0, 0.03);
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
      transition: all 0.4s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .expertise-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
      border-color: var(--accent);
    }

    .expertise-card-icon {
      font-size: 2.8rem;
      color: var(--accent);
      margin-bottom: 1.5rem;
    }

    .expertise-card h3 {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 1.5rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .expertise-tags {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.6rem;
    }

    .expertise-tag {
      background: #f8f9fa;
      color: #666;
      padding: 0.4rem 0.9rem;
      border-radius: 100px;
      font-size: 0.75rem;
      font-weight: 600;
      border: 1px solid rgba(0, 0, 0, 0.04);
      transition: all 0.3s ease;
    }

    .expertise-card:hover .expertise-tag {
      background: rgba(118, 255, 3, 0.1);
      color: #000;
      border-color: rgba(118, 255, 3, 0.2);
    }

    /* ── STATS SECTION ── */
    .stats-section {
      background: var(--accent);
      color: #ffffff;
      padding: 4rem var(--px);
      text-align: center;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .stat-item h3 {
      font-family: 'Clash Display', sans-serif;
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 700;
      margin-bottom: 0.5rem;
      line-height: 1;
    }

    .stat-item p {
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      opacity: 0.9;
    }

    @media (max-width: 768px) {
      .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }

    .service-card-box {
      width: 180px;
      height: 180px;
      background: #fff;
      border-radius: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
      border: 1px solid rgba(0, 0, 0, 0.02);
    }

    .service-card-box:hover {
      transform: translateY(-12px);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    }

    .service-card-box i {
      font-size: 4.5rem;
      color: var(--accent);
    }

    .service-title {
      font-family: 'Cabinet Grotesk', sans-serif;
      font-weight: 500;
      font-size: 1.05rem;
      color: #1a1a1b;
      text-align: center;
      max-width: 220px;
      line-height: 1.4;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(118, 255, 3, 0.06);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: #3a4a5a;
    }

    /* FOOTER */
    .modern-footer {
      background: #1a1a1a;
      color: #f8fafc;
      padding: 3rem var(--px) 1.5rem;
    }

    .footer-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto 3rem;
      flex-wrap: wrap;
      gap: 2rem;
    }

    .footer-brand-inline h3 {
      font-family: 'Cabinet Grotesk', sans-serif;
      font-size: 1.5rem;
      font-weight: 700;
      color: #ffffff;
      margin: 0;
      display: flex;
      align-items: center;
    }

    .footer-links-inline {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-links-inline a {
      color: #a1a1aa;
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.2s ease;
    }

    .footer-links-inline a:hover {
      color: #ffffff;
    }

    .footer-social-inline {
      display: flex;
      gap: 1.25rem;
      align-items: center;
    }

    .footer-social-inline a {
      color: #a1a1aa;
      font-size: 1.15rem;
      transition: color 0.2s ease;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .footer-social-inline a:hover {
      color: #ffffff;
    }

    .footer-bottom-row {
      border-top: 1px solid rgba(255,255,255,0.05);
      padding-top: 1.5rem;
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: flex-start;
    }

    .footer-bottom-row p {
      font-size: 0.85rem;
      color: #71717a;
      margin: 0;
    }

    @media (max-width: 768px) {
      .footer-top-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
      }
      .footer-bottom-row {
        justify-content: center;
      }
    }

    /* ── TESTIMONIALS ── */
    #testimonials {
      background: #f8fafc;
    }

    .testimonials-grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      gap: 1.5rem;
      max-width: 1100px;
      margin: 0 auto;
      padding-bottom: 2rem;
      /* Hide scrollbar for cleaner look if desired, or keep default */
    }

    .testimonials-grid::-webkit-scrollbar {
      height: 8px;
    }
    .testimonials-grid::-webkit-scrollbar-track {
      background: var(--bg);
      border-radius: 4px;
    }
    .testimonials-grid::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 4px;
    }

    .testimonial-card {
      background: #ffffff;
      border: 1px solid rgba(0,0,0,0.06);
      border-radius: 1.25rem;
      padding: 2rem 1.5rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.02);
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      min-width: 320px;
      flex-shrink: 0;
      scroll-snap-align: start;
    }

    .testimonial-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    }

    .testimonial-header {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .testimonial-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      object-fit: cover;
      background: #f0f0f0;
      border: 2px solid #e2e8f0;
    }

    .testimonial-user-info h4 {
      font-family: 'Cabinet Grotesk', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: #1a1a1b;
      margin-bottom: 0.15rem;
    }

    .testimonial-user-info span {
      font-size: 0.75rem;
      color: var(--muted);
    }

    .testimonial-body {
      flex: 1;
    }

    .testimonial-body p {
      font-size: 0.95rem;
      font-style: italic;
      color: #4a5568;
      line-height: 1.6;
    }

    .testimonial-footer {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-top: auto;
    }

    .rating-pill {
      background: #fffbeb;
      border: 1px solid #fde68a;
      color: #d97706;
      padding: 0.35rem 0.8rem;
      border-radius: 1.5rem;
      font-size: 0.8rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .country-pill {
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: #475569;
      padding: 0.35rem 0.8rem;
      border-radius: 1.5rem;
      font-size: 0.8rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    @media (max-width: 900px) {
      .testimonial-card {
        min-width: 280px;
      }
    }

    @media (max-width: 600px) {
      .testimonial-card {
        min-width: 85vw;
      }
    }

    /* REVEAL */
    .reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    @media (max-width: 768px) {
      .nav-wrapper {
        padding: 0.5rem;
      }

      nav {
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        overflow: visible;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
      }

      .nav-mobile-brand {
        display: none;
      }

      .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 2px solid #e2e8f0;
        border-radius: 6px;
        background: #ffffff;
        color: #1a1a1b;
      }

      .nav-links {
        position: absolute;
        top: 110%;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        min-width: 150px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
      }

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

      .nav-links a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
        width: 100%;
        text-align: left;
      }

      #home {
        display: flex;
        flex-direction: column;
        padding: 6rem 1.5rem 3rem;
        text-align: left;
      }

      .hero-bg-shape {
        display: none;
      }

      .hero-left {
        order: 2;
      }

      .hero-right {
        order: 1;
        margin-top: 0;
        margin-bottom: 0.5rem;
      }

      .hero-bio {
        margin: 0 0 2rem;
      }

      .hero-actions {
        justify-content: flex-start;
      }

      .hero-roles {
        justify-content: flex-start;
        margin: 0.5rem 0 1rem;
      }

      .hero-tech-stack {
        align-items: flex-start;
        margin-top: 2.5rem;
      }

      .hero-tech-icons {
        justify-content: flex-start;
      }

      .hero-profile-frame {
        width: 100%;
        max-width: 230px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
        position: relative;
        z-index: 1;
      }
      
      .hero-profile-frame::before {
        content: '';
        position: absolute;
        top: -4%;
        right: -4%;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 5px solid var(--accent); /* Blue offset ring */
        z-index: -1;
      }
      
      .hero-profile-circle {
        border: 6px solid #ffffff !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
      }

      .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
      }

      .about-images {
        height: 350px;
        margin-bottom: 2rem;
      }

      .about-img-main {
        width: 200px;
        height: 280px;
      }

      .about-img-secondary {
        width: 150px;
        height: 200px;
      }

      .contact-details-header h2 {
        font-size: 1.8rem;
      }

      .expertise-detailed-grid {
        grid-template-columns: 1fr;
      }

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

      section {
        padding: 4rem 1.5rem;
      }
    }

    @media (max-width: 580px) {
      .portfolio-grid {
        grid-template-columns: 1fr;
      }
    }

    /* HIDDEN PROJECTS (Show only 6 max by default) */
    .portfolio-web-grid .project-card-wrapper:nth-child(n+7) {
      display: none;
    }

    /* PROJECTS MODAL */
    .projects-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      backdrop-filter: blur(8px);
    }

    .projects-modal.active {
      display: flex;
      animation: modalFadeIn 0.3s ease;
    }

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

    .projects-modal-content {
      background: var(--bg);
      width: 100%;
      max-width: 1200px;
      height: 90vh;
      border-radius: 1rem;
      padding: 3rem 2rem;
      position: relative;
      overflow-y: auto;
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .projects-modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 1.8rem;
      cursor: pointer;
      background: none;
      border: none;
      color: var(--text);
      transition: color 0.2s, transform 0.2s;
    }

    .projects-modal-close:hover {
      color: var(--accent);
      transform: scale(1.1);
    }

    /* Ensure modal grid items display properly and are visible */
    #modalProjectsGrid .project-card-wrapper {
      display: flex !important;
      opacity: 1 !important;
      transform: none !important;
      transition-delay: 0s !important;
    }

    /* WHAT I DO SECTION */
    .what-i-do-wrapper {
      background: var(--bg);
      border-radius: 1rem;
      padding: 3rem 2rem;
      border: 1px solid var(--border);
    }

    .tech-icons-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      margin-bottom: 2.5rem;
      justify-content: center;
      max-width: 900px;
      margin-inline: auto;
    }

    .tech-icon-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
      color: #999;
      transition: color 0.3s ease, transform 0.3s ease;
      cursor: pointer;
      width: 70px;
    }

    .tech-icon-item i {
      font-size: 3.5rem;
    }

    .tech-icon-item span {
      font-size: 0.75rem;
      text-transform: lowercase;
      font-weight: 500;
    }

    .tech-icon-item:hover, .tech-icon-item:hover .cpanel-img {
      color: var(--accent);
      transform: translateY(-5px);
      filter: grayscale(0%) opacity(100%) !important;
    }

    .what-i-do-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }

    .what-i-do-list li {
      font-size: 1.05rem;
      color: #555;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      line-height: 1.6;
      font-weight: 400;
    }

    .what-i-do-list li .bolt {
      color: #FFC107;
      font-size: 1.3rem;
      flex-shrink: 0;
    }

    /* INLINE WHAT I DO LAYOUT OVERRIDES */
    .what-i-do-inline {
      margin-top: 1rem;
    }

    .what-i-do-inline .tech-icons-grid {
      justify-content: flex-start;
      margin-inline: 0;
      gap: 1.25rem;
      max-width: 100%;
    }

    .what-i-do-inline .tech-icon-item {
      width: 60px;
    }

    .what-i-do-inline .tech-icon-item i {
      font-size: 2.5rem;
    }

    .what-i-do-inline .tech-icon-item span {
      font-size: 0.7rem;
    }

    .what-i-do-inline .what-i-do-list {
      margin: 2rem 0;
      max-width: 100%;
    }

    .what-i-do-inline .what-i-do-list li span:not(.bolt) {
      font-size: 0.95rem;
    }

    /* ── EDUCATION & EXPERIENCE TIMELINE ── */
    #experience {
      padding: 6rem 1rem;
    }

    .timeline-container {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      max-width: 1000px;
      margin: 0 auto;
    }

    .timeline-column {
      display: flex;
      flex-direction: column;
    }

    .timeline-item {
      position: relative;
      padding-left: 2rem;
      border-left: 2px solid var(--border);
      margin-bottom: 2.5rem;
    }

    .timeline-dot {
      position: absolute;
      left: -7px;
      top: 0;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--accent);
    }

    .timeline-date {
      font-size: 0.85rem;
      color: var(--accent);
      font-weight: 600;
      display: inline-block;
      margin-bottom: 0.5rem;
    }

    .timeline-title {
      font-size: 1.2rem;
      margin: 0 0 0.2rem;
      color: var(--text);
    }

    .timeline-subtitle {
      font-size: 0.95rem;
      color: var(--muted);
      font-weight: 400;
      margin-bottom: 0.8rem;
    }

    .timeline-desc {
      font-size: 0.9rem;
      color: #666;
      line-height: 1.6;
    }

    @media (max-width: 768px) {
      .timeline-container {
        grid-template-columns: 1fr;
        gap: 2rem;
      }
    }

    /* Back to Top Button */
    .back-to-top {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 50px;
      height: 50px;
      background: var(--accent);
      color: white;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.2rem;
      text-decoration: none;
      box-shadow: 0 4px 15px rgba(0,0,0,0.15);
      transition: all 0.3s ease;
      z-index: 999;
      opacity: 0.8;
    }

    .back-to-top:hover {
      background: var(--text);
      color: white;
      transform: translateY(-5px);
      opacity: 1;
    }
    /* PRELOADER */
    #preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg2);
      z-index: 99999;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.5s ease, visibility 0.5s ease;
    }

    #preloader.fade-out {
      opacity: 0;
      visibility: hidden;
    }

    .loader-content {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .loader-logo {
      width: 60px;
      height: 60px;
      z-index: 2;
      animation: pulseLogo 1.5s infinite ease-in-out;
    }

    .loader-pulse {
      position: absolute;
      width: 60px;
      height: 60px;
      background: var(--accent);
      border-radius: 50%;
      z-index: 1;
      animation: pulseBg 1.5s infinite ease-in-out;
    }

    @keyframes pulseLogo {
      0% { transform: scale(0.9); }
      50% { transform: scale(1.1); }
      100% { transform: scale(0.9); }
    }

    @keyframes pulseBg {
      0% { transform: scale(0.8); opacity: 0.6; }
      100% { transform: scale(2.5); opacity: 0; }
    }

    /* NAV CONTACT BUTTON */
    .nav-links a.nav-contact-btn {
      background: var(--accent);
      color: #fff !important;
      border-radius: 50px;
      padding: 0.5rem 1.5rem;
      margin-left: 0.5rem;
      box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    }
    .nav-links a.nav-contact-btn:hover {
      background: var(--accent2);
      color: #fff !important;
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    }
