/* ============================================
   EYBI Interior Design - Design System & Styles
   Premium Minimal Interior Architecture Website
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Colors */
  --color-primary: #0d0d0d;
  --color-secondary: #1a1a1a;
  --color-surface: #faf9f7;
  --color-surface-alt: #f5f4f2;
  --color-accent: #b8976a;
  --color-accent-light: #d4bc96;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-text-light: #999999;
  --color-border: #e8e6e3;
  --color-border-dark: #d4d2cf;
  --color-white: #ffffff;
  --color-overlay: rgba(13, 13, 13, 0.6);
  
  /* Spacing Scale (4px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 180ms ease;
  --transition-slow: 220ms ease;
  --transition-slower: 300ms ease;
  
  /* Layout */
  --container-max: 1400px;
  --container-narrow: 900px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
  overflow-x: hidden;
}

/* Performance: GPU acceleration for animations */
.header,
.project-card,
.service-card,
.contact-card,
.modal-container,
.slider-container,
.back-to-top {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Prevent layout shift */
  content-visibility: auto;
}

/* Lazy loaded images fade in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

section {
  padding: var(--space-24) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header .text-xs {
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border-dark);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--color-accent);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-slow);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 150px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  align-items: center;
  gap: var(--space-10);
}

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-base);
  padding: var(--space-2) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface);
  padding: var(--space-8);
  flex-direction: column;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.nav-mobile.active {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 1.5rem;
  font-family: var(--font-display);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 968px) {
  .nav-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-mobile {
    display: flex;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-6);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 100px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--color-surface-alt) 0%, var(--color-border) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .hero-visual {
    height: 400px;
    order: -1;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ============================================
   PROJECTS / PORTFOLIO
   ============================================ */
.projects {
  background: var(--color-white);
}

.projects-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--color-primary);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.project-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-image img,
.project-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.project-card:hover .project-image img,
.project-card:hover .project-image-placeholder {
  transform: scale(1.05);
}

.project-image-placeholder {
  background: linear-gradient(145deg, var(--color-surface-alt) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.75rem;
}

.project-info {
  padding: var(--space-6);
}

.project-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.project-meta span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

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

@media (max-width: 968px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--color-surface-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-slow);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   PROCESS
   ============================================ */
.process {
  background: var(--color-primary);
  color: var(--color-white);
}

.process .section-header .text-xs {
  color: var(--color-accent-light);
}

.process .section-header h2 {
  color: var(--color-white);
}

.process .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 32px;
  right: -50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: var(--color-primary);
}

.process-step h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

@media (max-width: 968px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .process-step::after {
    display: none;
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--color-white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  text-align: justify;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-content p {
    font-size: 0.95rem;
    text-align: left;
    margin-bottom: var(--space-5);
  }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-accent);
}

.testimonial-info h5 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.testimonial-info span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

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

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: left;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transition: transform var(--transition-base);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-6);
  line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  background: var(--color-surface);
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 1100px;
  margin: 0 auto var(--space-12);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.contact-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


.contact-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.contact-card-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

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

/* Location */
.contact-location {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto var(--space-10);
  align-items: center;
}

.contact-address {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-address-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-address-icon svg {
  width: 100%;
  height: 100%;
}

.contact-address-text h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.contact-address-text p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map iframe {
  display: block;
}

/* Social */
.contact-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.contact-social > span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-social-links {
  display: flex;
  gap: var(--space-3);
}

.contact-social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.contact-social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.contact-social-links svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }
  
  .contact-location {
    grid-template-columns: 1fr;
  }
  
  .contact-map {
    order: -1;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-column h5 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

@media (max-width: 968px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-slow);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--color-accent);
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: var(--space-8); }

/* ============================================
   PROJECT MODAL
   ============================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-container {
  position: relative;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-slow);
}

.project-modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-height: 90vh;
}

/* Slider */
.modal-slider {
  position: relative;
  background: var(--color-surface-alt);
  overflow: hidden;
}

.slider-container {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
  min-height: 400px;
}

.slider-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slider-slide .project-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-surface-alt) 0%, var(--color-border) 100%);
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-prev {
  left: var(--space-4);
}

.slider-next {
  right: var(--space-4);
}

.slider-dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
}

.slider-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slider-dot.active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* Modal Details */
.modal-details {
  padding: var(--space-10);
  overflow-y: auto;
  max-height: 90vh;
}

.modal-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.modal-category,
.modal-location {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-4);
}

.modal-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  white-space: pre-line;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
}

.modal-spec {
  text-align: center;
}

.spec-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.spec-value {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-primary);
}

.modal-cta {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-content {
    grid-template-columns: 1fr;
  }
  
  .slider-container {
    min-height: 250px;
  }
  
  .slider-slide .project-image-placeholder {
    min-height: 250px;
  }
  
  .modal-details {
    padding: var(--space-6);
  }
  
  .modal-specs {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* Project card cursor */
.project-card {
  cursor: pointer;
}

