/* ============================================================
   DESIGN SYSTEM — Muhammad Sharjeel Ibraheem Portfolio
   ============================================================ */

:root {
  --green-1: #8a9a5b;
  /* Army Moss */
  --green-2: #a3b18a;
  /* Sage */
  --green-3: #4b5320;
  /* Dark Olive */
  --highlight: #c8ff00;
  /* High-vis highlight */
  --dark-bg: #1b2412;
  /* Deep Army Drab */
  --dark-card: #242e1a;
  --dark-card-2: #2d3b22;
  --border: rgba(138, 154, 91, 0.25);
  --border-2: rgba(255, 255, 255, 0.05);
  --text: #e9edde;
  --text-muted: #949b85;
  --white: #ffffff;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --glow: 0 0 24px rgba(138, 154, 91, 0.3);
}

/* ============ LIGHT THEME (Desert/Sand) ============ */
body.light {
  --dark-bg: #fdfaf1;
  /* Sand/Cream */
  --dark-card: #ffffff;
  --dark-card-2: #f4f1e6;
  --border: rgba(75, 83, 32, 0.15);
  --border-2: rgba(0, 0, 0, 0.08);
  --text: #2c331f;
  /* Dark Olive Text */
  --text-muted: #6b705c;
  --white: #000000;
  --shadow: 0 8px 40px rgba(44, 51, 31, 0.1);
  --glow: 0 0 24px rgba(75, 83, 32, 0.1);
}

body.light #navbar.scrolled {
  background: rgba(245, 245, 245, 0.95);
}

body.light .glass-card {
  background: rgba(255, 255, 255, 0.7);
}

body.light #hero,
body.light #about,
body.light #process,
body.light #testimonials,
body.light #contact {
  background: var(--dark-bg);
}

body.light .split-photo {
  background: #e0e0e0;
}

body.light .split-3d {
  background: linear-gradient(160deg, #c8e6c9 0%, #e8f5e9 100%);
}

body.light .mobile-menu {
  background: #f5f5f5;
}

body.light .badge {
  background: rgba(255, 255, 255, 0.9);
}

body.light .portfolio-info h4 {
  color: #000;
}

body.light #footer {
  background: #eeeeee;
}

body.light .footer-links h4,
body.light .footer-social h4,
body.light .footer-brand .nav-logo {
  color: #000;
}

body.light .footer-links li a,
body.light .footer-social-btn,
body.light .footer-brand p,
body.light .footer-bottom {
  color: #222;
}

body.light .contact-left>p,
body.light .contact-link,
body.light .form-group label {
  color: #222;
}

body.light .form-group input,
body.light .form-group textarea,
body.light .form-group select {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

body.light .form-group select option {
  background: #ffffff;
  color: #000;
}

body.light .filter-btn {
  color: #000;
  border-color: rgba(0, 0, 0, 0.15);
}

body.light .section-title {
  color: #000;
}

body.light .step-content h3 {
  color: #000;
}

body.light .step-number {
  color: #000;
  opacity: 0.1;
}

body.light .social-icon svg,
body.light .footer-social-btn svg {
  color: #000;
}

body.light .social-icon svg,
body.light .footer-social-btn svg {
  color: #000;
}

body.light .social-icon img {
  filter: brightness(0);
}

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

html,
body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body {
  background: var(--dark-bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  transition: background 0.35s ease, color 0.35s ease;
}

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

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

input,
textarea,
select,
button {
  font-family: inherit;
}


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

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--border);
  box-shadow: var(--glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 200, 83, 0.4);
}

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

.btn-outline:hover {
  background: var(--green-1);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 200, 83, 0.3);
}

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

.mt-md {
  margin-top: 28px;
}

.center {
  text-align: center;
}

/* ============ SECTION HEADER ============ */
.section-header {
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-1);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--white);
}

.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
}

.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ============ SECTION SPACING ============ */
section {
  padding: 100px 0;
  position: relative;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ NAVIGATION ============ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: background var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-2);
  padding: 14px 48px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  width: auto;
}

/* ---- Logo Dark/Light Mode Switching ---- */
/* Default: dark mode → show white logo (.logo-dark), hide dark logo (.logo-light) */
.logo-dark {
  display: block;
  height: 40px;
  width: auto;
}

