/* ============================================================
   ZAID PORTFOLIO - MAIN STYLESHEET
   Dark Modern Theme | Premium Design
   ============================================================ */

/* ======================== VARIABLES ======================== */
:root {
  --bg-primary: #080810;
  --bg-secondary: #0d0d1a;
  --bg-card: #111127;
  --bg-card-hover: #161630;
  --accent: #4f8ef7;
  --accent-glow: rgba(79, 142, 247, 0.35);
  --accent-2: #7c4dff;
  --accent-gradient: linear-gradient(135deg, #4f8ef7, #7c4dff);
  --text-primary: #f0f0ff;
  --text-secondary: #9090b0;
  --text-muted: #55556a;
  --border: rgba(79, 142, 247, 0.15);
  --border-hover: rgba(79, 142, 247, 0.5);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --glow-sm: 0 0 20px rgba(79, 142, 247, 0.3);
  --glow-md: 0 0 40px rgba(79, 142, 247, 0.4);
  --glow-lg: 0 0 60px rgba(79, 142, 247, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --nav-height: 72px;
  --font-main: 'Poppins', 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======================== RESET & BASE ======================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }



/* ======================== LOADER ======================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-line {
  width: 200px;
  height: 2px;
  background: var(--bg-card);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  animation: loadSlide 1.5s ease infinite;
}

@keyframes loadSlide {
  0%   { left: -100%; }
  100% { left: 100%; }
}

.loader-inner span {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ======================== UTILITY ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid rgba(79, 142, 247, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 60%, #9090b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

section {
  padding: 100px 0;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md), 0 8px 30px rgba(79, 142, 247, 0.5);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-primary i {
  transition: transform 0.3s;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(79, 142, 247, 0.1);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ======================== NAVBAR ======================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.6rem;
  font-weight: 900;
}

.logo-text { color: var(--text-primary); }
.logo-dot { color: var(--accent); }

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

.nav-link {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(79, 142, 247, 0.12);
}

.nav-link.active {
  color: var(--accent);
  box-shadow: 0 0 20px rgba(79, 142, 247, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ======================== HERO SECTION ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes float {
  0%   { transform: translateY(0px)   translateZ(0); opacity: 0.25; }
  50%  { transform: translateY(-28px) translateZ(0); opacity: 0.55; }
  100% { transform: translateY(0px)   translateZ(0); opacity: 0.25; }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
}

.title-ampersand {
  display: block;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.7em;
}

.glow-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(79, 142, 247, 0.5));
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

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

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 142, 247, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
  margin-bottom: 90px;
  transition: all 2s ease;
}

.hero-image:hover {
  scale: 1.1;
  
}

.hero-image-wrapper {
  position: relative;
  width: min(78vw, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 4px solid #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(124, 77, 255, 0.35) 0%, rgba(124, 77, 255, 0.08) 42%, rgba(13, 13, 26, 0.95) 100%),
    radial-gradient(circle at 72% 18%, rgba(79, 142, 247, 0.32) 0%, rgba(79, 142, 247, 0) 42%),
    var(--bg-secondary);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 26px rgba(79, 142, 247, 0.42),
    0 0 70px rgba(124, 77, 255, 0.32);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
  z-index: 2;
}

.profile-img {
  width: 88%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
  transform: scale(1.04);
  transform-origin: center bottom;
}

.hero-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  z-index: 2;
  animation: badgeFloat 3s ease-in-out infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-badge i { color: var(--accent); }

.badge-1 { top: 60px; left: -20px; animation-delay: 0s; }
.badge-2 { bottom: 80px; right: -20px; animation-delay: 1.5s; }

@keyframes badgeFloat {
  0%   { transform: translateY(0px)   translateZ(0); }
  50%  { transform: translateY(-8px)  translateZ(0); }
  100% { transform: translateY(0px)   translateZ(0); }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 2s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ======================== SERVICES SECTION ======================== */
.services {
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.service-card:hover .card-glow {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(79, 142, 247, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(79, 142, 247, 0.2);
  box-shadow: var(--glow-sm);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}

.service-link:hover { gap: 12px; }
.service-link i { font-size: 0.75rem; transition: transform 0.3s; }
.service-link:hover i { transform: translateX(4px); }

/* ======================== ABOUT SECTION ======================== */
.about { background: var(--bg-primary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}

.about-img-wrapper:hover img { transform: scale(1.03); }

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 16, 0.7) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px;
}

.experience-badge {
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
}

.badge-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.badge-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.about-content { padding: 20px 0; }

.about-text {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 36px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-item i {
  color: var(--accent);
  font-size: 1rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

.stat-k {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

/* ======================== TESTIMONIALS SECTION ======================== */
.testimonials {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.testimonials::after {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,142,247,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Testimonials track (slider) */
.testi-wrapper {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

.testi-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.testi-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.testi-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 8rem;
  color: rgba(79,142,247,0.08);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.testi-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-sm), 0 20px 60px rgba(0,0,0,0.4);
  background: var(--bg-card-hover);
}

.testi-card:hover::after { transform: scaleX(1); }

.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.testi-stars i {
  color: #fbbf24;
  font-size: 0.9rem;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(79,142,247,0.4);
  box-shadow: 0 0 16px rgba(79,142,247,0.2);
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testi-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

/* Nav dots for testimonials */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testi-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  box-shadow: var(--glow-sm);
}

.testi-controls {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testi-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.testi-control-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.testi-control-btn:active {
  transform: translateY(0);
}

/* Responsive testimonials */
@media (max-width: 1024px) {
  .testi-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  .testi-card { flex: 0 0 calc(100% - 0px); }
  .testi-dots { margin-top: 28px; }
  .testi-controls { display: flex; }
}

/* ======================== PORTFOLIO / CAROUSEL ======================== */
.portfolio {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.carousel-wrapper {
  position: relative;
  padding: 0 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.carousel-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(50% - 16px);
  margin: 0 8px;
  transition: var(--transition);
}

.slide-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}

.slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-placeholder {
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 20px;
  text-align: center;
}

.slide-placeholder i {
  font-size: 3rem;
  color: var(--border-hover);
}

.slide-placeholder small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 16, 0.4);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s;
}

.slide-inner:hover .slide-overlay {
  opacity: 1;
  background: rgba(8, 8, 16, 0.75); /* Darker grayish overlay on hover */
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.slide-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(79, 142, 247, 0.15);
  border: 1.5px solid var(--border-hover);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-sm);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
  box-shadow: var(--glow-sm);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.trust-badge i { color: var(--accent); font-size: 1rem; }

.trust-badge:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
}

/* ======================== CONTACT SECTION ======================== */
.contact {
  background: var(--bg-secondary);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 8px;
}

.contact-info > p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 142, 247, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: rgba(79, 142, 247, 0.2);
  box-shadow: var(--glow-sm);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

.social-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(79, 142, 247, 0.15);
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

/* Contact Form */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s;
  z-index: 1;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px 14px 44px;
  font-family: var(--font-main);
  font-size: 0.93rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: none;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.04);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
}

.input-wrapper:focus-within i { color: var(--accent); }

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper i {
  top: 16px;
}

.textarea-wrapper textarea {
  padding-top: 14px;
  min-height: 130px;
}

.error-msg {
  font-size: 0.8rem;
  color: #f87171;
  font-weight: 500;
  display: none;
}

.error-msg.visible { display: block; }

/* Submit button loader */
.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 380px;
  width: min(380px, calc(100vw - 32px));
}

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

.toast-success {
  background: #052e16;
  border: 1px solid #4ade80;
  color: #4ade80;
}

.toast-error {
  background: #2a0808;
  border: 1px solid #f87171;
  color: #f87171;
}

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
  margin-bottom: 12px;
}

.footer-links ul li a,
.footer-services ul li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ======================== RESPONSIVE ======================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-image { order: -1; }
  .hero-image-wrapper { width: min(62vw, 360px); }
  .hero-buttons { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-description { margin: 0 auto 36px; }
  .badge-1 { left: 0; }
  .badge-2 { right: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .carousel-slide { flex: 0 0 calc(100% - 16px); }
}

/* Mobile Nav */
@media (max-width: 900px) {
  .nav-container { padding: 0 18px; }
  .nav-logo { font-size: 1.35rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 26px 24px;
    gap: 30px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link { padding: 14px 22px; border-radius: var(--radius-sm); width: 100%; }
  .hamburger { display: flex; }
}

/* Mobile */
@media (max-width: 768px) {
  section { padding: 70px 0; }
  html { font-size: 15px; }
  .hero-image {margin-bottom: 0px;}
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .carousel-slide { flex: 0 0 calc(100% - 16px); }
  .carousel-wrapper { padding: 0 18px; }
  .contact-form { padding: 24px; }
  .hero-image-wrapper {
    width: min(72vw, 300px);
    border-width: 3px;
  }
  .carousel-btn { width: 42px; height: 42px; }

  .cursor, .cursor-follower { display: none; }
}

@media (max-width: 480px) {
  .hero-image {margin-bottom: 0px;}
  .container { padding: 0 18px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-image-wrapper { width: min(82vw, 260px); }
  .trust-badges { flex-direction: column; align-items: center; }
  .trust-badge { width: 100%; max-width: 260px; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 24px 16px; }
  .stat-number { font-size: 2rem; }
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
}

/* ======================== LIGHTBOX ======================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 16, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.lightbox.show {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10001;
}

.lightbox-close:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}
