@import 'colors.css';

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

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-body-gradient);
      color: var(--text-dark);
      line-height: 1.5;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    body.theme-switching,
    body.theme-switching * {
      transition: background-color 0.32s ease, background 0.32s ease, color 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    }

    /* custom scrollbar (light) */
    ::-webkit-scrollbar {
      width: 8px;
    }
    ::-webkit-scrollbar-track {
      background: #eef2ff;
    }
    ::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 12px;
    }

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

    section {
      padding: 4.6rem 0 5.4rem;
      border-bottom: 1px solid var(--border-light);
    }

    #about,
    #skills,
    #projects,
    #contact {
      background: color-mix(in srgb, var(--bg-surface) 76%, transparent);
    }

    p {
      line-height: 1.68;
    }

    .section-title {
      font-size: 2.2rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 2rem;
      position: relative;
      display: block;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      color: var(--text-dark);
    }

.about-card,
.skill-card,
.project-card,
.contact-form {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.skill-card:hover,
.project-card:hover,
.contact-form:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
  box-shadow: 0 18px 30px -18px rgba(37, 99, 235, 0.34), 0 10px 18px -14px rgba(15, 23, 42, 0.25);
}
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: clamp(90px, 26vw, 170px);
      height: 3px;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      border-radius: 4px;
    }

    /* ----- HEADER (light + sticky) ----- */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.6rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--bg-surface) 82%, transparent);
  backdrop-filter: blur(12px);
}

.logo a {
  text-decoration: none;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 1rem;
  order: 3;
}

.theme-toggle {
  position: relative;
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border-light));
  background: linear-gradient(145deg, color-mix(in srgb, #ffffff 72%, var(--bg-surface) 28%), color-mix(in srgb, #eef4ff 64%, var(--bg-card) 36%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 7px 14px -10px rgba(15, 23, 42, 0.32);
  padding: 3px;
  cursor: pointer;
  transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.theme-toggle::after {
  content: 'Theme';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-surface) 92%, #ffffff 8%);
  border: 1px solid color-mix(in srgb, var(--border-light) 82%, #ffffff 18%);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 16px -14px rgba(15, 23, 42, 0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  opacity: 0.88;
  pointer-events: none;
  transition: opacity 0.24s ease, filter 0.24s ease;
}

.theme-toggle-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.theme-toggle-icon-sun {
  left: 8px;
}

.theme-toggle-icon-moon {
  right: 8px;
}

.theme-toggle-thumb {
  position: relative;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #C0C9EE, #898AC4);
  box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.55);
  transform: translateX(0);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, box-shadow 0.24s ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border-light));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66), 0 10px 18px -12px rgba(37, 99, 235, 0.45);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 38%, #ffffff 62%), 0 0 0 6px color-mix(in srgb, var(--primary-glow) 90%, transparent), 0 10px 16px -12px rgba(15, 23, 42, 0.45);
}

body[data-theme='dark'] .theme-toggle {
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-surface) 90%, #0b1220 10%), color-mix(in srgb, var(--bg-card) 90%, #111827 10%));
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border-light));
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.2), 0 8px 16px -10px rgba(0, 0, 0, 0.5), 0 0 14px -8px rgba(96, 165, 250, 0.75);
}

body[data-theme='dark'] .theme-toggle::after {
  background: color-mix(in srgb, var(--bg-card) 88%, #0b1220 12%);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border-light));
  color: #dbeafe;
}

body[data-theme='dark'] .theme-toggle-thumb {
  transform: translateX(22px);
  background: linear-gradient(145deg, #bfdbfe, #60a5fa);
  box-shadow: 0 4px 12px -8px rgba(147, 197, 253, 0.95);
}

body[data-theme='dark'] .theme-toggle-icon-sun {
  opacity: 0.45;
}

body[data-theme='dark'] .theme-toggle-icon-moon {
  opacity: 0.96;
}

body:not([data-theme='dark']) .theme-toggle-icon-sun {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.35));
}

