@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap");
.social-media {
  margin-top: 2rem;
  position: relative;
  z-index: 50; 
  margin-bottom: 2rem; 
}

* {
.home-stats {
  position: absolute;
  bottom: 10rem; 
  left: 9%;
  right: 9%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(10, 22, 18, 0.6);
  border-radius: 2rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
  backdrop-filter: blur(10px);
  z-index: 10;
  
  transform: none; 
  margin-top: 0;
}

  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Nunito", sans-serif;
}

:root {
  
  --bg-color: #0A1612;
  --snd-bg-color: rgba(20, 43, 36, 0.7); 
  --primary-color: #4CAF50;
  --secondary-color: #4DD0E1;
  --text-color: #A5D6A7;
  --text-color-dark: #75928C;
  --card-bg: rgba(20, 43, 36, 0.65); 
  --card-border: rgba(76, 175, 80, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --glow-color: rgba(76, 175, 80, 0.5);
  --glow-color-secondary: rgba(77, 208, 225, 0.5);

  
  --lm-bg-color: #f6f8f5;
  --lm-snd-bg-color: #ffffff;
  --lm-text-color: #212121;
  --lm-text-color-dark: #666;
  --lm-card-bg: rgba(255, 255, 255, 0.85);
  --lm-card-border: rgba(0, 0, 0, 0.08);
  --lm-shadow-dark: rgba(0, 0, 0, 0.12);
  --lm-shadow-light: rgba(255, 255, 255, 0.9);
  --lm-glow-color: rgba(0, 150, 136, 0.3); 
}

body.light-mode {
  --bg-color: var(--lm-bg-color);
  --snd-bg-color: var(--lm-snd-bg-color);
  --primary-color: #00897B; 
  --secondary-color: #03A9F4; 
  --text-color: var(--lm-text-color);
  --text-color-dark: var(--lm-text-color-dark);
  --card-bg: var(--lm-card-bg);
  --card-border: var(--lm-card-border);
  --shadow-color: var(--lm-shadow-dark);
  --glow-color: var(--lm-glow-color);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 2.5rem; /* Increased Curve */
  box-shadow: 0 8px 28px 0 var(--shadow-color);
  transition: 0.3s ease;
}
.glass-card:hover {
  box-shadow: 0 0 30px var(--glow-color);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}



.inset-panel {
  background: var(--card-bg); 
  border-radius: 2rem; 
  box-shadow: inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}
body.light-mode .inset-panel {
  box-shadow: inset 5px 5px 10px var(--lm-shadow-dark),
    inset -5px -5px 10px var(--lm-shadow-light);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: 
    radial-gradient(circle at 10% 20%, rgba(76, 175, 80, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(77, 208, 225, 0.12) 0%, transparent 40%),
    var(--bg-color);
  background-attachment: fixed; 
  
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 22, 18, 0.8);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 4rem;
  position: relative;
  z-index: 2;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 5rem;
  font-weight: 700;
  letter-spacing: -1px;
}

.heading span {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 3rem;
  background: var(--primary-color);
  border-radius: 50px;
  box-shadow: 0 4px 15px var(--glow-color);
  font-size: 1.6rem;
  color: #ffffff;
  letter-spacing: 0.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
  transform: translateY(-3px);
}

.btn.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}
.btn.btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--glow-color);
}

.filter-btn {
  padding: 0.8rem 2.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-color-dark);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.3); 
}
.filter-btn:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--glow-color);
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--text-color);
  border-bottom-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  margin: 2rem auto;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-text {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-color);
}
.preloader-dot {
  color: var(--primary-color);
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}


