/* =========================================================
   ENHANCED INDEX.CSS  —  by Claude
   ✦ Custom Scrollbar
   ✦ 3D Cards & Perspective Effects
   ✦ Scroll-Triggered Animations (stagger, slide, scale)
   ✦ Parallax Hero
   ✦ Magnetic Buttons
   ✦ Enhanced Glassmorphism
   ✦ Ambient Glow System
   ✦ Smooth Page Transitions
========================================================= */

/* =========================
   CSS VARIABLES
========================= */

:root {
  --accent: #6c63ff;
  --accent-2: #8f6bff;
  --accent-glow: rgba(108, 99, 255, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --border: rgba(255, 255, 255, 0.08);
  --radius-xl: 40px;
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow-3d: 0 40px 100px rgba(0, 0, 0, 0.45),
               0 0 0 1px rgba(255, 255, 255, 0.04);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================
   CUSTOM SCROLLBAR
========================= */

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  box-shadow: 0 0 12px var(--accent-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-2), #b48aff);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.6);
}

/* Scroll progress bar at top */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff6b9d);
  z-index: 99999;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: width 0.05s linear;
}

/* =========================
   RESET & BASE
========================= */

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background: #050505;
  color: #f0f0f0;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background: #050505;
  color: white;
}

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

button {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video, canvas {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, span, a {
  overflow-wrap: break-word;
}

section, .container, .page-wrapper, .main-content {
  width: 100%;
}

/* =========================
   PAGE WRAPPER
========================= */

.page-wrapper {
  min-height: 100vh;
}

/* =========================
   AMBIENT BACKGROUND NOISE
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(108, 99, 255, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(139, 92, 246, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

/* =========================
   HEADER
========================= */

.main-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6%;
  background: rgba(5, 5, 5, 0.3);
  backdrop-filter: blur(22px) saturate(1.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: padding 0.4s var(--transition-smooth),
              background 0.4s var(--transition-smooth),
              border-color 0.4s var(--transition-smooth),
              box-shadow 0.4s var(--transition-smooth);
}

body.header-scrolled .main-header {
  padding: 14px 6%;
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.main-header.header-scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
  width: 90px;
  transition: transform 0.4s var(--transition-spring), filter 0.4s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

/* =========================
   NAVIGATION
========================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: white;
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 0.35s var(--transition-smooth);
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

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

/* =========================
   SEARCH
========================= */

.search-form {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 40px;
}

.search-form input {
  width: 100%;
  max-width: 520px;
  height: 52px;
  border: none;
  outline: none;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 24px;
  color: white;
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1), 0 0 25px rgba(108, 99, 255, 0.15);
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* =========================
   LOGIN BUTTON
========================= */

.login-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-4px) scale(1.08);
  background: white;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.login-btn:hover .iconvorod {
  filter: none;
}

.iconvorod {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(1);
  transition: 0.3s;
}

/* =========================
   THEME BUTTON
========================= */

.theme-switch {
  display: none;
  position: fixed;
  left: 25px;
  bottom: 25px;
  z-index: 99999;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.9);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(108, 99, 255, 0.15);
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  font-size: 22px;
}

.theme-switch:hover {
  transform: translateY(-6px) scale(1.1) rotate(15deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 35px rgba(108, 99, 255, 0.3);
}

.dark-mode .theme-switch {
  display: none;
}

/* =========================
   SCROLL TOP BUTTON
========================= */

.scroll-top-btn {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, visibility 0.4s ease,
              transform 0.4s var(--transition-spring),
              box-shadow 0.4s ease;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.5);
}

/* =========================
   HERO SECTION
========================= */

.hero-box {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Parallax container */
.hero-box .parallax-layer {
  position: absolute;
  inset: -10%;
  will-change: transform;
  transition: transform 0.1s linear;
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.hero-text {
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: 2;
  max-width: 700px;
  color: white;
}

.hero-tag {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.25);
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}

.hero-title {
  font-size: 88px;
  line-height: 1.0;
  margin-bottom: 28px;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 18px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* =========================
   SLIDER BUTTONS
========================= */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.slider-btn:hover {
  background: white;
  color: black;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.prev { right: 30px; }
.next { left: 30px; }

/* =========================
   DOTS
========================= */

.dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.4s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.dot.active {
  width: 36px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}

/* =========================
   PRODUCTS SECTION
========================= */

.products-section {
  padding: 120px 6%;
  background: #050505;
  color: white;
  position: relative;
}

.products-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.4), transparent);
}

.section-heading {
  text-align: center;
  margin-bottom: 70px;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
}

.page-main-title {
  margin-top: 20px;
  font-size: clamp(50px, 7vw, 95px);
  font-weight: 900;
  line-height: 1.1;
}

.page-main-title span {
  color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 35px;
}

/* =========================
   PRODUCT TOPBAR / FILTER
========================= */

.products-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 30px;
  flex-wrap: wrap;
}

.products-count {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.products-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease,
              transform 0.3s var(--transition-spring),
              box-shadow 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active,
.filter-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

/* =========================
   PRODUCT CARD  —  3D ENHANCED
========================= */

.product-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.5s var(--transition-smooth),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover {
  transform: translateY(-14px) rotateX(3deg) rotateY(-3deg);
  border-color: rgba(108, 99, 255, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(108, 99, 255, 0.1),
              0 0 0 1px rgba(108, 99, 255, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card-image,
.product-image-wrapper {
  height: 340px;
  overflow: hidden;
  position: relative;
}

.product-card-image img,
.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--transition-smooth);
}

.product-card:hover img,
.product-card:hover .product-image-wrapper img {
  transform: scale(1.12);
}

.product-card-info {
  padding: 25px;
  position: relative;
  z-index: 2;
}

.product-card-title {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 14px;
  color: white;
}

.price-wrapper {
  margin-bottom: 18px;
}

.price,
.price-after-off {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.price-old-price,
.price-old {
  text-decoration: line-through;
  color: #666;
  font-size: 16px;
}

.product-card-desc {
  line-height: 2;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  font-size: 14px;
}

.product-card-link,
.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.35s var(--transition-spring), box-shadow 0.35s ease;
  width: 100%;
}

.product-card-link:hover,
.product-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.4);
}

/* =========================
   DISCOUNT BADGE
========================= */

.discount-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff3d3d, #ff6b6b);
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(255, 61, 61, 0.4);
  z-index: 5;
}

/* =========================
   STATUS BADGES
========================= */

.product-status {
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
}

.in-stock {
  background: rgba(0, 255, 120, 0.1);
  color: #38ff93;
  border: 1px solid rgba(0, 255, 120, 0.15);
}

.out-stock {
  background: rgba(255, 60, 60, 0.1);
  color: #ff5b5b;
  border: 1px solid rgba(255, 60, 60, 0.15);
}

.product-status.in-stock {
  background: rgba(0, 255, 120, 0.1);
  color: #38ff93;
}

.product-status.out-stock {
  background: rgba(255, 60, 60, 0.1);
  color: #ff5b5b;
}

