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

    /* ===== THEME VARIABLES ===== */
    :root {
      /* Dark theme (default) */
      --bg-primary: #0a0c10;
      --bg-secondary: rgba(18, 22, 32, 0.7);
      --bg-card: rgba(15, 20, 30, 0.7);
      --bg-form: #0f172a;
      --text-primary: #eef4ff;
      --text-secondary: #b9c8f0;
      --text-muted: #ccddf8;
      --border-color: rgba(0, 224, 255, 0.2);
      --border-light: #2d3a5e;
      --header-bg: rgba(10, 12, 18, 0.85);
      --skill-bar-bg: #1e293b;
      --contact-bg: rgba(18, 22, 32, 0.5);
      --shadow-color: rgba(0, 180, 255, 0.2);
      --btn-gradient: linear-gradient(95deg, #00b4ff, #8b5cf6);
      --hero-gradient: radial-gradient(circle at 20% 30%,
          rgba(0, 180, 255, 0.08),
          rgba(10, 12, 16, 0.95));
      --grid-pattern: repeating-linear-gradient(45deg,
          rgba(0, 255, 255, 0.02) 0px,
          rgba(0, 255, 255, 0.02) 2px,
          transparent 2px,
          transparent 8px);
    }

    /* Light theme */
    body.light-theme {
      --bg-primary: #f5f7fe;
      --bg-secondary: rgba(255, 255, 255, 0.8);
      --bg-card: rgba(255, 255, 255, 0.85);
      --bg-form: #ffffff;
      --text-primary: #1a1f2e;
      --text-secondary: #2d3a5e;
      --text-muted: #3a4a6e;
      --border-color: rgba(0, 100, 150, 0.25);
      --border-light: #d0d8e8;
      --header-bg: rgba(245, 247, 254, 0.92);
      --skill-bar-bg: #e2e8f0;
      --contact-bg: rgba(255, 255, 255, 0.75);
      --shadow-color: rgba(0, 100, 150, 0.15);
      --btn-gradient: linear-gradient(95deg, #0088cc, #6c47d6);
      --hero-gradient: radial-gradient(circle at 20% 30%,
          rgba(0, 100, 150, 0.05),
          rgba(245, 247, 254, 0.95));
      --grid-pattern: repeating-linear-gradient(45deg,
          rgba(0, 100, 150, 0.03) 0px,
          rgba(0, 100, 150, 0.03) 2px,
          transparent 2px,
          transparent 8px);
    }

    /* Light mode heading fixes - improved readability */
    body.light-theme .hero-text h1 {
      color: #0a2540;
    }

    body.light-theme .hero-text h2 {
      color: #1e3a5f;
    }

    body.light-theme .section-title {
      background: linear-gradient(135deg, #1e3a5f, #2d4a6e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    body.light-theme .extra-card h3 {
      background: linear-gradient(135deg, #1e3a5f, #2d4a6e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    body.light-theme .skills-block h3 {
      background: linear-gradient(120deg, #1e3a5f, #2d4a6e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    body.light-theme .contact-info h3 {
      background: linear-gradient(135deg, #1e3a5f, #2d4a6e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    body.light-theme .project-info h3 {
      color: #1e3a5f;
    }

    body.light-theme .service-item h4 {
      color: #1e3a5f;
    }

    body.light-theme .highlight {
      background: linear-gradient(120deg, #0066cc, #8b5cf6);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    body {
      font-family:
        "Segoe UI",
        "Poppins",
        system-ui,
        -apple-system,
        "Inter",
        sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      transition:
        background-color 0.3s ease,
        color 0.2s ease;
      text-rendering: optimizeLegibility;
    }

    body,
    button,
    input,
    textarea {
      -webkit-font-smoothing: antialiased;
    }

    body.menu-open {
      overflow: hidden;
    }

    .skip-link {
      position: absolute;
      left: 1rem;
      top: -60px;
      background: #0ea5e9;
      color: #04101d;
      font-weight: 700;
      padding: 0.85rem 1rem;
      border-radius: 14px;
      text-decoration: none;
      z-index: 5000;
      transition: top 0.2s ease;
    }

    .skip-link:focus {
      top: 1rem;
    }

    body::before {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--hero-gradient);
      pointer-events: none;
      z-index: -2;
      transition: background 0.3s ease;
    }

    body::after {
      content: "";
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--grid-pattern);
      pointer-events: none;
      z-index: -1;
    }

    /* Scroll Progress Bar - NEW */
    .progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, #00e0ff, #a855f7);
      z-index: 10000;
      transition: width 0.1s ease;
    }

    .container {
      width: 90%;
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    /* header glass morph */
    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--header-bg);
      backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border-color);
      transition:
        all 0.3s ease,
        background 0.3s ease;
    }

    nav {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 0;
      flex-wrap: nowrap;
      gap: 1rem;
    }

    /* ===== FIX: LOGO NO WRAP, NO OVERFLOW ===== */
    .logo {
      font-size: 1.6rem;
      font-weight: 800;
      background: linear-gradient(135deg, #00e0ff, #a855f7);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      letter-spacing: -0.3px;
      text-decoration: none;
      transition: transform 0.2s;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* on extremely tiny screens, slightly reduce font but keep on one line */
    @media (max-width: 480px) {
      .logo {
        font-size: 1.3rem;
        letter-spacing: -0.2px;
      }
    }

    .logo:hover {
      transform: scale(1.02);
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
      transition: all 0.3s;
      align-items: center;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-muted);
      font-weight: 500;
      transition: 0.2s;
      position: relative;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      bottom: -6px;
      left: 0;
      width: 0%;
      height: 2px;
      background: #00e0ff;
      transition: 0.3s;
      border-radius: 2px;
    }

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

    .nav-links a:hover,
    .nav-links a.active {
      color: #00e0ff;
    }

    /* Theme Toggle Button - positioned after nav links on the right */
    .theme-toggle {
      appearance: none;
      background: rgba(0, 224, 255, 0.15);
      border: 1px solid var(--border-color);
      border-radius: 50px;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 1.3rem;
      color: #00e0ff;
      flex-shrink: 0;
    }

    .theme-toggle:hover {
      transform: scale(1.05);
      background: rgba(0, 224, 255, 0.3);
      box-shadow: 0 0 12px rgba(0, 224, 255, 0.3);
    }

    /* Menu toggle button - visible on mobile */
    .menu-toggle {
      appearance: none;
      display: none;
      font-size: 1.8rem;
      cursor: pointer;
      color: #00e0ff;
      flex-shrink: 0;
      background: rgba(0, 224, 255, 0.15);
      border: 1px solid var(--border-color);
      border-radius: 50px;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .menu-toggle:hover {
      background: rgba(0, 224, 255, 0.3);
      transform: scale(1.05);
    }

    /* Right side group for menu toggle and theme toggle on mobile */
    .right-controls {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      flex-shrink: 0;
    }

    /* ===== OFF-CANVAS MENU (SLIDES FROM LEFT) ===== */
    .offcanvas-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 2000;
      opacity: 0;
      visibility: hidden;
      transition:
        opacity 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        visibility 0.4s ease;
    }

    .offcanvas-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .offcanvas-menu {
      position: fixed;
      top: 0;
      left: -320px;
      width: 320px;
      height: 100%;
      background: var(--bg-secondary);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border-color);
      z-index: 2001;
      transition: left 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      display: flex;
      flex-direction: column;
      box-shadow: 5px 0 30px rgba(0, 0, 0, 0.4);
    }

    .offcanvas-menu.active {
      left: 0;
    }

    .offcanvas-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem;
      border-bottom: 1px solid var(--border-color);
    }

    .offcanvas-header .logo {
      font-size: 1.3rem;
    }

    .offcanvas-close {
      background: rgba(0, 224, 255, 0.15);
      border: 1px solid var(--border-color);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1.2rem;
      color: #00e0ff;
      transition: all 0.2s;
    }

    .offcanvas-close:hover {
      background: rgba(0, 224, 255, 0.3);
      transform: scale(1.05);
    }

    .offcanvas-nav {
      flex: 1;
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
    }

    .offcanvas-nav a {
      text-decoration: none;
      color: var(--text-primary);
      font-size: 1.1rem;
      font-weight: 500;
      padding: 1rem 1.5rem;
      margin: 0.2rem 0;
      border-radius: 12px;
      transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      border: none;
      position: relative;
      overflow: hidden;
    }

    .offcanvas-nav a::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.1), transparent);
      transition: left 0.5s;
    }

    .offcanvas-nav a:hover::before {
      left: 100%;
    }

    .offcanvas-nav a:hover,
    .offcanvas-nav a.active {
      color: #00e0ff;
      background: rgba(0, 224, 255, 0.08);
      transform: translateX(8px);
      box-shadow: 0 4px 15px rgba(0, 224, 255, 0.15);
    }

    .offcanvas-footer {
      padding: 1.5rem;
      border-top: 1px solid var(--border-color);
      text-align: center;
    }

    .offcanvas-footer .social-links {
      justify-content: center;
      gap: 1.2rem;
      margin: 0;
    }

    .offcanvas-footer .social-links a {
      font-size: 1.3rem;
    }

    /* Hide desktop nav on mobile, show menu-toggle */
    @media (max-width: 850px) {
      .nav-links {
        display: none;
      }

      .menu-toggle {
        display: flex;
        position: relative;
        overflow: hidden;
      }

      .menu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
      }

      .menu-toggle:active::before {
        width: 100px;
        height: 100px;
      }
    }

    /* ===== WHATSAPP ICON STYLES ===== */
    .whatsapp-float {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 1000;
      width: 65px;
      height: 65px;
      background-color: #25d366;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
      transition: all 0.3s ease;
      animation:
        whatsappPulse 1.5s infinite,
        whatsappFloat 2s infinite ease-in-out;
    }

    .whatsapp-float i {
      font-size: 2.5rem;
      color: white;
      transition: transform 0.3s ease;
    }

    .whatsapp-float:hover {
      transform: scale(1.1);
      animation: none;
      box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    }

    .whatsapp-float:hover i {
      transform: rotate(8deg) scale(1.05);
    }

    @keyframes whatsappPulse {
      0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
      }

      70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
      }

      100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
      }
    }

    @keyframes whatsappFloat {
      0% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-10px);
      }

      100% {
        transform: translateY(0px);
      }
    }

    .whatsapp-tooltip {
      position: absolute;
      right: 80px;
      background: var(--bg-card);
      backdrop-filter: blur(10px);
      padding: 8px 16px;
      border-radius: 30px;
      font-size: 0.85rem;
      font-weight: 500;
      white-space: nowrap;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      pointer-events: none;
      font-family: inherit;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .whatsapp-float:hover .whatsapp-tooltip {
      opacity: 1;
      visibility: visible;
      transform: translateX(-5px);
    }

    @media (max-width: 768px) {
      .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
      }

      .whatsapp-float i {
        font-size: 2rem;
      }

      .whatsapp-tooltip {
        right: 65px;
        font-size: 0.75rem;
        padding: 6px 12px;
        white-space: nowrap;
      }
    }

    @media (max-width: 480px) {
      .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
      }

      .whatsapp-float i {
        font-size: 1.8rem;
      }

      .whatsapp-tooltip {
        right: 58px;
        font-size: 0.7rem;
        padding: 5px 10px;
      }
    }

    /* hero section */
    .hero {
      min-height: 90vh;
      display: flex;
      align-items: center;
      padding: 3rem 0;
    }

    .hero-content {
      display: flex;
      align-items: center;
      gap: 3rem;
      flex-wrap: wrap;
      justify-content: space-between;
    }

    .hero-text {
      flex: 1.2;
      animation: fadeUp 0.8s ease-out;
    }

    .hero-text h1 {
      font-size: 3.5rem;
      margin-bottom: 1rem;
      min-height: 4rem;
      font-weight: 800;
      line-height: 1.1;
      letter-spacing: -0.04em;
      max-width: 12ch;
    }

    .hero-text h2 {
      font-size: 2.2rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: var(--text-secondary);
      min-height: 3rem;
      line-height: 1.2;
      letter-spacing: -0.02em;
    }

    /* No cursor styling - removed completely */
    .typing-name {
      display: inline-block;
      text-wrap: balance;
    }


    .typing-subtitle {
      display: inline-block;
    }

    .highlight {
      background: linear-gradient(120deg, #00e0ff, #c084fc);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero-text .hero-description {
      font-size: 1.2rem;
      color: var(--text-secondary);
      max-width: 58ch;
      margin-bottom: 2.25rem;
      line-height: 1.75;
      font-weight: 400;
      text-wrap: balance;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      background: var(--btn-gradient);
      padding: 0.95rem 1.8rem;
      border-radius: 50px;
      font-weight: 700;
      text-decoration: none;
      color: white;
      transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      border: none;
      cursor: pointer;
      box-shadow: 0 10px 28px var(--shadow-color);
      font-size: 0.98rem;
      letter-spacing: 0.01em;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn-primary {
      background: linear-gradient(135deg, #00b4ff, #8b5cf6);
      color: white;
    }

    .btn-secondary {
      background: transparent;
      border: 2px solid #00e0ff;
      color: #00e0ff;
      box-shadow: none;
    }

    .btn-secondary::before {
      background: linear-gradient(90deg, transparent, rgba(0, 224, 255, 0.2), transparent);
    }

    .btn-secondary:hover {
      background: rgba(0, 224, 255, 0.1);
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 224, 255, 0.3);
    }

    .btn:hover {
      transform: translateY(-4px);
      filter: brightness(1.08);
      box-shadow: 0 16px 36px var(--shadow-color);
    }

    .hero-buttons {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .section-kicker {
      display: inline-block;
      margin-bottom: 0.8rem;
      padding: 0.38rem 0.8rem;
      border-radius: 999px;
      background: rgba(0, 224, 255, 0.12);
      border: 1px solid rgba(0, 224, 255, 0.22);
      color: #7ddcff;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-weight: 700;
    }

    .hero-image {
      flex: 0.8;
      display: flex;
      justify-content: center;
      animation: float 5s infinite ease-in-out;
    }

    .profile-img {
      width: 450px;
      height: 450px;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid #00e0ff;
      box-shadow: 0 0 35px rgba(0, 224, 255, 0.4);
      background: #11161f;
      transition: 0.3s;
    }

    .section-title {
      font-size: 2.5rem;
      margin: 2rem 0 2.4rem;
      text-align: center;
      background: linear-gradient(135deg, #f0f9ff, #8bcaff);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.03em;
      line-height: 1.1;
      text-wrap: balance;
    }

    /* card styles */
    .extra-card {
      background: var(--bg-secondary);
      backdrop-filter: blur(4px);
      border-radius: 28px;
      padding: 2rem;
      border: 1px solid var(--border-color);
      margin-bottom: 2rem;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
      transition:
        transform 0.25s ease,
        background 0.3s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    }

    .extra-card h3 {
      font-size: 1.8rem;
      margin-bottom: 1.1rem;
      background: linear-gradient(135deg, #fff, #7bc5ff);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.02em;
    }

    .extra-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 224, 255, 0.34);
      box-shadow: 0 24px 44px rgba(0, 0, 0, 0.24);
    }

    .testimonial-grid,
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.8rem;
      margin-top: 1rem;
    }

    .testi-item,
    .service-item {
      background: var(--bg-card);
      border-radius: 24px;
      padding: 1.5rem;
      border: 1px solid var(--border-color);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
      transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    }

    .testi-item:hover,
    .service-item:hover {
      transform: translateY(-6px);
      border-color: rgba(0, 224, 255, 0.35);
      box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
    }

    .stats-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 1rem;
      text-align: center;
      margin-top: 1rem;
    }

    .stat-card {
      background: var(--bg-card);
      border-radius: 28px;
      padding: 1.5rem;
      flex: 1;
      min-width: 120px;
      backdrop-filter: blur(4px);
      border: 1px solid var(--border-color);
    }

    .stat-number {
      font-size: 2.2rem;
      font-weight: 800;
      color: #00e0ff;
    }

    /* about wrapper */
    .about-wrapper {
      background: var(--bg-secondary);
      backdrop-filter: blur(4px);
      border-radius: 32px;
      padding: 2.2rem;
      border: 1px solid var(--border-color);
      margin-bottom: 2rem;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    }

    .about-grid {
      display: flex;
      flex-direction: row;
      gap: 2.5rem;
      flex-wrap: wrap;
    }

    .about-text-block {
      flex: 1.2;
      min-width: 240px;
    }

    .about-text-block p {
      max-width: 64ch;
      line-height: 1.8;
      margin-bottom: 1rem;
      text-wrap: pretty;
    }

    .skills-block {
      flex: 1;
      min-width: 250px;
    }

    .skills-block h3 {
      font-size: 1.6rem;
      margin-bottom: 1.2rem;
      background: linear-gradient(120deg, #b4e0ff, #a27eff);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      letter-spacing: -0.02em;
    }

    .gradient-subtitle {
      background: linear-gradient(120deg, #00e0ff, #c084fc);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
    }

    .stack-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .timeline-item {
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      padding: 0.7rem 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

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

    .timeline-icon {
      color: #00e0ff;
      width: 1.8rem;
      flex-shrink: 0;
      margin-top: 0.18rem;
    }

    .skill-item {
      margin-bottom: 1.3rem;
    }

    .skill-name {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .skill-bar {
      background: var(--skill-bar-bg);
      height: 8px;
      border-radius: 10px;
      overflow: hidden;
    }

    .skill-level {
      background: linear-gradient(90deg, #00e0ff, #a855f7);
      height: 100%;
      width: 0%;
      border-radius: 10px;
      transition: width 1.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    }

    /* projects grid */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
      gap: 2rem;
      margin: 1.5rem 0;
    }

    .projects-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      justify-content: center;
      margin: 0 auto 1.8rem;
    }

    .filter-chip {
      appearance: none;
      border: 1px solid rgba(0, 224, 255, 0.18);
      background: rgba(0, 224, 255, 0.08);
      color: var(--text-primary);
      padding: 0.78rem 1rem;
      border-radius: 999px;
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .filter-chip:hover,
    .filter-chip.active {
      background: linear-gradient(135deg, rgba(0, 180, 255, 0.26), rgba(139, 92, 246, 0.22));
      border-color: rgba(0, 224, 255, 0.4);
      color: #ebf9ff;
      transform: translateY(-2px);
    }

    .project-card[hidden] {
      display: none;
    }

    .project-card {
      background: var(--bg-card);
      backdrop-filter: blur(4px);
      border-radius: 28px;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      border: 1px solid var(--border-color);
      position: relative;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    }

    .project-card:focus-visible {
      outline: 3px solid rgba(0, 224, 255, 0.45);
      outline-offset: 4px;
    }

    .project-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #00b4ff, #8b5cf6);
      transform: scaleX(0);
      transition: transform 0.3s ease;
      transform-origin: left;
    }

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

    .project-card:hover {
      transform: translateY(-10px) scale(1.015);
      box-shadow: 0 28px 42px -14px rgba(0, 224, 255, 0.28);
      border-color: #00e0ff80;
    }

    .project-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      transition: transform 0.5s;
      filter: brightness(0.94);
    }

    .project-card:hover .project-img {
      transform: scale(1.05);
      filter: brightness(1);
    }

    .project-info {
      padding: 1.8rem;
      position: relative;
    }

    .project-badges {
      position: absolute;
      top: 1rem;
      left: 1rem;
      z-index: 2;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .project-badge {
      display: inline-flex;
      align-items: center;
      min-height: 32px;
      padding: 0.35rem 0.75rem;
      border-radius: 999px;
      background: rgba(3, 14, 24, 0.8);
      border: 1px solid rgba(0, 224, 255, 0.2);
      color: #f4fbff;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      backdrop-filter: blur(8px);
    }

    .muted-badge {
      background: rgba(25, 35, 54, 0.86);
      color: #9ddfff;
    }

    .project-info h3 {
      font-size: 1.4rem;
      font-weight: 700;
      margin-bottom: 0.8rem;
      background: linear-gradient(135deg, #fff, #7bc5ff);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      line-height: 1.3;
      letter-spacing: -0.02em;
    }

    .project-info p {
      color: var(--text-secondary);
      font-size: 1rem;
      line-height: 1.7;
      margin-bottom: 1.2rem;
      min-height: 4.5rem;
      text-wrap: pretty;
    }

    .project-highlights {
      margin: 0 0 1.2rem;
      padding-left: 1rem;
      color: var(--text-secondary);
    }

    .project-highlights li {
      margin-bottom: 0.45rem;
    }

    .project-tech {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin: 1rem 0 1.5rem;
    }

    .project-meta {
      display: grid;
      gap: 0.35rem;
      margin-bottom: 1.2rem;
      color: var(--text-muted);
      font-size: 0.92rem;
    }

    .tech-tag {
      background: rgba(0, 224, 255, 0.15);
      padding: 0.4rem 0.9rem;
      border-radius: 30px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #7bc5ff;
      border: 1px solid rgba(0, 224, 255, 0.2);
      transition: all 0.2s;
    }

    .tech-tag:hover {
      background: rgba(0, 224, 255, 0.25);
      transform: translateY(-2px);
      box-shadow: 0 4px 8px rgba(0, 224, 255, 0.2);
    }

    .project-actions {
      display: flex;
      gap: 0.8rem;
      margin-top: 1.2rem;
    }

    .compact-services-grid {
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .project-btn {
      flex: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.7rem 1rem;
      border-radius: 25px;
      font-size: 0.85rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      border: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .project-btn.primary {
      background: linear-gradient(135deg, #00b4ff, #8b5cf6);
      color: white;
    }

    .project-btn.secondary {
      background: transparent;
      color: #00e0ff;
      border: 1.5px solid #00e0ff;
    }

    .project-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 224, 255, 0.3);
    }

    .project-btn.secondary:hover {
      background: rgba(0, 224, 255, 0.1);
    }

    .contact-info,
    .contact-form {
      flex: 1;
      min-width: 260px;
    }

    .contact-content {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 2rem;
      background: var(--bg-secondary);
      backdrop-filter: blur(4px);
      border-radius: 32px;
      padding: 2rem;
      border: 1px solid var(--border-color);
      margin-bottom: 2rem;
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    }

    .resume-panel {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
      gap: 1.6rem;
      margin-bottom: 2rem;
      padding: 2rem;
      border-radius: 30px;
      border: 1px solid var(--border-color);
      background:
        linear-gradient(135deg, rgba(0, 180, 255, 0.14), rgba(139, 92, 246, 0.1)),
        var(--bg-secondary);
      box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
    }

    .resume-copy h3 {
      font-size: 1.9rem;
      margin-bottom: 0.85rem;
      line-height: 1.15;
      letter-spacing: -0.03em;
    }

    .resume-copy p {
      color: var(--text-secondary);
      max-width: 58ch;
      line-height: 1.75;
    }

    .resume-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .resume-meta {
      display: grid;
      gap: 1rem;
    }

    .resume-stat {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 22px;
      padding: 1.25rem;
      min-height: 120px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .resume-stat-value {
      font-size: 1.95rem;
      font-weight: 800;
      color: #00e0ff;
      margin-bottom: 0.4rem;
    }

    .resume-stat-label {
      color: var(--text-secondary);
    }

    .contact-info h3 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, #fff, #7bc5ff);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    .contact-info p {
      margin-bottom: 1.5rem;
      color: var(--text-secondary);
      line-height: 1.7;
      text-wrap: pretty;
    }

    .contact-item {
      display: flex;
      gap: 1rem;
      margin: 1.5rem 0;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .contact-icon {
      width: 48px;
      height: 48px;
      background: rgba(0, 224, 255, 0.15);
      border-radius: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: #00e0ff;
      flex-shrink: 0;
    }

    .contact-item div:last-child h4 {
      font-size: 1.1rem;
      margin-bottom: 0.2rem;
    }

    .contact-item div:last-child p {
      margin: 0;
      word-break: break-word;
    }

    /* Copy button styles - NEW */
    .copy-btn {
      background: rgba(0, 224, 255, 0.15);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.55rem 0.8rem;
      margin-left: 8px;
      cursor: pointer;
      color: #00e0ff;
      font-size: 0.78rem;
      transition: all 0.2s;
      font-weight: 600;
    }

    .copy-btn:hover {
      background: rgba(0, 224, 255, 0.3);
      transform: scale(1.02);
    }

    .muted-note {
      color: var(--text-secondary);
    }

    /* Toast notification - NEW */
    .toast-notification {
      position: fixed;
      bottom: 100px;
      right: 30px;
      background: var(--bg-card);
      backdrop-filter: blur(10px);
      padding: 12px 24px;
      border-radius: 50px;
      color: var(--text-primary);
      border-left: 4px solid #10b981;
      z-index: 2002;
      transform: translateX(400px);
      transition: transform 0.3s ease;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      font-size: 0.9rem;
      font-weight: 500;
    }

    .toast-notification.show {
      transform: translateX(0);
    }

    body.light-theme .filter-chip:hover,
    body.light-theme .filter-chip.active {
      color: #10355a;
    }

    body.light-theme .project-badge {
      background: rgba(255, 255, 255, 0.92);
      color: #184569;
    }

    /* Form improvements */
    .form-group {
      margin-bottom: 1.2rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: var(--text-primary);
    }

    .form-control {
      width: 100%;
      padding: 0.9rem 1rem;
      background: color-mix(in srgb, var(--bg-form) 88%, transparent);
      border: 1px solid rgba(0, 224, 255, 0.16);
      border-radius: 20px;
      color: var(--text-primary);
      font-size: 1rem;
      transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
    }

    .form-control:focus {
      outline: none;
      border-color: rgba(0, 224, 255, 0.55);
      box-shadow: 0 0 0 4px rgba(0, 224, 255, 0.12);
      background: color-mix(in srgb, var(--bg-form) 94%, white 6%);
    }

    a:focus-visible,
    button:focus-visible,
    .form-control:focus-visible {
      outline: 3px solid rgba(0, 224, 255, 0.45);
      outline-offset: 3px;
    }

    footer {
      text-align: center;
      padding: 2rem 0;
      margin-top: 2rem;
      border-top: 1px solid var(--border-color);
    }

    .social-links {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin: 1rem 0;
    }

    .social-links a {
      color: var(--text-muted);
      font-size: 1.6rem;
      transition: 0.2s;
    }

    .social-links a:hover {
      color: #00e0ff;
      transform: scale(1.2);
    }

    .copyright {
      font-size: 0.85rem;
      opacity: 0.7;
      color: var(--text-secondary);
    }

    .footer-brand {
      display: inline-block;
      margin: 0 10px 10px 0;
    }

    /* CTA Section Styles */
    .cta-section {
      padding: 5rem 0;
      background: linear-gradient(135deg, rgba(0, 180, 255, 0.1), rgba(139, 92, 246, 0.1));
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
      position: relative;
      overflow: hidden;
    }

    .cta-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 20% 50%, rgba(0, 224, 255, 0.05), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.05), transparent 50%);
      pointer-events: none;
    }

    .cta-content {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .cta-title {
      font-size: 3rem;
      font-weight: 800;
      margin-bottom: 1.5rem;
      background: linear-gradient(135deg, #00e0ff, #a855f7);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      line-height: 1.1;
      letter-spacing: -0.03em;
      text-wrap: balance;
    }

    .cta-description {
      font-size: 1.2rem;
      color: var(--text-secondary);
      margin-bottom: 2.35rem;
      line-height: 1.75;
      max-width: 58ch;
      margin-left: auto;
      margin-right: auto;
      text-wrap: pretty;
    }

    .cta-buttons {
      display: flex;
      gap: 1rem;
      justify-content: center;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }

    .cta-btn {
      padding: 1rem 2rem;
      font-size: 1.1rem;
      border-radius: 50px;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      position: relative;
      overflow: hidden;
    }

    .cta-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    .cta-btn:hover::before {
      left: 100%;
    }

    .cta-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 15px 35px rgba(0, 224, 255, 0.3);
    }

    .cta-stats {
      display: flex;
      justify-content: center;
      gap: 3rem;
      flex-wrap: wrap;
    }

    .cta-stat {
      text-align: center;
      padding: 1.5rem;
      background: var(--bg-card);
      border-radius: 20px;
      border: 1px solid var(--border-color);
      min-width: 150px;
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
    }

    .cta-stat:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0, 224, 255, 0.2);
      border-color: #00e0ff80;
    }

    .cta-stat .stat-number {
      display: block;
      font-size: 2rem;
      font-weight: 800;
      color: #00e0ff;
      margin-bottom: 0.5rem;
    }

    .cta-stat .stat-label {
      font-size: 0.9rem;
      color: var(--text-secondary);
      font-weight: 500;
    }

    /* CTA Section Responsive */
    @media (max-width: 768px) {
      .cta-section {
        padding: 3rem 0;
      }

      .cta-title {
        font-size: 2.2rem;
      }

      .cta-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
      }

      .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
      }

      .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
      }

      .cta-stats {
        gap: 1.5rem;
      }

      .cta-stat {
        min-width: 120px;
        padding: 1rem;
      }

      .cta-stat .stat-number {
        font-size: 1.6rem;
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }

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

    @keyframes float {
      0% {
        transform: translateY(0px);
      }

      50% {
        transform: translateY(-12px);
      }

      100% {
        transform: translateY(0px);
      }
    }

    /* responsive overrides */
    @media (max-width: 850px) {
      .hero {
        min-height: auto;
        padding: 2.25rem 0 1.5rem;
      }

      .hero-text h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        max-width: 100%;
      }

      .hero-text h2 {
        font-size: 1.8rem;
      }

      .hero-text .hero-description {
        font-size: 1.04rem;
        max-width: 46ch;
      }

      .hero-buttons {
        justify-content: center;
        gap: 1rem;
      }

      .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
      }

      .profile-img {
        width: 220px;
        height: 220px;
      }

      .about-grid {
        flex-direction: column;
        gap: 1.8rem;
      }

      .about-wrapper {
        padding: 1.5rem;
      }

      .resume-panel {
        grid-template-columns: 1fr;
        padding: 1.6rem;
      }

      nav {
        flex-wrap: nowrap;
      }

      .extra-card,
      .project-info,
      .contact-content {
        padding: 1.5rem;
      }

      .contact-content {
        grid-template-columns: 1fr;
      }

      .section-title {
        margin-bottom: 2rem;
      }
    }

    @media (max-width: 650px) {
      .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
      }

      .hero-text h1 {
        font-size: 2.3rem;
        line-height: 1.05;
      }

      .hero-text h2 {
        font-size: 1.45rem;
        min-height: 2.4rem;
      }

      .hero-text .hero-description {
        font-size: 0.98rem;
        max-width: 100%;
        padding: 0;
        line-height: 1.72;
      }

      .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
      }

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

      .resume-actions .btn {
        width: 100%;
      }

      .btn {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 1.2rem;
      }

      .contact-content {
        padding: 1.25rem;
        gap: 2rem;
      }

      .section-title {
        font-size: 1.95rem;
        margin-bottom: 1.75rem;
      }

      .project-img {
        height: 170px;
      }

      .project-info {
        padding: 1.3rem;
      }

      nav {
        flex-wrap: nowrap;
      }

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

      .project-btn {
        width: 100%;
      }

      .cta-description {
        font-size: 1rem;
      }
    }

    /* extra small devices */
    @media (max-width: 550px) {
      .container {
        width: min(94%, 100%);
        padding: 0 0.55rem;
      }

      .hero {
        padding-top: 1.75rem;
      }

      .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }

      .contact-info p {
        font-size: 0.95rem;
      }

      .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
      }

      .contact-content {
        padding: 1.1rem;
      }

      .copy-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
      }

      .projects-toolbar {
        justify-content: stretch;
      }

      .filter-chip {
        width: 100%;
      }

      .project-badges {
        left: 0.75rem;
        right: 0.75rem;
      }

      .cta-title {
        font-size: 1.95rem;
      }

      .cta-stat {
        min-width: 100%;
      }

      .stat-number {
        font-size: 2rem;
      }
    }

    ::-webkit-scrollbar {
      width: 8px;
    }

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

    ::-webkit-scrollbar-thumb {
      background: #00b4ff;
      border-radius: 10px;
    }

    .page {
      display: none;
      animation: fadeInPage 0.4s ease;
    }

    .page.active-page {
      display: block;
    }

    @keyframes fadeInPage {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

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

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }
    }