body:not([data-theme='dark']) .theme-toggle-icon-moon {
  opacity: 0.62;
}

.nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.97rem;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

    /* mobile toggle button (hamburger -> cross) */
    .menu-toggle {
      display: none;
      cursor: pointer;
      color: var(--text-dark);
      background: linear-gradient(145deg, color-mix(in srgb, var(--bg-surface) 86%, #ffffff 14%), color-mix(in srgb, var(--bg-card) 90%, #dbe6ff 10%));
      border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border-light));
      box-shadow: 0 10px 20px -16px rgba(15, 23, 42, 0.34), 0 4px 10px -8px rgba(37, 99, 235, 0.28);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
      z-index: 1001;
      width: 44px;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
    }
    .menu-toggle:hover {
      transform: translateY(-1px);
      background: color-mix(in srgb, var(--primary-soft) 65%, #ffffff 35%);
      border-color: color-mix(in srgb, var(--primary) 42%, var(--border-light));
      box-shadow: 0 14px 24px -16px rgba(15, 23, 42, 0.34), 0 8px 16px -12px rgba(37, 99, 235, 0.35);
    }
    .menu-toggle:focus-visible {
      outline: none;
      box-shadow: 0 0 0 4px var(--primary-glow), 0 12px 22px -15px rgba(15, 23, 42, 0.3);
    }
    .menu-toggle.is-open {
      background: color-mix(in srgb, var(--primary-soft) 74%, #ffffff 26%);
      border-color: color-mix(in srgb, var(--primary) 55%, var(--border-light));
      box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent), 0 14px 24px -16px rgba(37, 99, 235, 0.45);
    }
    .menu-icon {
      width: 20px;
      height: 14px;
      position: relative;
      display: inline-block;
    }
    .menu-icon .bar {
      position: absolute;
      left: 0;
      width: 100%;
      height: 2.4px;
      border-radius: 12px;
      background: var(--text-dark);
      transform-origin: center;
      transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, top 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .menu-icon .bar:nth-child(1) {
      top: 0;
      width: 72%;
    }
    .menu-icon .bar:nth-child(2) {
      top: 6px;
      width: 100%;
    }
    .menu-icon .bar:nth-child(3) {
      top: 12px;
      width: 56%;
    }
    .menu-toggle.is-open .bar:nth-child(1) {
      top: 6px;
      width: 100%;
      transform: rotate(45deg);
    }
    .menu-toggle.is-open .bar:nth-child(2) {
      opacity: 0;
      transform: scaleX(0.2);
    }
    .menu-toggle.is-open .bar:nth-child(3) {
      top: 6px;
      width: 100%;
      transform: rotate(-45deg);
    }

    /* mobile menu panel - slides from RIGHT */
    @media (max-width: 860px) {
      :root {
        --mobile-header-height: 74px;
      }

      header {
        height: var(--mobile-header-height);
        padding: 0 1.15rem;
      }

      .menu-toggle {
        display: flex;
      }

      .header-controls {
        margin-left: auto;
      }

      .theme-toggle {
        width: 50px;
        height: 30px;
      }

      .theme-toggle-icon {
        width: 12px;
        height: 12px;
      }

      .theme-toggle-icon-sun {
        left: 7px;
      }

      .theme-toggle-icon-moon {
        right: 7px;
      }

      .theme-toggle-thumb {
        width: 22px;
        height: 22px;
      }

      body[data-theme='dark'] .theme-toggle-thumb {
        transform: translateX(20px);
      }

      .logo a {
        font-size: 1.8rem;
      }
      .nav-links {
        position: fixed;
        top: var(--mobile-header-height);
        right: 0;
        width: 75%;
        max-width: 320px;
        height: calc(100dvh - var(--mobile-header-height));
        background: var(--bg-surface);
        backdrop-filter: blur(0);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        transform: translateX(100%);
        opacity: 0.4;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
        padding: 5rem 2rem 2rem;
        z-index: 999;
        border-left: 1px solid var(--border-light);
        will-change: transform;
      }
      .nav-links.active {
        transform: translateX(0);
        opacity: 1;
      }
      .nav-links ul {
        flex-direction: column;
        gap: 2rem;
      }
      .nav-links a {
        font-size: 1.3rem;
        font-weight: 500;
        display: block;
        padding: 0.5rem 0;
        color: var(--text-dark);
      }
      /* overlay effect when menu open (optional) */
      body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(2px);
        z-index: 998;
        pointer-events: none;
      }
    }

    /* Hero section light */
    .hero {
      min-height: 85vh;
      display: flex;
      align-items: center;
      padding: 2rem 0;
    }
    .hero-grid {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 3rem;
    }
    .hero-content {
      flex: 1;
      max-width: 680px;
    }
    .hero-image {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .photo-frame {
      width: min(360px, 90vw);
      aspect-ratio: 1 / 1;
      border-radius: 28px;
      padding: 10px;
      background: linear-gradient(145deg, rgba(79, 70, 229, 0.18), rgba(124, 58, 237, 0.12));
    }
    .hero-photo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 20px;
      display: block;
    }
    .hero-content h1 {
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 1.2;
      margin-bottom: 1rem;
      color: var(--text-dark);
    }
    .hero-highlight {
      background: var(--primary);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }
    .hero-desc {
      font-size: 1.2rem;
      color: var(--text-light);
      max-width: 550px;
      margin: 1.2rem 0 2rem;
    }
    .welcome-banner {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.6rem 1.2rem;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary);
      border: 1px solid rgba(37, 99, 235, 0.2);
      font-weight: 500;
    }
    .welcome-banner i {
      color: var(--primary);
    }