.aurora-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  min-width: 400px;
  min-height: 400px;
  border-radius: 50%;
  opacity: 0.4; 
  filter: blur(80px);
  will-change: transform, opacity;
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.aurora-blob:nth-child(1) {
  background: radial-gradient(circle, var(--primary-color), transparent 60%);
  animation: blob-move-1 20s infinite alternate;
}
.aurora-blob:nth-child(2) {
  background: radial-gradient(circle, var(--secondary-color), transparent 60%);
  animation: blob-move-2 25s infinite alternate-reverse;
  animation-delay: -5s;
}
.aurora-blob:nth-child(3) {
  background: radial-gradient(circle, #5865f2, transparent 60%);
  animation: blob-move-3 30s infinite alternate;
  animation-delay: -10s;
}

@keyframes blob-move-1 {
  from {
    transform: translate(-10vw, -10vh) scale(1);
  }
  to {
    transform: translate(30vw, 40vh) scale(1.2);
  }
}
@keyframes blob-move-2 {
  from {
    transform: translate(50vw, 10vh) scale(0.9);
  }
  to {
    transform: translate(10vw, -20vh) scale(1.1);
  }
}
@keyframes blob-move-3 {
  from {
    transform: translate(20vw, 70vh) scale(1.1);
  }
  to {
    transform: translate(60vw, 10vh) scale(1);
  }
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease,
    height 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  opacity: 0.5;
}

.cursor-hidden {
  opacity: 0;
}
.cursor-interact {
  width: 60px;
  height: 60px;
  opacity: 0.3;
}
.cursor-dot-interact {
  opacity: 0;
}

[data-magnetic] {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@media (max-width: 768px), (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: 101;
  transition: width 0.1s linear;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.sticky {
  background: rgba(10, 22, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px var(--shadow-color);
  border-bottom: 1px solid var(--card-border);
  padding: 1.4rem 9%;
}
body.light-mode .header.sticky {
  background: rgba(236, 240, 243, 0.9);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}
.logo .logo-dot {
  color: var(--primary-color);
}
.logo:hover {
  color: var(--primary-color);
}

.navbar {
  display: flex;
  align-items: center;
}
.navbar a {
  font-size: 1.6rem;
  color: var(--text-color-dark);
  margin-left: 3rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}
.navbar a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.navbar a:hover,
.navbar a.active {
  color: var(--primary-color);
}
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: 6rem; 
}

.dark-mode-toggle-btn,
.menu-icon-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--text-color);
  font-size: 2.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle-btn:hover,
.menu-icon-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

.menu-icon-btn {
  font-size: 3.2rem;
  display: none;
}

#darkMode-icon.glow {
  animation: glowEffect 0.6s ease-out;
}
@keyframes glowEffect {
  0% {
    text-shadow: 0 0 8px var(--glow-color), 0 0 15px var(--glow-color);
    transform: scale(1.2);
  }
  100% {
    text-shadow: none;
    transform: scale(1);
  }
}

.home {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  gap: 5rem;
  padding: 20rem 9% 12rem; 
  min-height: calc(100vh - 6rem);
  
  background: transparent;
  
  position: relative;
  z-index: 10;
  
  max-width: 1400px;
  margin: 0 auto; 
}

.home-content {
  flex: 1;
  max-width: 650px;
  position: relative;
  z-index: 20; 
}

.eyebrow {
  font-size: 1.6rem; /* Slightly larger */
  text-transform: uppercase;
  letter-spacing: 0.35rem; /* Increased letter spacing */
  color: var(--secondary-color);
  margin-bottom: 1.5rem; /* More space below eyebrow */
  font-weight: 600;
}

.home-content h3 {
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--text-color-dark);
  line-height: 1.4; /* Better line spacing */
}
.home-content h3:nth-of-type(2) {
  margin-bottom: 2.5rem; /* More space below the second h3 */
}

.home-title {
  font-size: 6rem; /* Slightly larger title */
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color);
  background: linear-gradient(
    90deg,
    var(--text-color) 70%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 5s ease-in-out infinite;
  margin-bottom: 1rem; /* Added margin below title */
}

@keyframes gradient-flow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.home-content p {
  font-size: 1.8rem; /* Slightly larger readable text */
  line-height: 1.9; /* INCREASED LINE SPACING */
  color: var(--text-color-dark);
  margin-top: 2rem;
  margin-bottom: 3rem; /* Space before buttons */
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem; /* More space between buttons */
  margin: 3rem 0 2rem;
}

/* FIXED: SOCIAL MEDIA POSITION & VISIBILITY */
.social-media {
  margin-top: 3rem; /* Space above social icons */
  position: relative;
  z-index: 50; /* Top most priority */
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem; /* Slightly larger touch targets */
  height: 5rem;
  background: rgba(255, 255, 255, 0.03); /* Subtle background */
  border: 1px solid var(--card-border); /* Thinner border */
  border-radius: 50%; /* RESTORED CIRCLE */
  font-size: 2.4rem;
  color: var(--text-color-dark);
  margin: 0 1.5rem 0 0; /* Adjusted margins */
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 51;
}