.logo-light {
  display: none;
  height: 40px;
  width: auto;
}

/* Light mode: show dark logo, hide white logo */
body.light .logo-dark {
  display: none;
}

body.light .logo-light {
  display: block;
}

.dot {
  color: var(--green-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green-1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  color: #000 !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
}

.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(0, 200, 83, 0.35) !important;
  transform: translateY(-1px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--green-1);
  background: rgba(0, 200, 83, 0.1);
  transform: rotate(20deg) scale(1.1);
  box-shadow: 0 0 16px rgba(0, 200, 83, 0.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-menu a {
  font-size: 2rem;
  font-family: var(--font-head);
  letter-spacing: 3px;
  color: var(--text);
}

.mobile-menu a:hover {
  color: var(--green-1);
}

.close-menu {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ============ HERO ============ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* CSS Particle System — replaces Three.js canvas */
.hero-particles,
.contact-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle,
.contact-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green-1);
  opacity: 0;
  animation: particleDrift 12s ease-in-out infinite;
}

/* Distribute particles randomly via nth-child */
.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 8%;
  top: 15%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.particle:nth-child(2) {
  width: 3px;
  height: 3px;
  left: 22%;
  top: 70%;
  animation-delay: 1.5s;
  animation-duration: 13s;
}

.particle:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 40%;
  top: 30%;
  animation-delay: 3s;
  animation-duration: 9s;
}

.particle:nth-child(4) {
  width: 3px;
  height: 3px;
  left: 60%;
  top: 80%;
  animation-delay: 0.8s;
  animation-duration: 11s;
}

.particle:nth-child(5) {
  width: 6px;
  height: 6px;
  left: 75%;
  top: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}

.particle:nth-child(6) {
  width: 2px;
  height: 2px;
  left: 88%;
  top: 55%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.particle:nth-child(7) {
  width: 4px;
  height: 4px;
  left: 15%;
  top: 85%;
  animation-delay: 1s;
  animation-duration: 12s;
}

.particle:nth-child(8) {
  width: 3px;
  height: 3px;
  left: 50%;
  top: 10%;
  animation-delay: 5s;
  animation-duration: 10s;
}

.particle:nth-child(9) {
  width: 5px;
  height: 5px;
  left: 30%;
  top: 50%;
  animation-delay: 2.5s;
  animation-duration: 15s;
}

.particle:nth-child(10) {
  width: 2px;
  height: 2px;
  left: 68%;
  top: 40%;
  animation-delay: 3.5s;
  animation-duration: 9s;
}

.particle:nth-child(11) {
  width: 4px;
  height: 4px;
  left: 92%;
  top: 75%;
  animation-delay: 0.5s;
  animation-duration: 11s;
}

.particle:nth-child(12) {
  width: 3px;
  height: 3px;
  left: 5%;
  top: 45%;
  animation-delay: 6s;
  animation-duration: 13s;
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.3;
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.5);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 48px 80px;
  width: 100%;
}

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

.hero-centered .hero-subtitle,
.hero-centered .hero-btns,
.hero-centered .hero-socials {
  justify-content: center;
}

.hero-centered .hero-desc {
  margin-left: auto;
  margin-right: auto;
}

.hero-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--green-1);
  box-shadow: 0 0 30px rgba(0, 200, 83, 0.3);
}

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

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-1);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 3px;
  color: var(--white);
  /* Removed text-shadow for a cleaner, modern tactical look */
}

.hero-subtitle {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.typed-label {
  color: var(--text-muted);
}

#typed {
  color: var(--green-1);
  font-weight: 600;
}

.hero-desc {
  margin-top: 24px;
  color: var(--text-muted);
  max-width: 800px;
  /* Wider to match "Sharjeel Ibraheem" text scale */
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

#hero {
  min-height: 100vh;
  padding-top: 40px;
  /* Adjusted to 40px per user request */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  z-index: 2;
}

