/* ------------------ GLOBAL ------------------ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Poppins:wght@100..900&display=swap");

html{
  font-size: 14px;
}
* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background-color: #f5f5f5;
  color: #1f2937;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* ------------------ NAVBAR - MODERN STYLING ------------------ */
.navbar {
  padding: 1.2rem 8rem;
  display: flex;
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  background:  #0056b3;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s;
  text-decoration: none;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu li {
  list-style: none;
}

.nav-menu li a {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.75);
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #0056b3, #007bff);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}

.nav-menu li a:hover {
  color: #007bff;
}

/* Resume button - MODERN */
.resume-link {
  border: 2px solid #007bff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  color: #007bff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.resume-link:hover {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color:black;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}


/* ------------------ HEADER - MODERN STYLING ------------------ */
.header {
  min-height: 100vh;
  padding-top: 6rem;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
   background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: 1;
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1000px;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.header-content-left {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.header-content-left .h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.header-content-left .info {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.7;
  /* color: rgba(255, 255, 255, 0.9); */
  color: black;
  margin-bottom: 2rem;
}

.color {
  background:  #0056b3;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-content-left .btn {
  margin-top: 2rem;
  /* border: 2px solid white; */
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: 2px solid #0056b3;
  /* color: black; */
  color: #0056b3;
  text-decoration: none;
  /* color: white; */
  background: transparent;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.header-content-left .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.header-content-left .btn:hover::before {
  left: 100%;
}

.header-content-left .btn:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Right side circular image - MODERN */
.header-content-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-pic{
  object-fit: contain;
  width: 50px;
  object-position: top;
  height: 250px;
  border-radius: 50%;
  border: 4px solid white;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
}

.profile-pic::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  z-index: -1;
  animation: rotate 10s linear infinite;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ------------------ SKILLS - MODERN STYLING ------------------ */
#skills {
  text-align: center;
  padding: 8rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: 1;
}

#skills h2 {
  margin-bottom: 4rem;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  position: relative;
  z-index: 2;
}

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  margin-bottom: 9rem;
}

.skill-item {
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: #374151;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.fab{
  font-size: 1.5rem;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(37, 99, 235, 0.3);
}
/* Skill icons colors with gradients */
.fab.fa-html5 { 
  background: linear-gradient(135deg, #E34F26, #F06529);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-css3-alt { 
  background: linear-gradient(135deg, #1572B6, #33A9DC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-js-square { 
  background: linear-gradient(135deg, #F7DF1E, #D4BB0C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fas.fa-database { 
  background: linear-gradient(135deg, #4DB33D, #3FA037);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-react { 
  background: linear-gradient(135deg, #61DAFB, #21A8C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-node-js { 
  background: linear-gradient(135deg, #339933, #267326);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-git-alt { 
  background: linear-gradient(135deg, #F05032, #E34F26);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fab.fa-github { 
  background: linear-gradient(135deg, #181717, #333);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
  background-clip: text;
}

.fas.fa-mobile-alt { 
  background: linear-gradient(135deg, #FF6F61, #E55A4E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fas.fa-server { 
  background: linear-gradient(135deg, #8A2BE2, #7B1FA2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fas.fa-fire { 
  background: linear-gradient(135deg, #FF4500, #FF6B35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fas.fa-palette { 
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ---------- PROJECTS SECTION - CLEAN MODERN STYLING ---------- */
#projects {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  z-index: 1;
}

#projects h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ---------- PROJECT CARD - CLEAN MODERN STYLING ---------- */
.project-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.08);
  height: fit-content;
  margin-bottom: 8%;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(236, 72, 153, 0.02));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ---------- IMAGE - CLEAN MODERN STYLING ---------- */
.project-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.project-card:hover img {
  transform: scale(1.03);
}

/* ---------- DESCRIPTION - CLEAN MODERN STYLING ---------- */
.description {
  padding: 1rem 1rem 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

/* ---------- TECH TAGS - CLEAN MODERN STYLING ---------- */
.project-tech {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.project-tech span {
  font-size: 0.85rem;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  padding: 0.3rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.project-tech span:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ---------- LINKS (GitHub / Live Demo) - CLEAN MODERN STYLING ---------- */
.project-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.2rem 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
}

.project-links a {
  font-size: 0.8rem;
  color: #4f46e5;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  font-weight: bold;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-weight: 600;
  flex: 1;
  justify-content: center;
  max-width: 150px;
}

.project-links a:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* ---------- DARK MODE PROJECTS STYLING ---------- */
body.dark-mode #projects {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.dark-mode #projects h2 {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark-mode .project-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 10px 25px rgba(99, 102, 241, 0.2);
}

body.dark-mode .project-card::before {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

body.dark-mode .description {
  color: #e2e8f0;
}

body.dark-mode .project-card img {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-tech span {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .project-tech span:hover {
  background: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

body.dark-mode .project-links {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.6);
}

body.dark-mode .project-links a {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

body.dark-mode .project-links a:hover {
  background: #4f46e5;
  color: white;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1200px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
  }
}

@media (max-width: 768px) {
  #projects {
    padding: 6rem 1.5rem;
  }
  
  #projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
  }
  
  .project-card {
    margin-bottom: 0;
  }
  
  .description {
    padding: 1.5rem 1.5rem 0.8rem;
    font-size: 1.2rem;
  }
  
  .project-tech {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
  }
  
  .project-links {
    padding: 1.2rem 1.5rem;
    gap: 1rem;
  }
  
  .project-links a {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  #projects {
    padding: 4rem 1rem;
  }
  
  #projects h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    border-radius: 16px;
  }
  
  .project-card img {
    height: 200px;
  }
  
  .description {
    padding: 1.2rem 1.2rem 0.8rem;
    font-size: 1.1rem;
  }
  
  .project-tech {
    padding: 0 1.2rem;
    gap: 0.4rem;
  }
  
  .project-tech span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .project-links {
    padding: 1rem 1.2rem;
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .project-links a {
    max-width: none;
    padding: 0.8rem 1.5rem;
  }
}

/* Ensure projects stay within viewport */
.projects-container-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ------------------ CONTACT - MODERN STYLING ------------------ */
#contact {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: 1;
}

#contact h2 {
  margin-bottom: 4rem;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  background-clip: text;
  position: relative;
  z-index: 2;
}

.contact-info {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #374151;
  font-size: 2rem;
  transition: all 0.4s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #007bff;
}

/* ------------------ DARK MODE - MODERN STYLING ------------------ */
body.dark-mode {
  background-color: #0f172a;
  color: white;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

body.dark-mode .nav-menu a {
  color: #e2e8f0;
}

body.dark-mode .nav-menu a:hover {
  color: #60a5fa;
}

body.dark-mode .resume-link {
  border-color: #60a5fa;
  color: #60a5fa;
}

body.dark-mode .resume-link:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #0f172a;
}

/* Dark mode header */
body.dark-mode .header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .header-content-left .h1,
body.dark-mode .header-content-left .info {
  color: #e2e8f0;
}

body.dark-mode .header-content-left .btn {
  color: #e2e8f0;
  /* border-color: #60a5fa; */
}

body.dark-mode .header-content-left .btn:hover {
  background: #60a5fa;
  color: #0f172a;
}

/* Dark mode skills */
body.dark-mode #skills {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}



body.dark-mode .skill-item {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 8px 25px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dark mode projects */
body.dark-mode #projects {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .project-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

/* Dark mode contact */
body.dark-mode #contact {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .contact-link {
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-link:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #60a5fa;
}

/* ------------------ DARK MODE TOGGLE BUTTON - MODERN ------------------ */
.dark-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .dark-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ------------------ ANIMATIONS - MODERN ------------------ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ MOBILE RESPONSIVE - MODERN ------------------ */
@media (max-width: 1200px) {
  .navbar {
    padding: 1.2rem 4rem;
  }
}

@media (max-width: 995px) {
  .navbar {
    padding: 1rem 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 999;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li a {
    color: #1f2937;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Dark mode mobile menu */
  body.dark-mode .nav-menu {
    background: rgba(15, 23, 42, 0.95);
  }
  
  body.dark-mode .nav-menu li a {
    color: white;
  }
  
  body.dark-mode .menu-toggle .bar {
    background-color: white;
  }
  
  .header-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }
  
  .header-content-left {
    text-align: center;
  }
  
  .profile-pic {
    width: 280px;
    height: 280px;
  }
  
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .header {
    padding-top: 5rem;
    min-height: 100vh;
  }
  
  .header-content-left .h1 {
    font-size: 2.2rem;
  }
  
  .header-content-left .info {
    font-size: 1.1rem;
  }
  
  #skills h2,
  #projects h2,
  #contact h2 {
    font-size: 2rem;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5%;
  }
  
  .contact-link {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }
  
  .project-links {
    gap: 1.5rem;
  }
  
  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .nav-menu {
    width: 100%;
  }
  
  .header {
    padding: 0 1rem;
    padding-top: 5rem;
  }
  
  .header-content-wrapper {
    padding: 0;
  }
  
  .header-content-left .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .profile-pic {
    width: 220px;
    height: 220px;
  }
  
  #skills,
  #projects,
  #contact {
    padding: 6rem 1rem;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-item {
    padding: 1.2rem 1rem;
  }
  
  .contact-info {
    gap: 1.5rem;
  }
  
  .contact-link {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* ------------------ NAVBAR RIGHT SECTION - MODERN ------------------ */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Desktop: hide navbar-right, show dark toggle in nav menu */
@media (min-width: 996px) {
  .navbar-right {
    display: none;
  }
}

/* Mobile: show navbar-right with dark toggle and hamburger */
@media (max-width: 995px) {
  .navbar-right {
    display: flex;
    gap: 1rem;
  }
  
  .dark-toggle {
    order: 1;
  }
  
  .menu-toggle {
    order: 2;
  }
  
  /* Hide dark toggle in nav menu on mobile */
  .nav-menu .dark-toggle {
    display: none;
  }
}

/* Desktop: show dark toggle in nav menu */
@media (min-width: 996px) {
  .nav-menu .dark-toggle {
    display: block;
    margin-left: 1rem;
  }
}

/* Animation for skills on load */
@keyframes skillSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.skill-item {
  animation: skillSlideIn 0.6s ease forwards;
}

/* Stagger animation for each skill item */
.skill-item:nth-child(4n+1) { animation-delay: 0.1s; }
.skill-item:nth-child(4n+2) { animation-delay: 0.2s; }
.skill-item:nth-child(4n+3) { animation-delay: 0.3s; }
.skill-item:nth-child(4n+4) { animation-delay: 0.4s; }




/* ------------------ MOBILE RESPONSIVE - SMALL SCREENS ------------------ */
@media (max-width: 480px) {
  /* Global adjustments */
  body {
    font-size: 13px;
  }

  /* Navbar */
  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-menu {
    width: 100%;
  }

  .nav-menu li a {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }

  /* Header section */
  .header {
    padding: 0 1rem;
    padding-top: 4rem;
    min-height: 100vh;
  }

  .header-content-wrapper {
    padding-top:3rem;
    gap: 2rem;
  }

  .header-content-left .h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .header-content-left .info {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .header-content-left .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }

  /* Skills section */
  #skills {
    padding: 4rem 1rem;
  }

  #skills h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 4rem;
  }

  .skill-item {
    padding: 0.6rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .skill-item i {
    font-size: 1.2rem;
  }

  /* Projects section */
  #projects {
    padding: 4rem 1rem;
  }

  #projects h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    border-radius: 16px;
    margin-bottom: 0;
  }

  .project-card img {
    height: 160px;
  }

  .description {
    padding: 1.2rem 1.2rem 0.8rem;
    font-size: 1rem;
  }

  .project-tech {
    padding: 0 1rem;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .project-tech span {
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
  }

  .project-links {
    padding: 1rem 1rem;
    flex-direction: column;
    gap: 0.8rem;
  }

  .project-links a {
    max-width: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.75rem;
  }

  /* Contact section */
  #contact {
    padding: 4rem 1rem;
  }

  #contact h2 {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .contact-info {
    gap: 1.2rem;
  }

  .contact-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Dark toggle button */
  .dark-toggle {
    width: 30px;
    height: 3px;
    font-size: 1.2rem;
  }

  /* Menu toggle */
  .menu-toggle .bar {
    width: 22px;
    height: 2px;
  }
}

/* ------------------ EXTRA SMALL SCREENS ------------------ */
@media (max-width: 360px) {
  /* Skills - 1 column for very small screens */
  .skills-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .skill-item {
    padding: 0.9rem 0.7rem;
    font-size: 0.8rem;
  }

  .skill-item i {
    font-size: 1.2rem;
  }

  /* Projects - adjust spacing */
  .project-card img {
    height: 140px;
  }

  .description {
    font-size: 1rem;
    padding: 1rem 1rem 0.6rem;
  }

  .project-tech span {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  /* Contact - smaller icons */
  .contact-link {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  /* Header text adjustments */
  .header-content-left .h1 {
    font-size: 1.6rem;
  }

  .header-content-left .info {
    font-size: 0.9rem;
  }
}

/* ------------------ HEIGHT ADJUSTMENTS FOR MOBILE ------------------ */
@media (max-height: 700px) and (max-width: 480px) {
  .header {
    min-height: 100vh;
    padding-top: 3rem;
  }

  .profile-pic {
    width: 180px;
    height: 180px;
  }

  .header-content-left .h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .header-content-left .info {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* ------------------ LANDSCAPE ORIENTATION ------------------ */
@media (max-width: 480px) and (orientation: landscape) {
  .header {
    min-height: 120vh;
    padding-top: 3rem;
  }

  .header-content-wrapper {
    flex-direction: row;
    gap: 1.5rem;
  }

  /* .profile-pic {
    width: 130px;
    height: 130px;
  } */
/* ------------------ MOBILE PHOTO SIZE FIX ------------------ */
@media (max-width: 768px) {
  .profile-pic {
    width: 130px !important;   /* adjust as needed */
    height: 130px !important;  /* maintain square ratio */
    object-fit: cover;         /* keeps it neat */
  }
}

  .header-content-left .h1 {
    font-size: 1.5rem;
  }

  .header-content-left .info {
    font-size: 0.9rem;
  }

  .skills-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

/* ------------------ TOUCH DEVICE OPTIMIZATIONS ------------------ */
@media (hover: none) and (pointer: coarse) {
  .skill-item:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .project-links a:hover {
    transform: none;
  }

  .contact-link:hover {
    transform: none;
  }

  /* Add active states for touch devices */
  .skill-item:active {
    transform: scale(0.98);
  }

  .project-card:active {
    transform: scale(0.99);
  }
}


body.dark-mode .contact-link {
    background: rgba(30, 41, 59, 0.7);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Contact Form Section */
.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--card-bg, rgba(255, 255, 255, 0.05));
  color: black;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input,
.contact-form textarea {
  position: relative;  /* ensures input is on top */
  z-index: 1;          /* above any overlay */
  pointer-events: auto; /* allow typing */
  background-color: #fff;
  color: #000;
}


/* Input Fields */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 17, 17, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: black;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  /* color: rgba(255, 255, 255, 0.7); */
}

/* Focus Effect */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00bcd4;
  background-color: rgba(255, 255, 255, 0.15);
}

/* Button */
.contact-form .btn {
  background: linear-gradient(90deg, #007bff, #00bcd4);
  /* color: #fff; */
  border: none;
  font-weight: bold;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: linear-gradient(90deg, #00bcd4, #007bff);
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 600px) {
  .contact-form {
    width: 90%;
    padding: 1.5rem;
  }
}

body.light-mode .contact-form {
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background-color: #f9f9f9;
  color: #222;
  border-color: #ccc;
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
  color: #666;
}
body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background-color: #fff; /* white input */
  color: #000; /* black text */
  border-color: #ccc;
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
  color: #000; /* black placeholder */
}


.profile-pic {
  object-fit: cover;
  width: 300px;
  object-position: top center;
  border-radius: 50%;
  height: 300px;
  /* border-radius: 12px; slight rounding — change to 0 for sharp corners */
  border: 4px solid white;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  background-color: #fff; /* white background */
  color: #000; /* black text */
  font-size: 1rem;
  outline: none;
  z-index: 1; /* ensure it’s on top */
  position: relative;
  pointer-events: auto; /* allow typing */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666; /* placeholder color */
}

.contact-form {
  position: relative;
  z-index: 10; /* bring form above anything */
  background-color: rgba(255, 255, 255, 0.9); /* make it visible */
}


/* Dark Mode Contact Form */
body.dark-mode .contact-form {
  background-color: rgba(30, 41, 59, 0.9); /* dark card */
  color: #e2e8f0; /* light text */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background-color: rgba(17, 24, 39, 0.8); /* dark input */
  color: #e2e8f0; /* light text */
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .contact-form input::placeholder,
body.dark-mode .contact-form textarea::placeholder {
  color: rgba(226, 232, 240, 0.7); /* lighter placeholder */
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
  border-color: #00bcd4;
  background-color: rgba(17, 24, 39, 0.9);
}

body.dark-mode .contact-form .btn {
  background: linear-gradient(90deg, #00bcd4, #007bff);
  color: #fff;
}

body.dark-mode .contact-form .btn:hover {
  background: linear-gradient(90deg, #007bff, #00bcd4);
  transform: scale(1.03);
}

/* Profile Pic Dark Mode Shadow (optional) */
body.dark-mode .profile-pic {
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.resume-buttons {
  display: flex;
  gap: 1rem; /* space between buttons */
  margin-top: 1rem; /* optional spacing from content above */
}
/* ------------------ TITLES ------------------ */
#skills h2,
#projects h2,
#contact h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: #000000 !important; /* Light theme - black */
  text-shadow: none !important;
}

/* Dark mode - white */
body.dark-mode #skills h2,
body.dark-mode #projects h2,
body.dark-mode #contact h2 {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  color: #ffffff !important; /* Dark theme - white */
  text-shadow: none !important;
}



/* Make profile pic smaller on mobile */
@media (max-width: 768px) {
  .profile-pic {
    width: 220px;
    height: 210px;
  }
}

@media (max-width: 480px) {
  .profile-pic {
    width: 190px;
  }
}
/* ------------------ MOBILE MENU ------------------ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
  padding: 0.5rem;
}

/* Base (light mode) */
.menu-toggle .bar {
  width: 25px;
  background-color: #000; /* black in light mode */
  border-radius: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  margin: 2.5px 0;
}

/* Hamburger → Cross Animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* 🌙 Dark Mode: Make bars pure white */
body.dark-mode .menu-toggle .bar,
body.dark-mode .menu-toggle.active .bar {
  background-color: #fff !important; /* pure white */
}

/* Hover feedback */
.menu-toggle:hover .bar {
  opacity: 0.8;
}

/* ------------------ RESPONSIVE SIZES ------------------ */
@media (max-width: 995px) {
  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .menu-toggle .bar {
    width: 22px;
    height: 2.5px;
  }
}

@media (max-width: 480px) {
  .menu-toggle .bar {
    width: 20px;
    height: 2px;
  }
}
/* ------------------ MOBILE MENU ------------------ */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
  padding: 0.5rem;
  background: transparent;
  border: none;
}

/* Base bars styling */
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #000; /* Default light mode color */
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 3px 0;
}

/* Light mode - ensure black bars */
body:not(.dark-mode) .menu-toggle .bar {
  background-color: #000 !important;
}

/* Dark mode - ensure white bars */
body.dark-mode .menu-toggle .bar {
  background-color: #fff !important;
}

/* Hamburger → Cross Animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Ensure dark mode colors persist in active state */
body.dark-mode .menu-toggle.active .bar {
  background-color: #fff !important;
}

body:not(.dark-mode) .menu-toggle.active .bar {
  background-color: #000 !important;
}

/* Hover feedback */
.menu-toggle:hover .bar {
  opacity: 0.8;
}

/* ------------------ RESPONSIVE SIZES ------------------ */
@media (max-width: 995px) {
  .menu-toggle {
    display: flex;
  }
  
  /* Ensure colors work in mobile view */
  body.dark-mode .menu-toggle .bar {
    background-color: #fff !important;
  }
  
  body:not(.dark-mode) .menu-toggle .bar {
    background-color: #000 !important;
  }
}

@media (max-width: 768px) {
  .menu-toggle .bar {
    width: 22px;
    height: 2.5px;
  }
}

@media (max-width: 480px) {
  .menu-toggle .bar {
    width: 20px;
    height: 2px;
    margin: 2.5px 0;
  }
  
  /* Extra insurance for mobile dark mode */
  body.dark-mode .menu-toggle .bar,
  body.dark-mode .menu-toggle.active .bar {
    background-color: #ffffff !important;
  }
}.header-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* for responsiveness */
  gap: 20px;
}

.header-content-left {
  flex: 1;
  min-width: 300px;
}

.header-content-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.resume-buttons {
  margin-top: 20px;
}

.btn {
  background: var(--btn);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}


.resume-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  text-align: left;
}

/* ✅ Center the buttons only on mobile */
@media (max-width: 768px) {
  .resume-buttons {
    justify-content: center; /* centers flex items horizontally */
    text-align: center;
  }
}