.social-media a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 2.5rem var(--glow-color);
  transform: translateY(-5px) rotate(10deg); /* Added subtle rotation on hover */
}

.home-img-3d-wrapper {
  flex: 1;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  display: flex;
  justify-content: flex-end; /* Align image to right on desktop */
  z-index: 5;
}

.home-img {
  position: relative;
  transform: translateZ(20px);
}
.home-img img {
  width: 32vw; /* Larger image for desktop impact */
  min-width: 300px;
  max-width: 450px;
  animation: floatImage 5s ease-in-out infinite; /* Slower, smoother float */
  border-radius: 50%; /* RESTORED CIRCLE */
  border: 4px solid rgba(76, 175, 80, 0.5); /* Semi-transparent border */
  box-shadow: 0 0 60px var(--glow-color); /* Stronger glow */
  position: relative;
  z-index: 1;
}

/* Enhanced background glow behind image */
.home-img::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%; /* RESTORED CIRCLE */
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  top: -5%;
  left: -5%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.2; }
  100% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2rem);
  }
  100% {
    transform: translateY(0);
  }
}

/* FIXED: HOME STATS "NICHE KARNA HAI" */
.home-stats {
  position: absolute;
  /* Use negative value to push it below the fold or further down */
  bottom: 8rem; 
  left: 9%;
  right: 9%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem; /* Reverted padding to 2rem as requested */
  background: rgba(10, 22, 18, 0.6); /* Slightly darker background for readability */
  border-radius: 2rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
  backdrop-filter: blur(10px);
  z-index: 10; /* Lower than content */
  margin-top: 10rem; /* Increased margin top to push it down */
  transform: translateY(100%); /* Push completely below the home section content */
}

/* Reverted text styles for stat-box */
.stat-box {
  padding: 2rem; /* Reverted to 2rem */
  text-align: center;
  border-radius: 1.5rem;
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.03);
}

.stat-box h3 {
  font-size: 3.4rem; /* Reverted to 3.4rem */
  font-weight: 700; /* Reverted weight */
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-box p {
  font-size: 1.5rem;
  color: var(--text-color-dark);
  line-height: 1.4;
  margin: 0; /* Reset margin for cleaner look */
}

.portfolio-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.portfolio-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  transition: 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.dark-mode-toggle-btn,
.menu-icon-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--text-color);
  font-size: 2.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dark-mode-toggle-btn:hover,
.menu-icon-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1) rotate(5deg);
}

.menu-icon-btn {
  font-size: 3.2rem;
  display: none;
}

#darkMode-icon.glow {
  animation: glowEffect 0.6s ease-out;
}
@keyframes glowEffect {
  0% {
    text-shadow: 0 0 8px var(--glow-color), 0 0 15px var(--glow-color);
    transform: scale(1.2);
  }
  100% {
    text-shadow: none;
    transform: scale(1);
  }
}

.home {
  display: flex;
  justify-content: space-between; /*
  align-items: center;
  gap: 5rem;
  padding: 20rem 9% 12rem; 
  min-height: calc(100vh - 6rem);
  
  background: transparent;
  
  position: relative;
  z-index: 10;
  
  max-width: 1400px;
  margin: 0 auto; 
}

.home-content {
  flex: 1;
  max-width: 650px; 
}

.eyebrow {
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.35rem; 
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.home-content h3 {
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--text-color-dark);
  line-height: 1.4; /* Better line spacing */
}
.home-content h3:nth-of-type(2) {
  margin-bottom: 2.5rem; 
}

.home-title {
  font-size: 6rem; 
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-color);
  background: linear-gradient(
    90deg,
    var(--text-color) 70%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 5s ease-in-out infinite;
  margin-bottom: 1rem; 
}

@keyframes gradient-flow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.home-content p {
  font-size: 1.8rem; 
  line-height: 1.9; 
  color: var(--text-color-dark);
  margin-top: 2rem;
  margin-bottom: 3rem; 
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem; 
  margin: 3rem 0 2rem;
}

.social-media {
  margin-top: 3rem; 
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem; 
  height: 5rem;
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid var(--card-border); 
  border-radius: 50%; 
  font-size: 2.4rem;
  color: var(--text-color-dark);
  margin: 0 1.5rem 0 0;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.social-media a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 2.5rem var(--glow-color);
  transform: translateY(-5px) rotate(10deg); 
}

