/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Root Colors */
:root {
  --bg: #fcefe8;
  --text: #3a2f2f;
  --accent: #d9a7a0;
  --highlight: #a67b5b;
  --box-bg: #fcefe8;
}

/* Body */
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Highlight Text */
.highlight-text b {
  background: linear-gradient(90deg, #d9a7a0, #d9c17d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #d9a7a0, #a67b5b);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px 50px;
  transition: padding 0.3s, background-color 0.3s;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(90deg, #fff, #ffe08a);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s;
  white-space: nowrap;
}

.navbar .logo:hover {
  transform: scale(1.1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #fff;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}



/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: #f5f5f5;
  padding-top: 80px;   
}

.hero-text h1 {
  font-size: 3em;
  margin-bottom: 25px;
}

.hero-text p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 10px;
}

.btn:hover {
  background: var(--highlight);
}

/* Sections */
section {
  padding: 60px 15%;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--highlight);
}

/* About Section */
.about-heading {
  color: var(--highlight);
  text-align: center;
  margin-bottom: 30px;
}

.about-container {
  display: flex;
  align-items: center;     
  gap: 50px;              
  justify-content: space-between;
  margin-top: 50px;
}

.about-text-boxes {
  flex: 1;                 
  display: flex;
  flex-direction: column;  
  gap: 20px;
}

.about-text-box {
  background: var(--box-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  line-height: 1.7;
  font-size: 1rem;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-text-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.about-img img {
  width: 350px;
  height: 500px;
  border-radius: 20px;
  border: 4px solid var(--accent);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

/* Projects Section */
.projects-heading {
  font-size: 2.5rem;
  text-align: center;
  color: var(--highlight);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUpFade 1s forwards;
  animation-delay: 0.2s;
}





.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 25px;
  border-radius: 0 15px;
  box-sizing: border-box;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 0.8s forwards;
  transition: transform 0.3s, box-shadow 0.3s;
}

section {
  padding: 60px 5%; /* 15% se kam karo taake overflow na ho */
  box-sizing: border-box;
}


.project-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFade 0.8s forwards;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.project-card:nth-child(1) { animation-delay: 0.3s; }
.project-card:nth-child(2) { animation-delay: 0.5s; }
.project-card:nth-child(3) { animation-delay: 0.7s; }
.project-card:nth-child(4) { animation-delay: 0.9s; }
.project-card:nth-child(5) { animation-delay: 1.1s; }
.project-card:nth-child(6) { animation-delay: 1.3s; }
.project-card:nth-child(7) { animation-delay: 1.5s; }
.project-card:nth-child(8) { animation-delay: 1.7s; }

.project-title {
  font-size: 1.5rem;
  color: var(--highlight);
  margin-bottom: 10px;
  font-weight: 600;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 15px;
}

.project-card .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.project-card .btn:hover {
  background: var(--highlight);
}

/* Slide Up + Fade Animation */
@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
.contact-section {
  padding: 60px 15%;
  background: var(--bg);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.contact-info h2,
.contact-form h2 {
  color: var(--highlight);
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info p a.btn {
  display: block;
  width: 80%;         
  margin: 10px auto;  
  padding: 12px 18px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s, background-color 0.3s;
}

.contact-info p a.btn:hover {
  transform: translateY(-3px);
  background: var(--highlight);
}

.contact-info p.fun-tagline {
  font-style: italic;
  color: var(--text);
  margin-top: 15px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}

.contact-form textarea[name="message"] {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form button:hover {
  background: var(--highlight);
}

/* Footer */
footer {
  background: var(--highlight);
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-container,
  .about-container {
    flex-direction: column;
    gap: 25px;
  }

  .about-img img {
    width: 80%;
    height: auto;
  }

  .about-text-boxes {
    width: 100%;
  }
}

/*  Responsive tweaks */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-img img {
    max-width: 90%;
    height: auto;
  }

  .about-text-boxes {
    width: 100%;
    margin-top: 20px;
  }

  .about-text-box {
    text-align: left;
  }

  /* Navbar mobile behavior */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #d9a7a0, #a67b5b);
    position: absolute;
    top: 70px;
    left: 0;
    gap: 15px;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex;
  }

}


.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* default hide */
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #d9a7a0, #a67b5b);
    position: absolute;
    top: 70px;
    left: 0;
    gap: 15px;
    padding: 15px 0;
  }

  .nav-links.active {
    display: flex; /* show on click */
  }

  .hamburger {
    display: block; /* show icon on mobile */
  }
}
