/* ============================================
   PORTFOLIO — MAIN STYLE
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #FF6B35;
  --primary-dark: #E55A2B;
  --primary-light: #FF8C5A;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --secondary: #FFD166;
  --secondary-dark: #F0C050;
  --accent: #06D6A0;
  --dark: #0A0A0A;
  --dark-mid: #141414;
  --dark-light: #1E1E1E;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --text: #E0E0E0;
  --text-light: #A0AEC0;
  --text-muted: #718096;
  --glow: #FF6B35;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --radius-small: 8px;
  --transition: 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

#hero, #about, #projects, #contact {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--dark);
  background-image:
    linear-gradient(180deg,
      var(--dark) 0%,
      var(--dark-mid) 20%,
      var(--dark-light) 45%,
      var(--dark-mid) 70%,
      var(--dark) 100%
    ),
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(255,255,255,0.025) 49px, rgba(255,255,255,0.025) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(255,255,255,0.025) 49px, rgba(255,255,255,0.025) 50px);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--white);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  margin: 12px auto 0;
  border-radius: 2px;
}

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

.text-gradient-hero {
  background: linear-gradient(135deg, var(--primary), #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 28px;
  color: var(--white);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: #000000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 12px 0;
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-mono);
  transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
  background: linear-gradient(135deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  transition: width var(--transition);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: inherit;
  transition: transform var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background: var(--white);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  background: var(--white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 50%, var(--dark-light) 100%);
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-greeting {
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-name {
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-role {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.75;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

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

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.6) saturate(1.15);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.30) 30%,
    rgba(10, 10, 10, 0.50) 60%,
    rgba(10, 10, 10, 0.75) 100%
  );
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 25%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Ambient Glow Orbs */
.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-ambient-glow.glow-1 {
  width: 650px;
  height: 650px;
  background: var(--primary);
  top: -200px;
  right: -150px;
  opacity: 0.06;
}

.hero-ambient-glow.glow-2 {
  width: 450px;
  height: 450px;
  background: var(--blue);
  bottom: -120px;
  left: -100px;
  opacity: 0.03;
}

/* Keep hero content above all backgrounds */
.hero-content {
  z-index: 2;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-small);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-download {
  background: transparent;
  color: var(--white);
  border-color: rgba(59, 130, 246, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-small {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 100px 0;
  background: transparent;
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, var(--dark-light) 0%, transparent 100%);
  pointer-events: none;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 20px;
}

.about-image {
  flex-shrink: 0;
}

.profile-frame {
  width: 260px;
  height: 260px;
  position: relative;
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark), var(--dark-light));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
  display: block;
}

.profile-placeholder span {
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue);
  font-family: var(--font-mono);
}

.about-text {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.about-text:hover {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.15), var(--shadow-hover);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Ambient Glow Blobs */
.about-ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.about-ambient-glow.glow-orange {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: 5%;
  left: -5%;
  opacity: 0.08;
}

/* Keep content above backgrounds */
.about-content,
.about .section-title,
.about .subsection-title,
.tech-list {
  position: relative;
  z-index: 2;
}

/* ---------- About Card Refinements ---------- */
.about-text {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.06), var(--shadow);
  backdrop-filter: blur(12px);
}

.about-text:hover {
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 0 35px rgba(255, 107, 53, 0.15), var(--shadow-hover);
}

/* Profile frame glow */
.profile-frame::before {
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.12);
}

/* ---------- Tech Stack Refinements ---------- */
.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.12);
}

.subsection-title {
  position: relative;
  z-index: 2;
}

/* ============================================
   TECH STACK — Label Left + Cards Right
   ============================================ */
.tech-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tech-category-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  min-width: 200px;
  flex-shrink: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  transition: all var(--transition);
}

.tech-row:hover .tech-category-label {
  background: rgba(255, 107, 53, 0.05);
  border-color: rgba(255, 107, 53, 0.2);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 10px 14px;
  transition: all var(--transition);
}

.tech-item:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.tech-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: var(--primary);
}

.tech-item span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Projects Ambient Glow ---------- */
.projects-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.projects-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.projects-glow.glow-blue {
  width: 550px;
  height: 550px;
  background: #3B82F6;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  opacity: 0.04;
}

.projects {
  padding: 100px 0;
  background: transparent;
  position: relative;
}

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

.projects-grid .project-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0.6;
  filter: brightness(0.7);
  transform: scale(0.96);
  will-change: transform, opacity, filter;
  display: flex;
  flex-direction: column;
}

.projects-grid:hover .project-card {
  opacity: 0.6;
  filter: brightness(0.7);
  transform: scale(0.96);
}

.projects-grid .project-card:hover {
  opacity: 1;
  filter: brightness(1);
  transform: translateY(-6px) scale(1);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.2), var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.4);
}

.projects-grid .project-card.fade-in {
  transition-delay: 0s;
}

@media (min-width: 1025px) {
  .projects-grid .project-card:last-child:nth-child(3n+1) {
    grid-column: 2 / 3;
  }
}

.project-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  position: relative;
}

.project-expand-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
}

.project-expand-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.project-card:hover .project-expand-icon {
  opacity: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  margin-top: auto;
}

.tech-tag {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue-light);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tech-tag-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--dark-mid);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
}