.hero-btns {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-scroll-indicator {
  margin-top: 60px;
  /* space after CTA buttons */

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  text-align: center;
}

/* Scroll text */
.hero-scroll-indicator span {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Scroll line */
.scroll-line {
  width: 2px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

/* animation */
.scroll-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: white;
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% {
    top: -40px;
  }

  100% {
    top: 40px;
  }
}

.hero-scroll-indicator span {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 60px;
  /* Vertical again */
  background: var(--border-2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--green-1);
  animation: scrollLineVert 2s infinite ease-in-out;
}

@keyframes scrollLineVert {
  0% {
    top: -100%;
  }

  50% {
    top: 0%;
  }

  100% {
    top: 100%;
  }
}

/* Social Icon Images - Strict Scaling */
.social-icon-img {
  width: 40px;
  height: 40px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  flex-shrink: 0;
}

.social-icon-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transition: transform var(--transition);
}

.social-icon-img:hover {
  transform: translateY(-3px);
  border-color: var(--green-1);
  background: rgba(0, 200, 83, 0.05);
}

.social-icon-img:hover img {
  transform: scale(1.1);
}

/* Cleanup: Remove old Ribbon/Icons */
.icon-ribbon,
.social-icon,
.service-icon {
  display: none !important;
}

.hero-img-split {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.split-photo {
  background: linear-gradient(160deg, #111 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.avatar-placeholder {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder span {
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--green-1);
  animation: avatarPulse 3s ease-in-out infinite;
  opacity: 0.5;
}

.ring-2 {
  inset: -16px;
  opacity: 0.2;
  animation-delay: 1.5s;
}

@keyframes avatarPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

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

.split-3d {
  background: linear-gradient(160deg, #0a120a 0%, #071207 100%);
  position: relative;
  overflow: hidden;
}

.geo-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.grid-line {
  position: absolute;
  background: var(--green-1);
}

.grid-line.h1,
.grid-line.h2,
.grid-line.h3 {
  height: 1px;
  width: 100%;
}

.grid-line.h1 {
  top: 30%;
}

.grid-line.h2 {
  top: 60%;
}

.grid-line.h3 {
  top: 80%;
}

.grid-line.v1,
.grid-line.v2,
.grid-line.v3 {
  width: 1px;
  height: 100%;
}

.grid-line.v1 {
  left: 25%;
}

.grid-line.v2 {
  left: 55%;
}

.grid-line.v3 {
  left: 80%;
}

.floating-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  border: 1px solid var(--green-1);
}

.shape-1 {
  width: 40px;
  height: 40px;
  top: 20%;
  left: 15%;
  transform: rotate(45deg);
  animation: floatShape 6s ease-in-out infinite;
}

.shape-2 {
  width: 24px;
  height: 24px;
  top: 55%;
  left: 50%;
  border-radius: 50%;
  animation: floatShape 4s ease-in-out infinite 1s;
}

.shape-3 {
  width: 32px;
  height: 32px;
  top: 75%;
  left: 20%;
  transform: rotate(30deg);
  animation: floatShape 5s ease-in-out infinite 2s;
}

@keyframes floatShape {

  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(-12px) rotate(135deg);
  }
}

.shape-2 {
  animation: floatShape2 4s ease-in-out infinite 1s;
}

@keyframes floatShape2 {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.2);
  }
}

.badge {
  position: absolute;
  background: rgba(0, 10, 0, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: badgeFloat 5s ease-in-out infinite;
}

.badge-exp {
  bottom: 30px;
  left: -24px;
}

.badge-proj {
  top: 40px;
  right: -24px;
  animation-delay: 2.5s;
}

.badge-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-1);
  line-height: 1;
}

.badge-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-scroll-indicator {
  margin-top: 80px;
  /* space after CTA */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============ ABOUT ============ */
#about {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0d0d 100%);
}

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

.about-card {
  padding: 32px;
}

.about-icon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.skill-bubble {
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.skill-bubble:hover {
  background: rgba(0, 200, 83, 0.12);
  transform: translateY(-4px);
}

.skill-bubble svg {
  width: 28px;
  height: 28px;
  color: var(--green-1);
}

.skill-bubble span {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border-2);
  padding-top: 24px;
}

.stat {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green-1);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-right h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-right p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-right p strong {
  color: var(--text);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--green-2);
  background: rgba(0, 200, 83, 0.05);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============ SERVICES ============ */
#services {
  background: var(--dark-bg);
}

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

