/* ==========================================================================
   SYIO LUXURY HOMEPAGE DESIGN SYSTEM - PRODUCTION POLISH
   ========================================================================== */

/* Define CSS variables (Design Tokens) */
:root {
  /* Colors */
  --color-bg: #0A0A0A;
  --color-surface: #111111;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #A8A8A8;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.22);
  
  /* Subtle Accent: Warm white light */
  --color-accent-light: rgba(255, 250, 240, 0.03);
  --color-accent-border: rgba(255, 250, 240, 0.15);
  --color-accent-solid: #FFFFFF;
  
  /* Typography */
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Spacing (Generous Whitespace for Calm Luxury) */
  --space-xs: 0.6rem;
  --space-sm: 1.2rem;
  --space-md: 2.5rem;
  --space-lg: 5rem;
  --space-xl: 10rem;
  
  /* Layout */
  --max-width: 1400px;
  --navbar-height: 90px;
  --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-family-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   BUTTON & UI COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.1rem 2.5rem;
  border-radius: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  min-height: 48px; /* Touch target accessibility */
}

.btn-primary {
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  border: 1px solid var(--color-text-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-text-primary);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

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

.btn-hero-cta {
  padding: 1.25rem 2.8rem;
  font-size: 0.92rem;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   NAVIGATION LAYER (Sticky & Refined Glassmorphic)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-family: var(--font-family-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  gap: 3.5rem;
}

.nav-item {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.4rem 0;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-primary);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: var(--color-text-primary);
}

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

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

.btn-nav {
  padding: 0.65rem 1.6rem;
  font-size: 0.75rem;
  min-height: 42px;
}

/* Fallback class added via Javascript when scrolled */
.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.8);
  border-color: var(--color-border);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

/* ==========================================================================
   HERO LAYER (Cinematic Slow Zoom & Soft Dark Overlay)
   ========================================================================== */
.hero {
  position: relative;
  height: 100dvh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-slow-zoom 25s ease-in-out infinite alternate;
}

@keyframes hero-slow-zoom {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.06); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.65) 50%, rgba(10, 10, 10, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw + 1.2rem, 5.8rem);
  line-height: 1.05;
  margin-bottom: var(--space-md);
  text-wrap: balance;
  max-width: 950px;
  animation: hero-fade-in 1.5s var(--transition-smooth);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.2vw + 0.6rem, 1.45rem);
  max-width: 620px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  text-wrap: pretty;
  animation: hero-fade-in 1.8s var(--transition-smooth);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  animation: hero-fade-in 2.1s var(--transition-smooth);
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================================================
   COMMON SECTION STYLES
   ========================================================================== */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-tag {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-size: clamp(2.2rem, 3.5vw + 1rem, 4rem);
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.font-accent {
  font-family: var(--font-family-body);
  font-weight: 400;
  opacity: 0.6;
}

/* ==========================================================================
   SECTION 1: EXPERIENCE EVERY SPACE (Luxury Editorial Cards)
   ========================================================================== */
.experience-spaces {
  background-color: var(--color-bg);
}

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

.space-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-size: cover;
  background-position: center;
  aspect-ratio: 4/5;
}

/* Slower, ultra-smooth image zoom on hover */
.space-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.space-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.88) 100%);
  z-index: 2;
  transition: background var(--transition-fast);
}

.space-content {
  position: relative;
  z-index: 3;
  padding: var(--space-md);
  transform: translateY(22px);
  transition: transform var(--transition-smooth);
  width: 100%;
}

.space-title {
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
  font-weight: 400;
  color: var(--color-text-primary);
}

.space-desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--transition-fast), max-height var(--transition-fast);
}

/* Hover States for Space Cards */
.space-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.space-card:hover::before {
  transform: scale(1.04);
}

.space-card:hover .space-content {
  transform: translateY(0);
}

.space-card:hover .space-desc {
  opacity: 1;
  max-height: 80px;
  margin-top: var(--space-xs);
}

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

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

/* ==========================================================================
   SECTION 2: ONE INTELLIGENT ECOSYSTEM (Visual Flow Redesign)
   ========================================================================== */
.ecosystem-section {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.ecosystem-flow-wrapper {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ecosystem-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: none;
}

.ecosystem-track::-webkit-scrollbar {
  display: none;
}

.ecosystem-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  opacity: 0.4;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  min-width: 100px;
}

.step-num {
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
}

.step-name {
  font-family: var(--font-family-display);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.ecosystem-step.active, .ecosystem-step:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.ecosystem-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-border-hover);
  flex-shrink: 0;
  margin: 0 var(--space-xs);
}

/* Light Bar & Moving Warm Light Beam */
.ecosystem-light-bar {
  width: 100%;
  height: 1px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.light-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--color-text-primary) 50%, transparent 100%);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-destination {
  text-align: center;
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dest-title {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem);
  font-weight: 300;
  margin-top: var(--space-xs);
  letter-spacing: -0.01em;
}

/* Responsive Ecosystem Track for Mobile */
@media (max-width: 768px) {
  .ecosystem-track {
    gap: var(--space-md);
    justify-content: flex-start;
  }
}

/* ==========================================================================
   SECTION 3: SOLUTIONS PREVIEW (8-Card 4-Column Grid, Photography First)
   ========================================================================== */
.solutions-preview {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.solutions-grid .solution-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-end;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-size: cover;
  background-position: center;
  aspect-ratio: 3/4;
}

.solutions-grid .solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