.project-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-top-bar {
  position: sticky;
  top: 0;
  height: 0;
  overflow: visible;
  z-index: 10;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 1.4rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--blue);
  transform: rotate(90deg);
}

.modal-image {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header {
  padding: 24px 32px 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.modal-body {
  padding: 24px 32px;
}

.modal-section {
  margin-bottom: 24px;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 10px;
}

.modal-section p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  text-align: justify;
}

.modal-section ul {
  margin: 12px 0;
  padding-left: 20px;
}

.modal-section li {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.modal-footer {
  padding: 0 32px 32px;
  display: flex;
  gap: 10px;
}

/* ---------- Contact Ambient Glow ---------- */
.contact-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(35px);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.contact-glow.glow-blue {
  width: 450px;
  height: 450px;
  background: var(--blue);
  top: 10%;
  left: -8%;
  opacity: 0.05;
}

.contact {
  padding: 80px 0;
  background: transparent;
  position: relative;
}

.contact .section-subtitle {
  margin-bottom: 36px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-icon-link {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-icon-link:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

.contact-icon-link svg {
  width: 24px;
  height: 24px;
  fill: var(--text-light);
  transition: fill var(--transition);
}

.contact-icon-link:hover svg {
  fill: var(--primary);
}

.contact-cta {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

.form-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 18px;
  text-align: left;
}

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

.form-row {
  display: flex;
  gap: 16px;
}

.form-row input {
  flex: 1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

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

.btn-submit {
  align-self: flex-start;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-feedback {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
  transition: color var(--transition);
}

.form-feedback.success {
  color: var(--accent);
}

.form-feedback.error {
  color: var(--primary);
}

/* ---------- Contact Divider & Icons Intro ---------- */
.contact-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--blue));
  margin: 40px auto 32px;
  border-radius: 1px;
}

.contact-icons-intro {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.contact-quote {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 40px;
  padding: 20px 32px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.04), rgba(59, 130, 246, 0.04));
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: transparent;
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

/* ============================================
   BACKGROUND DECORATIONS
   ============================================ */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Chart Silhouettes */
.chart-silhouette {
  position: absolute;
  color: var(--blue);
  opacity: 0.03;
}

.chart-bar {
  width: 160px;
  top: 12%;
  right: 5%;
}

.chart-pie {
  width: 130px;
  bottom: 15%;
  left: 4%;
}

.chart-line {
  width: 200px;
  top: 55%;
  right: 8%;
}

/* Floating Geometric Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
}

.bg-shape-1 {
  width: 80px;
  height: 80px;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation: floatBg 18s ease-in-out infinite;
}

.bg-shape-2 {
  width: 60px;
  height: 60px;
  background: var(--blue);
  top: 60%;
  right: 12%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatBg 22s ease-in-out infinite reverse;
}

.bg-shape-3 {
  width: 45px;
  height: 45px;
  background: var(--accent);
  bottom: 25%;
  left: 20%;
  border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
  animation: floatBg 15s ease-in-out infinite 3s;
}

.bg-shape-4 {
  width: 100px;
  height: 100px;
  background: var(--blue-light);
  top: 75%;
  left: 60%;
  opacity: 0.025;
  animation: floatBg 25s ease-in-out infinite 5s;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  .hero-name {
    font-size: 2.8rem;
  }

  .hero-role {
    font-size: 0.9rem;
  }

  .about-content {
    gap: 40px;
  }

  .profile-frame {
    width: 220px;
    height: 220px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-category-label {
    min-width: 160px;
    font-size: 0.75rem;
  }

  .tech-items {
    gap: 8px;
  }

  .tech-item {
    padding: 8px 12px;
  }

  .tech-item span {
    font-size: 0.8rem;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--dark-mid);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .hero-role {
    font-size: 0.85rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about .section-title {
    margin-bottom: 40px;
  }

  .profile-frame {
    width: 200px;
    height: 200px;
  }

  .profile-placeholder span {
    font-size: 3rem;
  }

  .tech-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tech-category-label {
    min-width: auto;
  }

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

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .contact-form {
    gap: 14px;
  }

  .contact-icons {
    gap: 16px;
  }

  .contact-icon-link {
    width: 50px;
    height: 50px;
  }

  .modal-content {
    max-height: 90vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-image {
    border-radius: 0;
  }

  .about,
  .projects {
    padding: 70px 0;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-role {
    font-size: 0.8rem;
  }

  .contact-icons {
    gap: 12px;
  }

  .bg-decorations {
    display: none;
  }

  .hero-ambient-glow {
    filter: blur(50px);
  }

  .hero-ambient-glow.glow-1 {
    width: 350px;
    height: 350px;
    opacity: 0.08;
  }

  .hero-ambient-glow.glow-2 {
    width: 250px;
    height: 250px;
    opacity: 0.04;
  }

  .about-ambient-glow {
    filter: blur(50px);
  }

  .about-ambient-glow.glow-orange {
    width: 300px;
    height: 300px;
    opacity: 0.05;
  }

  .projects-glow {
    filter: blur(50px);
  }

  .projects-glow.glow-blue {
    width: 300px;
    height: 300px;
    opacity: 0.04;
  }

  .contact-glow {
    filter: blur(50px);
  }

  .contact-glow.glow-blue {
    width: 280px;
    height: 280px;
    opacity: 0.03;
  }
}