.service-card {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(0, 200, 83, 0.2);
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green-1);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--white);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  font-size: 0.68rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.15);
  color: var(--green-2);
}

.service-arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-size: 1.4rem;
  color: var(--green-1);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============ PROCESS ============ */
#process {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0d100d 100%);
  position: relative;
  overflow: hidden;
}

#process::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 200, 83, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-step {
  position: relative;
}

.step-number {
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--white);
  opacity: 0.1;
  line-height: 1;
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 2;
  pointer-events: none;
}

.step-content {
  padding: 32px 24px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.step-content h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ PORTFOLIO ============ */
#portfolio {
  background: var(--dark-bg);
}

/* Continuous Marquee Array */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: var(--dark-card-2);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  padding: 16px 0;
  margin-bottom: 48px;
  display: flex;
}

body.light .marquee-wrapper {
  background: #fdfdfd;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  animation: scrollMarquee 20s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-content span {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.light .marquee-content span {
  color: #000;
}

.marquee-content .marquee-dot {
  color: var(--green-1);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--green-1);
  border-color: var(--green-1);
  color: #000;
}

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

.portfolio-item {
  transition: opacity 0.4s, transform 0.4s;
}

.portfolio-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-img {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  transition: all var(--transition);
}

.portfolio-link:hover {
  background: var(--green-1);
  border-color: var(--green-1);
  color: #000;
}

/* Portfolio visual placeholders */
.port-visual {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.pv1::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.pv2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 16px 16px 0 rgba(255, 255, 255, 0.3), -16px -16px 0 rgba(255, 255, 255, 0.2);
}

.pv3::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid rgba(255, 255, 255, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
}

.pv4::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.1);
}

.pv5::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 6px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pv6::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: rgba(255, 255, 255, 0.3);
}

.portfolio-info {
  padding: 20px 24px;
}

.portfolio-info h4 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 6px;
}

.portfolio-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.port-tag {
  font-size: 0.68rem;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid var(--border);
  color: var(--green-2);
}

.portfolio-cta {
  margin-top: 48px;
  text-align: center;
}

/* ============ TESTIMONIALS ============ */
#testimonials {
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0b100b 100%);
}

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

.testimonial-card {
  padding: 36px 28px;
  position: relative;
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 2s;
}

.delay-2 {
  animation-delay: 4s;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.quote-icon {
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--green-1);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-2);
  padding-top: 20px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-1), var(--green-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.author-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stars {
  margin-left: auto;
  color: var(--green-1);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

/* ============ CONTACT ============ */
#contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0b100b 0%, var(--dark-bg) 100%);
}

#contactCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
}

.contact-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-left .section-title {
  font-size: 2.8rem;
  margin: 12px 0 20px;
}

.contact-left>p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.contact-link:hover {
  border-color: var(--green-1);
  color: var(--green-1);
  background: rgba(0, 200, 83, 0.05);
  transform: translateX(6px);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 200, 83, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-1);
  flex-shrink: 0;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 22px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green-1);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group select option {
  background: #1a1a1a;
}

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

.form-success {
  margin-top: 16px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--green-2);
  display: none;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

/* ============ FOOTER ============ */
#footer {
  background: #060606;
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 260px;
}

.footer-links h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

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

.footer-links li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links li a:hover {
  color: var(--green-1);
}

.footer-social h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-social-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 16px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 16px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  transition: all var(--transition);
}

.footer-social-btn:hover {
  border-color: var(--green-1);
  color: var(--green-1);
  background: rgba(0, 200, 83, 0.05);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-2);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 140px 32px 80px;
  }

  .hero-visual {
    justify-content: center;
    margin-top: 48px;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 370px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns,
  .hero-socials {
    justify-content: center;
  }

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

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

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  #navbar {
    padding: 20px 28px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 320px;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 72px 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-icon-row {
    grid-template-columns: 1fr 1fr;
  }

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

#smokeCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  /* Above background but behind content if needed, or higher if preferred */
  filter: blur(25px);
  /* Makes the gradients blend into actual smoke wisps */
  mix-blend-mode: screen;
}

body.light #smokeCanvas {
  mix-blend-mode: multiply;
  filter: blur(35px);
}