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

html,
body {
  font-size: 16px;
  line-height: 1.8;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('assets/bg3.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  scroll-behavior: smooth;
}

/* Container helper */
.container {
  width: 92%;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* =========================
   Navbar Styles
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin: 0 1rem;
  margin-top: 0;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(6px);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #E6E6FA;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Desktop Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links li a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: #7755a3;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

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

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

/* Hamburger Menu Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 2px;
  width: 20px;
  background-color: white;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Hamburger menu active/clicked state */
.menu-toggle.open .bar {
  background-color: #E6E6FA;
}

/* =========================
   Responsive Navigation
========================= */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    flex-direction: column;
    width: 200px;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 0.3rem 0; 
  }

  .nav-links li {
    margin: 0;           
  }

  .nav-links li a {
    font-size: 0.95rem; 
    padding: 0.1rem 1rem; 
    display: block;
  }

  /* Remove desktop hover effects for mobile */
  .nav-links li a::after {
    display: none;
  }

  /* Mobile-specific hover/click effect */
  .nav-links li a:hover,
  .nav-links li a:active {
    color: #E6E6FA;
    background: rgba(119, 85, 163, 0.2);
    border-radius: 8px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1000;
  }
}

/* =========================
   Section Headings
========================= */
h1,
h2,
h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
  letter-spacing: 1px;
}

/* =========================
   Home Section
========================= */
.about-center {
  text-align: center;
  padding: 3.5rem 1.5rem;
  max-width: 800px;
  margin: auto;
}

.profile-pic {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.name-heading {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.headline {
  font-size: 1.2rem;
  color: #ddd;
  font-weight: 500;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.social-icons img {
  width: 42px;
  height: 42px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.15);
  filter: brightness(1.2) saturate(1.5);
}

.resume-btn {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.7rem 1.4rem;
  background: #7755a3;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.resume-btn:hover {
  background: #3C2F5E;
  transform: scale(1.05);
}

/* Responsive About Section Text */
@media (max-width: 480px) {
  .name-heading {
    font-size: 2rem;
  }
  .headline {
    font-size: 1.1rem;
  }
  .profile-pic {
    width: 180px;
    height: 180px;
  }
}

/* =========================
   About Details Section
========================= */
/* About Section Styling */
#about {
  padding: 3rem 1rem;
  color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



.about-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 18px rgba(150, 123, 182, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(203, 170, 203, 0.6);
}

.about-box h3 {
  font-size: 1.6rem;
  color: #ECD9FA;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #7755a3;
  padding-bottom: 0.4rem;
  letter-spacing: 0.8px;
}

.about-box p,
.about-box ul {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #eee;
}

.about-box ul {
  list-style-type: disc;
  padding-left: 1.3rem;
}

.about-box ul li {
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.about-box.full-width {
  grid-column: 1 / -1; 
  margin-top: 2rem;
}

.about-box.professional-summary {
  grid-column: 1 / -1; 
  margin-bottom: 2.5rem;
}

.about-content-grid {
  margin-bottom: 2rem;
}

/* Skills Category Styling */
.skills-category {
  margin-bottom: 1rem;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.skills-category p {
  font-size: 1rem;
  color: #ddd;
  line-height: 1.5;
  margin-bottom: 0;
}

.skills-category p strong {
  color: #E6E6FA;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  #about h2 {
    font-size: 2.2rem;
  }

  .about-box {
    padding: 1.2rem 1rem;
  }

  .about-box h3 {
    font-size: 1.4rem;
  }
}


/* =========================
   Skills Section
========================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 👈 4 columns */
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.2rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #fff;
  transition: all 0.3s ease;
  cursor: default;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.skill-item:hover {
  background: #7755a3;
  color: white;
  cursor: pointer;
  transform: translateY(-5px);
}

/* External link icon styling */
.external-link-icon {
  color: #b0b0b0;
  float: right;
  font-size: 1.1rem;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.skill-item:hover .external-link-icon {
  color: #ffffff;
}

/* Responsive Skills Grid */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .skill-item {
    padding: 0.8rem 0.6rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .skill-item {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .external-link-icon {
    font-size: 0.9rem;
  }
}

/* =========================
   Projects Section
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-card a {
  display: block;
  padding: 1.5rem 1.2rem;
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: scale(1.03);
  background: #3C2F5E;
}

.project-card:hover h3,
.project-card:hover p {
  color: white;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 1rem;
}

.project-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.project-card p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* Add some space between tech stack and description */
.project-card p + p {
  margin-top: 0.5rem;
}

/* =========================
   Contact Section
========================= */
#contact {
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.02);
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

form label {
  font-weight: 600;
  font-size: 1rem;
  color: #eee;
}

form input,
form textarea {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: #111;
  color: white;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: 2px solid #7755a3;
  background-color: #222;
}

form .btn {
  padding: 0.9rem;
  font-size: 1rem;
  background-color: #7755a3;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

form .btn:hover {
  background-color: #3C2F5E;
}

.response {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  color: #00cc88;
}

/* Responsive Contact Form */
@media (max-width: 480px) {
  form {
    padding: 1.5rem 1rem;
  }
}

/* =========================
   Footer Section
========================= */
footer {
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-container p {
  flex: 1 1 auto;
  text-align: left;
}

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

.social-links a img {
  width: 30px;
  height: 30px;
  filter: brightness(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 480px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-container p {
    text-align: center;
  }
}
