/* ==========================================================================
   MOTION DESIGNER PORTFOLIO - DESIGN SYSTEM & STYLES
   Inspired by Ryan Knight Portfolio Aesthetic
   ========================================================================== */

/* 1. RESET & CSS VARIABLES */
:root {
  --bg-dark: #070709;
  --bg-card: #111115;
  --bg-card-hover: #181820;
  --bg-glass: rgba(17, 17, 21, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.2);
  
  --text-primary: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #666672;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  
  --font-heading: 'Instrument Sans', 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* 2. LAYOUT CONTAINER */
.container {
  width: 90%;
  max-width: 1360px;
  margin: 0 auto;
}

/* 3. PRELOADER ANIMATION */
.site-preloader {
  position: fixed;
  inset: 0;
  background: #050507;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.preloader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 0;
  transform-origin: center;
  animation: spinDash 1.8s ease-in-out infinite, spinRotate 2s linear infinite;
}

@keyframes spinRotate {
  100% { transform: rotate(360deg); }
}

@keyframes spinDash {
  0% { stroke-dashoffset: 260; }
  50% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 260; }
}

.preloader-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;

  .p-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    color: var(--text-primary);
  }

  .p-sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    font-weight: 600;
  }
}

/* 4. CUSTOM CURSOR */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 5. HEADER NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.header-container {
  width: 90%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-empty-left {
  width: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  margin: 0 auto;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);

  &:hover {
    color: var(--text-primary);
  }
}

.nav-btn-cta {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0284c7, #38bdf8);
  background-size: 200% 200%;
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.45), 0 0 15px rgba(56, 189, 248, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  text-decoration: none;

  /* Designer Shimmer Light sweep effect */
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
  }

  /* Arrow Icon Animation */
  .cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
  }

  &:hover {
    color: #ffffff;
    background-position: 100% 0%;
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.75), 0 0 25px rgba(37, 99, 235, 0.55);

    &::before {
      left: 140%;
    }

    .cta-icon {
      transform: translateX(3px) rotate(-12deg);
      background: rgba(255, 255, 255, 0.4);
    }
  }

  &:active {
    transform: translateY(0) scale(0.98);
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;

  span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;

    &:nth-child(1) { top: 3px; }
    &:nth-child(2) { bottom: 3px; }
  }
}

/* 6. HERO SECTION */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: visible;
}

.hero-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;

  .hero-subtitle {
    max-width: 650px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;

    strong {
      color: var(--text-primary);
    }
  }

  .rating-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;

    .star-icon {
      color: #eab308;
    }
  }
}

/* KINETIC TYPOGRAPHY HERO - NO TRUNCATION */
.kinetic-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin: 1.5rem 0 3.5rem;
  user-select: none;
  overflow: visible;
  padding: 0.5rem 0;
}

.kinetic-row {
  overflow: visible;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.kinetic-text {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 9.5vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-block;
  white-space: nowrap;
  padding-bottom: 0.1em;
}

.hero-video-box {
  position: relative;
  width: clamp(220px, 28vw, 420px);
  height: clamp(130px, 17vw, 240px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  &:hover {
    transform: scale(1.04);
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 25px 60px rgba(249, 115, 22, 0.45), 0 0 30px rgba(255, 120, 0, 0.3);

    .video-overlay-play {
      opacity: 1;
    }
  }
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-pill-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;

  .play-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding-left: 3px;
  }
}

/* STATS BAR (3 CARDS) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;

  .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform var(--transition-fast), border-color var(--transition-fast);

    &:hover {
      transform: translateY(-4px);
      border-color: var(--border-highlight);
    }
  }

  .stat-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
  }

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

/* 7. SERVICES & MISSION SECTION */
.services-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.mission-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  .accent-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
  }

  .section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }

  .mission-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

.software-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;

  .pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
  }
}

.services-col {
  .services-header {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
  }

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

  .service-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);

    .service-num {
      font-family: var(--font-heading);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--accent-color);
    }

    h4 {
      font-size: 1.15rem;
      font-weight: 600;
      margin-bottom: 0.3rem;
    }

    p {
      font-size: 0.95rem;
      color: var(--text-secondary);
    }
  }
}

/* 8. FEATURED WORKS GRID (FIXED BRANDING ALIGNMENT) */
.works-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
}

.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.works-filter {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.4rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);

  .filter-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);

    &:hover {
      color: var(--text-primary);
    }

    &.active {
      background: var(--text-primary);
      color: #000;
      font-weight: 600;
    }
  }
}

/* GRID OF WORKS WITH PERFECT SYMMETRICAL ALIGNMENT */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);

  &:hover {
    transform: translateY(-8px);
    border-color: var(--border-highlight);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

    .work-badge {
      opacity: 1;
      transform: translateY(0);
    }

    .work-video {
      transform: scale(1.05);
    }
  }
}

.work-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.work-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.work-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;

  .work-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
  }

  .work-client {
    color: var(--accent-color);
    font-weight: 600;
  }

  .work-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    min-height: 3.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .work-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 9. EXPERIENCE & EDUCATION SECTION */