body:not(.dark-mode) .product-status.in-stock {
  background: #e0f2e9;
  color: #1e7b48;
}

body:not(.dark-mode) .product-status.out-stock {
  background: #ffe5e5;
  color: #c0392b;
}

/* =========================
   HERO  —  PRODUCTS PAGE
========================= */

.products-hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.products-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.products-hero-content {
  position: absolute;
  right: 8%;
  bottom: 14%;
  z-index: 2;
  color: white;
  max-width: 700px;
}

.hero-mini-title {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 30px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.2);
  margin-bottom: 24px;
  font-size: 13px;
  letter-spacing: 3px;
  backdrop-filter: blur(12px);
}

.page-title {
  font-size: 84px;
  line-height: 1;
  margin-bottom: 25px;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* =========================
   PRODUCT PAGE
========================= */

.product-page {
  padding: 120px 6% 80px;
  background: #f5f5f5;
  color: #111;
  transition: background 0.4s ease, color 0.4s ease;
  margin-top: 0;
}

body.dark-mode .product-page {
  background: #050505;
  color: white;
}

/* =========================
   PRODUCT DETAIL
========================= */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

/* =========================
   GALLERY  —  3D TILT
========================= */

.product-gallery {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-main {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.gallery-main:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-main:hover img {
  transform: scale(1.03);
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.35s var(--transition-spring),
              border-color 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.gallery-thumbs img:hover {
  opacity: 0.85;
  transform: translateY(-3px) scale(1.05);
}

.gallery-thumbs img.active-thumb,
body.dark-mode .gallery-thumbs img.active-thumb {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(108, 99, 255, 0.4);
}

body:not(.dark-mode) .gallery-thumbs img.active-thumb {
  border-color: #000;
}

/* =========================
   PRODUCT INFO
========================= */

.product-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0;
}

.product-description {
  line-height: 1.9;
  color: #444;
}

body.dark-mode .product-description {
  color: #bbb;
}

.read-more {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.read-more:hover {
  opacity: 0.75;
}

.full-description {
  display: none;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

body.dark-mode .full-description {
  border-top-color: #2a2a2a;
}

/* =========================
   PRICE
========================= */

.price-new {
  font-size: 28px;
  font-weight: 800;
}

.price-old {
  text-decoration: line-through;
  color: #888;
}

.discount {
  background: linear-gradient(135deg, #e63946, #ff5c5c);
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* =========================
   BUY BUTTON  —  MAGNETIC
========================= */

.buy-btn {
  width: 100%;
  max-width: 280px;
  padding: 18px 32px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: white;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.35s var(--transition-spring),
              box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.buy-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.buy-btn:hover::before {
  opacity: 1;
}

.buy-btn span,
.buy-btn > * {
  position: relative;
  z-index: 1;
}

body.dark-mode .buy-btn {
  background: linear-gradient(135deg, white, #e8e8e8);
  color: black;
}

.buy-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.4);
}

.buy-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   FEATURES GRID
========================= */

.features {
  margin: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 80px;
  text-align: center;
}

.features-grid div {
  background: rgba(108, 99, 255, 0.05);
  border: 1px solid rgba(108, 99, 255, 0.1);
  padding: 20px 14px;
  border-radius: 24px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.features-grid div:hover {
  transform: translateY(-6px);
  background: rgba(108, 99, 255, 0.1);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.2);
}

body.dark-mode .features-grid div {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

/* =========================
   SIMILAR PRODUCTS
========================= */

.similar {
  margin: 80px 0;
}

.similar h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.similar-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 25px;
}

.similar-card {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s var(--transition-spring),
              box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

body.dark-mode .similar-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: #2c2c2c;
}

.similar-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.similar-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.similar-card:hover img {
  transform: scale(1.08);
}

.similar-card h3 {
  padding: 16px;
  font-size: 15px;
  text-align: center;
}

/* =========================
   SPECIFICATIONS
========================= */

.specs {
  margin: 60px 0;
}

.specs h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

.spec-grid {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .spec-grid {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.spec-row:hover {
  background: rgba(108, 99, 255, 0.04);
}

body.dark-mode .spec-row {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .spec-row:hover {
  background: rgba(108, 99, 255, 0.06);
}

/* =========================
   REVIEWS
========================= */

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  transition: transform 0.35s var(--transition-spring),
              border-color 0.3s ease;
}

.review-card:hover {
  transform: translateX(-4px);
  border-color: rgba(108, 99, 255, 0.2);
}

.review-form input,
.review-form textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: white;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  outline: none;
}

body.dark-mode .review-form input,
body.dark-mode .review-form textarea {
  border-color: #333;
  color: white;
}

.review-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.35s var(--transition-spring), box-shadow 0.35s ease;
}

.review-form button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(108, 99, 255, 0.4);
}

.hidden {
  display: none;
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(20px);
}

.lightbox img {
  max-width: 88%;
  max-height: 88%;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.4s var(--transition-spring);
}

.lightbox[style*="flex"] img {
  transform: scale(1);
}

#closeLightbox {
  position: absolute;
  top: 30px;
  left: 40px;
  font-size: 44px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
}

#closeLightbox:hover {
  transform: scale(1.2) rotate(90deg);
  opacity: 1;
}

/* =========================
   SCROLL SNAP SECTION
========================= */

.img-container {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 8%;
}

.img-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  z-index: 1;
}

.img-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0.35;
  transition: transform 1s ease;
}

.img-container:hover img {
  transform: scale(1.08);
}

.content-box {
  position: relative;
  z-index: 2;
  max-width: 750px;
  text-align: right;
  direction: rtl;
}

.section-number {
  font-size: 13px;
  letter-spacing: 8px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.45);
}

.content-box h1 {
  font-size: 85px;
  line-height: 1.0;
  margin-bottom: 25px;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.content-box p {
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  max-width: 650px;
}

.glass-card {
  margin-top: 35px;
  display: inline-block;
  padding: 18px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.progress {
  position: fixed;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff6b9d);
  bottom: 0;
  transform-origin: left;
  z-index: 99999;
  box-shadow: 0 -2px 12px var(--accent-glow);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  width: min(1200px, 90%);
  min-height: 60vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-hero-content {
  padding-top: 10rem;
  max-width: 850px;
}

.contact-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.15);
  margin-bottom: 30px;
  font-size: 14px;
}

.contact-hero h1 {
  font-size: clamp(45px, 7vw, 90px);
  line-height: 1.3;
  margin-bottom: 30px;
}

.contact-hero h1 span {
  color: var(--accent);
}

.contact-hero p {
  line-height: 2.2;
  font-size: 18px;
  opacity: 0.75;
}

.contact-section {
  width: min(1200px, 90%);
  margin: 100px auto 200px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-card {
  padding: 35px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--transition-spring),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
              0 0 30px rgba(108, 99, 255, 0.08);
}

.contact-card span {
  display: block;
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 13px;
  letter-spacing: 1px;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.8;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  text-decoration: none;
  color: white;
  padding: 9px 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease,
              box-shadow 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.contact-form-wrapper {
  padding: 50px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group label {
  font-size: 14px;
  opacity: 0.75;
  letter-spacing: 0.3px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 18px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.08), 0 0 25px rgba(108, 99, 255, 0.1);
}

.contact-form button {
  width: 220px;
  height: 60px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.25);
}

.contact-form button:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.45);
}