.home-img-3d-wrapper {
  flex: 1;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
  display: flex;
  justify-content: flex-end; 
  z-index: 5;
}

.home-img {
  position: relative;
  transform: translateZ(20px);
}
.home-img img {
  width: 32vw;
  min-width: 300px;
  max-width: 450px;
  animation: floatImage 5s ease-in-out infinite;
  border-radius: 50%; 
  border: 4px solid rgba(76, 175, 80, 0.5); 
  box-shadow: 0 0 60px var(--glow-color); 
  position: relative;
  z-index: 1;
}

.home-img::after {
  content: "";
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%; 
  background: radial-gradient(circle, var(--primary-color), transparent 70%);
  top: -5%;
  left: -5%;
  filter: blur(60px);
  opacity: 0.25;
  z-index: 0;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.2; }
  100% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home-stats {
  position: absolute;
  bottom: 5rem; 
  left: 9%;
  right: 9%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: rgba(10, 22, 18, 0.6); 
  border-radius: 2rem;
  border: 1px solid rgba(76, 175, 80, 0.2);
  backdrop-filter: blur(10px);
}

.stat-box {
  padding: 1rem;
  text-align: center;
  border-radius: 1.5rem;
  transition: transform 0.3s ease;
}
.stat-box:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.03);
}

.stat-box h3 {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.stat-box p {
  font-size: 1.5rem;
  color: var(--text-color-dark);
  line-height: 1.4;
  margin: 0; /* Reset margin for cleaner look */
}

.home-content {
  flex: 1.2;
}

.eyebrow {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.home-content h3 {
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--text-color-dark);
}
.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-title {
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-color);
  background: linear-gradient(
    90deg,
    var(--text-color) 70%,
    var(--primary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 5s ease-in-out infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.home-content p {
  font-size: 1.7rem;
  line-height: 1.7;
  color: var(--text-color-dark);
  max-width: 56ch;
  margin-top: 1.5rem;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 0.2rem solid var(--card-border);
  border-radius: 50%; /* RESTORED CIRCLE */
  font-size: 2.2rem;
  color: var(--text-color-dark);
  margin: 2rem 1.2rem 0 0;
  transition: 0.5s ease;
}

.social-media a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 2rem var(--glow-color);
  transform: translateY(-5px);
}

.home-img-3d-wrapper {
  flex: 0.9;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.home-img {
  position: relative;
  transform: translateZ(20px);
}
.home-img img {
  width: 25vw;
  min-width: 250px;
  max-width: 340px;
  animation: floatImage 4s ease-in-out infinite;
  border-radius: 50%; /* RESTORED CIRCLE */
  border: 5px solid var(--primary-color);
  box-shadow: 0 0 40px var(--glow-color);
  position: relative;
  z-index: 1;
}

.home-img::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%; /* RESTORED CIRCLE */
  background: var(--primary-color);
  top: 0;
  left: 0;
  filter: blur(50px);
  opacity: 0.3;
  z-index: 0;
  animation: floatImage 4s ease-in-out infinite;
  animation-delay: -2s;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home-stats {
  position: absolute;
  bottom: 10rem;
  left: 9%;
  right: 9%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  padding: 1.5rem;
  text-align: center;
  border-radius: 2rem;
}
.stat-box h3 {
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--primary-color);
}
.stat-box p {
  font-size: 1.5rem;
  color: var(--text-color-dark);
  line-height: 1.4;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background: transparent; /* Made transparent for bg image */
  flex-wrap: wrap;
}

.about-img img {
  width: 30vw;
  min-width: 250px;
  max-width: 360px;
  border-radius: 3rem; /* Enhanced Curve */
  box-shadow: 0 10px 30px var(--shadow-color);
}

.about-content {
  flex: 1;
}
.about-content h2 {
  text-align: left;
}
.about-content h3 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--text-color-dark);
}

.about-toggles {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent */
  border-radius: 2rem; /* Curve Design */
  padding: 0.5rem;
  border: 1px solid var(--card-border);
}

.about-toggle-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-color-dark);
  border-radius: 1.5rem; /* Curve Design */
  cursor: pointer;
  transition: all 0.3s ease;
}
.about-toggle-btn:hover {
  background: var(--card-bg);
  color: var(--text-color);
}
.about-toggle-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--glow-color);
}