.experience-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);

  &::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
  }

  .timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
  }

  .timeline-role {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
  }

  .timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
  }

  .timeline-bullets {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-secondary);

    li {
      position: relative;
      padding-left: 1.2rem;

      &::before {
        content: '\2022';
        position: absolute;
        left: 0;
        color: var(--accent-color);
      }
    }
  }
}

/* EDU & CREDENTIALS REDESIGN */
.credentials-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.credential-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-smooth);

  &:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  }
}

.cred-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;

  &.accent-gold {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
  }

  &.accent-green {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
  }
}

.cred-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.cred-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;

  .cred-type-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-weight: 600;
    color: var(--text-secondary);

    &.badge-blue {
      background: rgba(56, 189, 248, 0.1);
      color: var(--accent-color);
      border-color: rgba(56, 189, 248, 0.3);
    }

    &.badge-green {
      background: rgba(34, 197, 94, 0.1);
      color: #4ade80;
      border-color: rgba(34, 197, 94, 0.3);
    }
  }

  .cred-year {
    color: var(--text-muted);
    font-weight: 500;

    &.green-glow {
      color: #4ade80;
      font-weight: 700;
    }
  }
}

.cred-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.cred-sub {
  font-size: 0.88rem;
  color: var(--accent-color);
  font-weight: 500;
}

.cred-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* CERT CHIPS */
.cert-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.6rem;
}

.cert-chip {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;

  .cert-chip-icon {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
  }

  .c-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .c-issuer {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
}

/* FIVERR PRO MINI METRICS */
.fiverr-pro-card {
  background: linear-gradient(145deg, rgba(17, 17, 21, 0.9), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.fiverr-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;

  .f-m-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #4ade80;
  }

  .f-m-lbl {
    font-size: 0.75rem;
    color: var(--text-secondary);
  }
}

/* 10. ABOUT ME SECTION (EXACT 0-PX TOP & BOTTOM ALIGNMENT WITH PHOTO) */
.about-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.about-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.about-image-side {
  display: flex;
  align-items: stretch;
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);

  .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .avatar-glass-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.9rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;

    .dot-online {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 8px #22c55e;
    }
  }
}

.about-content-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0;
  margin: 0;

  .section-tag {
    margin-top: 0;
    line-height: 1;
    display: inline-block;
  }

  .section-heading {
    margin-top: 0.4rem;
  }

  .about-text {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0.8rem 0;
  }
}

.about-skills-matrix {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;

  .matrix-group {
    h4 {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0.4rem;
    }
  }

  .tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    span {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-color);
      padding: 0.3rem 0.75rem;
      border-radius: 6px;
      font-size: 0.82rem;
      color: var(--text-secondary);
    }
  }
}

/* 11. CONTACT SECTION */
.contact-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border-color);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  .contact-main-heading {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .contact-subtext {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
  }
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  transition: all var(--transition-fast);

  &:hover {
    border-color: var(--border-highlight);
    transform: translateX(6px);
  }

  .link-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
  }

  .link-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
  }

  .link-val {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
  }
}

.contact-form-col {
  .contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    label {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
    }

    input, select, textarea {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-color);
      padding: 0.8rem 1rem;
      border-radius: 10px;
      font-size: 0.95rem;
      outline: none;
      transition: border-color var(--transition-fast);

      &:focus {
        border-color: var(--accent-color);
        background: rgba(255, 255, 255, 0.05);
      }
    }

    select option {
      background: var(--bg-card);
      color: var(--text-primary);
    }
  }

  .submit-btn {
    background: var(--text-primary);
    color: #000;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all var(--transition-fast);

    &:hover {
      background: var(--accent-color);
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    }
  }

  .form-response-msg {
    display: none;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* 12. FOOTER */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  .footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
  }

  .footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
  }

  .footer-right a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);

    &:hover {
      color: var(--accent-color);
    }
  }
}

/* 13. FULLSCREEN VIDEO LIGHTBOX MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  &.active {
    opacity: 1;
    pointer-events: auto;

    .modal-content {
      transform: scale(1);
    }
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1080px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: 20px;
  overflow: hidden;
  z-index: 2;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);

  &:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg);
  }
}

.modal-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-info {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
  }

  .modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
  }

  .modal-client {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
  }

  .modal-tags {
    font-size: 0.88rem;
    color: var(--text-secondary);
  }
}

/* 14. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .kinetic-title-wrapper {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-video-box {
    width: 80%;
    max-width: 500px;
    height: 220px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid, .exp-grid, .about-card-wrapper, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    .nav-menu {
      display: none;
    }

    .mobile-toggle {
      display: block;
    }
  }

  .hero-section {
    padding-top: 7rem;
  }

  .hero-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .kinetic-text {
    font-size: 3rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

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

  .works-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .fiverr-stats {
    grid-template-columns: 1fr;
  }

  .about-card-wrapper {
    padding: 1.5rem;
  }
}