/* =========================
   FAMILY SECTION
========================= */

.family-section {
  width: min(1300px, 90%);
  min-height: 100vh;
  margin: 10px auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 100px;
  position: relative;
  overflow: hidden;
}

.mouse-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.2), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: 0.08s linear;
  filter: blur(40px);
}

.family-image-wrapper {
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.family-image-card {
  transform-style: preserve-3d;
  transition: transform 0.6s var(--transition-smooth), box-shadow 0.6s ease;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
}

.family-image-card:hover {
  transform: rotateY(-12deg) rotateX(6deg) scale(1.02);
  box-shadow: 40px 40px 100px rgba(0, 0, 0, 0.6),
              0 0 60px rgba(108, 99, 255, 0.15);
}

.family-image-card img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  transition: transform 0.8s ease;
}

.family-image-card:hover img {
  transform: scale(1.05);
}

.family-content {
  position: relative;
  z-index: 2;
}

.family-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.15);
  margin-bottom: 30px;
  font-size: 14px;
}

.family-content h2 {
  font-size: clamp(45px, 7vw, 90px);
  line-height: 1.2;
  margin-bottom: 30px;
}

.family-content h2 span {
  color: var(--accent);
}

.family-content p {
  font-size: 18px;
  line-height: 2.2;
  opacity: 0.78;
  margin-bottom: 40px;
}

.family-btn {
  width: 230px;
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.25);
}

.family-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s ease;
}

.family-btn:hover::before {
  transform: translateX(200%) skewX(-15deg);
}

.family-btn:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 25px 50px rgba(108, 99, 255, 0.45);
}

.family-cards {
  display: flex;
  gap: 18px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.mini-card {
  padding: 16px 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  transition: transform 0.5s var(--transition-smooth),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

.mini-card:hover {
  transform: translateY(-12px) rotateX(12deg) rotateY(-8deg);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2);
}
/* =========================
   FAMILY IMAGE - CINEMATIC MOTION
========================= */

.family-image-wrapper {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  transform-style: preserve-3d;
  isolation: isolate;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.family-image-wrapper::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(108, 99, 255, 0.22), transparent 62%),
    radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 72%);
  filter: blur(55px);
  opacity: 0.9;
  animation: familyAuraPulse 5.5s ease-in-out infinite;
  z-index: -3;
}

.family-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
  transform-style: preserve-3d;
}

.family-orbit-1 {
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(108, 99, 255, 0.28);
  box-shadow:
    0 0 40px rgba(108, 99, 255, 0.12),
    inset 0 0 40px rgba(0, 229, 255, 0.06);
  transform: rotateX(68deg) rotateZ(-18deg);
  animation: familyOrbitOne 12s linear infinite;
}

.family-orbit-2 {
  width: 68%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  transform: rotateX(64deg) rotateZ(22deg);
  animation: familyOrbitTwo 9s linear infinite reverse;
}

.family-light-beam {
  position: absolute;
  inset: 5% 0 auto;
  height: 40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 12%,
    rgba(255, 255, 255, 0.12) 38%,
    rgba(108, 99, 255, 0.18) 50%,
    transparent 70%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  transform: translateX(-42%) rotate(-12deg);
  animation: familyBeamSweep 5.8s ease-in-out infinite;
}

.family-image-card {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1 / 1.08;
  border-radius: 38px;
  overflow: hidden;
  transform-style: preserve-3d;
  transform:
    perspective(1400px)
    rotateX(var(--family-rx, 0deg))
    rotateY(var(--family-ry, 0deg))
    translateY(var(--family-y, 0))
    scale(var(--family-scale, 1));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    #090914;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 45px 110px rgba(0, 0, 0, 0.55),
    0 0 85px rgba(108, 99, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.65s ease,
    border-color 0.45s ease;
  animation: familyCardFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

.family-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--family-mx, 50%) var(--family-my, 35%),
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.06) 22%,
      transparent 48%
    );
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.family-image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.family-image-card:hover {
  --family-y: -12px;
  --family-scale: 1.025;
  border-color: rgba(108, 99, 255, 0.38);
  box-shadow:
    0 58px 130px rgba(0, 0, 0, 0.66),
    0 0 115px rgba(108, 99, 255, 0.28),
    0 0 55px rgba(0, 229, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.family-image-card:hover::before {
  opacity: 1;
}

.family-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: translateZ(42px) scale(1.055);
  filter: saturate(1.08) contrast(1.06) brightness(0.96);
  transition:
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s ease;
}

.family-image-card:hover img {
  transform: translateZ(62px) scale(1.105);
  filter: saturate(1.18) contrast(1.1) brightness(1.04);
}

.family-image-reflection {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 34%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.06) 52%,
    transparent 64%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-14deg);
  mix-blend-mode: screen;
  animation: familyReflection 4.8s ease-in-out infinite;
}

.family-image-noise {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@keyframes familyCardFloat {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -16px;
  }
}

@keyframes familyAuraPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes familyOrbitOne {
  from {
    transform: rotateX(68deg) rotateZ(-18deg);
  }

  to {
    transform: rotateX(68deg) rotateZ(342deg);
  }
}

@keyframes familyOrbitTwo {
  from {
    transform: rotateX(64deg) rotateZ(22deg);
  }

  to {
    transform: rotateX(64deg) rotateZ(382deg);
  }
}

@keyframes familyBeamSweep {
  0%, 100% {
    transform: translateX(-52%) rotate(-12deg);
    opacity: 0;
  }

  35%, 58% {
    opacity: 0.9;
  }

  70% {
    transform: translateX(52%) rotate(-12deg);
    opacity: 0;
  }
}

@keyframes familyReflection {
  0%, 62% {
    transform: translateX(-130%) skewX(-14deg);
    opacity: 0;
  }

  72% {
    opacity: 0.9;
  }

  100% {
    transform: translateX(130%) skewX(-14deg);
    opacity: 0;
  }
}

/* Mobile tuning */
@media (max-width: 900px) {
  .family-image-wrapper {
    min-height: 460px;
  }

  .family-image-card {
    width: min(460px, 92vw);
    border-radius: 30px;
  }

  .family-orbit-1 {
    width: 82%;
  }

  .family-orbit-2 {
    width: 64%;
  }
}