.about-text-content {
  position: relative;
  min-height: 180px;
}
.about-text {
  font-size: 1.6rem;
  line-height: 1.7;
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  visibility: hidden;
}
.about-text.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.github {
  background: transparent; /* Made transparent for bg image */
}

.github-stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.github-stat-card {
  padding: 2.5rem;
  text-align: center;
  border-radius: 2.5rem; /* Curve Design */
}
.github-stat-card i {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.github-stat-card h3 {
  font-size: 4.2rem;
  color: var(--text-color);
  font-weight: 700;
}
.github-stat-card p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
}

#github-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}
#github-user-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
}
#github-user-card h3 {
  font-size: 2.4rem;
  margin: 0;
}
#github-user-card p {
  font-size: 1.6rem;
  margin: 0;
}

.github-search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.github-sub-heading {
  font-size: 3rem;
  font-weight: 600;
  margin: 0;
}

.github-search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
  border-radius: 2rem; /* Curve Design */
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.github-search-wrapper i {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color-dark);
  font-size: 1.6rem;
}
#github-search {
  width: 100%;
  padding: 1.2rem 1.5rem 1.2rem 4.5rem;
  background: transparent;
  color: var(--text-color);
  font-size: 1.6rem;
  border-radius: 2rem; /* Curve Design */
}
.github-search-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.github-repos-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  min-height: 200px;
}

.github-repo-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 2.5rem; /* Curve Design */
}
.github-repo-card h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.github-repo-card h4 a {
  color: inherit;
}
.github-repo-card h4 a:hover {
  text-decoration: underline;
}
.github-repo-card p {
  font-size: 1.5rem;
  color: var(--text-color-dark);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 2rem;
}
.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  color: var(--text-color-dark);
}
.repo-stats span {
  margin-left: 1.5rem;
}
.repo-stats i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}
.repo-lang {
  font-weight: 600;
}

.github-error-card {
  grid-column: 1 / -1;
  padding: 4rem;
  text-align: center;
  border: 1px solid var(--secondary-color);
  border-radius: 2rem; /* Curve Design */
}
.github-error-card i {
  font-size: 5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.github-error-card h3 {
  font-size: 2.4rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.github-error-card p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
}

.github-link-container {
  text-align: center;
  margin-top: 5rem;
}

.skills {
  background: transparent; /* Made transparent for bg image */
}

.skills-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.skills-toggle-buttons .filter-btn i {
  margin-right: 0.8rem;
}

.skills-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-view-container {
  width: 100%;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.skills-view-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#tag-cloud-container {
  width: 100%;
  max-width: 600px;
  height: 600px;
  position: relative;
  margin: 0 auto 3rem;
}

#skills-canvas {
  width: 100%;
  height: 100%;
}

#tag-cloud-fallback {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}
.skill-tag {
  font-size: 2rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

#skills-grid-container {
  max-width: 900px;
}

.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.skills-category-box {
  padding: 2.5rem 3rem;
  border-radius: 2.5rem; /* Curve Design */
}
.skills-category-box h3 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1rem;
}
.skills-category-box h3 i {
  margin-right: 1rem;
}
.skills-category-box ul {
  list-style: none;
}
.skills-category-box ul li {
  font-size: 1.7rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}
.skills-category-box ul li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--secondary-color);
}

.toolbox-strip {
  margin-top: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--text-color-dark);
}
.toolbox-strip span {
  padding: 0.6rem 1.4rem;
  border-radius: 50px; /* Curve Design */
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.15);
}

/* SERVICES SECTION (Modern Card Style) */
.services {
  background: transparent; /* Made transparent for bg image */
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  padding: 2rem;
}

/* REPLACED FLIP LOGIC WITH MODERN STATIC CARDS */
.services-box {
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 3rem; 
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 32px 0 var(--shadow-color);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Lift Effect */
.services-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--glow-color);
  border-color: var(--primary-color);
}

.service-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  background: rgba(76, 175, 80, 0.1);
  width: 9rem;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s ease;
}

.services-box:hover .service-icon {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 20px var(--glow-color);
}

.services-box h3 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.services-box p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.service-tags span {
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  color: var(--secondary-color);
  border: 1px solid rgba(77, 208, 225, 0.2);
}

@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.portfolio {
  background: transparent; /* Made transparent for bg image */
}

