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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #0a0a0a;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor Styles */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.1s ease;
}

/* Animated Background Elements */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(37, 99, 235, 0.1),
    rgba(59, 130, 246, 0.05)
  );
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 30%;
  animation-delay: -15s;
}

.shape-5 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 20%;
  animation-delay: -7s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: orbFloat 25s infinite ease-in-out;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.15) 0%,
    transparent 70%
  );
  top: 20%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 70%
  );
  bottom: 20%;
  right: -10%;
  animation-delay: -10s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  animation-delay: -15s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(37, 99, 235, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 40%;
  left: 20%;
  animation-delay: -2s;
}
.particle:nth-child(3) {
  top: 60%;
  left: 30%;
  animation-delay: -4s;
}
.particle:nth-child(4) {
  top: 80%;
  left: 40%;
  animation-delay: -6s;
}
.particle:nth-child(5) {
  top: 30%;
  right: 10%;
  animation-delay: -8s;
}
.particle:nth-child(6) {
  top: 50%;
  right: 20%;
  animation-delay: -10s;
}
.particle:nth-child(7) {
  top: 70%;
  right: 30%;
  animation-delay: -12s;
}
.particle:nth-child(8) {
  top: 90%;
  right: 40%;
  animation-delay: -14s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced Navigation with Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
}

.nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #e2e8f0;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(10, 10, 10, 0.8) 70%
  );
  padding-top: 80px;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(50px);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-name {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.hero-name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px);
}

.hero-designation {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
  overflow: hidden;
}

.hero-designation .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

.hero-description {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.reveal-text {
  display: block;
  opacity: 0;
  transform: translateY(20px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* Enhanced Button Styles with Magnetic Effect */
.btn {
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover .btn-bg {
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #2563eb;
  color: white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.magnetic {
  transition: transform 0.3s ease;
}

/* Enhanced Code Block with Status Indicator */
.hero-visual {
  opacity: 0;
  transform: translateX(50px);
  position: relative;
}

.code-block {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.code-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) {
  background: #ef4444;
}
.code-dots span:nth-child(2) {
  background: #f59e0b;
}
.code-dots span:nth-child(3) {
  background: #10b981;
}

.code-title {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: "JetBrains Mono", monospace;
}

.code-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #10b981;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.code-content {
  padding: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.code-line {
  margin-bottom: 8px;
  color: #e2e8f0;
  opacity: 0;
  transform: translateX(-20px);
}

.keyword {
  color: #c084fc;
}
.variable {
  color: #60a5fa;
}
.class {
  color: #34d399;
}
.method {
  color: #fbbf24;
}
.property {
  color: #f472b6;
}

/* Floating Tech Icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 1.2rem;
  animation: techFloat 6s infinite ease-in-out;
}

.tech-icon[data-tech="dotnet"] {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.tech-icon[data-tech="angular"] {
  bottom: 20%;
  right: 10%;
  animation-delay: -1.5s;
}

.tech-icon[data-tech="js"] {
  top: 50%;
  right: -5%;
  animation-delay: -3s;
}

.tech-icon[data-tech="database"] {
  bottom: 10%;
  right: -15%;
  animation-delay: -4.5s;
}

@keyframes techFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
}

/* Section Styles */
section {
  padding: 2rem 0rem;
  position: relative;
}

/* Enhanced Section Titles with Split Text Animation */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3rem;

  transform: translateY(30px);
}

.title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px);
}

/* Enhanced About Section with Dark Theme */
.about {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}

.about-text p {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.reveal-paragraph {
  opacity: 0;
  transform: translateY(20px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #94a3b8;
  font-weight: 500;
}

/* Enhanced Skills Section */
.skills {
  background: rgba(10, 10, 10, 0.8);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.category-title i {
  color: #2563eb;
  font-size: 1.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

/* Enhanced Projects Section */
.projects {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.project-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-description {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(71, 85, 105, 0.3);
  color: #cbd5e1;
  border: 1px solid rgba(71, 85, 105, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Enhanced Achievements Section */
.achievements {
  background: rgba(10, 10, 10, 0.8);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-card {
  text-align: center;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.3);
}

.achievement-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1);
}

.achievement-icon i {
  font-size: 2rem;
  color: white;
}

.achievement-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.achievement-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* Enhanced Contact Section */
.contact {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  opacity: 0;
  transform: translateX(-30px);
}

.contact-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #94a3b8;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateX(5px);
}

.contact-method i {
  width: 20px;
  color: #2563eb;
}

.contact-form {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 16px;
  opacity: 0;
  transform: translateX(30px);
}

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

.contact-method a {
  color: white;       
  text-decoration: none; 
}

.contact-method a:hover {
  color: #ddd;        
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Enhanced Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 2rem 0;
  display: flex;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
}

.footer-links a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .code-block {
    max-width: 400px;
    margin: 0 auto;
  }

  .floating-icons {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Hide custom cursor on mobile devices */
  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }

  body {
    cursor: auto;
  }

  /* Fix navigation for mobile with dark theme */
  .hamburger {
    display: flex;
    padding: 0 15px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    z-index: 999;
  }

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

  .nav-link {
    color: #e2e8f0;
    padding: 1rem 2rem;
    display: block;
    border-radius: 0;
  }

  /* Improved hero section for mobile */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-name {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-designation {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }

  .hero-description {
    font-size: 1rem;
    margin: 1.5rem 0;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
  }

  /* Mobile-optimized hero visual */
  .hero-visual {
    max-width: 100%;
    margin: 0 auto;
  }

  .code-block {
    max-width: 320px;
    margin: 0 auto;
  }

  .code-content {
    font-size: 0.8rem;
  }

  .floating-icons {
    display: none;
  }

  /* Better section spacing for mobile */
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 3rem;
  }

  /* Mobile-friendly skills grid */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-category {
    padding: 1.5rem;
  }

  .skill-list {
    gap: 0.5rem;
  }

  .skill-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* Mobile stats layout */
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Mobile projects grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-header h3 {
    font-size: 1.2rem;
  }

  /* Mobile achievements grid */
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .achievement-card {
    padding: 1.5rem;
    text-align: center;
  }

  /* Mobile contact section */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-methods {
    gap: 1rem;
  }

  .contact-method {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  /* Mobile footer */
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  /* Hide background animations on mobile for performance */
  .floating-shapes,
  .gradient-orbs,
  .particles-container {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile optimizations */
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }

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

  .hero-designation {
    font-size: 1rem;
  }

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

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

  .code-block {
    max-width: 280px;
    margin-top: 20px;
  }

  .code-content {
    font-size: 0.7rem;
  }

  .btn {
    min-width: 120px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .skill-category {
    padding: 1rem;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .project-card,
  .achievement-card {
    padding: 1rem;
    margin: 1.5rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .contact-method {
    font-size: 0.8rem;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-container {
    gap: 2rem;
  }

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

  .section {
    padding: 2rem 0;
  }
}

/* Touch-friendly hover states for mobile */
@media (hover: none) and (pointer: coarse) {
  .magnetic:hover,
  .btn:hover,
  .nav-link:hover,
  .project-card:hover,
  .skill-tag:hover,
  .achievement-card:hover,
  .stat:hover {
    transform: none;
  }

  .nav-link:hover {
    background: rgba(37, 99, 235, 0.2);
  }
}