@media (max-width: 640px) {
  .family-image-wrapper {
    min-height: 390px;
  }

  .family-image-card {
    width: min(360px, 92vw);
    border-radius: 26px;
    animation-duration: 7.5s;
  }

  .family-image-card img {
    transform: scale(1.04);
  }

  .family-orbit {
    opacity: 0.45;
  }

  .family-light-beam {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-image-card,
  .family-image-card img,
  .family-orbit,
  .family-light-beam,
  .family-image-reflection,
  .family-image-wrapper::before {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================
   MARQUEE
========================= */

.marquee-section {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeMove 22s linear infinite;
  gap: 80px;
}

.marquee-track span {
  font-size: 60px;
  font-weight: 800;
  opacity: 0.06;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.marquee-section:hover .marquee-track span {
  opacity: 0.1;
}

/* =========================
   INTERACTIVE SKILLS SECTION - UPGRADED
========================= */

.interactive-skills-section {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: clamp(110px, 13vw, 180px) auto;
  isolation: isolate;
}

.interactive-skills-section::before {
  content: "";
  position: absolute;
  inset: 10% 50% auto auto;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  transform: translateX(50%);
  z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(140, 247, 255, 0.18), transparent 58%),
    radial-gradient(circle, rgba(155, 124, 255, 0.16), transparent 72%);
  filter: blur(70px);
  opacity: 0.8;
}

.interactive-header {
  max-width: 820px;
  margin: 0 auto clamp(38px, 5vw, 64px);
  text-align: center;
}

.interactive-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(140, 247, 255, 0.22);
  border-radius: 999px;
  color: var(--accent, #8cf7ff);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 800;
}

.interactive-header h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.interactive-header h2 span {
  padding: 0;
  margin: 0;
  border: 0;
  background: linear-gradient(90deg, var(--accent, #8cf7ff), #9b7cff, #ff4fd8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  backdrop-filter: none;
  font-size: inherit;
}

.interactive-header p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 2;
  font-size: clamp(14px, 1.2vw, 17px);
}

.skills-shell {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 1px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(140, 247, 255, 0.25), transparent 28%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    0 0 70px rgba(108, 99, 255, 0.12);
}

.skills-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(140, 247, 255, 0.32), transparent, rgba(255, 79, 216, 0.22));
  opacity: 0.7;
  filter: blur(18px);
}

.skills-orbit {
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 25%, rgba(140, 247, 255, 0.12), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(255, 79, 216, 0.1), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.skills-container {
  position: relative;
  width: 100%;
  height: clamp(420px, 48vw, 540px);
  overflow: hidden;
  overscroll-behavior: auto;
  touch-action: pan-y;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(circle at 50% 40%, rgba(108, 99, 255, 0.09), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.skill-item {
  position: absolute;
  width: auto;
  min-width: 104px;
  height: 54px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 26, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  will-change: transform;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease,
    scale 0.28s ease;
}

.skill-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}

.skill-item:hover::before {
  transform: translateX(120%);
}

.skill-item:hover {
  border-color: rgba(140, 247, 255, 0.55);
  background:
    linear-gradient(135deg, rgba(140, 247, 255, 0.16), rgba(155, 124, 255, 0.12)),
    rgba(8, 12, 26, 0.72);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(140, 247, 255, 0.18);
  scale: 1.045;
}

.skill-item:active {
  cursor: grabbing;
}

/* Tablet */
@media (max-width: 900px) {
  .interactive-skills-section {
    width: min(100% - 28px, 720px);
    margin: 100px auto;
  }

  .skills-shell {
    width: 100%;
    border-radius: 24px;
  }

  .skills-container {
    height: 460px;
    border-radius: 24px;
  }

  .skill-item {
    min-width: 92px;
    height: 48px;
    padding-inline: 15px;
    border-radius: 14px;
    font-size: 12px;
  }
}

/* Mobile: static premium tag cloud instead of heavy physics */
@media (max-width: 640px) {
  .interactive-skills-section {
    width: calc(100% - 22px);
    margin: 78px auto;
  }

  .interactive-header {
    margin-bottom: 30px;
  }

  .interactive-header h2 {
    font-size: clamp(30px, 10.5vw, 46px);
    line-height: 1.22;
  }

  .interactive-header p {
    font-size: 14px;
    line-height: 1.9;
  }

  .skills-shell {
    padding: 1px;
    border-radius: 22px;
  }

  .skills-orbit {
    inset: 12px;
    border-radius: 20px;
  }

  .skills-container {
    height: auto;
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    overflow: visible;
    border-radius: 22px;
    touch-action: pan-y;
  }

  .skills-container .skill-item {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    min-width: auto;
    width: auto;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: default;
  }

  .skills-container .skill-item:hover {
    scale: 1;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .skills-container {
    justify-content: flex-start;
    padding: 14px;
    gap: 8px;
  }

  .skills-container .skill-item {
    height: 38px;
    padding-inline: 12px;
    font-size: 11.5px;
  }
}
/* =========================
   INTRO SECTION
========================= */

.intro-section {
  width: min(1400px, 92%);
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 100px;
  position: relative;
}

.intro-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(120px);
}

.intro-content {
  position: relative;
  z-index: 2;
}

.intro-badge {
  display: inline-flex;
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.14);
  margin-bottom: 30px;
  font-size: 14px;
  letter-spacing: 1px;
}

.intro-content h1 {
  font-size: clamp(55px, 7vw, 110px);
  line-height: 1.15;
  margin-bottom: 30px;
}

.intro-content h1 span {
  color: var(--accent);
}

.intro-content p {
  font-size: 18px;
  line-height: 2.2;
  opacity: 0.78;
  max-width: 650px;
  margin-bottom: 50px;
}

.intro-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.intro-btn {
  width: 210px;
  height: 60px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.intro-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 30px rgba(108,99,255,0.3);
}

.intro-btn.secondary {
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  background: rgba(255,255,255,0.04);
}

.intro-btn:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 20px 45px rgba(108,99,255,0.35);
}

/* =========================
   CODE WINDOW
========================= */

.code-window {
  position: relative;
  height: 650px;
  border-radius: 35px;
  overflow: hidden;
  background: rgba(12,12,18,0.92);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4),
              0 0 60px rgba(108,99,255,0.08);
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.code-window:hover {
  transform: translateY(-8px) perspective(1000px) rotateY(-3deg);
  box-shadow: 0 60px 120px rgba(0,0,0,0.5),
              0 0 80px rgba(108,99,255,0.12);
}

.code-header {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 25px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
  padding: 35px;
  margin: 0;
  height: calc(100% - 60px);
  overflow: hidden;
  font-family: "Geist Mono", "Fira Code", monospace;
  font-size: 14px;
  line-height: 2;
  color: #7cf29a;
}

#typingCode::after {
  content: "|";
  animation: blink 1s infinite;
}

/* =========================
   PROJECTS SECTION
========================= */

.projects-section {
  width: min(1500px, 94%);
  margin: 180px auto;
  position: relative;
}

.section-badge {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.15);
  color: var(--accent);
  margin-bottom: 25px;
  font-size: 13px;
}

.section-description {
  max-width: 850px;
  margin: auto;
  font-size: 18px;
  line-height: 2.1;
  opacity: 0.72;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 35px;
}

/* =========================
   PROJECT CARD  —  FULL 3D
========================= */

