:root {
  /* Neon Palette */
  --neon-cyan: #06b6d4;
  --neon-purple: #a855f7;
  --neon-teal: #14b8a6;
  --neon-pink: #ec4899;
  --neon-blue: #3b82f6;

  /* Permanent Dark Theme */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent: var(--neon-cyan);
  --accent-hover: #0891b2;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 0 15px rgba(6, 182, 212, 0.2);
  --shadow-md: 0 0 30px rgba(6, 182, 212, 0.4);
  --nav-bg: rgba(15, 23, 42, 0.8);
  --footer-bg: #020617;
  --input-bg: #1e293b;
  --pattern-opacity: 0.1;
}

/* ==============================================
   Utility Shim (replaces Tailwind CDN)
   ============================================== */
.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
}

.font-mono {
  font-family: ui-monospace, monospace;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mr-2 {
  margin-right: .5rem;
}

.mt-1 {
  margin-top: .25rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.ml-2 {
  margin-left: .5rem;
}

.p-10 {
  padding: 2.5rem;
}

.gap-3 {
  gap: .75rem;
}

.gap-4 {
  gap: 1rem;
}

.space-y-4>*+* {
  margin-top: 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.rounded-\[30px\] {
  border-radius: 30px;
}

.max-w-\[350px\] {
  max-width: 350px;
}

.h-\[400px\] {
  height: 400px;
}

.max-w-2xl {
  max-width: 42rem;
}

.text-sm {
  font-size: .875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wider {
  letter-spacing: .05em;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
}

.font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: 150ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.border-t {
  border-top-width: 1px;
}

.border-slate-800 {
  border-color: #1e293b;
}

.text-slate-300 {
  color: #cbd5e1;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-100 {
  color: #f1f5f9;
}

.bg-slate-900 {
  background-color: #0f172a;
}

.bg-slate-800 {
  background-color: #1e293b;
}

.bg-black\/40 {
  background-color: rgba(0, 0, 0, .4);
}

.text-cyan-400 {
  color: #22d3ee;
}

.text-purple-400 {
  color: #c084fc;
}

.text-teal-400 {
  color: #2dd4bf;
}

.hover\:text-orange-500:hover {
  color: #f97316;
}

.hover\:text-blue-500:hover {
  color: #3b82f6;
}

.hover\:text-yellow-400:hover {
  color: #facc15;
}

.hover\:text-cyan-400:hover {
  color: #22d3ee;
}

.hover\:text-green-500:hover {
  color: #22c55e;
}

.hover\:text-yellow-500:hover {
  color: #eab308;
}

.hover\:text-red-500:hover {
  color: #ef4444;
}

.text-cyan-400\/60 {
  color: rgba(34, 211, 238, .6);
}

.text-purple-400\/60 {
  color: rgba(192, 132, 252, .6);
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Fix for Chrome Autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Background Canvas Containers */
#threejs-canvas-container,
#p5js-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out;
}

#p5js-canvas-container {
  opacity: 0.3;
}

#threejs-canvas-container canvas,
#p5js-canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Promote body compositing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Image Protection */
img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.profile-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
  border-radius: 50%;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* Scroll Reveal Animations */
.section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Neon Glow Animations */
@keyframes neon-pulse {

  0%,
  100% {
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 15px var(--neon-cyan);
  }

  50% {
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
  }
}

@keyframes neon-glow-purple {

  0%,
  100% {
    box-shadow: 0 0 15px var(--neon-purple);
  }

  50% {
    box-shadow: 0 0 30px var(--neon-purple);
  }
}

.neon-text {
  color: var(--neon-cyan);
  animation: neon-pulse 2s infinite;
}

.neon-border {
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.neon-border-purple {
  border: 1px solid var(--neon-purple);
  box-shadow: 0 0 10px var(--neon-purple);
}

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

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  transition: all 0.3s ease;
  will-change: transform;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--neon-cyan);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #020617;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  background: #22d3ee;
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: inset 0 0 5px rgba(6, 182, 212, 0.2);
}

.btn-outline:hover {
  background: var(--neon-cyan);
  color: #020617;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Hero Section with Geometric Pattern */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, var(--accent) 1px, transparent 1px),
    linear-gradient(-45deg, var(--accent) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: var(--pattern-opacity);
  pointer-events: none;
  animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(40px, 40px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text-content {
  flex: 1.3;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.profile-image-container {
  width: 350px;
  height: 350px;
  position: relative;
  border-radius: 50%;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  animation: neon-breathing 4s ease-in-out infinite;
  box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px var(--neon-cyan);
  border: 4px solid var(--neon-cyan);
  transition: transform 0.3s ease;
}

.profile-image-container:hover {
  transform: scale(1.05);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.1);
  display: block;
}

@keyframes neon-breathing {

  0%,
  100% {
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    border-color: rgba(6, 182, 212, 0.4);
    filter: brightness(0.9);
  }

  50% {
    box-shadow: 0 0 40px var(--neon-cyan), inset 0 0 25px var(--neon-cyan);
    border-color: rgba(6, 182, 212, 1);
    filter: brightness(1.2);
  }
}

@media (max-width: 968px) {
  .hero-flex-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text-content {
    max-width: 800px;
    margin: 0 auto;
  }

  .profile-image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-highlight {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 3rem 0;
}

.text-justify {
  text-align: justify;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--neon-cyan);
  display: block;
  margin: 1rem auto 0;
  border-radius: 4px;
  box-shadow: 0 0 15px var(--neon-cyan);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 350px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.image-placeholder:hover {
  transform: scale(1.02);
}

.image-placeholder i {
  font-size: 5rem;
}

.image-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

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

.download-cv {
  margin-top: 1rem;
  display: inline-flex;
}

/* Services Section - first definition removed, see below */

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  contain: layout style;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.service-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  contain: layout style;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.project-img {
  height: 180px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  position: relative;
  /* Ensure overlay is positioned correctly */
  cursor: pointer;
  overflow: hidden;
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

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

.overlay-text {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--neon-cyan);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 0 20px var(--neon-cyan);
  transform: translateY(20px);
  transition: transform 0.4s ease;
  color: #020617;
}

.project-card:hover .overlay-text {
  transform: translateY(0);
}

/* Fullscreen Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(15px);
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--neon-cyan);
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
  object-fit: contain;
}

.image-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--neon-cyan);
  transform: rotate(90deg);
  background: rgba(6, 182, 212, 0.1);
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-features {
  list-style: none;
  margin-top: 1rem;
}

.project-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.project-features li i {
  color: var(--accent);
  font-size: 0.8rem;
}

.projects-footer {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Why Choose Me Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}



.why-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  contain: layout style;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.why-icon i {
  font-size: 2.5rem;
  color: white;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.why-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.why-card .mt-6,
.why-card .mt-4 {
  margin-top: 2rem !important;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Tech Stack Section */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}



.tech-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

.tech-item:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tech-item i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

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

/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--neon-cyan);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

textarea {
  resize: vertical;
}

/* Modern Glassmorphism Notifications */
#formFeedback {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  min-width: 320px;
  max-width: 500px;
  padding: 1rem 2rem;
  border-radius: 16px;
  text-align: center;
  font-weight: 500;
  display: none;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(6, 182, 212, 0.2);
  color: white;
  line-height: 1.6;
  /* transition handled by JS */
}

#formFeedback.success {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(16, 185, 129, 0.2);
}

#formFeedback.error {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(239, 68, 68, 0.2);
}

/* Contact Info Section */

.contact-info {
  text-align: center;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  text-decoration: none;
}

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

/* Footer */
footer {
  position: relative;
  z-index: 10;
  background: var(--footer-bg);
  padding: 2rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links i {
  color: #ff4444;
}

/* Responsive Design */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-image {
    justify-content: center;
  }

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

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

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .hero {
    text-align: center;
    padding: 4rem 0;
  }

  .cta-group {
    justify-content: center;
  }

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

  /* Projects: 3 cols on tablets */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  /* Why-me: keep 3 cols on tablets */
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .project-card {
    max-width: 100%;
  }

  .project-img {
    height: 140px;
  }

  .why-card {
    padding: 1.2rem;
  }

  .why-icon {
    width: 60px;
    height: 60px;
  }

  .why-icon i {
    font-size: 1.8rem;
  }

  .why-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {

  /* Collapse projects and why-me to 1 col on phones */
  .projects-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .tech-item {
    padding: 1rem;
  }

  .tech-item i {
    font-size: 2rem;
  }

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

  .project-img {
    height: 130px;
  }

  .contact-wrapper {
    gap: 1.5rem;
  }

  #formFeedback {
    min-width: unset;
    width: 90%;
    top: 1rem;
    font-size: 0.9rem;
  }
}