.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 0.8rem 1.35rem;
  border-radius: 14px;
  box-shadow: 0 10px 20px -14px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), 0 14px 26px -16px rgba(79, 70, 229, 0.95);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--text);
  padding: 0.35rem 0.15rem;
}

.btn-text:hover {
  color: var(--primary);
  text-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
}

.btn-outline:hover {
    color: var(--primary);
    text-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-2px);
}

.about-card {
  border-radius: 22px;
  padding: 1.45rem 1.55rem 1.55rem;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}


.about-card p {
  color: var(--text-muted);
  font-size: 0.99rem;
}


    /* Skills cards (light) */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1.25rem;
      margin-top: 0.65rem;
    }
    .skill-card {
      background: var(--card-bg);
      padding: 1.15rem 0.9rem;
      text-align: center;
      border-radius: 22px;
      border: 1px solid var(--card-border);
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
    }


    .skill-card:nth-child(1) {
      border-color: color-mix(in srgb, var(--html-color) 42%, var(--card-border));
      box-shadow: 0 10px 22px -17px var(--html-glow), var(--shadow-sm);
    }


    .skill-card:nth-child(2) {
      border-color: color-mix(in srgb, var(--css-color) 42%, var(--card-border));
      box-shadow: 0 10px 22px -17px var(--css-glow), var(--shadow-sm);
    }


    .skill-card:nth-child(3) {
      border-color: color-mix(in srgb, var(--js-color) 55%, var(--card-border));
      box-shadow: 0 10px 22px -17px var(--js-glow), var(--shadow-sm);
    }

    .skill-card:nth-child(4) {
      border-color: color-mix(in srgb, var(--primary) 40%, var(--card-border));
      box-shadow: 0 10px 22px -17px var(--primary-glow), var(--shadow-sm);
    }
 

    .skill-card:nth-child(5) {
      border-color: color-mix(in srgb, var(--php-color) 40%, var(--card-border));
      box-shadow: 0 10px 22px -17px var(--php-glow), var(--shadow-sm);
    }
 

    .skill-card:nth-child(1):hover {
      border-color: color-mix(in srgb, var(--html-color) 70%, var(--card-border));
      box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--html-glow) 90%, rgba(15, 23, 42, 0.1) 10%), 0 10px 18px -14px rgba(15, 23, 42, 0.22);
    }
    .skill-card:nth-child(2):hover {
      border-color: color-mix(in srgb, var(--css-color) 70%, var(--card-border));
      box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--css-glow) 90%, rgba(15, 23, 42, 0.1) 10%), 0 10px 18px -14px rgba(15, 23, 42, 0.22);
    }
    .skill-card:nth-child(3):hover {
      border-color: color-mix(in srgb, var(--js-color) 72%, var(--card-border));
      box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--js-glow) 95%, rgba(15, 23, 42, 0.1) 5%), 0 10px 18px -14px rgba(15, 23, 42, 0.22);
    }
    .skill-card:nth-child(4):hover {
      border-color: color-mix(in srgb, var(--primary) 68%, var(--card-border));
      box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--primary-glow) 95%, rgba(15, 23, 42, 0.1) 5%), 0 10px 18px -14px rgba(15, 23, 42, 0.22);
    }
    .skill-card:nth-child(5):hover {
      border-color: color-mix(in srgb, var(--php-color) 68%, var(--card-border));
      box-shadow: 0 18px 30px -18px color-mix(in srgb, var(--php-glow) 92%, rgba(15, 23, 42, 0.1) 8%), 0 10px 18px -14px rgba(15, 23, 42, 0.22);
    }

    .skill-icon-svg {
      width: 2.5rem;
      height: 2.5rem;
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 0.7rem;
      display: inline-block;
    }
    .skill-card span {
      font-weight: 600;
      display: block;
      margin-top: 6px;
      color: var(--text-dark);
    }
    .skill-card p {
      font-size: 0.84rem;
      color: var(--text-muted);
      margin-top: 6px;
    }

    /* PROJECTS: entire card clickable */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.25rem;
    }
    .project-card {
      background: var(--card-bg);
      border-radius: 22px;
      overflow: hidden;
      border: 1px solid var(--card-border);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      text-decoration: none;
      display: block;
      color: inherit;
      position: relative;
    }


    .project-card.web-app {
      border-color: color-mix(in srgb, var(--css-color) 42%, var(--card-border));
      box-shadow: 0 12px 24px -18px var(--css-glow), var(--shadow-sm);
    }
    .project-card.web-app::before {
      background: var(--grad-html-css);
    }

    .project-card.student-system {
      border-color: color-mix(in srgb, var(--php-color) 46%, var(--card-border));
      box-shadow: 0 12px 24px -18px var(--php-glow), var(--shadow-sm);
    }
    .project-card.student-system::before {
      background: var(--grad-php-all);
    }

    .project-card.course-hub {
      border-color: color-mix(in srgb, var(--js-color) 48%, var(--card-border));
      box-shadow: 0 12px 24px -18px var(--js-glow), var(--shadow-sm);
    }
    .project-card.course-hub::before {
      background: var(--grad-html-css-js);
    }

    .project-card.web-app:hover {
      box-shadow: 0 20px 32px -20px color-mix(in srgb, var(--css-glow) 95%, rgba(15, 23, 42, 0.1) 5%), 0 12px 20px -14px rgba(15, 23, 42, 0.25);
      border-color: color-mix(in srgb, var(--css-color) 70%, var(--card-border));
    }
    .project-card.student-system:hover {
      box-shadow: 0 20px 32px -20px color-mix(in srgb, var(--php-glow) 95%, rgba(15, 23, 42, 0.1) 5%), 0 12px 20px -14px rgba(15, 23, 42, 0.25);
      border-color: color-mix(in srgb, var(--php-color) 70%, var(--card-border));
    }
    .project-card.course-hub:hover {
      box-shadow: 0 20px 32px -20px color-mix(in srgb, var(--js-glow) 98%, rgba(15, 23, 42, 0.06) 2%), 0 12px 20px -14px rgba(15, 23, 42, 0.25);
      border-color: color-mix(in srgb, var(--js-color) 72%, var(--card-border));
    }

    
    .project-img {
      background: linear-gradient(150deg, color-mix(in srgb, var(--bg-surface) 85%, #ffffff 15%), color-mix(in srgb, var(--bg-card) 90%, #dbe6ff 10%));
      padding: 2rem 0;
      text-align: center;
      font-size: 3rem;
      color: var(--primary);
      border-bottom: 1px solid var(--border-light);
    }
    .project-icon-svg {
      width: 3rem;
      height: 3rem;
      object-fit: contain;
      display: inline-block;
    }
    .project-info {
      padding: 1.3rem 1.3rem 1.35rem;
    }
    .project-info h3 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
      color: var(--text-dark);
    }
    .project-info p {
      color: var(--text-muted);
      margin-bottom: 0.95rem;
      font-size: 0.93rem;
    }
    .project-tags {
      display: flex;
      gap: 0.6rem;
      flex-wrap: wrap;
      margin-bottom: 0.85rem;
    }

    

    .html {
      background: var(--html-color);
      color: #fff;
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 500;
      transition: var(--transition)
    }
    .html:hover {
      box-shadow: 0 0 0 4px var(--html-glow), 0 10px 20px -14px var(--html-glow);
    }

    .css {
      background: var(--css-color);
      color: #fff;
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 500;
      transition: var(--transition)
    }
    .css:hover {
      box-shadow: 0 0 0 4px var(--css-glow), 0 10px 20px -14px var(--css-glow);
    }

    .javascript {
      background: var(--js-color);
      color: var(--text-muted);
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 500;
      transition: var(--transition)
    }
    .javascript:hover {
      box-shadow: 0 0 0 4px var(--js-glow), 0 10px 20px -14px var(--js-glow);
    }

    .php {
      background: var(--php-color);
      color: #fff;
      padding: 0.2rem 0.5rem;
      border-radius: 6px;
      font-size: 0.82rem;
      font-weight: 500;
      transition: var(--transition)
    } 
    .php:hover {
      box-shadow: 0 0 0 4px var(--php-glow), 0 10px 20px -14px var(--php-glow);
    }
    /* Contact & socials light */
    .contact-flex {
      display: grid;
      grid-template-columns: minmax(240px, 320px) minmax(320px, 560px);
      gap: 1.35rem;
      align-items: start;
      justify-content: center;
    }
    .contact-text {
      max-width: 320px;
    }
    .contact-text p {
      font-size: 1.02rem;
      color: var(--text-muted);
      margin: 0.75rem 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .contact-item-icon {
      width: 1.2rem;
      height: 1.2rem;
      object-fit: contain;
      flex: 0 0 auto;
    }
    .contact-text a {
      color: var(--primary);
      text-decoration: underline;
      font-weight: 500;
      transition: color 0.3s ease;
    }
    .contact-text a:hover {
        color: var(--primary-hover);
      text-decoration: underline;
    }
    .contact-form {
      justify-self: stretch;
      max-width: 560px;
      width: 100%;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 22px;
      box-shadow: var(--shadow-sm);
      padding: 1.05rem;
      display: grid;
      gap: 0.75rem;
    }
    .contact-form-row {
      display: grid;
      gap: 0.4rem;
    }
    .contact-form-row label {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-dark);
    }
    .contact-form-row input,
    .contact-form-row textarea {
      border: 1px solid var(--border-light);
      border-radius: 12px;
      background: color-mix(in srgb, var(--bg-surface) 88%, #ffffff 12%);
      color: var(--text-dark);
      font: inherit;
      padding: 0.72rem 0.86rem;
      resize: vertical;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .contact-form-row input:focus,
    .contact-form-row textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px var(--primary-glow);
    }
    .contact-submit {
      border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      padding: 0.74rem 1.2rem;
      border-radius: 12px;
      box-shadow: 0 10px 20px -14px rgba(79, 70, 229, 0.9);
      font: inherit;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      justify-self: start;
    }
    .contact-submit:hover {
      box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2), 0 14px 26px -16px rgba(79, 70, 229, 0.95);
      transform: translateY(-2px);
    }
    .contact-submit:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
    .social-links {
      display: flex;
      gap: 1.2rem;
      flex-wrap: wrap;
      margin-top: 1rem;
    }
    .social-icon-link {
      background: color-mix(in srgb, var(--bg-surface) 82%, #ffffff 18%);
      padding: 0.7rem 1.2rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      border-radius: 999px;
      font-size: 0.95rem;
      color: var(--text-dark);
      transition: all 0.2s ease;
      border: 1px solid var(--border-light);
      text-decoration: none;
      font-weight: 500;
    }
    .social-icon-svg {
      font-size: 1.1rem;
      color: var(--primary);
      width: 1.1rem;
      height: 1.1rem;
      object-fit: contain;
      display: inline-block;
    }
    .social-icon-link:hover {
      color: var(--primary);
      transform: translateY(-3px);
      border-color: var(--primary);
      background: var(--primary-soft);
    }

footer {
  background: linear-gradient(160deg, #090d16, #0f172a);
  border-top: 1px solid #1e293b;
  color: #cbd5e1;
  padding: 2.8rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 1.4rem;
}

.footer-col h3,
.footer-col h4 {
  color: #f8fafc;
  margin-bottom: 0.65rem;
}

.footer-col p {
  color: #cbd5e1;
  font-size: 0.96rem;
}


.footer-links {
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.footer-links a,
footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-links a:hover,
footer a:hover {
  color: #a5b4fc;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0 0.45rem;
}

.footer-map-icon {
  width: 22px;
  height: 22px;
  color: #cbd5e1;
  flex: 0 0 auto;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social-link {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.98rem;
  transition: var(--transition);
}

.footer-social-link .social-icon-svg {
  width: 1.28rem;
  height: 1.28rem;
}

.footer-social-link[aria-label*="Instagram"]:hover { box-shadow: 0 8px 20px var(--shadow-insta); }
.footer-social-link[aria-label*="Facebook"]:hover { box-shadow: 0 8px 20px var(--shadow-fb); }
.footer-social-link[aria-label*="LinkedIn"]:hover { box-shadow: 0 8px 20px var(--shadow-linkedin); }
.footer-social-link[aria-label*="Twitter"]:hover { box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3); }

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  padding: 1rem 0 1.2rem;
  font-size: 0.92rem;
}

.footer-shital {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-shital:hover {
  color: var(--primary-soft);
}

.footer-mail {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-mail:hover {
  color: var(--primary-soft);
}

.back-to-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.25rem;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--primary) 36%, var(--border-light));
  border-radius: 999px;
  background: linear-gradient(145deg, color-mix(in srgb, #ffffff 84%, var(--bg-surface) 16%), color-mix(in srgb, var(--primary-soft) 68%, #ffffff 32%));
  color: var(--primary);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  z-index: 1100;
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: color-mix(in srgb, var(--primary) 62%, var(--border-light));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-glow) 90%, transparent), 0 14px 24px -16px rgba(37, 99, 235, 0.55);
}

.back-to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 38%, #ffffff 62%), 0 0 0 6px color-mix(in srgb, var(--primary-glow) 92%, transparent), 0 12px 20px -14px rgba(15, 23, 42, 0.45);
}

body[data-theme='dark'] .back-to-top {
  background: linear-gradient(145deg, color-mix(in srgb, var(--bg-surface) 86%, #0f172a 14%), color-mix(in srgb, var(--bg-card) 90%, #1e293b 10%));
  color: #dbeafe;
  border-color: color-mix(in srgb, var(--primary) 54%, var(--border-light));
}

    @media (min-width: 1180px) {
      section {
        padding: 5.1rem 0 5.9rem;
      }
      .section-title {
        margin-bottom: 2.2rem;
      }
      .skills-grid,
      .projects-grid {
        gap: 1.5rem;
      }
      .project-info {
        padding: 1.4rem 1.4rem 1.45rem;
      }
      .contact-form {
        padding: 1.2rem;
        gap: 0.82rem;
      }
    }


    /* responsive */
    @media (max-width: 860px) {
      section {
        padding: 3.45rem 0 3.95rem;
      }
      p {
        line-height: 1.6;
      }
      .hero-grid {
        flex-direction: column-reverse;
        text-align: center;
      }
      .hero-image {
        width: 100%;
      }
      .photo-frame {
        width: min(320px, 85vw);
      }
      .hero-content h1 {
        font-size: 2.35rem;
        line-height: 1.16;
      }
      .hero-desc {
        font-size: 1.01rem;
        max-width: 36ch;
        margin: 0.95rem auto 1.45rem;
      }
      .btn-group {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
      }
      .section-title::after {
        left: 50%;
        transform: translateX(-50%);
        width: clamp(84px, 34vw, 130px);
      }
      .section-title {
        font-size: 1.9rem;
        margin-bottom: 1.45rem;
        display: block;
        text-align: center;
      }
      .about-card {
        padding: 1.25rem 1.35rem 1.3rem;
        border-radius: 19px;
      }
      .about-card p {
        font-size: 0.96rem;
      }
      .skills-grid,
      .projects-grid {
        gap: 0.9rem;
      }
      .skill-card {
        padding: 1rem 0.8rem;
        border-radius: 18px;
      }
      .project-card {
        border-radius: 18px;
      }
      .project-info {
        padding: 1.05rem 1rem 1.15rem;
      }
      .contact-flex {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }
      .contact-text {
        max-width: 100%;
        margin-bottom: 0;
      }
      .contact-text p {
        font-size: 0.98rem;
        margin: 0.4rem 0;
      }
      .contact-form {
        max-width: 100%;
        padding: 0.95rem;
        gap: 0.68rem;
      }
      .contact-form-row label {
        font-size: 0.86rem;
      }
      .contact-form-row input,
      .contact-form-row textarea {
        padding: 0.66rem 0.78rem;
      }
      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.65rem;
      }
      .footer-col:nth-child(1),
      .footer-col:nth-child(4) {
        grid-column: 1 / -1;
      }
      .footer-col:nth-child(2),
      .footer-col:nth-child(3) {
        align-self: start;
      }
      .footer-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.38rem;
        margin-bottom: 0.95rem;
      }
      .footer-links a {
        display: flex;
        align-items: center;
        min-height: 4px;
        padding: 0 0.2rem;
      }
      .footer-social-link {
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
      }
      .footer-bottom,
      .footer-bottom p {
        font-size: 0.85rem;
        padding: 10px 0;
        text-align: center;
      }
      footer .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }
      .container {
        padding: 0 1.15rem;
      }
    }

    @media (max-width: 480px) {
      section {
        padding: 3.1rem 0 3.45rem;
      }

      .container {
        padding: 0 1rem;
      }

      footer .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
      }

      .footer-grid {
        gap: 1.35rem 1rem;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      .hero-desc {
        font-size: 0.98rem;
      }

      .section-title {
        font-size: 1.65rem;
        margin-bottom: 1.25rem;
      }

      .btn-group {
        width: 100%;
        align-items: center;
        flex-direction: column;
        gap: 0.8rem;
      }

      .btn-primary,
      .btn-outline {
        width: min(100%, 150px);
        min-width: 0;
        text-align: center;
      }

      .about-card {
        padding: 1.15rem 1.25rem 1.2rem;
      }

      .skill-card {
        padding: 0.95rem 0.75rem;
      }

      .project-info {
        padding: 0.95rem 0.9rem 1.05rem;
      }

      .back-to-top {
        right: 0.95rem;
        bottom: 0.95rem;
        width: 44px;
        height: 44px;
      }
    }