/* assets/css/style.css */

:root {
  --primary-color: #121317;
  --accent-color: #b7bfd9;
  --border-color: #e5e7eb;
  --bg-color: #ffffff;
  --font-heading: "Sora", sans-serif;
  --font-body: "DM Sans", sans-serif;

  /* Font Weight Variables */
  --h1-fw: 700;
  --h2-fw: 600;
  --h3-fw: 600;
  --h4-fw: 500;

  /* Typography Scale */
  --h1: clamp(40px, 8vw, 80px);
  --h1-lh: 1.05;
  --h2: clamp(32px, 5vw, 48px);
  --h2-lh: 1.15;
  --h3: clamp(24px, 4vw, 32px);
  --h3-lh: 1.2;
  --h4: clamp(20px, 3vw, 24px);
  --h4-lh: 1.3;
  --body: 15px;
  --body-lh: 1.6;
  --body-ls: 0.01em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none !important;
}
body::-webkit-scrollbar {
  width: 0;
  display: none;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-weight: 500;
  letter-spacing: -0.01em;
}

body,
p,
span,
a {
  font-weight: 400;
}

/* Buttons */
.btn,
.btn-primary,
.btn-secondary,
.btn--ghost,
button,
input[type="submit"] {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  background-color: rgba(183, 191, 217, 0.1);
}

.btn-link {
  text-decoration: underline;
  color: var(--primary-color);
  transition: color 0.2s ease;
  cursor: pointer;
}

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

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 15px;
  min-width: 175px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  box-sizing: border-box;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 1);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    border-bottom 0.3s ease;
  background-color: transparent;
}

nav a,
.nav-link {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.nav__hire-btn,
.nav-brand {
  font-family: var(--font-heading);
  font-weight: 600;
}

.nav__hire-btn {
  background: var(--primary-color); /* #121317 */
  color: #ffffff; /* #ffffff */
  border: none;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 15px;
  cursor: pointer;
  min-width: 100px;
  min-height: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.nav__hire-btn:hover {
  background: #2d2f36;
}

/* Nav base — always white text (for hero) */
nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}
nav .nav-brand {
  color: #ffffff;
}

/* Scrolled state — dark text */
nav.nav--scrolled .nav-link {
  color: #121317;
}
nav.nav--scrolled .nav-brand {
  color: #121317;
}
nav.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid #e5e7eb;
}
nav #mobile-menu-btn {
  color: #ffffff;
  transition: color 0.3s ease;
}
nav.nav--scrolled #mobile-menu-btn {
  color: #121317;
}

nav .nav-link:hover {
  opacity: 0.7;
}
nav.nav--scrolled .nav-link:hover {
  color: #b7bfd9;
  opacity: 1;
}

/* ── UPGRADE 1: Hero dark sky ── */
.hero--dark {
  position: relative;
  background: linear-gradient(
    160deg,
    #07090f 0%,
    #0f1629 40%,
    #161d35 70%,
    #0c1020 100%
  );
  overflow: hidden;
}

#hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Floating Hero Orbs */
.hero-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  opacity: 0.06;
  filter: blur(80px);
}
.hero-orb--1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  animation: hero-drift-1 20s ease-in-out infinite alternate;
}
.hero-orb--2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -50px;
  opacity: 0.04;
  animation: hero-drift-2 25s ease-in-out infinite alternate;
}
.hero-orb--3 {
  width: 300px;
  height: 300px;
  top: 30%;
  left: 40%;
  opacity: 0.03;
  animation: hero-drift-3 18s ease-in-out infinite alternate;
}

@keyframes hero-drift-1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.1);
  }
}
@keyframes hero-drift-2 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-50px, -30px) scale(1.05);
  }
}
@keyframes hero-drift-3 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-30px, 20px);
  }
}

/* ── Hero Background Upgrade ────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Perspective grid lines — circuit board feel */
.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(183, 191, 217, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 191, 217, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(20deg) scale(1.3);
  transform-origin: center top;
  animation: grid-pulse 6s ease-in-out infinite alternate;
}
@keyframes grid-pulse {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 1;
  }
}

/* Scanline sweep — like a radar */
.hero-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(183, 191, 217, 0.04) 48%,
    rgba(183, 191, 217, 0.1) 50%,
    rgba(183, 191, 217, 0.04) 52%,
    transparent 100%
  );
  animation: scanline 8s linear infinite;
}
@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(200%);
  }
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
  background: #b7bfd9;
}
.hero-glow--left {
  top: -150px;
  left: -150px;
  animation: glow-drift-l 16s ease-in-out infinite alternate;
}
.hero-glow--right {
  bottom: -150px;
  right: -100px;
  animation: glow-drift-r 20s ease-in-out infinite alternate;
}
@keyframes glow-drift-l {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}
@keyframes glow-drift-r {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-50px, -30px) scale(1.1);
  }
}

/* Canvas sits above grid, below content */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

