@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens & Variables --- */
:root {
  --bg-dark: #0B1120;
  --bg-darker: #070a14;
  --primary: #3B82F6;
  --primary-rgb: 59, 130, 246;
  --secondary: #8B5CF6;
  --secondary-rgb: 139, 92, 246;
  --accent: #06B6D4;
  --accent-rgb: 6, 182, 212;
  --success: #22C55E;
  --text-white: #FFFFFF;
  --text-gray: #94A3B8;
  --text-dark: #0F172A;
  
  /* Glassmorphism settings */
  --glass-bg: rgba(15, 23, 42, 0.45);
  --glass-bg-hover: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  --glow-shadow-hover: 0 0 35px rgba(139, 92, 246, 0.3);

  /* Color interpolation fallbacks (pre-2024 browsers) */
  --in-oklab: ;
  --in-oklch: ;
}

@supports (linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-gray);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 5px;
  border: 2px solid var(--bg-darker);
  transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* --- Global Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  z-index: 10;
  position: relative;
}

.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg var(--in-oklch), var(--text-white) 30%, var(--text-gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Ambient Floating Blobs --- */
.ambient-blobs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  mix-blend-mode: screen;
  animation: float-blob 20s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--primary);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: 10%;
  right: -5%;
  animation-duration: 30s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 20s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, -40px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 50px) scale(0.95);
  }
}

/* --- Ambient Interactive Elements --- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1;
}

/* --- Glassmorphism Component Style --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Button Styling --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.btn-primary {
  background: linear-gradient(135deg var(--in-oklch), var(--primary), var(--secondary));
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

/* --- Navigation Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 1.5rem 0;
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg var(--in-oklch), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-gray);
  position: relative;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

.nav-links a.active {
  color: var(--text-white);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-white);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  position: relative;
  z-index: 10;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  animation: glow-pulse 2s infinite ease-in-out;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  }
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg var(--in-oklch), var(--text-white) 40%, var(--text-gray) 70%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg var(--in-oklch), var(--primary), var(--secondary) 50%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
}

/* 3D Floating Hero Graphics */
.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.floating-card {
  position: absolute;
  padding: 1.2rem;
  width: 240px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float-slow 6s infinite ease-in-out;
  cursor: pointer;
}

.floating-card-1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  border-left: 3px solid var(--primary);
}

.floating-card-2 {
  bottom: 15%;
  right: 5%;
  animation-delay: 2s;
  border-left: 3px solid var(--secondary);
}

.floating-card-3 {
  top: 45%;
  right: 15%;
  width: 180px;
  animation-delay: 4s;
  border-left: 3px solid var(--accent);
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-stat {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.2rem;
}

.card-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.card-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.floating-card-1 .card-bar-fill {
  width: 88%;
  background: var(--primary);
}

.floating-card-2 .card-bar-fill {
  width: 95%;
  background: var(--secondary);
}

.circle-chart {
  width: 48px;
  height: 48px;
}

/* --- About Me Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 5rem;
  align-items: flex-start;
}

.about-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  width: 100%;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg var(--in-oklch), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.about-photo-placeholder::after {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 12px;
  pointer-events: none;
}

.about-bio {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.skills-container {
  margin-bottom: 3rem;
}

.skills-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.skill-item {
  margin-bottom: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-name {
  color: var(--text-white);
}

.skill-percent {
  color: var(--accent);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.skill-progress {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Experience Cards */
.experience-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.experience-card {
  padding: 1.8rem;
  display: flex;
  gap: 1.5rem;
}

.exp-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--secondary);
  font-size: 1rem;
  min-width: 110px;
}

.exp-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--text-white);
}

.exp-company {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

.exp-desc {
  font-size: 0.95rem;
}

/* --- Tech Stack Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.5rem;
}

.tech-card {
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  transform-style: preserve-3d;
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.tech-card:hover .tech-icon {
  transform: scale(1.1) translateZ(10px);
}

.tech-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
  transition: color 0.3s;
}

.tech-card:hover .tech-name {
  color: var(--text-white);
}

/* --- Featured Projects Preview --- */
.projects-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.project-image-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--glass-border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.95), rgba(11, 17, 32, 0.2));
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem;
  transition: opacity 0.4s ease;
}

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