.project-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(12,12,18,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  transition: transform 0.5s var(--transition-smooth),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}

.project-card:hover {
  transform: translateY(-16px) rotateX(5deg) rotateY(-5deg);
  border-color: rgba(108,99,255,0.3);
  box-shadow: 0 50px 90px rgba(0,0,0,0.4),
              0 0 60px rgba(108,99,255,0.12);
}

.project-image-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
  pointer-events: none;
}

.project-type {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 18px;
  border-radius: 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: white;
}

.project-content {
  padding: 30px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.project-title {
  font-size: 26px;
  line-height: 1.4;
  color: white;
}

.featured-badge {
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(108,99,255,0.12);
  color: var(--accent);
  font-size: 12px;
  border: 1px solid rgba(108,99,255,0.2);
  white-space: nowrap;
}

.project-description {
  line-height: 2;
  opacity: 0.7;
  margin-bottom: 35px;
  font-size: 15px;
}

.project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-status {
  padding: 9px 16px;
  border-radius: 30px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-link span {
  transition: transform 0.35s var(--transition-spring);
}

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

.project-link:hover span {
  transform: translateX(-6px) translateY(-3px);
}

/* =========================
   PROJECT HERO
========================= */

.project-hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.38);
  transform: scale(1.08);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.88));
}

.project-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(950px, 90%);
}

.project-category {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 50px;
  background: rgba(108,99,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(108,99,255,0.2);
  margin-bottom: 30px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
}

.project-main-title {
  font-size: clamp(60px, 10vw, 160px);
  line-height: 1;
  margin-bottom: 35px;
  letter-spacing: -4px;
  color: white;
  font-weight: 900;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.project-main-description {
  font-size: 20px;
  line-height: 2;
  opacity: 0.8;
  max-width: 850px;
  margin: auto auto 45px;
  color: rgba(255,255,255,0.85);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 18px 34px;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 30px rgba(108,99,255,0.35);
}

.secondary-btn {
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  background: rgba(255,255,255,0.06);
}

.hero-btn:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 25px 55px rgba(108,99,255,0.45);
}

.project-hero-top {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 60px 7%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* =========================
   SCROLL INDICATOR
========================= */

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 90px;
  background: linear-gradient(transparent, var(--accent));
  animation: scrollAnim 1.8s ease-in-out infinite;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* =========================
   PROJECT ABOUT SECTION
========================= */

.project-about {
  width: min(1400px, 92%);
  margin: 180px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section-mini-title {
  color: var(--accent);
  margin-bottom: 25px;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.2;
  font-weight: 900;
}

.about-text {
  line-height: 2.4;
  font-size: 18px;
  opacity: 0.78;
}

.project-about-box {
  width: 100%;
  min-height: 700px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 42px;
  backdrop-filter: blur(25px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  padding: 70px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

.about-content { flex: 1; }

.about-image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-cover-card {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1/1;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--transition-smooth), box-shadow 0.6s ease;
  animation: floatingCard 7s ease-in-out infinite;
  box-shadow: 0 30px 100px rgba(0,0,0,0.5), 0 0 100px rgba(139,92,246,0.15);
}

.about-cover-card:hover {
  transform: perspective(1600px) rotateY(-12deg) rotateX(7deg) scale(1.03);
  animation-play-state: paused;
  box-shadow: 30px 30px 100px rgba(0,0,0,0.6), 0 0 120px rgba(139,92,246,0.2);
}

.about-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.about-cover-card:hover .about-cover-image {
  transform: scale(1.08);
}

.about-cover-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent, rgba(255,255,255,0.04));
}

.about-cover-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: #7c3aed;
  filter: blur(140px);
  opacity: 0.2;
  z-index: -1;
}

/* =========================
   SHOWCASE
========================= */

.project-showcase {
  width: min(1600px, 95%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.showcase-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.showcase-image-wrapper:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 60px 120px rgba(0,0,0,0.45);
}

.showcase-image {
  width: 100%;
  display: block;
  transition: transform 1s ease;
}

.showcase-image:hover {
  transform: scale(1.04);
}

/* =========================
   NEXT PROJECT
========================= */

.next-project-section {
  width: min(1300px, 92%);
  margin: 200px auto;
}

.next-project-card {
  padding: 100px 50px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.next-project-card::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  filter: blur(200px);
  opacity: 0.1;
  top: -150px;
  left: -150px;
}

.next-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 60px 120px rgba(0,0,0,0.4);
}

.next-project-card h2 {
  font-size: 72px;
  margin: 25px 0 40px;
  color: white;
  font-weight: 900;
}

.next-project-link {
  display: inline-flex;
  padding: 18px 38px;
  border-radius: 50px;
  background: linear-gradient(135deg, white, #e8e8e8);
  color: black;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
}

.next-project-link:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 20px 50px rgba(255,255,255,0.2);
}

/* =========================
   DP PROJECT PAGE
========================= */

.dp-project-hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dp-project-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  filter: brightness(0.48);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.dp-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.2), rgba(0,0,0,0.7));
  z-index: 2;
}

.dp-project-hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1400px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-project-type {
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  backdrop-filter: blur(20px);
}

.dp-project-action-buttons {
  display: flex;
  gap: 18px;
}

.dp-project-btn {
  padding: 16px 34px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
}

.dp-project-btn:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 20px 40px rgba(108,99,255,0.4);
}

.dp-project-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 25px rgba(108,99,255,0.35);
}

.dp-project-btn-secondary {
  background: rgba(255,255,255,0.07);
}

.dp-project-title-section {
  width: 100%;
  padding: 130px 8%;
  background: #070707;
}

.dp-project-title-wrapper { max-width: 950px; }

.dp-project-mini-title {
  color: #7b7b7b;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.dp-project-main-title {
  font-size: 6rem;
  line-height: 1;
  color: #fff;
  margin-top: 24px;
  font-weight: 900;
}

.dp-project-short-description {
  margin-top: 30px;
  font-size: 1.2rem;
  color: #c5c5c5;
  line-height: 2;
  max-width: 800px;
}

.dp-project-about-section {
  width: 100%;
  padding: 100px 8%;
  background: #0d0d0d;
}

.dp-project-about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.dp-project-image-side { width: 100%; }

.dp-project-image-card {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  transition: transform 0.6s var(--transition-smooth), box-shadow 0.6s ease;
}

.dp-project-image-card:hover {
  transform: perspective(1200px) rotateY(-10deg) rotateX(5deg) scale(1.03);
  box-shadow: 30px 30px 90px rgba(0,0,0,0.6), 0 0 80px rgba(108,99,255,0.15);
}

.dp-project-cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.dp-project-image-card:hover .dp-project-cover-image {
  transform: scale(1.06);
}

.dp-project-image-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--accent);
  filter: blur(130px);
  opacity: 0.3;
  top: -40px;
  right: -40px;
  pointer-events: none;
}

.dp-project-content-side { width: 100%; }

.dp-project-about-mini {
  color: #7d7d7d;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
}