.portfolio-filter-buttons {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.portfolio-container {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2.5rem;
}

.portfolio-box {
  transform: scale(1);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease,
    margin 0.4s ease, padding 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  max-height: 1000px;
  position: relative;
  border-radius: 2.5rem; /* Curve Design */
}


.portfolio-box.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
}

.portfolio-box-spotlight {
  position: absolute;
  inset: 0;
  border-radius: 2.5rem; /* Curve Design */
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.1) 0%,
    rgba(76, 175, 80, 0.3) 20%,
    rgba(0, 0, 0, 0.85) 55%
  );
}
.portfolio-box:hover .portfolio-box-spotlight {
  opacity: 1;
}

.portfolio-box-inner {
  position: relative;
  border-radius: 2.5rem; /* Curve Design */
  box-shadow: 0 5px 15px var(--shadow-color);
  overflow: hidden;
  display: flex;
  background: var(--card-bg);
}

.portfolio-box img {
  width: 100%;
  transition: 0.5s ease;
}

.portfolio-box-inner:hover img {
  transform: scale(1.08) rotate(1deg);
  filter: brightness(0.7);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.8) 90%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s ease;
  z-index: 3;
}

.portfolio-box-inner:hover .portfolio-layer {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-layer h4,
.portfolio-layer p,
.portfolio-layer i {
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s ease;
}
.portfolio-box-inner:hover .portfolio-layer h4 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}
.portfolio-box-inner:hover .portfolio-layer p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
.portfolio-box-inner:hover .portfolio-layer i {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.portfolio-layer h4 {
  font-size: 2.4rem;
  color: #ffffff;
  font-weight: 700;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1.5rem;
  color: #ffffff;
}

.portfolio-layer i {
  font-size: 2.3rem;
  color: #ffffff;
}

.case-studies {
  background: var(--bg-color);
}

.case-studies-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.5rem;
}

.case-card {
  padding: 2.6rem 3rem;
  border-radius: 2.5rem; /* Curve Design */
}
.case-card h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.case-meta {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--secondary-color);
  margin-bottom: 1.4rem;
}
.case-card p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
  margin-bottom: 1.6rem;
}
.case-card ul {
  list-style: none;
  padding-left: 0;
}
.case-card ul li {
  font-size: 1.5rem;
  color: var(--text-color);
  line-height: 1.7;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
}
.case-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

.education {
  background: var(--bg-color);
}

.education-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.education-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.education-box {
  padding: 2.5rem 3rem;
  position: relative;
  width: 45%;
  margin-bottom: 3rem;
  z-index: 2;
  border-radius: 2.5rem; /* Curve Design */
}

.education-icon {
  position: absolute;
  top: 2.8rem;
  font-size: 2.4rem;
  color: var(--primary-color);
  background: var(--bg-color);
  border-radius: 50%;
  padding: 0.8rem;
  z-index: 10;
}

.education-box:nth-child(odd) {
  left: 0;
}
.education-box:nth-child(odd) .education-icon {
  right: -3.6rem;
}

.education-box:nth-child(even) {
  left: 55%;
}
.education-box:nth-child(even) .education-icon {
  left: -3.5rem;
}

.education-box::before {
  content: "";
  position: absolute;
  top: 3.8rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 10px;
}
.education-box:nth-child(odd)::before {
  right: -20px;
  border-left-color: var(--card-border);
}
.education-box:nth-child(odd):hover::before {
  border-left-color: var(--primary-color);
}
.education-box:nth-child(even)::before {
  left: -20px;
  border-right-color: var(--card-border);
}
.education-box:nth-child(even):hover::before {
  border-right-color: var(--primary-color);
}

.education-year {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
}
.education-box h3 {
  font-size: 2.2rem;
  margin: 0.5rem 0;
  color: var(--text-color);
}
.education-box h4 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-color-dark);
  margin-bottom: 1rem;
}
.education-box p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color-dark);
}

.journey-see-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.journey-hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.journey-hidden.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.process {
  background: transparent; /* Made transparent for bg image */
}

.process-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.process-step {
  padding: 2.6rem 2.4rem;
  position: relative;
  border-radius: 2.5rem; /* Curve Design */
}
.process-step-number {
  position: absolute;
  top: 1.8rem;
  right: 2.2rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  color: var(--secondary-color);
}
.process-step h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.process-step p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
}

.testimonial {
  background: transparent; /* Made transparent for bg image */
  padding-bottom: 8rem;
}

