:root{
  --max-width:1100px;
  --accent:#1f2937;
  --muted:#666;
  --bg:#faf8f6;
  --card:#fff;
  --transition: all 0.3s ease;
}
*{box-sizing:border-box}
body{font-family:'Inter',sans-serif;line-height:1.5;color:var(--accent);background:var(--bg);margin:0}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 2rem;
}

html {
  scroll-behavior: smooth;
}

#project {
  scroll-margin-top: 80px; /* Set this to your sticky header's height */
}

#process {
  scroll-margin-top: 80px; /* Set this to your sticky header's height */
}

#designs {
  scroll-margin-top: 80px; /* Set this to your sticky header's height */
}

#contact {
  scroll-margin-top: 50px; /* Set this to your sticky header's height */
}


/* Header / Nav */
.header-inner{display:flex;align-items:center;justify-content:space-between}
.logo img{height:48px}
.nav a{margin-left:1.2rem;text-decoration:none;color:var(--accent);font-weight:600;position:relative;padding-bottom:4px;transition:var(--transition)}
.nav a::after{content:"";position:absolute;bottom:0;left:0;width:0;height:2px;background:#111827;transition:width 0.3s ease}
.nav a:hover::after{width:100%}
.btn{display:inline-block;padding:0.6rem 1rem;border-radius:8px;text-decoration:none;cursor:pointer;position:relative;overflow:hidden;transition:var(--transition)}
.btn::after{content:"";position:absolute;left:50%;top:50%;width:0;height:0;background:rgba(255,255,255,0.3);border-radius:50%;transform:translate(-50%,-50%);transition:width 0.4s ease,height 0.4s ease}
.btn:active::after{width:200%;height:200%}
.btn-primary{background:#111827;color:white}
.btn-primary:hover{transform:scale(1.05);background:#000}
.btn-outline{border:1px solid #111827;color:#111827}
.btn-outline:hover{background:#111827;color:white}

/* Hero */
.hero{padding: 2rem 0 2rem 0;}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
.hero-text .stacked{font-family:'Playfair Display',serif;font-size:3.2rem;line-height:1.1;margin:0 0 1rem}
.stacked span{display:block;opacity:0;transform:translateY(20px)}
.lead{color:var(--muted);max-width:50ch;margin-bottom:1rem}
.hero-media img{width:100%;height:420px;object-fit:cover;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.08)}

/* Stats */
.stats{display:flex;gap:2rem;justify-content:space-between;padding:2rem 0}
.stat{background:var(--card);padding:1.2rem;border-radius:10px;text-align:center;flex:1;transition:var(--transition)}
.stat:hover{transform:translateY(-4px);box-shadow:0 6px 16px rgba(0,0,0,0.06)}
.num{font-size:2rem;font-weight:800}
.label{color:var(--muted)}

/* Projects (legacy classes preserved, but we use .projects-container/.project-card for layout) */
.project h2{font-size:1.5rem;margin-bottom:0rem}
.card{background:var(--card);border-radius:10px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.04);transition:var(--transition)}
.card img{width:100%;height:220px;object-fit:cover;display:block;transition:var(--transition)}
.card h3{padding:1rem;margin:0}
.card:hover{transform:translateY(-6px);box-shadow:0 12px 24px rgba(0,0,0,0.1)}
.card:hover img{transform:scale(1.05)}

/* Process */
.process .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.step{background:var(--card);padding:1rem;border-radius:10px;display:flex;gap:1rem;align-items:flex-start;transition:var(--transition)}

.process .step strong {
  background: #f0f0f0;            /* Light accent box */
  color: var(--accent);          /* Dark text */
}

.process .step:hover {
  background: #faf9f7;            /* Slight hover tint */
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Team */
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.person{text-align:center;background:var(--card);padding:1rem;border-radius:10px;transition:var(--transition)}
.person img{width:100%;height:200px;object-fit:cover;border-radius:8px;transition:var(--transition)}
.person:hover{transform:translateY(-6px);box-shadow:0 10px 20px rgba(0,0,0,0.08)}
.person:hover img{transform:scale(1.05)}

/* FAQ */
.faq details {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  transition: max-height 0.4s ease, background 0.3s ease;
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.13rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 0;
  border: none;
  transition: background 0.16s;
  outline: none;
}
.faq details[open] summary {
  background: #f7f7f7;
}
.faq-toggle-icon {
  margin-left: 1.2rem;
  color: #000000;
  font-size: 1.34rem;
  line-height: 1.12;
  transition: transform 0.18s;
  user-select: none;
  display: inline-block;
}
.faq details[open] .faq-toggle-icon {
  transform: rotate(90deg);
}

/* Footer */
.site-footer{padding:3rem 0;text-align:center;color:var(--muted)}

/* Responsive base */
@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .process .steps{grid-template-columns:1fr}
  .team-grid{grid-template-columns:repeat(2,1fr)}
  .stats{flex-direction:column}
  .header-inner{padding:0 1rem}
}

/* Sticky shrinking header */
.site-header{
  position:sticky;
  top:0;
  width:100%;
  background:rgba(250,248,246,0.9);
  backdrop-filter:blur(8px);
  z-index:1000;
  transition:all 0.3s ease;
}
.site-header.shrink{
  padding:0.5rem 0;
  background:rgba(250,248,246,0.95);
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.site-header .logo img{
  height:48px;
  transition:height 0.3s ease;
}
.site-header.shrink .logo img{
  height:36px;
}

/* Scroll progress bar */
#progress-bar{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  background:#111827;
  width:0;
  z-index:2000;
  transition:width 0.1s linear;
}

/* Active nav link */
.nav a.active{
  color:#000;
}
.nav a.active::after{
  width:100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.contact-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.contact-header p {
  color: var(--muted);
  font-size: 1.18rem;
  margin: 0;
}

.contact-section {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 2.4rem 0 4rem 0;
}
.contact-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.contact-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.contact-header p {
  color: var(--muted);
  font-size: 1.18rem;
  margin: 0;
}

.contact-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.contact-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  flex: 1 1 270px;
  max-width: 340px;
}
.contact-block {
  background: #f4f4fa;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  /* Reduce vertical padding: */
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem; /* decrease gap for compactness */
  min-height: unset; /* remove if previously set */
}

.contact-block-icon {
  font-size: 1.5rem;
  color: #000000;
  background: #ece7f9;
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  margin-bottom: 0.62rem;
}
.contact-block-title {
  font-size: 1.0rem;
  font-weight: 700;
  color: #18181b;
}
.contact-block-info {
	font-weight: 400;
  color: #545455;
  font-size: 1.01rem;
  margin: 0.13em 0 0.25em 0;
  word-break: break-all;
}
.contact-link {
  color: #a689f7;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.2rem;
  text-decoration: none;
  transition: color 0.17s;
  display: inline-block;
}
.contact-link:hover {
  color: #5941a9;
  text-decoration: underline;
}
.contact-form-side {
  flex: 2 1 352px;
  max-width: 500px;
  min-width: 290px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.contact-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  padding: 2rem 2rem 1.5rem 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label {
  font-weight: 600;
  color: #222;
   margin: 0; 
  display: block;
  text-align: left;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;            /* remove top & bottom margins */
  padding: 0.82rem 1rem;
  border: 1px solid #d2d6db;
  border-radius: 8px;
  font-size: 1.08rem;
  background: #fff;
  color: #222;
  outline: none;
  transition: border 0.16s;
}

.contact-form button[type="submit"] {
  width: 100%;
  margin-top: 0.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #000000;
}
.btn-primary {
background: transparent;
color: #111827;
border: 1px solid #111827;
padding: 0.6rem 1rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}

.btn-primary:hover {
background: #111827;
color: white;
}

@media (max-width: 950px) {
  .contact-grid {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .contact-form-side, .contact-blocks {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .contact-form {
    padding: 1.2rem 1rem;
  }
}

/* Testimonials */
#testimonials {
  padding: 6rem 1rem;
  background: #faf8f6;
  text-align: center;
  position: relative;
}

.testimonial-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.testimonial p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.testimonial .author {
  font-weight: bold;
}

/* Controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
}

.testimonial-prev,
.testimonial-next {
  background: #fff;
  color: #111827;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: #111827;
  color: #fff;
  transform: scale(1.1);
}

/* Dots */
.testimonial-dots {
  display: flex;
  gap: 0.6rem;
}

.testimonial-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots button.active {
  background: #111827;
  transform: scale(1.2);
}

/* FadeIn animation */
@keyframes fadeIn{
  from{opacity:0;transform:translateY(20px);}
  to{opacity:1;transform:translateY(0);}
}

/* ===== NAV ALIGNMENT FIXES (v2.1) ===== */
/* Ensure nav items (including buttons) are vertically centered */
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
/* Nav as flex row, center items */
.nav { display:flex; align-items:center; gap:1.2rem; }
/* Make links and buttons align center and have consistent height */
.nav a { display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0 12px; line-height:1; border-radius:10px; }
/* Buttons inside nav: preserve button style but ensure vertical centering */
.nav a.btn { padding:0 14px; min-height:40px; }
/* Remove underline pseudo-element for nav buttons (keep for plain links) */
.nav a.btn::after{ display:none !important; }
/* If any button has extra border or unexpected baseline, normalize box-sizing */
.nav a, .nav a * { box-sizing:border-box; }

/* Extra: reduce odd baseline shift for .btn-outline */
.btn-outline { display:inline-flex; align-items:center; justify-content:center; padding:0.45rem 0.9rem; height:40px; }

/* Ensure header padding doesn't push nav off-center */
.site-header { padding:0.6rem 0; }

/* Small screens tweak */
@media (max-width:600px){
  .nav a { height:40px; padding:0 8px; }
  .nav { gap:0.8rem; }
}

/* === Projects Section Alignment & Hover (final) === */
.projects-container {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 0;
	scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.project-card {
  /* FIXED DIMENSIONS FOR UNIFORM SIZE */
  min-width: 320px;
  max-width: 320px;        /* NEW: prevents cards from growing */
  width: 320px;            /* NEW: enforces exact width */
	height: auto !important;      /* Allow card to size to its content */
  display: block !important;
  flex: 0 0 320px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s ease;
  text-align: left;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  
  /* NEW: Flexbox for content alignment */
  flex-direction: column;
}

.project-card img {
  width: 100%;
  height: 220px;           /* Fixed image height */
  object-fit: cover;
  display: block;
  flex-shrink: 0;          /* NEW: Prevent image from shrinking */
}

.project-card h3 {
  padding: 1rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
	display: block !important;
  flex-grow: 0 !important;
  margin-bottom: 0rem; 
  
  display: flex;
  align-items: center;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.projects-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

.projects-wrapper {
  position: relative;
}

.process-img {
  display: block;
  width: 100%;
  max-width: 300px;   /* or adjust to suit your card size */
  margin: 0.7rem 0 0.5rem 0;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  /* Allow cards to size to their content on mobile */
  .projects-container .project-card {
    display: block !important;
    height: auto !important;
    padding-bottom: 0.5rem !important; /* optional: tighten bottom padding */
  }

  /* Ensure the title doesn’t stretch the card */
  .projects-container .project-card h3 {
    display: block !important;
    margin-bottom: 0.5rem !important;  /* space under title */
    flex-grow: 0 !important;
  }
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100; /* above nav */
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When nav is active */
.nav.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Animate hamburger into X */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Scroll arrows */
.scroll-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s;
}
.scroll-btn:hover {
  background: rgba(17, 24, 39, 0.9);
}
.scroll-btn.prev { left: -20px; }
.scroll-btn.next { right: -20px; }

.animated-text {
  /* Use any repeating pattern or gradient you like */
  background: url('assets/pattern.webp') repeat;
  /* Clip the background to the text */
  -webkit-background-clip: text;
  background-clip: text;
  /* Make the text itself transparent so only the pattern shows */
  -webkit-text-fill-color: transparent;
  display: inline-block;
  /* Prevent wrapping */
  white-space: nowrap;
  /* Animate the background’s position */
  animation: slidePattern 8s linear infinite;
}

/* Move the background horizontally */
@keyframes slidePattern {
  from { background-position: 0 0; }
  to   { background-position: 200px 0; }
}