.dp-project-about-title {
  font-size: 3.4rem;
  line-height: 1.25;
  color: #fff;
  margin-top: 24px;
  font-weight: 900;
}

.dp-project-about-text {
  margin-top: 30px;
  color: #c2c2c2;
  font-size: 1.08rem;
  line-height: 2.2;
}

.dp-project-showcase-section {
  width: 100%;
  padding: 100px 8%;
  background: #080808;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.dp-showcase-card {
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.dp-showcase-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
}

.dp-showcase-image {
  width: 100%;
  display: block;
}

.dp-project-slider-section {
  width: 100%;
  padding: 120px 0;
  background: #0c0c0c;
  overflow: hidden;
}

.dp-slider-heading {
  padding: 0 8%;
  margin-bottom: 60px;
}

.dp-slider-heading span { color: #7d7d7d; }

.dp-slider-heading h2 {
  font-size: 4rem;
  line-height: 1.2;
  color: #fff;
  margin-top: 20px;
}

.dp-project-slider-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: sliderMove 32s linear infinite;
}

.dp-project-slider-card {
  width: 380px;
  flex: none;
  border-radius: 30px;
  overflow: hidden;
  text-decoration: none;
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
}

.dp-project-slider-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

.dp-slider-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
}

.dp-slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.dp-project-slider-card:hover .dp-slider-image {
  transform: scale(1.08);
}

.dp-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.dp-slider-content { padding: 28px; }

.dp-slider-category {
  color: #888;
  font-size: 0.9rem;
}

.dp-slider-content h3 {
  color: #fff;
  margin-top: 16px;
  font-size: 1.5rem;
}

.dp-project-cta-section {
  width: 100%;
  padding: 130px 8%;
  background: #070707;
}

.dp-project-cta-box {
  width: 100%;
  padding: 90px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #181818, #101010);
  border: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s ease;
}

.dp-project-cta-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 60px 120px rgba(0,0,0,0.5);
}

.dp-project-cta-box::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  filter: blur(180px);
  opacity: 0.2;
  top: -150px;
  left: -150px;
}

.dp-project-cta-box span { color: #888; }

.dp-project-cta-box h2 {
  color: #fff;
  font-size: 4rem;
  line-height: 1.3;
  margin-top: 20px;
}

.dp-project-cta-btn {
  display: inline-flex;
  margin-top: 40px;
  padding: 18px 40px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 700;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
  box-shadow: 0 10px 30px rgba(108,99,255,0.3);
}

.dp-project-cta-btn:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 25px 55px rgba(108,99,255,0.5);
}

.dp-mouse-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(180px);
  opacity: 0.1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
}

/* =========================
   FOOTER
========================= */

.main-footer {
  position: relative;
  background: #0a0a0a;
  color: white;
  padding: 100px 8% 40px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.main-footer::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,99,255,0.08), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.footer-brand h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 900;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  line-height: 2;
  max-width: 380px;
  font-size: 15px;
}

.footer-badge {
  margin-top: 25px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.12);
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease;
}

.footer-badge:hover {
  transform: translateY(-4px);
  background: rgba(108,99,255,0.14);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links h4 {
  margin-bottom: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-5px);
}

.footer-apps h4 { margin-bottom: 20px; }

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-btn {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.35s var(--transition-spring),
              background 0.3s ease,
              color 0.3s ease,
              box-shadow 0.3s ease;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.app-btn:hover {
  background: white;
  color: black;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.1);
}

.footer-bottom {
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
}

.site-footer {
  background: #080808;
  text-align: center;
  padding: 35px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* =========================
   SCROLL ANIMATIONS
========================= */

.fade-up {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

.show-element {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}

.fade-left.show-element {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--transition-smooth),
              transform 0.9s var(--transition-smooth);
}

.fade-right.show-element {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s var(--transition-smooth),
              transform 0.8s var(--transition-spring);
}

.scale-in.show-element {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   SECTION DIVIDER
========================= */

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 0;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.14); }
}

