/* ============================================
   6AM Technology — Portfolio Styles
   Opayinka Segun
   ============================================ */

:root {
  /* Brand greens from logo */
  --green-light: #76b947;
  --green-bright: #66b032;
  --green-mid: #2d5a27;
  --green-dark: #00421b;
  --green-glow: rgba(118, 185, 71, 0.35);

  /* Neutrals */
  --bg-primary: #050a07;
  --bg-secondary: #0a120d;
  --bg-card: rgba(15, 28, 18, 0.65);
  --bg-card-hover: rgba(20, 38, 24, 0.85);
  --border: rgba(118, 185, 71, 0.12);
  --border-hover: rgba(118, 185, 71, 0.35);

  --text-primary: #f0f4f1;
  --text-secondary: #a8b5ab;
  --text-muted: #6b7a6f;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container: 1200px;
  --header-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* Light theme */
[data-theme="light"] {
  --green-glow: rgba(45, 90, 39, 0.2);
  --bg-primary: #f4f7f5;
  --bg-secondary: #e8efe9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border: rgba(45, 90, 39, 0.15);
  --border-hover: rgba(45, 90, 39, 0.35);
  --text-primary: #0a120d;
  --text-secondary: #3d4f42;
  --text-muted: #6b7a6f;
}

[data-theme="light"] .header.scrolled {
  background: rgba(244, 247, 245, 0.9);
}

[data-theme="light"] .nav__brand strong {
  color: var(--green-mid);
  filter: none;
}

[data-theme="light"] .hero__badge {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .form__group input,
[data-theme="light"] .form__group textarea {
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .nav__menu {
  background: rgba(244, 247, 245, 0.98);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-bright) 50%, var(--green-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-light), var(--green-mid));
  color: #fff;
  box-shadow: 0 4px 24px var(--green-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--green-glow);
}

.btn--outline {
  border-color: var(--border-hover);
  color: var(--green-light);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(118, 185, 71, 0.08);
  border-color: var(--green-light);
}

.btn--full {
  width: 100%;
}

/* Section shared */
.section {
  padding: 6rem 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(5, 10, 7, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1001;
}

.nav__logo img {
  filter: drop-shadow(0 0 8px var(--green-glow));
}

.nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__brand strong {
  font-size: 1.125rem;
  color: var(--green-mid);
  filter: brightness(1.4);
}

.nav__brand small {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-light);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--green-light);
}

.nav__link--cta {
  background: rgba(118, 185, 71, 0.12);
  color: var(--green-light);
  border: 1px solid var(--border-hover);
  margin-left: 0.5rem;
}

.nav__link--cta:hover {
  background: rgba(118, 185, 71, 0.22);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--green-light);
  cursor: pointer;
  transition: var(--transition);
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  background: rgba(118, 185, 71, 0.08);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__moon {
  display: none;
}

[data-theme="light"] .theme-toggle__sun {
  display: none;
}

[data-theme="light"] .theme-toggle__moon {
  display: block;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-light);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 185, 71, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 185, 71, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: var(--green-dark);
  top: -10%;
  right: -5%;
  opacity: 0.6;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: var(--green-mid);
  bottom: 10%;
  left: -10%;
  opacity: 0.3;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: 3rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--green-light);
  margin-bottom: 1.25rem;
  padding: 0.375rem 0.875rem;
  background: rgba(118, 185, 71, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero__status {
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  min-height: 1.6em;
}

.hero__typed {
  color: var(--green-light);
  font-weight: 600;
}

.hero__desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.hero__desc strong {
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero__stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Hero visual */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__frame {
  position: relative;
  width: min(100%, 420px);
}

.hero__frame-ring {
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  opacity: 0.5;
  z-index: 0;
  animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(15deg); }
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-hover);
  background: var(--bg-secondary);
}

.hero__badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(5, 10, 7, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero__badge strong {
  display: block;
  color: var(--text-primary);
}

.hero__badge small {
  color: var(--text-muted);
  font-size: 0.6875rem;
}

.hero__badge--top {
  top: 10%;
  left: -10%;
  animation: float 4s ease-in-out infinite;
}

.hero__badge--bottom {
  bottom: 12%;
  right: -8%;
  animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__badge-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--green-light);
  font-weight: 700;
}

