:root{
  --card-bg: #ffffff;
  --text-color: #111;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Reset and Base */
* {

  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fef6ec;
  color: #1e1e1e;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background-color: transparent;
  padding: 1.5rem 0;
  text-align: center;
}

.navbar nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-weight: 500;
  font-size: 1rem;
}

.navbar nav a ,.navbar nav .fa-github, .navbar nav .fa-sun, .navbar nav .email-section {
 text-decoration: none;
  cursor: pointer;
  color: #e35799;
}
.navbar nav .email-section{
  cursor: default;
}
/* Flex utility for header */
.container.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header left section */
.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hamburger styles */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  margin-right: 10px;
  right: 0;
  top: 0;
  /* margin-left: 0.1rem; */
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
/* Hero */
.hero,.projects,.experience {
  background-color: #fcfcfc;
  padding: 4rem 0;
}

.hero .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero .intro {
  flex: 1 1 0px;
  min-width: 280px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #e35799;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.hero p {
  color: #555;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
}

.primary {
  background-color: #e35799;
  color: white;
}

.secondary {
  background-color: #f0e8dc;
  color: #1e1e1e;
}

.avatar {
  flex: 0 0 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e35799;
}
ul li{
  margin: 1rem;
  letter-spacing: .91px;
  font-size: small;

}

/* Section Headers */
section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  /* text-align: left; */
}

/* About */
.about p {
  font-size: 1.1rem;
  /* color: #444; */
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 12px;
}

.tech-tags span {
  background-color: #f8f2e9;
  color: #b18d8d;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size:10px;
  border: 1px solid #dcdcdc;
  transition: background-color 0.3s ease;
}

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

.project-card {
  background-color: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  border: 2px solid #cfcfcf;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease;
  border: 2px solid #e35799;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
}

.project-card a {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: underline;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.tags span {
  font-size: 0.75rem;
  background-color: #f0e8dc;
  color: #1e1e1e;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  margin-right: 0.3rem;
}

/* Skills */
.skills .icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-top: 2rem;
}

.skills .icons img {
  width: 40px;
  height: 40px;
}

