/* Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
a { text-decoration: none; color: inherit; }

/* Navbar */
/* Navbar Base */
.navbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 1rem 2rem;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Container */
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6f42c1;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

/* Links Style */
.nav-links li a {
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding-bottom: 6px; /* 🔹 gap for underline */
  transition: color 0.3s ease;
}

/* Hover Underline Effect */
.nav-links li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* underline slightly away */
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #6f42c1);
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #6f42c1;
}

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

/* Theme Toggle Button */
.theme-btn {
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.theme-btn:hover {
  transform: rotate(20deg) scale(1.2);
}

/* Menu Toggle (mobile) */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Mobile Menu Fix */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;               /* remove extra space */
    margin: 0;
    padding: 0;
    background: #1e1e1e;  /* dark bg for mobile */
    position: absolute;
    top: 60px;            /* nav height adjust */
    right: 0;
    width: 100%;          /* full width */
  }

  .nav-links li {
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* thin divider */
  }

  .nav-links li a {
    display: block;
    padding: 1rem; /* equal spacing */
  }

  .nav-links.active {
    display: flex;
  }
}


/* Dark Theme */
body.dark .navbar {
  background: rgba(20, 20, 20, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

body.dark .logo {
  color: #007bff;
}

body.dark .nav-links li a {
  color: #eee;
}


/* Hero */
.hero { display: flex; align-items: center; justify-content: space-around;
  padding: 8rem 2rem 4rem; min-height: 100vh; }
.hero-content { max-width: 600px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.gradient-text { background: linear-gradient(90deg,#007bff,#6f42c1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { margin-bottom: 1.5rem; }
.hero-img {
  position: relative;
  display: inline-block;
  border-radius: 12%;
  overflow: hidden;
}

.hero-img img { 
  width: 280px; 
  border-radius: 12%; 
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: block;
  position: relative;
  z-index: 2;
}

/* Gradient Glow Effect */
.hero-img::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 14%;
  background: linear-gradient(135deg, #007bff, #6f42c1, #ff0080);
  z-index: 1;
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Hover Zoom + Glow */
.hero-img:hover img {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.hero-img:hover::before {
  opacity: 1;
  transform: scale(1.1);
}


/* Section Titles */
section { padding: 5rem 2rem; text-align: center; }
section h2 { font-size: 2rem; margin-bottom: .5rem; }
.underline { width: 80px; height: 4px; margin: 0 auto 2rem;
  background: linear-gradient(90deg,#007bff,#6f42c1);
  transition: width .3s; }
section:hover .underline { width: 120px; }

/* About */
.about-details {
  margin-top: 2rem;
  background: rgba(255,255,255,0.8);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
}

body.dark .about-details {
  background: rgba(40,40,40,0.85);
  color: #eee;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* Default state - hidden */
.detail {
  display: none;
  animation: fadeIn 0.5s ease;
}

.detail.active {
  display: block;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Active Card Highlight */
.card.active {
  border: 2px solid #6f42c1;
  box-shadow: 0 8px 20px rgba(111,66,193,0.25);
  transform: scale(1.05);
  background: rgba(255,255,255,0.95);
}

body.dark .card.active {
  background: rgba(55,55,55,0.95);
  border: 2px solid #6f42c1;
}


/* Skills */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.5rem; }
.skill-card {
  background: #fff; padding: 1.5rem; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.skill-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  font-weight: 500;
  transition: transform 0.3s ease, background 0.4s ease, color 0.4s ease;
  cursor: pointer;
}

.skill-card svg {
  margin-bottom: 10px;
  transition: transform 0.3s ease, fill 0.4s ease;
}

/* Hover effect */
.skill-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, #007bff, #6f42c1);
  color: #fff;
  box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4);
}

.skill-card:hover svg {
  transform: scale(1.2) rotate(5deg);
  fill: #fff; /* icons change to white */
}


/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 2rem; }
.project-card {
  background: #fff; padding: 1.5rem; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.project-card:hover { transform: translateY(-8px); }
.btn-outline {
  display: inline-block; margin-top: 1rem; padding: .6rem 1.2rem;
  border: 2px ; border-radius: 6px; color: #007bff;background-color: #007bff; color: white;
  transition: .3s;
}
.btn-outline:hover {
  background: linear-gradient(90deg,#007bff,#6f42c1); color: white;
    transform: scale(1.08);  /* lite zoom */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Contact */
/* Contact Section */
.contact {
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

/* Gradient background split */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(111,66,193,0.1));
  backdrop-filter: blur(10px);
}

/* 🔹 Form */
.contact-form {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  color: var(--text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 12px rgba(111, 66, 193, 0.3);
}

/* 🔹 Info Cards */
.contact-info {
  flex: 1 1 300px;
  display: grid;
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 25px rgba(111, 66, 193, 0.25);
  border: 2px solid #6f42c1;
}

/* 🔹 Icon Circle */
.icon-circle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #6f42c1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(111, 66, 193, 0.4);
}

.svg-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

/* 🔹 Dark Theme Fix */
body.dark .contact-container {
  background: linear-gradient(135deg, rgba(0,123,255,0.15), rgba(111,66,193,0.15));
}

body.dark .info-card,
body.dark .contact-form input,
body.dark .contact-form textarea {
  background: rgba(40, 40, 40, 0.8);
  color: #eee;
}

/* send message btn  */

.contact-form .btn {
  background: linear-gradient(135deg, #007bff, #6f42c1);
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.4);
  position: relative;
  overflow: hidden;
}

/* Shine Effect */
.contact-form .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.contact-form .btn:hover::after {
  left: 125%;
}

.contact-form .btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(111, 66, 193, 0.6);
}


/* Footer */
/* Footer */
.footer {
  margin-top: 5rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-top: 2px solid rgba(111, 66, 193, 0.2);
  box-shadow: 0 -6px 20px rgba(111, 66, 193, 0.15);
  border-radius: 0px 0px 0 0;
}

/* Gradient text (for your name) */
.footer .gradient-text {
  background: linear-gradient(90deg, #007bff, #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Heart Animation */
.footer .heart {
  display: inline-block;
  animation: pulse 1.5s infinite;
}

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

/* Dark theme support */
body.dark .footer {
  background: rgba(30, 30, 30, 0.85);
  border-top: 2px solid rgba(111, 66, 193, 0.3);
  color: #eee;
}


/* Dark Mode */
body.dark {
  background: #121212; color: #f1f1f1;
}
body.dark .navbar { background: #1f1f1f; }
body.dark .card, body.dark .skill-card, body.dark .project-card {
  background: #1f1f1f; color: #f1f1f1;
}
body.dark footer { background: #1f1f1f; }

/* Responsive */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-img { margin-top: 2rem; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: white; flex-direction: column; display: none; padding: 30px;
  }
  .nav-links.active { display: flex; }
  body.dark .nav-links { background: #1f1f1f; }
}
/* after update about section */

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

.about-cards .card {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
  text-align: center;   /* ✅ center text */
}

.about-cards .card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 28px rgba(111, 66, 193, 0.4),
              0 0 20px rgba(111, 66, 193, 0.6);  /* 🔥 purple glow */
  border: 2px solid #6f42c1;
}

/* 🔹 Icon Circle */
.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #6f42c1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;   /* ✅ center icon */
  color: #fff;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover .icon-circle {
  transform: rotate(8deg) scale(1.15);
  box-shadow: 0 6px 16px rgba(111, 66, 193, 0.5),
              0 0 12px rgba(0, 123, 255, 0.6); /* 💡 glowing icon */
}

/* 🔹 SVG */
.svg-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}


/* modal for resume  */