/* Make sure hero content sits above all bg layers */
.hero__content,
.hero-content,
.hero-layout,
.hero > *:not(.hero-bg) {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.hero-left {
  flex: 1;
  max-width: 600px;
}

.hero-right {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-3d-canvas {
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 600px;
}

@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .hero-left {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .hero-right {
    display: none;
  }
}

.hero--dark .hero-content,
.hero--dark .hero-layout {
  position: relative;
  z-index: 2;
}

.hero--dark h1 {
  color: #ffffff;
}
.hero--dark .hero-subtitle {
  color: rgba(183, 191, 217, 0.9);
}
.hero--dark .hero-tagline {
  color: rgba(255, 255, 255, 0.6);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg {
  width: 100%;
  height: 56px;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  z-index: 5;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

.typewriter-cursor {
  animation: blink 0.8s step-end infinite;
  color: #b7bfd9;
  font-weight: 300;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.social-sidebar {
  position: fixed;
  left: 24px;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.social-sidebar__link {
  color: rgba(255, 255, 255, 0.55);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
}
.social-sidebar__link:hover {
  color: #b7bfd9;
  transform: translateY(-2px);
}
.social-sidebar__line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}
/* Switch to dark color when past hero */
.social-sidebar.dark-mode .social-sidebar__link {
  color: rgba(18, 19, 23, 0.4);
}
.social-sidebar.dark-mode .social-sidebar__link:hover {
  color: #121317;
}
.social-sidebar.dark-mode .social-sidebar__line {
  background: linear-gradient(to bottom, rgba(18, 19, 23, 0.2), transparent);
}
@media (max-width: 1024px) {
  .social-sidebar {
    display: none;
  }
}

#back-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: #121317;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 100;
}
#back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-top:hover {
  background: #b7bfd9;
  color: #121317;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

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

/* ── NEW: Slide Animations ── */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

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

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }
  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0);
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* ── UPGRADE 3: AI Tools Marquee Rebuild ── */
.ai-marquee-outer {
  position: relative;
  overflow: hidden;
}

.ai-marquee-viewport {
  overflow: hidden;
  cursor: grab;
}
.ai-marquee-viewport:active {
  cursor: grabbing;
}

.ai-marquee-track {
  display: flex;
  width: max-content;
  animation: ai-scroll 28s linear infinite;
  will-change: transform;
}
.ai-marquee-track.paused,
.ai-marquee-outer:hover .ai-marquee-track {
  animation-play-state: paused;
}

@keyframes ai-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

.ai-marquee-viewport--reverse {
  margin-top: 12px;
}

@keyframes ai-scroll-reverse {
  0% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(0);
  }
}
.ai-marquee-track--reverse {
  animation-name: ai-scroll-reverse;
  animation-duration: 24s;
}
.ai-marquee-outer:hover .ai-marquee-track--reverse {
  animation-play-state: paused;
}

.ai-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 16px;
  padding: 8px 8px;
}

/* Icon card */
.ai-tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 96px;
  height: 96px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px;
  flex-shrink: 0;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  cursor: default;
}
.ai-tool-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.ai-tool-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f9fafb;
}

.ai-tool-name {
  font-size: 11px;
  font-weight: 450;
  color: var(--primary-color);
  letter-spacing: 0.2px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* Fade masks */
.ai-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ai-marquee-fade--left {
  left: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 40px,
    transparent 100%
  );
}
.ai-marquee-fade--right {
  right: 0;
  background: linear-gradient(
    to left,
    #ffffff 0%,
    #ffffff 40px,
    transparent 100%
  );
}

/* ── UPGRADE 4D: Skill Pill Shimmer ── */
.skill-group {
  margin-bottom: 28px;
}

.skill-group__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #b7bfd9;
  margin-bottom: 12px;
}

.skill-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill,
.filter-btn,
.contact-card__label,
.contact-label,
.skill-group__label {
  font-family: var(--font-body);
  font-weight: 500;
}

/* ── HERO SPECIFIC ──────────────────────────────────── */
.hero-content h1,
#home h1 {
  font-family: var(--font-heading);
  font-weight: 700 !important;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-subtitle,
.typewriter-text {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* Section Title Consistency */
.section-title,
.about-title,
.skills-title,
.contact-title,
.projects-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.skill-pill:hover {
  border-color: #b7bfd9;
  background: #f8f9fc;
}

.skill-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0s;
}

.skill-pill:hover::before {
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.skill-pill:hover {
  background-color: var(--accent-color);
}

.skill-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
}

/* Card Styles */
.card-border {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.card-border:hover {
  border-color: var(--accent-color);
}

/* ── UPGRADE 4B: Premium Project Cards ── */
.projects-grid {
  align-items: stretch;
}

.project-card-wrap {
  height: 100%;
}

.project-card {
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

/* Image Box (16:9) */
.project-image-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #0d1117;
}

.project-image-placeholder {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

.project-card:hover .project-image-placeholder,
.project-card:hover .project-img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Overlay & View Button */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 19, 23, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

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

.project-view-btn {
  background: #ffffff;
  color: #121317;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.2s ease;
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
}

.project-view-btn:hover {
  background: var(--accent-color);
}

/* Badge */
.project-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #121317;
  z-index: 3;
}

/* Info Section */
.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  margin-bottom: 20px;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  background: #f9fafb;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.3s ease;
}