.project-info {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-gray);
  font-weight: 500;
}

.project-name {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.project-card:hover .project-name {
  color: var(--primary);
}

.project-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-features {
  list-style: none;
  margin-bottom: 2rem;
}

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

.project-features li::before {
  content: "✦";
  color: var(--accent);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

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

.service-card {
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg var(--in-oklch), rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg var(--in-oklch), var(--primary), var(--secondary));
  color: var(--text-white);
}

.service-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Testimonials Section --- */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  padding: 3rem;
  text-align: center;
  position: relative;
}

.testimonial-quote {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-white);
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.author-role {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- GitHub Stats Section --- */
.github-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.github-chart-panel {
  padding: 2.2rem;
}

.github-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.github-graph {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
}

.github-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.github-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  transition: transform 0.2s, background 0.3s;
}

.github-cell:hover {
  transform: scale(1.3);
  z-index: 5;
}

.level-0 { background: rgba(255, 255, 255, 0.03); }
.level-1 { background: rgba(59, 130, 246, 0.15); }
.level-2 { background: rgba(59, 130, 246, 0.35); }
.level-3 { background: rgba(139, 92, 246, 0.6); }
.level-4 { background: var(--secondary); }

.github-languages {
  padding: 2.2rem;
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lang-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.lang-bar {
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}

.lang-fill {
  height: 100%;
  border-radius: 10px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
}

.contact-details h3 {
  font-size: 0.95rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-details p, .contact-details a {
  font-size: 1.1rem;
  color: var(--text-white);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(59,130,246,0.3);
}

.contact-form-panel {
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

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

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.9rem;
}

.back-to-top {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59,130,246,0.4);
}

/* --- Projects.html Layout --- */
.projects-header {
  padding: 10rem 0 4rem;
  text-align: center;
}

.filter-panel {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  z-index: 10;
  position: relative;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-gray);
  transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg var(--in-oklch), var(--primary), var(--secondary));
  color: var(--text-white);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-bottom: 6rem;
}

.projects-masonry .project-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1);
}

.projects-masonry .project-card.hidden {
  display: none;
}

/* --- Scroll-Driven & Entrance Animations --- */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll Entry Animation triggers using native Scroll-Driven Animations */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in {
      from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .scroll-reveal {
      animation: reveal-in auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
  }

  /* Fade-in for initial load */
  .fade-in {
    opacity: 0;
    animation: fade-in-anim 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slide-up-anim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes fade-in-anim {
    to { opacity: 1; }
  }

  @keyframes slide-up-anim {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .delay-1 { animation-delay: 0.15s; }
  .delay-2 { animation-delay: 0.3s; }
  .delay-3 { animation-delay: 0.45s; }
}

/* --- Mobile Menu Styles --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(7, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 8rem 2.5rem;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu .nav-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

/* --- Responsive Adaptations (Media Queries) --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-image-container {
    max-width: 450px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links:not(.mobile-menu .nav-links) {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    height: 350px;
    margin-top: 2rem;
  }
  .floating-card-1 { left: 0; }
  .floating-card-2 { right: 0; }
  .floating-card-3 { display: none; }
  .section-title {
    font-size: 2.1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .projects-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .projects-masonry {
    grid-template-columns: 1fr;
  }
  .github-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form-panel {
    padding: 2rem 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .hero-visual {
    height: 300px;
  }
  .floating-card {
    width: 180px;
    padding: 0.8rem;
  }
  .floating-card-1 { top: 5%; }
  .floating-card-2 { bottom: 5%; }
  .card-stat { font-size: 1.1rem; }
  .testimonial-card {
    padding: 1.5rem;
  }
  .testimonial-quote {
    font-size: 1.1rem;
  }
}