/* Contact */
.contact form {
  max-width: 600px;
  margin: 2rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact button[type="submit"] {
  background-color: #e35799;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;      
  padding: 1.2rem;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem 0;
  color: #777;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.linkedin-icon{
  margin-right:12px; color:#0077b5;
}
.x-icon{
  margin-right:12px; color:#1da1f2;
}
.dev-icon{
  margin-right:12px; background:#0a0a0a; color:#fff; border-radius:4px; padding:2px;
}
.heart {
  color: red;
}
.flex-end{
  justify-content: right;
}
section {
  min-height: 20rem;
  padding: 2rem 0;
  /* margin: 2rem 0; */
  /* border-bottom: 1px solid #eaeaea; */
}
/* expience */
.experience{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}
.flex-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}
@media (max-width: 900px) {
  .flex-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.flex-row{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.card{
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.card-images {
  display: flex;
  gap: .5rem;
  /* flex-wrap: wrap; */
}
.card-images img:hover{
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}
.card img, .img-hover-wrap img {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  transition: filter 0.7s, transform 0.7s;
}

/* Image Hover Effect */
.img-hover-wrap {
  position: relative;
  display: inline-block;
  margin: 0.5rem;
  /* min-width: 180px; */
}
.img-hover-wrap img {
  display: block;
  
  border-radius: 8px;
  transition: filter 0.7s, transform 0.7s;
}
.img-hover-overlay {
  max-width: 200px;
  max-height: 200px;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  border-radius: 8px;
  transition: opacity 0.6s;
  font-size: 1rem;
  text-align: center;
  pointer-events: none;
}
.img-hover-wrap:hover img {
  filter: blur(2px) brightness(0.7);
  transform: scale(1.08);
}
.img-hover-wrap:hover .img-hover-overlay {
  opacity: 1;
}
.img-hover-overlay a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}
.card-tenure{
  font-size: 12px;
  color: #666;
  margin-top: 0.5rem;
  /* display: block; */
}
.card-skills{
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 0.5rem;
} 
.card-skills span {
  background-color: #e562c4;
  color: #f4f1f1;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  margin-bottom:0.12rem;
  margin-top: .5rem;  display: inline-block;
  font-size: 11px;
  transition: background-color 0.3s ease;
}

/* dark mode */
body.dark-mode,.dark-mode .nav-links {
  background: #1e293b;
  color: #f1f1f1;
}
.dark-mode .navbar {
  /* background-color: #0f172a; */
}
.dark-mode .navbar nav a {
  color: #f1f1f1;
}
.dark-mode .btn.primary {
  background-color: #b26bcc;
}
.dark-mode .avatar img {
  border: 4px solid #b26bcc;
}
.dark-mode .hero, .dark-mode .projects,.dark-mode .experience {
  background-color: #22345f;
}
.dark-mode .nav-hamburger {
  color: #f1f1f1;
}
.dark-mode .hero h1,
.dark-mode .hero h2 {
  color: #f1f1f1;
}
.dark-mode .hero p {
  color: #ccc;
}
.dark-mode .project-card {
  background-color: #b26bcc;
  border: 2px solid #666;
}
.dark-mode .project-card h3,
.dark-mode .project-card p {
  color: #f1f1f1;
}
.dark-mode .project-card a {
  color: #101213;
}
.dark-mode .fa-github,.dark-mode .fa-moon,
.dark-mode .navbar nav .fa-github,
.dark-mode .navbar nav .email-section,
.dark-mode  a .fab.fa-github{
  color: #f1f1f1;
}
.dark-mode .contact form input,
.dark-mode .contact form textarea {
  background-color: #555;
  color: #f1f1f1;
  border: 1px solid #666;
}
.dark-mode .contact button[type="submit"] {
  background-color: #b26bcc;
}
.dark-mode .read-more-btn {
  color: #b26bcc;
}
.dark-mode .card-skills span{
  background-color: #b26bcc;
  
}
.card img, .img-hover-wrap img,.img-hover-wrap {
  max-width: 200px;
}
@media (max-width: 768px) {
  .btn-group a{
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
  .flex-between {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav-left {
    flex: 1;
  }
  .nav-hamburger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    left: 0;
    background: #fef6ec;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.208);
    align-items: center;
  }
  .nav-links.open {
    display: flex;
  }
  .navbar nav {
    position: relative;
  }
  .navbar nav a {
    font-size: 1.2rem;
  }
   .container {
    flex-direction: column;
    /* text-align: center; */
    max-width:720px ;
  }
  
  .hero .intro {
    padding: 0;
  }
  .avatar {
    margin-top: 2rem;
  }
  #navToggle .fa-close{
    display: none;
  }
  #navToggle .active .fa-bars {
    display: none;  
  }
  #navToggle .active .fa-close {
    display: block;
  }
  .flex-card {
  max-width: 100%;
  margin: 2rem auto;
    flex-direction: column;
    align-items: center;
  }
  .flex-row {
    flex-direction: column;
    align-items: center;    
  }
  .card-images{
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
  }
  .card{
    flex-wrap: nowrap;
    align-items: center;
  }
}

@media (max-width:1023px) {
  .tech-tags{
    display: none;
  }
}


@media(max-width:600px){
  .container {
    max-width:520px ;
  }
}

@media(max-width:480px){
  .container {
    max-width:320px ;
  }
}

@media (max-width: 1024px) {
  .card-images {
    justify-content: center;
  }
  .card {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }
  .card-images {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
  }
}
@media (max-width: 600px) {
  .card img, .img-hover-wrap img {
    max-width: 120px;
  }
  .card {
    padding: 8px;
  }
}
@media (max-width: 400px) {
  .card img, .img-hover-wrap img {
    max-width: 80px;
  }
}
.read-more-btn {
  background: none;
  border: none;
  color: #e35799;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s;
}
.read-more-btn:hover {
  color: #b26bcc;
  text-decoration: underline;
}
.desc-hidden {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}