#solution-automation::before { background-image: url('assets/solution-automation.png'); }
#solution-lighting::before { background-image: url('assets/solution-lighting.png'); }
#solution-cinema::before { background-image: url('assets/solution-cinema.png'); }
#solution-audio::before { background-image: url('assets/solution-audio.png'); }
#solution-climate::before { background-image: url('assets/solution-climate.jpg'); }
#solution-curtains::before { background-image: url('assets/solution-curtains.png'); }
#solution-security::before { background-image: url('assets/solution-security.png'); }
#solution-networking::before { background-image: url('assets/solution-networking.png'); }

.solutions-grid .solution-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.solutions-grid .solution-card:hover::before {
  transform: scale(1.04);
}

/* Tablet layout */
@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile layout */
@media (max-width: 600px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SECTION 4: WHY SYIO (4-Column Layout)
   ========================================================================== */
.why-syio {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.why-card {
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-md);
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: border-color var(--transition-fast);
}

.why-card:hover {
  border-left-color: var(--color-text-primary);
}

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

.why-desc {
  font-size: 0.9rem;
}

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

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

/* ==========================================================================
   SECTION 5: FEATURED PROJECTS
   ========================================================================== */
.projects-preview {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.project-media {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .project-media img {
  transform: scale(1.03);
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 var(--space-xs);
  gap: var(--space-md);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  opacity: 0.8;
  min-width: 150px;
}

.project-text {
  max-width: 700px;
}

.project-name {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: var(--space-xs);
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .project-info {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .project-meta {
    flex-direction: row;
    gap: var(--space-sm);
    min-width: auto;
  }
}

/* ==========================================================================
   SECTION 6: BOOK A DEMO FORM (Refined Centered Layout)
   ========================================================================== */
.booking-section {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.booking-wrapper {
  max-width: 540px; /* Reduced width for elegance */
  margin: 0 auto;
}

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

.booking-heading {
  font-size: clamp(2rem, 3.5vw + 1rem, 3.8rem);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.booking-subheading {
  font-size: clamp(0.95rem, 0.5vw + 0.8rem, 1.2rem);
  color: var(--color-text-secondary);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
  width: 100%;
}

/* Floating Input Styling */
.floating-group input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: 1.1rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition-fast);
}

.floating-group label {
  position: absolute;
  top: 1.2rem;
  left: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-family-body);
  font-size: 1.1rem;
  font-weight: 300;
  pointer-events: none;
  transition: transform var(--transition-fast), color var(--transition-fast), font-size var(--transition-fast);
}

/* Move label when active or focused */
.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label {
  transform: translateY(-22px);
  font-size: 0.8rem;
  color: var(--color-text-primary);
  opacity: 0.6;
}

/* Bottom border active line */
.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: width var(--transition-fast);
}

.floating-group input:focus ~ .form-line {
  width: 100%;
}

.floating-group input:focus {
  border-bottom-color: transparent;
}

/* Dropdown Group Custom CSS */
.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.dropdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
  padding-right: var(--space-md);
  color: var(--color-text-primary);
  font-family: var(--font-family-body);
  font-size: 1.1rem;
  font-weight: 300;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast);
}

.select-wrapper select:focus {
  border-bottom-color: var(--color-text-primary);
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform var(--transition-fast), border-top-color var(--transition-fast);
}

.select-wrapper select:focus ~ .select-arrow {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: var(--color-text-primary);
}

.select-wrapper select option {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  padding: var(--space-sm);
}

.select-wrapper select option:disabled {
  color: rgba(255, 255, 255, 0.3);
}

.form-action {
  margin-top: var(--space-md);
}

.btn-submit {
  width: 100%;
  border: 1px solid var(--color-text-primary);
}

.form-message {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  text-align: center;
  min-height: 24px;
}

.form-message.success {
  color: #A3E635; /* soft lime */
}

.form-message.error {
  color: #F87171; /* soft red */
}

/* ==========================================================================
   CLOSING BRAND STATEMENT
   ========================================================================== */
.closing-statement-container {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.closing-statement {
  font-family: var(--font-family-display);
  font-size: clamp(2.2rem, 4.5vw + 1rem, 4.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  max-width: 1000px;
  margin: 0 auto;
}

/* ==========================================================================
   MINIMAL FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md) 0;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

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

.footer-logo {
  font-family: var(--font-family-display);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.footer-link {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  display: block;
}

.footer-link:hover {
  color: var(--color-text-primary);
}

.mail-link, .phone-link {
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: var(--space-xs);
}

.footer-address {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-bottom {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-md) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   SCROLL-DRIVEN ANIMATIONS (Native CSS - Compositor Thread)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    
    /* Scroll reveal transitions overriding fallback script styling */
    .scroll-fade, .scroll-reveal-item {
      transition: none;
      opacity: 0;
    }
    
    /* Animation Keyframes */
    @keyframes reveal-fade-in {
      from {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(4px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
      }
    }
    
    /* Generic section reveals */
    .scroll-fade {
      animation: reveal-fade-in auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }
    
    /* Individual card/item reveals */
    .scroll-reveal-item {
      animation: reveal-fade-in auto linear forwards;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
  
  /* Navbar Scroll Timeline */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes navbar-morph {
      to {
        background-color: rgba(17, 17, 17, 0.8);
        border-color: var(--color-border);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
      }
    }
    
    .navbar {
      animation: navbar-morph auto linear forwards;
      animation-timeline: scroll();
      animation-range: 0px 120px;
    }
  }
}

/* Accessibility: Disable motion for users with prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-fade, .scroll-reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .navbar {
    background-color: rgba(10, 10, 10, 0.9) !important;
    border-color: var(--color-border) !important;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 5rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
  
  .footer-brand {
    grid-column: span 2;
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 768px) {
  :root {
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
