/* ===========================
   UPDATED CSS FILE
   Changes Made:
   1. Hidden carousel navigation buttons (.carousel-nav { display: none; })
   2. Enhanced .view-project overlay styling for better visibility
   3. All other styles remain intact
   =========================== */

:root {
  /* Colors */
  --background: #ffffff;
  --foreground: #141414;
  --primary: #e85a3c;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f3;
  --secondary-foreground: #262626;
  --muted: #f0f0ed;
  --muted-foreground: #737373;
  --border: #e6e4df;
  --accent: #e85a3c;
  
  /* Custom tokens */
  --cream: #faf9f7;
  --charcoal: #1f1f1f;
  --warm-grey: #8a8a85;
  --light-grey: #d9d9d4;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 40px -12px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 60px -12px rgba(232, 90, 60, 0.3);
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --container-padding: 24px;
  --section-padding: 96px;
}

@media (min-width: 768px) {
  :root {
    --container-padding: 48px;
    --section-padding: 128px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 80px;
    --section-padding: 160px;
  }
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Site-wide Logo Watermark */
body::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(65%);
  width: 100vw;
  aspect-ratio: 1.15;
  background-image: url("Asset_134x_-_Copy.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
  opacity: 0.04;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color:#262626 ;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.text-headline {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-subhead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

.text-body-large {
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted-foreground);
}

.text-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--muted-foreground);
}

/* Layout */
.container-wide {
  max-width: 1800px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* Ensure sections are above watermark */
section {
  position: relative;
  z-index: 10;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: .1rem solid var(--primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  /* box-shadow: var(--shadow-glow); */
  transform: scale(1.02);
  background-color: var(--foreground);
  color: var(--primary);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translate(2px, 2px);
}

/* Link Underline Animation */
.link-underline {
  position: relative;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Grain Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Header
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.5s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

@media (min-width: 768px) {
  .nav {
    height: 96px;
  }
}

.logo {
  position: relative;
  z-index: 110;
}

.logo img {
  height: 32px;
  width: auto;
  transition: filter 0.3s ease;
}

@media (min-width: 768px) {
  .logo img {
    height: 40px;
  }
}

.header.scrolled .logo img {
  filter: invert(1);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--background);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-bottom: 128px;
  }
}

/* Hero Video Background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: 
    linear-gradient(var(--foreground) 1px, transparent 1px),
    linear-gradient(90deg, var(--foreground) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 128px;
}

.hero-label {
  margin-bottom: 2rem;
}

.hero-headline {
  max-width: 1400px;
}

.hero-headline h1 {
  margin-bottom: 2rem;
}

.hero-headline p {
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-cta-centered {
  justify-content: center;
}

/* White Buttons for Hero */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: #ffffff;
  color: #141414;
  transition: all 0.3s ease;
}

.btn-white:hover {
  box-shadow: 0 0 60px -12px rgba(255, 255, 255, 0.5);
  transform: scale(1.02);
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-white-outline:hover {
  background-color: #ffffff;
  color: #141414;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineReveal 1.5s 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lineReveal {
  to {
    transform: scaleX(1);
  }
}

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 80px;
  right: var(--container-padding);
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: flex;
  }
}

.scroll-indicator .text-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, var(--muted-foreground) 0%, transparent 100%);
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ===========================
   Projects Section
   =========================== */
.projects-section {
  background-color: rgba(245, 245, 243, 0.3);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 6rem;
  }
}

.section-header .text-label {
  display: block;
  margin-bottom: 1rem;
}

/* UPDATED: Hide carousel navigation buttons */
.carousel-nav {
  display: none;
}

.carousel-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card {
  flex-shrink: 0;
  width: 85%;
  cursor: pointer;
}

@media (min-width: 768px) {
  .project-card {
    width: 65%;
  }
}

.project-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.5s ease;
}

.project-card:hover .project-overlay {
  background-color: rgba(0, 0, 0, 0.4);
}

/* UPDATED: Enhanced "View Project" overlay styling with better visibility and clickability */
.view-project {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.5rem;
  background-color: var(--background);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  cursor: pointer;
  color: var(--foreground);
  pointer-events: all;
}

.project-card:hover .view-project {
  opacity: 1;
}

.view-project:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translate(-50%, -50%) scale(1.05);
}

.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .project-title {
    font-size: 1.5rem;
  }
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-category {
  color: var(--muted-foreground);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.dot {
  width: 24px;
  height: 4px;
  background-color: var(--border);
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: var(--muted-foreground);
}

.dot.active {
  width: 48px;
  background-color: var(--primary);
}

/* ===========================
   Services Section
   =========================== */
.services-header {
  max-width: 720px;
  margin-bottom: 5rem;
}

.services-header .text-label {
  display: block;
  margin-bottom: 1rem;
}

.services-header p {
  margin-top: 1.5rem;
}

.services-list {
  border-top: 1px solid var(--border);
}

.service-item {
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  cursor: pointer;
  /* transition: background-color 0.3s ease; */
}

@media (min-width: 768px) {
  .service-item {
    padding: 4rem 0;
  }
}

.service-item:hover {
  background-color: var(--cream);
}

.service-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr 3fr 4fr 4fr;
    gap: 2rem;
    align-items: flex-start;
  }
}

.service-number {
  color: var(--muted-foreground);
}

.service-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .service-title {
    font-size: 1.5rem;
  }
}

.service-item:hover .service-title {
  color: var(--primary);
}

.service-arrow {
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.service-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-capabilities li {
  padding: 0.375rem 0.75rem;
  background-color: var(--secondary);
  font-size: 0.875rem;
  border-radius: 999px;
}

/* ===========================
   About Section
   =========================== */
.about-section {
  background-color: var(--foreground);
  color: var(--background);
}

.about-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.about-content .text-label {
  display: block;
  margin-bottom: 1rem;
}

.about-text {
  margin: 2rem 0 2.5rem;
}

.about-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-content: flex-start;
}

@media (min-width: 1024px) {
  .about-stats {
    gap: 3rem;
  }
}

.stat {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--primary);
}

.stat-label {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.quote {
  grid-column: 1 / -1;
  margin-top: 2rem;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.quote p {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote cite {
  font-style: normal;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   Contact Section
   =========================== */
.contact-grid {
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.contact-info .text-label {
  display: block;
  margin-bottom: 1rem;
}

.contact-info p {
  max-width: 480px;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details .text-label {
  display: block;
  margin-bottom: 0.5rem;
}

.contact-link {
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  color: var(--foreground);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(115, 115, 115, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  resize: none;
}

.form-submit {
  align-self: flex-start;
}

@media (max-width: 639px) {
  .form-submit {
    width: 100%;
  }
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer {
    padding: 5rem 0;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

.footer-col h4 {
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col li,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: rgba(115, 115, 115, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(115, 115, 115, 0.5);
}

/* Selection */
::selection {
  background: rgba(232, 90, 60, 0.2);
  color: var(--foreground);
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}