@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scrollAnim {
  0%   { opacity: 0; transform: translateY(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

@keyframes floatingCard {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes sliderMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(108,99,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(108,99,255,0.6); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* =========================
   GLOBAL RESPONSIVE SYSTEM
========================= */

html, body { overflow-x: hidden; }

.flex, [class*="flex"] { flex-wrap: wrap; }
.grid, [class*="grid"] { width: 100%; }

/* =========================
   LARGE DESKTOP
========================= */

@media (max-width: 1400px) {
  .page-main-title,
  .project-main-title {
    font-size: clamp(55px, 4vw, 110px);
  }
  .section-title {
    font-size: clamp(40px, 5vw, 70px);
  }
}

/* =========================
   TABLET  1100px
========================= */

@media (max-width: 1100px) {

  .main-header {
    padding: 18px 25px;
    flex-wrap: wrap;
    gap: 18px;
  }

  .search-form {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .nav-links { gap: 18px; }

  .hero-section, .project-hero {
    min-height: 100vh;
    padding: 120px 25px 80px;
  }

  .page-main-title, .project-main-title {
    font-size: clamp(48px, 9vw, 90px);
    line-height: 1.1;
  }

  .hero-title { font-size: 58px; }
  .page-title { font-size: 58px; }

  .section-title { font-size: clamp(36px, 5vw, 55px); }

  .projects-grid,
  .skills-grid,
  .team-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .project-about,
  .intro-section,
  .family-section,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 50px;
  }

  .showcase-image-wrapper { border-radius: 28px; }

  .project-card,
  .skill-card,
  .glass-card {
    border-radius: 24px;
  }

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

  .dp-project-about-wrapper {
    grid-template-columns: 1fr;
  }

  .dp-project-main-title { font-size: 4rem; }
  .dp-project-about-title { font-size: 2.4rem; }
  .dp-slider-heading h2 { font-size: 2.8rem; }
  .dp-project-cta-box h2 { font-size: 2.8rem; }

  .project-about-box {
    flex-direction: column;
    padding: 40px;
  }

  .project-main-title { font-size: 52px; }
}

/* =========================
   MOBILE  768px
========================= */

@media (max-width: 768px) {

  body { font-size: 14px; }

  .main-header {
    width: calc(100% - 20px);
    left: 10px;
    top: 10px;
    padding: 14px 18px;
    border-radius: 18px;
  }

  .logo-img { width: 44px; }
  .nav-links { gap: 10px; }
  .nav-link { font-size: 12px; }

  .hero-title { font-size: 42px; }
  .hero-description { font-size: 15px; }

  .page-main-title,
  .project-main-title {
    font-size: clamp(38px, 11vw, 62px);
    letter-spacing: -2px;
  }

  .section-title { font-size: 34px; }

  .section-description,
  .project-main-description,
  .about-text {
    font-size: 15px;
    line-height: 2;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn,
  .project-link,
  .next-project-link {
    width: 100%;
    justify-content: center;
  }

  .projects-grid,
  .skills-grid,
  .team-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
  }

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

  .project-image-wrapper { height: 240px; }

  .project-content,
  .card-content { padding: 22px; }

  .projects-section,
  .skills-section,
  .project-about,
  .next-project-section,
  .intro-section,
  .family-section {
    margin: 110px auto;
  }

  .project-about { gap: 30px; }

  .next-project-card { padding: 60px 20px; }
  .next-project-card h2 { font-size: 34px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }

  .mouse-glow { display: none; }

  /* Disable heavy 3D on mobile */
  .project-card:hover,
  .skill-card:hover,
  .family-image-card:hover,
  .gallery-main:hover {
    transform: translateY(-8px);
  }

  .dp-project-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    padding: 30px;
  }

  .dp-project-main-title { font-size: 3rem; }
  .dp-project-short-description { font-size: 1rem; }
  .dp-project-about-title { font-size: 2rem; }
  .dp-project-image-card { border-radius: 24px; }
  .dp-project-slider-card { width: 300px; }
  .dp-slider-heading h2 { font-size: 2rem; }
  .dp-project-cta-box { padding: 50px 30px; }
  .dp-project-cta-box h2 { font-size: 2rem; }

  .products-hero { height: 60vh; }
  .page-title { font-size: 42px; }

  .price-wrapper { flex-direction: column; align-items: flex-start; }

  .contact-section { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 35px; }
  .contact-hero { min-height: 50vh; }

  .family-section { grid-template-columns: 1fr; gap: 60px; }
  .family-content { text-align: center; }
  .family-cards { justify-content: center; }
  .family-btn { margin: auto; }

  .intro-section { grid-template-columns: 1fr; gap: 70px; padding-top: 100px; }
  .intro-content { text-align: center; }
  .intro-buttons { justify-content: center; }
  .code-window { height: 440px; }
  .intro-content h1 { font-size: 52px; }

  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .product-title { font-size: 28px; }
  .price, .price-after-off { font-size: 26px; }

  .spec-row { grid-template-columns: 1fr; gap: 8px; }
  .similar-slider { grid-template-columns: 1fr; }

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

  .content-box h1 { font-size: 52px; }
  .content-box p { font-size: 15px; line-height: 2; }
  .nav-links { gap: 15px; }

  .theme-switch,
  .scroll-top-btn { width: 52px; height: 52px; }

  .slider-btn { width: 50px; height: 50px; }
  .nav-links { flex-wrap: wrap; }

  .project-about-box {
    border-radius: 28px;
    padding: 25px;
  }

  .project-main-title { font-size: 36px; }
  .about-text { font-size: 15px; line-height: 2.2; }
}

/* =========================
   SMALL MOBILE  520px
========================= */

@media (max-width: 520px) {

  .main-header {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .page-main-title,
  .project-main-title { font-size: 32px; }

  .section-title { font-size: 28px; }

  .section-description,
  .project-main-description,
  .about-text { font-size: 14px; }

  .hero-btn,
  .project-link,
  .next-project-link { padding: 16px 20px; font-size: 14px; }

  .project-card,
  .skill-card,
  .glass-card { border-radius: 20px; }

  .project-content { padding: 18px; }
  .project-title { font-size: 20px; }
  .project-image-wrapper { height: 200px; }

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

  .projects-section,
  .skills-section,
  .project-about,
  .next-project-section { margin: 80px auto; }

  .contact-form button { width: 100%; }
  .contact-card { padding: 25px; }
  .contact-form-wrapper { padding: 25px; }
  .contact-hero h1 { font-size: 38px; }

  .marquee-track span { font-size: 38px; }

  .next-project-card h2 { font-size: 28px; }

  .dp-project-main-title { font-size: 2.2rem; }
  .dp-project-cta-box h2 { font-size: 1.8rem; }
}

/* =========================
   REDUCED MOTION
========================= */

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


/* ==========================================================
   MOBILE COMPLETION PATCH
   Add this at the END of index.css
   ========================================================== */

/* ---------- Tablet / Small Laptop ---------- */
@media (max-width: 1024px) {
  :root {
    --mobile-pad: 18px;
    --mobile-radius: 22px;
  }

  body {
    overflow-x: hidden;
  }

  .main-header {
    inset: 12px 14px auto;
    width: auto;
    height: auto;
    min-height: 68px;
    padding: 10px 12px;
    gap: 12px;
    border-radius: 24px;
  }

  .logo-img {
    width: 52px;
    flex: 0 0 auto;
  }

  .nav-links {
    flex: 1;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero-box,
  .products-hero,
  .dp-project-hero {
    min-height: 88svh;
  }

  .hero-image img,
  .products-hero img,
  .dp-project-hero-image,
  .img-container > img {
    object-position: center center;
  }

  .hero-text {
    right: var(--mobile-pad);
    left: var(--mobile-pad);
    bottom: 96px;
    width: auto;
    max-width: none;
  }

  .hero-title {
    max-width: 10ch;
    font-size: clamp(48px, 13vw, 86px);
    line-height: 0.94;
  }

  .hero-description {
    max-width: 95%;
    font-size: 15px;
    line-height: 1.9;
  }

  .intro-section,
  .family-section,
  .projects-section,
  .products-section,
  .interactive-skills-section,
  .dp-project-title-section,
  .dp-project-about-section,
  .dp-project-showcase-section,
  .dp-project-slider-section,
  .dp-project-cta-section,
  .product-page {
    width: min(100% - 28px, 720px);
    padding-block: 86px;
  }

  .intro-section,
  .family-section,
  .dp-project-about-wrapper,
  .product-detail {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .projects-grid,
  .products-grid,
  .cards-grid,
  .skills-grid,
  .team-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .project-image-wrapper,
  .product-card-image,
  .product-image-wrapper,
  .dp-slider-image-wrapper {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .project-card,
  .product-card,
  .glass-card,
  .dp-showcase-card,
  .dp-project-image-card {
    border-radius: var(--mobile-radius);
  }

  .project-card:hover,
  .product-card:hover,
  .glass-card:hover,
  .dp-project-image-card:hover {
    transform: translateY(-6px);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 94px;
  }

  body {
    font-size: 14px;
    line-height: 1.75;
  }

  body::after {
    background-size: 58px 58px;
    opacity: 0.16;
  }

  .main-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    inset: 10px 10px auto;
    padding: 9px;
    border-radius: 20px;
    background: rgba(5, 8, 18, 0.78);
  }

  body:not(.dark-mode) .main-header {
    background: rgb(0 0 0 / 24%);
  }

  .logo-img {
    width: 42px;
  }

  .nav-links {
    justify-content: flex-start;
    direction: rtl;
    padding: 2px 4px;
    gap: 6px;
  }

  .nav-link {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 11.5px;
    border-radius: 999px;
  }

  .nav-link.active {
    background: linear-gradient(135deg, rgba(140, 247, 255, 0.22), rgba(155, 124, 255, 0.2));
    border-color: rgba(140, 247, 255, 0.32);
  }

  .theme-switch,
  .scroll-top-btn {
    width: 46px;
    height: 46px;
    bottom: 14px;
  }

  .theme-switch {
    left: 14px;
    display: none;
  }

  .scroll-top-btn {
    right: 14px;
  }

  .hero-box,
  .products-hero,
  .dp-project-hero {
    min-height: 84svh;
  }

  .hero-box::before {
    background:
      radial-gradient(circle at 50% 24%, rgba(140, 247, 255, 0.22), transparent 32%),
      linear-gradient(180deg, rgba(2, 3, 10, 0.18), rgba(2, 3, 10, 0.92) 74%);
  }

  .hero-image img,
  .products-hero img,
  .dp-project-hero-image {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.04);
    animation: none;
  }

  .hero-text {
    bottom: 82px;
    right: 16px;
    left: 16px;
  }

  .hero-tag,
  .section-badge,
  .intro-badge,
  .family-badge,
  .hero-mini-title,
  .dp-project-type {
    padding: 9px 13px;
    font-size: 11px;
  }

  .hero-title {
    margin-top: 16px;
    max-width: 11ch;
    font-size: clamp(40px, 14vw, 68px);
    line-height: 0.98;
  }

  .hero-description {
    margin-top: 18px;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.85;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slider-btn {
    top: auto;
    bottom: 24px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .slider-btn:hover {
    transform: scale(1.04);
  }

  .prev {
    right: 16px;
  }

  .next {
    left: 16px;
  }

  .dots {
    bottom: 36px;
    gap: 7px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 28px;
  }

  .intro-content h1,
  .family-content h2,
  .page-main-title,
  .dp-project-main-title,
  .content-box h1,
  .page-title {
    font-size: clamp(34px, 11vw, 58px);
    line-height: 1.08;
  }

  .intro-content p,
  .family-content p,
  .section-description,
  .content-box p,
  .dp-project-short-description,
  .dp-project-about-text {
    font-size: 14.5px;
    line-height: 1.95;
  }

  .intro-buttons,
  .hero-buttons,
  .dp-project-action-buttons,
  .project-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .intro-btn,
  .family-btn,
  .project-link,
  .product-card-link,
  .product-link,
  .dp-project-btn,
  .dp-project-cta-btn,
  .empty-state-btn,
  .btn-login,
  .btn-signup,
  .btn-primary,
  .btn-outline {
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
  }

  .code-window {
    min-height: 330px;
    border-radius: 22px;
  }

  .code-content {
    padding: 20px;
    font-size: 12px;
    line-height: 1.75;
  }

  .family-image-card,
  .dp-project-image-card,
  .gallery-main {
    aspect-ratio: 1 / 1;
  }

  .family-cards {
    gap: 9px;
  }

  .mini-card,
  .skill-item {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .projects-grid,
  .products-grid,
  .cards-grid,
  .skills-grid,
  .team-grid,
  .features-grid,
  .stats-container,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .project-image-wrapper,
  .product-card-image,
  .product-image-wrapper {
    aspect-ratio: 16 / 11;
  }

  .project-content,
  .product-card-info,
  .dp-slider-content {
    padding: 20px;
  }

  .project-title,
  .product-card-title {
    font-size: 18px;
  }

  .project-description,
  .product-card-desc {
    min-height: auto;
    font-size: 13.5px;
    line-height: 1.85;
  }

  .project-type,
  .discount-badge {
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .featured-badge,
  .project-status,
  .product-status {
    font-size: 11px;
    padding: 8px 11px;
  }

  .products-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .products-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .products-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    min-height: 42px;
    font-size: 12px;
    white-space: nowrap;
  }

  .product-gallery {
    position: relative;
    top: auto;
  }

  .thumbnail-list,
  .product-thumbnails {
    grid-template-columns: repeat(4, 1fr);
  }

  .dp-project-hero-content {
    align-items: stretch;
    padding-bottom: 70px;
  }

  .dp-project-slider-track {
    gap: 16px;
    padding-inline: 16px;
    animation-duration: 42s;
  }

  .dp-project-slider-card {
    flex-basis: 280px;
  }

  .dp-slider-image-wrapper {
    aspect-ratio: 16 / 10;
  }

  .dp-project-cta-box {
    padding: 34px 20px;
    border-radius: 24px;
  }

  .dp-project-cta-box h2 {
    font-size: clamp(28px, 9vw, 44px);
  }

  .img-container {
    min-height: 88svh;
    padding: 110px 16px 54px;
  }

  .img-container > img {
    object-position: center center;
    transform: none;
  }

  .content-box {
    width: 100%;
    margin-inline: auto;
    padding: 22px;
    border-radius: 22px;
    background: rgba(3, 5, 14, 0.62);
  }

  .glass-card {
    width: 100%;
    padding: 15px 16px;
  }

  .marquee-track span {
    font-size: clamp(42px, 16vw, 76px);
  }

  .skills-container {
    height: 460px;
    border-radius: 22px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-brand h2 {
    font-size: 34px;
  }

  .footer-bottom {
    margin-top: 34px;
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 480px) {
  .main-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 7px;
    padding: 9px 8px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 2px;
  }

  .nav-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-box,
  .products-hero,
  .dp-project-hero {
    min-height: 82svh;
  }

  .hero-text {
    bottom: 78px;
    right: 14px;
    left: 14px;
  }

  .hero-title {
    font-size: clamp(36px, 14vw, 56px);
  }

  .hero-description {
    -webkit-line-clamp: 3;
    font-size: 13.5px;
  }

  .page-title {
    margin-top: 120px;
    padding-inline: 16px;
  }

  .intro-section,
  .family-section,
  .projects-section,
  .products-section,
  .interactive-skills-section,
  .dp-project-showcase-section,
  .product-page {
    width: calc(100% - 22px);
    padding-block: 72px;
  }

  .project-image-wrapper,
  .product-card-image,
  .product-image-wrapper {
    aspect-ratio: 1 / 0.82;
  }

  .project-content,
  .product-card-info,
  .login-box,
  .signup-box,
  .welcome-card,
  .info-card,
  .orders-card,
  .favorites-card,
  .quick-card,
  .empty-state {
    padding: 18px;
  }

  .thumbnail-list,
  .product-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .price,
  .price-after-off {
    font-size: 22px;
  }

  .content-box h1,
  .intro-content h1,
  .family-content h2,
  .page-main-title,
  .dp-project-main-title {
    font-size: clamp(31px, 12vw, 48px);
  }

  .code-window {
    min-height: 300px;
  }

  .code-content {
    font-size: 11px;
  }

  .skills-container {
    height: 420px;
  }
}

/* ---------- Very Small Mobile ---------- */
@media (max-width: 360px) {
  .nav-link {
    font-size: 10.5px;
    padding-inline: 8px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-tag,
  .section-badge,
  .intro-badge,
  .family-badge {
    font-size: 10px;
  }

  .project-title,
  .product-card-title {
    font-size: 16px;
  }

  .intro-btn,
  .family-btn,
  .project-link,
  .product-card-link,
  .product-link {
    font-size: 13px;
  }
}