/* ===== CSS Variables ===== */
:root {
  --color-bg: #f5f5f0;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e0;
  --color-accent: #1a1a1a;
  
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; opacity: 0; }
.delay-200 { animation-delay: 0.2s; opacity: 0; }
.delay-300 { animation-delay: 0.3s; opacity: 0; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 245, 240, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  transition: var(--transition-fast);
}

.logo:hover {
  opacity: 0.7;
}

.nav {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-remix {
  padding: 10px 20px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-remix:hover {
  transform: scale(1.05);
  opacity: 0.9;
}


/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: 0.3s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: 1.5rem;
  margin: 1.5rem 0;
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-display);
}

.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-nav {
    display: flex;
  }
}

/* ===== Home Hero Section ===== */
.home-hero {
  padding-top: 128px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .home-hero {
    padding-top: 160px;
    padding-bottom: 80px;
  }
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-tagline .dot {
  color: var(--color-text-muted);
}



.highlight {
  position: relative;
  padding: 0.15em 0.25em;
  line-height: 1.6;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  z-index: 0;
}

.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      transparent 20%,
      rgba(198, 233, 200, 0.85) 25%,
      rgba(198, 233, 200, 0.85) 80%,
      transparent 90%
    );
  filter: blur(1.2px);
  transform: rotate(-2.3deg);
  z-index: -1;
}


.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 40px;
}

.home-hero-title .text-muted {
  color: var(--color-text-muted);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.btn-cta:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== Projects Section ===== */
.projects {
  padding: 40px 0 80px;
}

@media (min-width: 768px) {
  .projects {
    padding: 60px 0 120px;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .project-card-last {
    grid-column: 1 / -1;
  }
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
  overflow: hidden;
}

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

.project-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 24px;
  background-color: #e5e5e0;
}

.project-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

@media (min-width: 768px) {
  .project-image {
    max-height: 500px;
  }
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-client {
  font-size: 0.875rem;
  font-weight: 600;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 1.75rem;
  }
}

/* ===== Success Section ===== */
.success-section {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .success-section {
    padding: 120px 0;
  }
}

.success-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .success-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.success-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.success-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 700px;
}

/* ===== Case Study Hero Section ===== */
.hero {
  padding-top: 128px;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 160px;
    padding-bottom: 96px;
  }
}

.project-meta {
  display: flex;
  gap: 48px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.meta-value {
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 40px;
  max-width: 900px;
}

@media (min-width: 768px) {
  .hero-title {
    margin-top: 56px;
  }
}

.hero-image-container {
  margin-top: 56px;
}

@media (min-width: 768px) {
  .hero-image-container {
    margin-top: 80px;
  }
}

.image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e5e0;
}

/* FIXED: Changed height: 100% to height: auto to prevent image stretching */
.hero-image,
.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-wrapper:hover .hero-image,
.image-wrapper:hover .gallery-image {
  transform: scale(1.02);
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .about {
    padding: 120px 0;
  }
}

.about-grid,
.future-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .about-grid,
  .future-grid {
    grid-template-columns: 1fr 2fr;
    gap: 64px;
  }
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.about-content,
.future-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-text,
.future-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .about-text,
  .future-text {
    font-size: 1.125rem;
  }
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  width: fit-content;
  margin-top: 16px;
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-visit:hover {
  background: var(--color-text-muted);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ===== Gallery Section ===== */
.gallery {
  padding: 40px 0 80px;
}

@media (min-width: 768px) {
  .gallery {
    padding: 60px 0 120px;
  }
}

.gallery-full {
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .gallery-full {
    margin-bottom: 32px;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
}

/* ===== Future Section ===== */
.future {
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .future {
    padding: 120px 0;
  }
}

/* ===== Carousel Section ===== */
.carousel-section {
  padding: 60px 0 80px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .carousel-section {
    padding: 80px 0 120px;
  }
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  animation: marquee 10s linear infinite;
}

.carousel.paused .carousel-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-slide {
  flex-shrink: 0;
  width: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #e5e5e0;
}

@media (min-width: 768px) {
  .carousel-slide {
    width: 500px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    width: 600px;
  }
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer {
    padding: 64px 0;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.copyright {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Utility ===== */
::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ===== About Page Section ===== */
.about-section {
  padding: 160px 0 80px;
}

.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .about-section .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 32px;
}

.about-section .about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.about-section .about-text p.say-hello {
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.social-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.about-image {
  background: #e8e8e3;
  border-radius: 24px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-image {
    border-radius: 32px;
  }
}

.about-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  .about-section .about-image img {
    max-height: 520px;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .about-section .about-image img {
    max-height: 600px;
    height: auto;
  }
}


/* ===== images Section ===== */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.object-cover {
  object-fit: cover;
}