@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #7a4b5b; 
  line-height: 1.7;
  min-height: 100vh;

  background: linear-gradient(
    to bottom,
    #2faebd 0%,
    #6fd4db 30%,
    #c6d8d6 55%,
    #e2a5a0 75%,
    #f0554f 100%
  );
}

/* ================= UTILITIES ================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
}

/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeUp 1s ease-out forwards;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 0.75rem;
  opacity: 0.85;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= ABOUT ================= */
.about-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ================= SKILLS ================= */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
}

.skills a {
  color: #6b3e4e;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.skills a:hover {
  border-color:#6fd4db
}

.skill-card {
  background: rgba(255, 255, 255, 0.75);
  padding: 1.1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

/* ================= PROJECTS ================= */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.project-card {
  background: #f8eaf1;
  border-radius: 22px;
  padding: 2rem 2.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}

.project-info {
  padding: 1.4rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color:#6b3e4e;
}

.project-desc {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.6;
  max-height: 4.8em;
  position: relative;
}
@media (max-width: 480px) {
  .project-card-dreamy {
    padding: 1.6rem;
    border-radius: 18px;
  }
}

/* ================= CONTACT ================= */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-btn {
  border: none;
  background: #2b2b2b;
  color: #fff;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #444;
}

/* ================= SCROLL ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* stagger effect */
.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

.project-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1.2rem;

}

.project-links li{
    margin-bottom: 0.5rem;
}

.project-links a {
  color: #6b3e4e;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.project-links a:hover {
  border-color: #6fd4db;
 text-decoration:solid
}

.project-more-btn {
  margin-top: 1.3rem;
  
  align-self: flex-start;
  background: transparent;
  border: 1px solid #c88ea0;
  color: #7a4b5b;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-more-btn:hover {
  background: #c88ea0;
  color: white;
}

.project-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 20, 30, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.project-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal {
  background: #f8eaf1;
  border-radius: 26px;
  padding: 2.4rem;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  color: #7a4b5b;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
}

.project-modal-overlay.active .project-modal {
  transform: scale(1);
  opacity: 1;
}

/* close button */
.project-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 1.6rem;
  cursor: pointer;
  color: #6b3e4e;
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease;
}

.project-modal-close:hover {
    transform: scale(1.2);
    color: #000;
}

body.modal-open {
    overflow: hidden;
}

.project-more {
    display: none;
}

.project-modal.active {
    display: flex;
}

.modal-content{
    background: #c88ea0;
    max-width: 700px;
    width: 90%;
    padding: 2rem;
    border-radius: 24px;
    position: relative;
    animation: modalFadeUp 0.4s ease;
}

.close-modal{
    position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #7a4a5a;
  cursor: pointer;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-modal-body p {
  line-height: 1.7;
  color: #5e4047;
  margin-bottom: 1.2rem;
}

.project-modal-body ul {
  padding-left: 1.2rem;
}

.project-modal-body li {
  margin-bottom: 0.6rem;
}


body,
main,
.container,
section,
.projects {
  filter: none !important;
  backdrop-filter: none !important;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -o.02em;

}