.project-card:hover .tech-pill {
  border-color: var(--accent-color);
}

.featured-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.project-link-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #121317;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.link-arrow {
  transition: transform 0.3s ease;
}

.project-link-more:hover .link-arrow {
  transform: translateX(5px);
}

/* Filter Buttons */
.project-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--accent-color);
  color: #121317;
}

.filter-btn.active {
  background: #121317;
  color: #ffffff;
  border-color: #121317;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-card-wrap.hidden {
  display: none;
}

/* Form Styles */
input,
textarea,
.form-input {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 400;
  width: 100%;
  outline: none;
  transition: outline 0.2s ease;
}

input:focus,
textarea:focus,
.form-input:focus {
  outline: 2px solid var(--accent-color);
}

/* ── CONTACT SECTION ────────────────────────────────── */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0; /* replaced var(--space-xl) with a typical value if variable is missing, or check :root */
  background: #ffffff;
}

/* Animated background */
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.c-orb {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(70px);
  opacity: 0.12;
}
.c-orb--1 {
  width: 480px;
  height: 480px;
  top: -160px;
  left: -120px;
  animation: orb1 14s ease-in-out infinite alternate;
}
.c-orb--2 {
  width: 320px;
  height: 320px;
  bottom: -100px;
  right: -80px;
  animation: orb2 18s ease-in-out infinite alternate;
}
.c-orb--3 {
  width: 200px;
  height: 200px;
  top: 45%;
  left: 48%;
  opacity: 0.07;
  animation: orb3 10s ease-in-out infinite alternate;
}
@keyframes orb1 {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(50px, 35px) scale(1.1);
  }
}
@keyframes orb2 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-35px, -25px) scale(1.06);
  }
}
@keyframes orb3 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-18px, 14px);
  }
}
.c-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--accent-color) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.15;
}

/* Two-column wrapper */
.contact-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* LEFT — info */
.contact-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}
.contact-title {
  font-size: 32px; /* fallback for var(--h2) */
  font-weight: 450;
  line-height: 1.2;
  color: var(--primary-color);
  margin: 0 0 14px;
}
.contact-sub {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 32px;
}

/* Info cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}
.contact-card:hover {
  border-color: var(--accent-color);
}
.contact-card svg {
  color: #9ca3af;
  flex-shrink: 0;
}
.contact-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card__label {
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #9ca3af;
}
.contact-card__value {
  font-size: 14px;
  color: var(--primary-color);
}

/* Social icons row */
.contact-socials {
  display: flex;
  gap: 8px;
}
.contact-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--primary-color);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.contact-social:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* RIGHT — form card */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 450;
  color: var(--primary-color);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}
.form-input {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on input focus */
  font-family: var(--font-main);
  color: var(--primary-color);
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    outline 0.2s ease;
  box-sizing: border-box;
}
.form-input:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 0;
  border-color: var(--accent-color);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px; /* Accessible touch target size */
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
}
.form-feedback {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}
.form-feedback.success {
  color: #16a34a;
}
.form-feedback.error {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 24px 18px;
  }
  .contact-wrap {
    padding: 0 16px;
  }
}

/* Animate on scroll */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(
    180deg,
    #07090f 0%,
    #0f1629 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 0;
  margin-top: 0;
  position: relative;
  z-index: 110;
  overflow: hidden;
  color: #ffffff;
}

/* 3D Background Container */
.footer-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.footer-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Footer Content */
.footer-perspective {
  position: relative;
  z-index: 1;
}

.footer-content-3d {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.footer-content-3d.in-view {
  transform: translateY(0);
  opacity: 1;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 450;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
  display: inline-block;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 220px;
}

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

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.footer-social:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Links column */
.footer-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(183, 191, 217, 0.8);
  margin: 0 0 16px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
  display: block;
}
.footer-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

/* Contact column */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-info {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  line-height: 1.4;
}
.footer-info iconify-icon {
  flex-shrink: 0;
  color: var(--accent-color);
}

.footer-hire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  text-decoration: none;
  width: fit-content;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.footer-hire-btn:hover {
  background: #ffffff;
  transform: scale(1.05);
}

/* Bottom bar */
.footer-bottom {
  max-width: 100%;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }
  .footer-brand {
    grid-column: unset;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 16px 20px;
  }
}

/* Footer elements reveal (staggered via JS delay or CSS) */
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ── COOKIE BANNER ────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-icon {
  width: 40px;
  height: 40px;
  background: rgba(183, 191, 217, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

.cookie-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn--accept {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
}

.cookie-btn--accept:hover {
  background: #2d2f36;
}

.cookie-btn--decline {
  background: transparent;
  color: #6b7280;
  border: 1px solid var(--border-color);
}

.cookie-btn--decline:hover {
  border-color: var(--accent-color);
  color: var(--primary-color);
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 20px;
  }
}