.testimonial-container {
  max-width: 90rem;
  margin: 0 auto;
  width: 100%;
}

.testimonial-slider {
  width: 100%;
  padding: 1rem;
}

.testimonial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem;
  min-height: 320px;
  justify-content: center;
  border-radius: 2.5rem; /* Curve Design */
}

.testimonial-box img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.4rem solid var(--primary-color);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--glow-color);
}
.testimonial-box h3 {
  font-size: 2.4rem;
  color: var(--text-color);
}
.testimonial-box h4 {
  font-size: 1.6rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.testimonial-box p {
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-color-dark);
}

.swiper-pagination-bullet {
  background: var(--text-color-dark);
  opacity: 0.7;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

.faq {
  background: var(--bg-color);
  padding-bottom: 8rem;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
}

.faq-item {
  padding: 2.4rem 2.8rem;
  border-radius: 2.5rem; /* Curve Design */
}
.faq-item h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.faq-item p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
}

.contact {
  background: var(--bg-color);
  padding-bottom: 8rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.contact-info {
  flex: 1 1 32rem;
  padding: 3rem;
  border-radius: 2.5rem; /* Curve Design */
}
.contact-info h3 {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.contact-subtitle {
  font-size: 1.7rem;
  color: var(--text-color-dark);
  line-height: 1.6;
  margin-bottom: 3rem;
}

.contact-info-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.contact-info-box .icon {
  font-size: 3rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}
.contact-info-box:hover .icon {
  color: var(--secondary-color);
  text-shadow: 0 0 15px var(--glow-color-secondary);
}
.contact-info-box .details h4 {
  font-size: 1.9rem;
  color: var(--text-color);
  margin-bottom: 0.3rem;
}
.contact-info-box .details a,
.contact-info-box .details p {
  font-size: 1.6rem;
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}
.contact-info-box .details a:hover {
  color: var(--primary-color);
}

.contact-form-inset {
  flex: 2 1 48rem;
  padding: 5rem 7rem;
  background: var(--bg-color);
  box-shadow: inset 7px 7px 15px var(--shadow-dark),
    inset -7px -7px 15px var(--shadow-light);
  border-radius: 3.5rem; /* Curve Design */
}
body.light-mode .contact-form-inset {
  box-shadow: inset 7px 7px 15px var(--lm-shadow-dark),
    inset -7px -7px 15px var(--lm-shadow-light);
}

.contact-form .input-group {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem;
  border-radius: 1.5rem; /* Curve Design */
  box-shadow: inset 5px 5px 10px var(--shadow-dark),
    inset -5px -5px 10px var(--shadow-light);
}
body.light-mode .contact-form .input-group {
  box-shadow: inset 5px 5px 10px var(--lm-shadow-dark),
    inset -5px -5px 10px var(--lm-shadow-light);
}

.contact-form .input-group i {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--text-color-dark);
  transition: color 0.3s ease;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.6rem 1.6rem 1.6rem 5.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: transparent;
  border-radius: 1.5rem; /* Curve Design */
  outline: none;
  border: none;
  transition: all 0.3s ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form label {
  position: absolute;
  top: 1.6rem;
  left: 5.5rem;
  font-size: 1.6rem;
  color: var(--text-color-dark);
  pointer-events: none;
  transition: all 0.3s ease;
}

.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label {
  top: -1rem;
  left: 2rem;
  font-size: 1.2rem;
  color: var(--primary-color);
  background: var(--bg-color);
  padding: 0 0.5rem;
}

.contact-form input:focus ~ i,
.contact-form textarea:focus ~ i {
  color: var(--primary-color);
}

.contact-form .input-group:focus-within {
  box-shadow: inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light), 0 0 10px var(--glow-color);
}

.hire-me {
  min-height: auto;
  padding: 6rem 9% 6rem;
  background: var(--snd-bg-color);
}
.hire-me-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  border-radius: 2.5rem; /* Curve Design */
}
.hire-me-content h2 {
  margin-bottom: 0;
  font-size: 3.6rem;
}
.hire-me-content p {
  font-size: 1.7rem;
  color: var(--text-color-dark);
  max-width: 60ch;
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--bg-color);
  border-top: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
}

.footer-text {
  font-size: 1.6rem;
  color: var(--text-color-dark);
}