.hero__badge-dot {
  width: 10px;
  height: 10px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--bg-secondary);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about__card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.about__card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.about__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 185, 71, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--green-light);
}

.about__icon svg {
  width: 24px;
  height: 24px;
}

.about__card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about__card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.about__card strong {
  color: var(--green-light);
}

/* ============================================
   SKILLS
   ============================================ */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.skill-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skill-card__icon {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.skill-card__head h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.skill-card__list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.skill-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
}

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.skills__tags span {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: rgba(118, 185, 71, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: var(--transition);
}

.skills__tags span:hover {
  color: var(--green-light);
  border-color: var(--border-hover);
  background: rgba(118, 185, 71, 0.12);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
  background: var(--bg-secondary);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.project-card__visual {
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.project-card__logo {
  max-height: 130px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s var(--ease);
}

.project-card:hover .project-card__logo {
  transform: scale(1.05);
}

.project-card__visual--eatless {
  background: linear-gradient(135deg, #0a1a10 0%, #1a3020 60%, #2d5a27 100%);
}

.project-card__visual--puritan {
  background: linear-gradient(135deg, #1a0a15 0%, #2a1530 60%, #3d2040 100%);
}

.project-card__visual--nanas {
  background: linear-gradient(135deg, #0a1020 0%, #152040 60%, #1a3050 100%);
}

.project-card__visual--snackpass {
  background: linear-gradient(135deg, #1a1508 0%, #2a2510 60%, #3d3520 100%);
}

.project-card__category {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  color: var(--green-light);
  border: 1px solid var(--border);
}

.project-card__body {
  padding: 1.5rem;
}

.project-card__body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card__body p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card__tech span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  background: rgba(118, 185, 71, 0.08);
  border-radius: 4px;
  color: var(--green-light);
}

.project-card__links {
  display: flex;
  gap: 1.25rem;
}

.project-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-light);
  transition: var(--transition);
}

.project-card__link:hover {
  opacity: 0.8;
}

.project-card__link--muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--green-dark));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(118, 185, 71, 0.12);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.service-card > p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.service-card ul li {
  position: relative;
  padding-left: 1.125rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.service-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-size: 0.75rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--bg-secondary);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info .section__tag,
.contact__info .section__title {
  text-align: left;
}

.contact__info > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

a.contact__detail:hover {
  border-color: var(--border-hover);
}

.contact__detail-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 185, 71, 0.1);
  border-radius: var(--radius);
  color: var(--green-light);
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 20px;
  height: 20px;
}

.contact__detail small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.contact__detail strong {
  font-size: 0.9375rem;
}

.contact__social {
  display: flex;
  gap: 0.75rem;
}

.contact__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact__social-link svg {
  width: 20px;
  height: 20px;
}

.contact__social-link:hover {
  color: var(--green-light);
  border-color: var(--border-hover);
  background: rgba(118, 185, 71, 0.08);
}

.contact__detail--whatsapp .contact__detail-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact__social-link--whatsapp:hover {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.1);
}

.contact__form {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(118, 185, 71, 0.12);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: var(--text-muted);
}

.form__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}

.form__note.success {
  color: var(--green-light);
}

.form__note.error {
  color: #e57373;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn__loading[hidden] {
  display: none;
}

.btn__text[hidden] {
  display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.footer__copy strong {
  color: var(--green-light);
}

.footer__top {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__top:hover {
  color: var(--green-light);
  border-color: var(--border-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__visual {
    order: 1;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__badge--top {
    left: 0;
  }

  .hero__badge--bottom {
    right: 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    background: rgba(5, 10, 7, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    transition: right 0.4s var(--ease);
    gap: 0.25rem;
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__link {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .theme-toggle {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    border-radius: var(--radius);
  }

  .hero__stats {
    gap: 1.5rem;
  }

  .skills__grid,
  .projects__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .hero__scroll {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 0;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .hero__frame {
    width: min(100%, 320px);
  }
}
