
    /* ===========================
       ROOT VARIABLES & RESET
       =========================== */
    :root {
      --burgundy: #6d0f2b;
      --burgundy-dark: #4a0b1d;
      --blue: #154c79;
      --blue-light: #1f6aa8;
      --white: #ffffff;
      --offwhite: #f7f9fc;
      --soft: #eef4fb;
      --text: #172033;
      --muted: #667085;
      --border: rgba(23, 32, 51, 0.08);
      --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
      --shadow-lg: 0 26px 60px rgba(15, 23, 42, 0.14);
      --radius: 24px;
      --radius-sm: 18px;
      --max: 1200px;
      --border-bottom: maroon;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
      color: var(--text);
      line-height: 1.6;
      background:
        radial-gradient(circle at top left, rgba(109, 15, 43, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(21, 76, 121, 0.12), transparent 30%),
        linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
      overflow-x: hidden;
    }

    img {
      max-width: 100%;
      display: block;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    .container {
      width: min(94%, var(--max));
      margin-inline: auto;
      padding-inline: 0.25rem;
    }

    /* Reduce side spacing on very small screens */
    @media (max-width: 479px) {
      .container {
        width: 96%;
        padding-inline: 0.15rem;
      }
    }

    section {
      padding: clamp(4rem, 8vw, 5.75rem) 0;
    }

    .section-head {
      text-align: center;
      max-width: 760px;
      margin: 0 auto 2.625rem;
    }

    .section-title {
      font-size: clamp(1.75rem, 4vw, 2.9rem);
      line-height: 1.1;
      margin-bottom: 0.875rem;
      color: var(--text);
    }

    .section-subtitle {
      color: var(--muted);
      font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: clamp(0.5rem, 1vw, 0.625rem) clamp(0.625rem, 1.5vw, 0.75rem);
      border-radius: 12px;
      border: 1px solid transparent;
      font-weight: 700;
      transition: 0.3s ease;
      cursor: pointer;
      font-size: clamp(0.85rem, 2vw, 0.98rem);
    }

    .btn-primary {
      color: var(--white);
      background: linear-gradient(135deg, var(--burgundy), var(--blue));
      box-shadow: 0 12px 30px rgba(21, 76, 121, 0.18);
    }

    .btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 35px rgba(21, 76, 121, 0.22);
    }

    .btn-outline {
      background: rgba(255, 255, 255, 0.10);
      border-color: rgba(255, 255, 255, 0.28);
      color: var(--white);
      backdrop-filter: blur(10px);
    }

    .btn-outline:hover {
      transform: translateY(-3px);
      background: rgba(255, 255, 255, 0.16);
    }

    .btn-dark {
      background: var(--text);
      color: var(--white);
    }

    .btn-dark:hover {
      background: white;
      border: 1px solid maroon;
      color: rgb(2, 61, 104);
      transform: translateY(-3px);
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 0.5rem 0.875rem;
      border-radius: 999px;
      font-size: clamp(0.8rem, 2vw, 0.9rem);
      font-weight: 600;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.18);
      color: var(--white);
    }

    .card {
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }

    .equal-grid {
      display: grid;
      align-items: stretch;
    }

    .equal-grid > * {
      height: 100%;
    }

    .reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: 0.7s ease;
    }

    .reveal.active {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===========================
       NAVBAR - COMPACT & RESPONSIVE
       =========================== */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(14px);
      padding: 0.5rem 0;
      border-bottom: 1px solid rgba(23, 32, 51, 0.06);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .nav-wrap {
      min-height: 4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.25rem;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 0.875rem;
      min-width: 0;
      flex-shrink: 0;
    }

    .brand-logo {
      width: clamp(4.5rem, 9vw, 6.5rem);
      height: clamp(4.5rem, 9vw, 6.5rem);
      padding: 0;
      flex-shrink: 0;
      transition: transform 0.3s ease;
      object-fit: contain;
    }

    .brand-logo:hover {
      transform: scale(1.05);
    }

    .brand-text strong {
      font-size: clamp(0.9rem, 2vw, 1.15rem);
      color: var(--burgundy);
      letter-spacing: 0.2px;
    }

    .brand-text span {
      font-size: clamp(0.65rem, 1.5vw, 0.8rem);
      color: var(--muted);
      font-weight: 600;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: clamp(2rem, 4vw, 4.25rem);
    }

    .nav-links a {
      font-weight: 600;
      color: var(--text);
      transition: 0.25s ease;
      font-size: clamp(0.85rem, 2vw, 1rem);
      white-space: nowrap;
    }

    .nav-links a:hover {
      color: var(--blue);
      border-bottom: 1px solid maroon;
    }

    .menu-btn {
      display: none;
      border: none;
      background: transparent;
      font-size: clamp(1.3rem, 3vw, 1.7rem);
      color: var(--text);
      cursor: pointer;
      padding: 0.5rem;
    }

    /* ===========================
       HERO SECTION
       =========================== */
    .hero {
      position: relative;
      padding: clamp(5rem, 10vw, 6.25rem) 0 clamp(4rem, 8vw, 5.5rem);
      overflow: hidden;
      color: var(--white);
      background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 25%),
        linear-gradient(135deg, #5d0c24 0%, #154c79 55%, #0f3c62 100%);
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 32px 32px;
      pointer-events: none;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2.125rem;
      align-items: stretch;
      position: relative;
      z-index: 1;
    }

    .hero-copy,
    .hero-panel {
      width: 100%;
    }

    .hero-copy {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .hero h1 {
      font-size: clamp(1.75rem, 6vw, 4.9rem);
      line-height: 1.02;
      margin: 1.125rem 0;
      font-weight: 800;
      max-width: 100%;
    }

    .small {
      font-size: clamp(2rem, 5vw, 3.5rem);
      color: rgb(173, 239, 6);
    }

    .hero p {
      color: rgba(255, 255, 255, 0.9);
      max-width: 650px;
      font-size: clamp(0.9rem, 2vw, 1.04rem);
      margin-bottom: 1.875rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.875rem;
      margin-bottom: 1.5rem;
    }

    .hero-points {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
    }

    .hero-points span {
      padding: 0.625rem 0.875rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.14);
      font-weight: 600;
      font-size: clamp(0.75rem, 2vw, 0.95rem);
    }

    .hero-panel {
      padding: clamp(1.5rem, 3vw, 1.625rem);
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.14);
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(14px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .hero-panel-top h3 {
      font-size: clamp(1rem, 2.5vw, 1.4rem);
      margin-bottom: 0.625rem;
    }

    .hero-panel-top p {
      margin-bottom: 0;
      font-size: clamp(0.85rem, 2vw, 0.98rem);
    }

    .hero-mini-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
      margin-top: 1.625rem;
    }

    .mini-box {
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 20px;
      padding: clamp(1rem, 2vw, 1.125rem);
      min-height: 100px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .mini-box strong {
      font-size: clamp(1.25rem, 3vw, 1.75rem);
      line-height: 1;
    }

    .mini-box span {
      color: rgba(255, 255, 255, 0.88);
      font-weight: 600;
      font-size: clamp(0.8rem, 2vw, 0.95rem);
    }

    /* ===========================
       ABOUT SECTION
       =========================== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.875rem;
      align-items: stretch;
    }

    .about-photo-card,
    .about-content-card {
      width: 100%;
    }

    .about-photo-card {
      position: relative;
      overflow: hidden;
      padding: clamp(1.5rem, 3vw, 1.625rem) clamp(1.5rem, 3vw, 1.625rem) 0;
      min-height: 350px;
      background:
        radial-gradient(circle at top left, rgba(109, 15, 43, 0.14), transparent 30%),
        radial-gradient(circle at top right, rgba(4, 51, 90, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .about-photo-card::before {
      content: "";
      position: absolute;
      width: clamp(200px, 50vw, 360px);
      height: clamp(200px, 50vw, 360px);
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.12), rgba(0, 5, 9, 0.14));
      top: 2.75rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 0;
    }

    .about-photo {
      position: relative;
      z-index: 1;
      max-height: 100%;
      width: auto;
      object-fit: contain;
      object-position: center bottom;
      filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.16));
    }

    .about-badge {
      position: absolute;
      top: 1.375rem;
      left: 1.375rem;
      z-index: 2;
      background: linear-gradient(135deg, var(--burgundy), var(--blue));
      color: var(--white);
      padding: 0.625rem 1rem;
      border-radius: 999px;
      font-size: clamp(0.75rem, 2vw, 0.9rem);
      font-weight: 700;
      box-shadow: var(--shadow);
    }

    .about-content-card {
      padding: clamp(1.75rem, 3vw, 2.125rem);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .about-content-card h2 {
      margin-bottom: 1rem;
    }

    .about-content-card p {
      color: var(--muted);
      margin-bottom: 1rem;
      font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .about-name {
      font-size: clamp(1rem, 2.5vw, 1.25rem);
      font-weight: 800;
      color: var(--burgundy);
      margin-bottom: 0.625rem;
    }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin: 0.625rem 0 1.125rem;
    }

    .skill {
      padding: 0.625rem 0.875rem;
      border-radius: 999px;
      font-weight: 700;
      color: var(--blue);
      background: var(--soft);
      border: 1px solid rgba(21, 76, 121, 0.08);
      font-size: clamp(0.8rem, 2vw, 0.94rem);
    }

    /* ===========================
       CARDS & GRIDS
       =========================== */
    .grid-3 {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      align-items: stretch;
    }

    .service-card,
    .project-card,
    .why-card {
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .service-card {
      padding: clamp(1.5rem, 3vw, 1.75rem);
      transition: 0.3s ease;
    }

    .service-card:hover,
    .project-card:hover,
    .why-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-lg);
    }

    .icon-box {
      width: clamp(3rem, 6vw, 3.75rem);
      height: clamp(3rem, 6vw, 3.75rem);
      border-radius: 18px;
      display: grid;
      place-items: center;
      font-size: clamp(1.25rem, 3vw, 1.5rem);
      margin-bottom: 1.125rem;
      background: linear-gradient(135deg, rgba(109, 15, 43, 0.12), rgba(21, 76, 121, 0.12));
      color: var(--burgundy);
    }

    .service-card h3,
    .project-content h3,
    .why-card h3 {
      font-size: clamp(1rem, 2.5vw, 1.18rem);
      margin-bottom: 0.625rem;
    }

    .service-card p,
    .project-content p,
    .why-card p {
      color: var(--muted);
      font-size: clamp(0.85rem, 2vw, 1rem);
    }

    /* ===========================
       PORTFOLIO SECTION
       =========================== */
    .portfolio {
      background:
        radial-gradient(circle at left, rgba(109, 15, 43, 0.05), transparent 26%),
        radial-gradient(circle at right, rgba(21, 76, 121, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
    }

    .project-card {
      overflow: hidden;
      padding: 0;
      transition: 0.3s ease;
    }

    .project-image {
      width: 100%;
      height: clamp(200px, 40vw, 240px);
      background-position: center;
      background-size: cover;
      background-repeat: no-repeat;
    }

    .project-content {
      padding: clamp(1.25rem, 2vw, 1.5rem);
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .project-content p {
      margin: 0.625rem 0 1.25rem;
      font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .project-content .btn {
      margin-top: auto;
      align-self: flex-start;
    }

    /* ===========================
       WHY SECTION
       =========================== */
    .why-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.25rem;
      align-items: stretch;
    }

    .why-card {
      padding: clamp(1.5rem, 2.5vw, 1.75rem);
      text-align: center;
      transition: 0.3s ease;
    }

    .why-card .icon-box {
      margin-inline: auto;
    }

    /* ===========================
       CONTACT SECTION
       =========================== */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.625rem;
      align-items: stretch;
    }

    .contact-card {
      padding: clamp(1.75rem, 3vw, 1.875rem);
      height: 100%;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      height: 100%;
      gap: 1rem;
    }

    .form-group {
      margin-bottom: 1rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 700;
      font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    .form-control {
      width: 100%;
      padding: clamp(0.875rem, 2vw, 1rem) 1rem;
      border-radius: 16px;
      border: 1px solid rgba(23, 32, 51, 0.12);
      background: #ffffff;
      font: inherit;
      color: var(--text);
      transition: 0.25s ease;
      outline: none;
      font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .form-control:focus {
      border-color: rgba(21, 76, 121, 0.42);
      box-shadow: 0 0 0 4px rgba(21, 76, 121, 0.10);
    }

    textarea.form-control {
      min-height: 170px;
      resize: vertical;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .contact-info h3 {
      font-size: clamp(1.1rem, 2.5vw, 1.4rem);
      margin-bottom: 0.625rem;
    }

    .contact-info p {
      color: var(--muted);
      font-size: clamp(0.85rem, 2vw, 1rem);
    }

    .contact-list {
      display: grid;
      gap: 1.125rem;
      margin: 1.625rem 0;
    }

    .contact-item {
      display: flex;
      gap: 0.875rem;
      align-items: flex-start;
    }

    .contact-item .icon-box {
      width: clamp(2.75rem, 5vw, 3.25rem);
      height: clamp(2.75rem, 5vw, 3.25rem);
      border-radius: 16px;
      margin-bottom: 0;
      flex-shrink: 0;
      font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .socials {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 0.5rem;
    }

    .socials a {
      padding: 0.625rem 0.875rem;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--offwhite);
      font-weight: 700;
      transition: 0.25s ease;
      font-size: clamp(0.8rem, 2vw, 0.95rem);
    }

    .socials a:hover {
      background: linear-gradient(135deg, rgba(109, 15, 43, 0.12), rgba(21, 76, 121, 0.12));
      color: var(--blue);
    }

    /* ===========================
       FOOTER
       =========================== */
    footer {
      background: linear-gradient(135deg, #09204b 0%, #1b2436 100%);
      color: rgba(255, 255, 255, 0.88);
      padding: clamp(1.5rem, 3vw, 1.875rem) 0;
      text-align: center;
    }

    .footer-wrap {
      display: flex;
      justify-content: center;
      gap: 1.125rem;
      align-items: center;
      flex-wrap: wrap;
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 0.875rem;
    }

    .footer-brand img {
      width: clamp(4rem, 8vw, 7.5rem);
      height: clamp(4rem, 8vw, 7.5rem);
    }

    .footer-brand strong {
      display: block;
      font-size: clamp(0.8rem, 2vw, 1rem);
    }

    .footer-brand span {
      font-size: clamp(0.75rem, 1.5vw, 0.9rem);
      color: rgba(255, 255, 255, 0.7);
    }

    .footer-note {
      color: rgba(255, 255, 255, 0.72);
      font-size: clamp(0.8rem, 2vw, 0.95rem);
    }

    .back-to-top {
      position: fixed;
      right: 1.125rem;
      bottom: 1.125rem;
      width: 3rem;
      height: 3rem;
      border: none;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--burgundy), var(--blue));
      color: var(--white);
      font-size: clamp(0.9rem, 2vw, 1.1rem);
      cursor: pointer;
      box-shadow: var(--shadow);
      display: none;
      z-index: 999;
      transition: 0.3s ease;
    }

    .back-to-top.show {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .back-to-top:hover {
      transform: translateY(-3px);
    }

    /* ===========================
       RESPONSIVE CSS - MOBILE FIRST
       Breakpoints: 320px, 480px, 768px, 1024px, 1280px, 1440px
       =========================== */
    
    /* ============================================
       BASE STYLES (Mobile First - Small Screens)
       All sections stack vertically by default
       ============================================ */
    
    /* Very Small Screens: 320px - 479px */
    @media (max-width: 479px) {
      /* Force single column for all card sections */
      .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1rem;
      }

      .why-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
      }

      /* Compact navbar */
      .navbar {
        padding: 0.25rem 0;
      }

      .nav-wrap {
        min-height: 3rem;
        padding: 0.25rem 0;
      }

      .brand-logo {
        width: clamp(2.75rem, 12vw, 3.5rem);
        height: clamp(2.75rem, 12vw, 3.5rem);
      }

      /* Hero adjustments */
      .hero {
        padding: 4rem 0 3rem;
      }

      .hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
      }

      .small {
        font-size: clamp(1.5rem, 6vw, 2rem);
      }

      .tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
      }

      .hero-points {
        flex-direction: column;
        gap: 0.5rem;
      }

      .hero-points span {
        flex: 1 1 100%;
        text-align: center;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
      }

      .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
      }

      .hero-actions .btn {
        width: 100%;
        padding: 0.75rem 1rem;
      }

      /* Mini boxes single column */
      .hero-mini-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
      }

      .mini-box {
        min-height: 70px;
        padding: 0.75rem;
      }

      .mini-box strong {
        font-size: 1.1rem;
      }

      .mini-box span {
        font-size: 0.75rem;
      }

      /* Section padding */
      section {
        padding: 3rem 0;
      }

      .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
      }

      .section-subtitle {
        font-size: 0.85rem;
      }

      /* Cards */
      .card {
        border-radius: 16px;
      }

      .service-card,
      .project-card,
      .why-card {
        padding: 1.25rem;
      }

      .icon-box {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.1rem;
        margin-bottom: 0.875rem;
      }

      /* About section */
      .about-photo-card {
        min-height: 280px;
      }

      .about-badge {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
      }

      .about-content-card {
        padding: 1.25rem;
      }

      .about-name {
        font-size: 1rem;
      }

      /* Project images */
      .project-image {
        height: 180px;
      }

      .project-content {
        padding: 1rem;
      }

      .project-content h3 {
        font-size: 1rem;
      }

      .project-content p {
        font-size: 0.85rem;
      }

      .project-content .btn {
        width: 100%;
        justify-content: center;
      }

      /* Contact */
      .contact-card {
        padding: 1.25rem;
      }

      .form-group label {
        font-size: 0.9rem;
      }

      .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
      }

      textarea.form-control {
        min-height: 120px;
      }

      .contact-item .icon-box {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
      }

      .contact-item strong {
        font-size: 0.9rem;
      }

      .contact-item p,
      .contact-item a {
        font-size: 0.85rem;
      }

      .socials {
        justify-content: center;
      }

      .socials a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
      }

      /* Skills tags - prevent overflow on small screens */
      .skills {
        gap: 0.5rem;
      }

      .skill {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
      }

      /* About section adjustments */
      .about-content-card p {
        font-size: 0.85rem;
        line-height: 1.5;
      }

      /* Why cards - ensure text fits */
      .why-card {
        padding: 1rem;
      }

      .why-card h3 {
        font-size: 0.95rem;
      }

      .why-card p {
        font-size: 0.85rem;
      }

      /* Footer */
      footer {
        padding: 1.25rem 0;
      }

      .footer-wrap {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
      }

      .footer-note {
        font-size: 0.75rem;
      }

      /* Back to top */
      .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        right: 0.75rem;
        bottom: 0.75rem;
      }

      /* Ensure no horizontal overflow */
      body {
        overflow-x: hidden;
      }

      /* Nav brand text on very small screens */
      .brand-text {
        display: none;
      }
    }

    /* ============================================
       SMALL TO MEDIUM SCREENS: 480px - 767px
       ============================================ */
    @media (min-width: 480px) and (max-width: 767px) {
      /* Keep services, portfolio, why in single column */
      .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.125rem;
      }

      .why-grid {
        grid-template-columns: 1fr !important;
        gap: 1.125rem;
      }

      /* Hero */
      .hero {
        padding: 4.5rem 0 3.5rem;
      }

      .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
      }

      .small {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
      }

      .hero-points span {
        flex: 1 1 calc(50% - 0.375rem);
      }

      .hero-actions .btn {
        width: auto;
        padding: 0.75rem 1.25rem;
      }

      .hero-mini-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      /* About */
      .about-photo-card {
        min-height: 320px;
      }

      /* Cards */
      .service-card,
      .project-card,
      .why-card {
        padding: 1.5rem;
      }

      .project-image {
        height: 200px;
      }

      /* Contact */
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ============================================
       TABLET SCREENS: 768px - 1023px
       ============================================ */
    @media (min-width: 768px) and (max-width: 1023px) {
      /* Services, Portfolio, Why - still single column on tablets */
      .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
      }

      .why-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }

      .about-photo-card {
        min-height: 350px;
      }

      .project-image {
        height: 220px;
      }
    }

    /* ============================================
       MEDIUM DESKTOPS: 1024px - 1279px
       ============================================ */
    @media (min-width: 1024px) and (max-width: 1279px) {
      /* 3 columns for services/portfolio on larger screens */
      .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
      }

      .why-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
      }

      .about-grid {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 2rem;
      }

      .contact-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2rem;
      }

      .about-photo-card {
        min-height: 480px;
      }

      .about-photo-card::before {
        width: 300px;
        height: 300px;
      }
    }

    /* ============================================
       LARGE DESKTOPS: 1280px - 1439px
       ============================================ */
    @media (min-width: 1280px) and (max-width: 1439px) {
      .grid-3 {
        grid-template-columns: repeat(3, 1fr);
      }

      .why-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .hero-grid {
        grid-template-columns: 1.12fr 0.88fr;
      }

      .about-grid {
        grid-template-columns: 0.92fr 1.08fr;
      }

      .contact-grid {
        grid-template-columns: 1.08fr 0.92fr;
      }

      .about-photo-card {
        min-height: 560px;
      }

      .about-photo-card::before {
        width: 340px;
        height: 340px;
      }
    }

    /* ============================================
       EXTRA LARGE SCREENS: 1440px+
       ============================================ */
    @media (min-width: 1440px) {
      .container {
        max-width: 1320px;
      }

      .grid-3 {
        grid-template-columns: repeat(3, 1fr);
      }

      .why-grid {
        grid-template-columns: repeat(4, 1fr);
      }

      .hero-grid {
        grid-template-columns: 1.12fr 0.88fr;
      }

      .about-grid {
        grid-template-columns: 0.92fr 1.08fr;
      }

      .contact-grid {
        grid-template-columns: 1.08fr 0.92fr;
      }

      .about-photo-card {
        min-height: 590px;
      }

      .about-photo-card::before {
        width: 360px;
        height: 360px;
      }
    }

    /* ============================================
       MOBILE MENU STYLES
       ============================================ */
    @media (max-width: 768px) {
      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(23, 32, 51, 0.08);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.75rem 4%;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
      }

      .nav-links a {
        width: 100%;
        padding: 0.875rem 0;
        border-bottom: 1px solid rgba(23, 32, 51, 0.06);
        font-size: 1rem;
      }

      .nav-links a:last-child {
        border-bottom: none;
      }

      .nav-links.show {
        display: flex;
      }

      .menu-btn {
        display: block;
      }

      .nav-cta {
        display: none;
      }
    }