.footer-iconTop {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  display: none;
}
.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--card-bg);
  border-radius: 50%;
  transition: 0.5s ease;
  border: 1px solid var(--card-border);
}
.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--glow-color);
  background: var(--primary-color);
}
.footer-iconTop a:hover i {
  color: #ffffff;
}
.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--primary-color);
  transition: 0.3s ease;
}

.progress-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
}
.progress-circle-bg {
  fill: none;
  stroke: var(--card-border);
  stroke-width: 2;
}
.progress-circle-bar {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
  border-radius: 2.5rem; /* Curve Design */
  background: var(--bg-color);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 50px var(--shadow-color);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.portfolio-modal.show .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}
.modal-close-btn:hover {
  background: var(--secondary-color);
  color: #ffffff;
  transform: rotate(90deg);
  box-shadow: 0 0 15px var(--glow-color-secondary);
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.modal-image-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 2.5rem 2.5rem 0 0; /* Curve Design */
}
.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details-container {
  padding: 3rem;
}
.modal-details-container h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.modal-tech-tags span {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--primary-color);
  padding: 0.5rem 1.5rem;
  border-radius: 2rem; /* Curve Design */
  font-size: 1.4rem;
  font-weight: 500;
}
.modal-details-container p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--text-color-dark);
  margin-bottom: 2rem;
}
.modal-details-container h3 {
  font-size: 2.1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 0.5rem;
}
.modal-details-container ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 3rem;
}
.modal-details-container ul li {
  font-size: 1.6rem;
  color: var(--text-color-dark);
  line-height: 1.8;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.5rem;
}
.modal-details-container ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.3rem;
  color: var(--primary-color);
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }
  .home {
    padding-top: 11rem;
  }
}

@media (max-width: 992px) {
  section {
    padding: 9rem 6% 4rem;
  }
  .header {
    padding: 1.8rem 6%;
  }
  .header.sticky {
    padding: 1.4rem 6%;
  }

  .home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  .home-cta-row {
    justify-content: center;
  }
  .home-img-3d-wrapper {
    margin-top: 1rem;
  }
  .home-img img {
    width: 260px;
  }
 

  .about {
    flex-direction: column;
    text-align: center;
  }
  .about-content h2 {
    text-align: center;
  }
  .about-toggles {
    justify-content: center;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-container::before {
    left: 10px;
    transform: none;
  }
  .education-box,
  .education-box:nth-child(odd),
  .education-box:nth-child(even) {
    width: 100%;
    left: 3.2rem;
  }
  .education-box:nth-child(odd) .education-icon,
  .education-box:nth-child(even) .education-icon {
    left: -3.8rem;
    right: auto;
  }
  .education-box::before,
  .education-box:nth-child(odd)::before,
  .education-box:nth-child(even)::before {
    left: -20px;
    right: auto;
    border-right-color: var(--card-border);
    border-left-color: transparent;
  }
  .education-box:hover::before {
    border-right-color: var(--primary-color);
  }

  .contact-container {
    flex-direction: column;
  }

  .modal-image-container {
    height: 320px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 260px;
    background: rgba(10, 22, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 2.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    border-radius: 0 0 0 1.6rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    transition: right 0.3s ease;
  }
  .navbar a {
    margin: 0;
  }
  .navbar.active {
    right: 0;
  }

  .menu-icon-btn {
    display: inline-flex;
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .github-search-container {
    flex-direction: column;
    align-items: flex-start;
  }

  #tag-cloud-container {
    height: 360px;
  }

  .hire-me-content {
    padding: 3rem 2.4rem;
  }

  .modal-details-container {
    padding: 2.4rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 8rem 5% 4rem;
  }
  .home {
    padding-top: 9rem;
  }
  .heading {
    font-size: 3.4rem;
    margin-bottom: 3.8rem;
  }
  .home-title {
    font-size: 4rem;
  }

  .github-repos-container {
    grid-template-columns: 1fr;
  }

  .case-studies-grid,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--glass-bg, rgba(26, 31, 44, 0.95));
  color: var(--text-primary, white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 500;
  transition: top 0.3s ease;
  backdrop-filter: blur(20px);
}
.skip-link:focus {
  top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-outline { display: none !important; }
  [data-tilt] { transform: none !important; }
}

[role="search"] {
  position: relative;
}

.home-content h3 span {
    color: #4CAF50 !important;
}
