/* ═══════════════════════════════════════════════
   MAHMOOD FAZILE — PORTFOLIO
   Dark / Light Theme + Glassmorphism + Motion
   ═══════════════════════════════════════════════ */

/* ── THEME VARIABLES ── */
:root {
  --accent: #ff781e;
  --accent-dim: rgba(255, 120, 30, 0.15);
  --accent-glow: rgba(255, 120, 30, 0.35);

  /* DARK theme (default) */
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(255, 120, 30, 0.25);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.6);
  --blob-1: rgba(255, 120, 30, 0.12);
  --blob-2: rgba(255, 60, 0, 0.08);
  --blob-3: rgba(255, 150, 50, 0.06);
  --noise-opacity: 0.035;
  --nav-bg: rgba(13, 13, 13, 0.8);
  --stat-bg: rgba(255, 255, 255, 0.04);
  --outline-color: transparent;
  --outline-stroke: rgba(245, 245, 245, 0.15);
}

[data-theme="light"] {
  --bg-primary: #f2ede8;
  --bg-secondary: #ede7e0;
  --bg-tertiary: #e8e1da;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hover: rgba(255, 255, 255, 0.75);
  --border: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(255, 120, 30, 0.3);
  --text-primary: #1a1410;
  --text-secondary: #5a4a3a;
  --text-muted: #9a8a7a;
  --glass-bg: rgba(242, 237, 232, 0.65);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.12);
  --blob-1: rgba(255, 120, 30, 0.15);
  --blob-2: rgba(255, 80, 0, 0.1);
  --blob-3: rgba(255, 160, 60, 0.08);
  --noise-opacity: 0.025;
  --nav-bg: rgba(242, 237, 232, 0.85);
  --stat-bg: rgba(255, 255, 255, 0.5);
  --outline-color: transparent;
  --outline-stroke: rgba(26, 20, 16, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "DM Sans", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition:
    background-color 0.45s ease,
    color 0.45s ease;
  cursor: none;
}

/* ── NOISE OVERLAY ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    border-color 0.2s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

body:hover .cursor {
  opacity: 1;
}

/* ── GLASSMORPHISM ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition:
    background 0.4s ease,
    border 0.4s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow:
    0 20px 60px var(--shadow-color),
    0 0 30px var(--accent-dim);
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 40px var(--shadow-color);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: none;
  padding: 0;
  display: flex;
  align-items: center;
}

.toggle-track {
  width: 52px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 3px;
  transition:
    background 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px var(--accent-glow);
  flex-shrink: 0;
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(24px);
}

.icon-sun,
.icon-moon {
  width: 12px;
  height: 12px;
  color: white;
  position: absolute;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.icon-sun {
  opacity: 1;
  transform: scale(1);
}
.icon-moon {
  opacity: 0;
  transform: scale(0.7);
}

[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: scale(0.7);
}
[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: scale(1);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  margin-left: auto;
}

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

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  padding: 16px 32px 20px;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── BUTTONS ── */
.btn-hire,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent);
  color: white;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.btn-hire:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ── ANIMATED BACKGROUND BLOBS ── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--blob-1);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--blob-2);
  bottom: -100px;
  left: -100px;
  animation-delay: -3s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: var(--blob-3);
  top: 40%;
  left: 30%;
  animation-delay: -6s;
}

.blob-4 {
  width: 500px;
  height: 500px;
  background: var(--blob-1);
  bottom: -100px;
  right: -100px;
  animation-delay: -2s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 15px) scale(0.97);
  }
}

/* ── HERO SECTION ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

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

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-greeting {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.hero-name {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text-primary);
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.title-outline {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Stats */
.stats-bar {
  display: flex;
  gap: 0;
  background: var(--stat-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 28px;
  backdrop-filter: blur(12px);
  max-width: 420px;
}

.stat-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-plus {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  vertical-align: top;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 4px 0;
}

/* ── HERO RIGHT / PHOTO ── */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-ring {
  position: relative;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.photo-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  overflow: hidden;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder svg {
  width: 85%;
  height: 85%;
}

/* Orbit Ring */
.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--border-accent);
  animation: spinOrbit 12s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes spinOrbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Floating Tags */
.float-tag {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.float-tag span {
  color: var(--accent);
}

.tag-1 {
  top: 40px;
  right: -20px;
  animation: floatUp 3s ease-in-out infinite;
}

.tag-2 {
  bottom: 60px;
  left: -20px;
  animation: floatUp 3s ease-in-out infinite;
  animation-delay: -1.5s;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

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

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(0.7);
  }
}

/* ── SECTION COMMONS ── */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.section-title .accent {
  color: var(--accent);
}

/* ── SERVICES ── */
.services-section {
  padding: 120px 0;
  position: relative;
}

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

.service-card {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: white;
  transform: rotate(-5deg) scale(1.05);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: auto;
  transition: transform 0.25s ease;
}

.service-card:hover .card-arrow {
  transform: translateX(6px);
}

/* ── ABOUT ── */
.about-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  transition: background 0.4s ease;
}

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

.about-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px dashed var(--border-accent);
  animation: spinOrbit 20s linear infinite;
}

.about-photo {
  /* width: 320px;
  height: 400px; */
  overflow: hidden;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo svg {
  width: 100%;
  height: 100%;
}

.exp-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
}

.exp-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.exp-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  align-items: center;
  gap: 16px;
}

.skill-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff9a4d);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-pct {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── PORTFOLIO ── */
.portfolio-section {
  padding: 120px 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  cursor: none;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

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

.portfolio-card {
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

.portfolio-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  display: none;
}

.port-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin: 16px 16px 0;
  position: relative;
  overflow: hidden;
}

.port-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 60%);
}

.port-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.port-info {
  padding: 20px 20px 8px;
}

.port-tag {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.port-info h3 {
  font-family: "Instrument Serif", serif;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 6px 0 4px;
}

.port-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.port-link {
  display: inline-block;
  padding: 10px 20px 16px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.port-link:hover {
  letter-spacing: 0.05em;
}

/* ── CONTACT ── */
.contact-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 8px 0 24px;
}

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

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

/* Form */
.contact-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.form-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  cursor: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.w-full {
  width: 100%;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-primary);
  transition: background 0.4s ease;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* ── ANIMATIONS / REVEAL ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

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

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-right {
    display: none;
  }

  .social-links {
    justify-content: center;
  }
  .cta-buttons {
    justify-content: center;
  }
  .stats-bar {
    max-width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 20px;
  }
  .hero-content {
    padding: 0 20px;
  }
  .section-container {
    padding: 0 20px;
  }
}

/* ── SELECTION ── */
::selection {
  background: var(--accent);
  color: white;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.logo-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Container for the logo (usually an <a> or <div>) */
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

/* The actual Logo Image or Text */
.nav-logo {
  height: 40px; /* Adjust based on your header height */
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Interactive Hover State */
.nav-logo-link:hover {
  transform: scale(1.05);
}

.logo-tech-style {
  height: 45px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-tech-style:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  transform: rotate(-2deg);
}
