/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  overflow-y: scroll;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: inherit;
  text-decoration: none;
}

.logo span {
  color: #ff4d5a;
}

.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  display: inline-block;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #ff4d5a;
}

.navbar a.active {
  color: #ff4d5a;
  text-decoration: none;
  border-bottom: 2px solid #ff4d5a;
  padding-bottom: 0.25rem;
}

/* ========== HERO SECTION ========== */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(120deg, #ffffff, #f8f8f8, #ffe5e8);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  padding: 0 2rem;
  text-align: center;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.hero-text h1 {
  font-size: 2.5rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  color: #ff4d5a;
}

.hero-text p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta {
  background: #ff4d5a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: all 0.5s;
}

.cta:hover::after {
  left: 100%;
}

.cta:hover {
  background: #ff6f75;
}


/* ========== SECTIONS ========== */
.section {
  padding: 6rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.card {
  padding: 2rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(255, 77, 90, 0.2);
}

/* ===== SECTION FADE-IN ANIMATION ===== */
.section {
  opacity: 0;
  transform: translateY(20px);
  animation: sectionFade 0.8s ease-out forwards;
}

.section:nth-of-type(2) { animation-delay: 0.4s; }
.section:nth-of-type(3) { animation-delay: 0.8s; }
.section:nth-of-type(4) { animation-delay: 1.2s; }

@keyframes sectionFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========== PORTFOLIO ========== */
.dark {
  background: #111;
  color: #fff;
}

.portfolio {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Project card container */
.project {
  width: 250px;
  height: 180px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Overlay for text */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.2rem;
  text-align: center;
  transition: background 0.4s ease, opacity 0.4s ease;
}

/* Project heading and desc */
.overlay h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* CTA button inside project */
.project-btn {
  opacity: 0;
  text-decoration: none;
  background: #ff4d5a;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, opacity 0.4s ease;
}

.project-btn:hover {
  background: #ff6f75;
  transform: translateY(-2px);
}

/* Hover: card grows, overlay darkens, text/button appear */
.project:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 35px rgba(255, 77, 90, 0.45);
}

.project:hover .overlay {
  background: rgba(0, 0, 0, 0.8);
}

.project:hover .project-desc,
.project:hover .project-btn {
  opacity: 1;
  max-height: 100px;
}

.project.expanded {
  transform: scale(1.08);
  box-shadow: 0 10px 35px rgba(255, 77, 90, 0.45);
}

.project.expanded .overlay {
  background: rgba(0, 0, 0, 0.8);
}

.project.expanded .project-desc,
.project.expanded .project-btn {
  opacity: 1;
  max-height: 100px;
}


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

.project-desc,
.project-btn {
  animation: fadeIn 0.6s ease;
}

/* Responsive layout */
@media (max-width: 768px) {
  .portfolio {
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 80%;
    height: 200px;
  }

  .project:hover {
    transform: scale(1.05);
  }
}

/* ========== PORTFOLIO PAGE ========== */
.portfolio-page {
  background: #fff;
  color: #222;
}

.portfolio-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

/* Each case block */
.portfolio-case {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  background: #fafafa;
}

.case-header {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.case-header h3 {
  color: #fff;
  font-size: 1.3rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.case-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1.5rem;
  transition: all 0.5s ease;
  background: #fff;
}

.portfolio-case:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(255,77,90,0.2);
}

.portfolio-case:hover .case-body {
  max-height: 400px;
  padding: 1.5rem;
  opacity: 1;
}

/* Tap-to-expand (mobile friendly) */
.portfolio-case.expanded .case-body {
  max-height: 400px;
  padding: 1.5rem;
  opacity: 1;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}




/* ========== CONTACT FORM ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form button {
  background: #ff4d5a;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #ff6f75;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #f7f7f7;
  font-size: 0.9rem;
}

/* ========== RESPONSIVE NAVBAR (HAMBURGER) ========== */

/* Base hamburger setup */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #222;
}

/* Mobile view */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  /* Show hamburger button */
  .menu-toggle {
    display: block;
  }

  /* Hide navbar by default */
  .navbar nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    background: white;
    border-top: 1px solid #eee;
  }

  /* When toggled, show the nav */
  .navbar nav.show {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
}

/* Desktop view fix */
@media (min-width: 769px) {
  .navbar nav {
    display: flex !important;
  }

  .navbar ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  .menu-toggle {
    display: none;
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE LOAD ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease-out forwards;
}

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

/* ===== HERO TEXT FADE SEQUENCE ===== */
.fade-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}

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

/* ===== TYPEWRITER CURSOR ===== */
#typewriter {
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #ff4d5a;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

/* ========== EXPANDING SERVICES SECTION ========== */
.services-expand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-block {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.service-block h3 {
  background: #ff4d5a;
  color: white;
  padding: 1.2rem 1.5rem;
  font-size: 1.4rem;
  margin: 0;
  transition: all 0.3s ease;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  color: #444;
  padding: 0 1.5rem;
  transition: all 0.5s ease;
  opacity: 0;
}

.service-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 77, 90, 0.15);
}

.service-block:hover h3 {
  background: #ff6f75;
}

.service-block:hover .service-details {
  max-height: 300px;
  padding: 1.2rem 1.5rem;
  opacity: 1;
}

.service-block.expanded .service-details {
  max-height: 300px;
  padding: 1.2rem 1.5rem;
  opacity: 1;
}

.service-block.expanded h3 {
  background: #ff6f75;
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .service-block:hover .service-details {
    max-height: 500px;
  }
}

.service-details p {
  animation: fadeIn 0.6s ease;
}

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





