@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --bg-color: #050507;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a5;
  --accent-cyan: #00d2c8;
  --accent-cyan-rgb: 0, 210, 200;
  --brushed-silver: #c0c0c5;
  --glass-bg: rgba(10, 10, 15, 0.5);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-cyan: rgba(0, 210, 200, 0.2);
  --glow-shadow: 0 0 30px rgba(0, 210, 200, 0.15);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --navbar-height: 80px;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html, body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-color);
  scroll-behavior: smooth;
}

/* Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 200, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Canvas Layout */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Sits behind text, but above background radial gradients */
  pointer-events: none;
  overflow: hidden;
}

#scroll-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: filter 0.5s ease;
}

/* Radial Gradients for Depth */
.radial-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 210, 200, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 210, 200, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(5, 5, 7, 1) 0%, #020203 100%);
}

/* Preloader / Loading Screen */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}


.loader-bar-container {
  width: 250px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.5rem;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: width 0.1s linear;
}

.loader-text {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Sticky Header Glassmorphism Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: rgba(5, 5, 7, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.4s ease, border-bottom 0.4s ease, backdrop-filter 0.4s ease;
}

header.scrolled {
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 210, 200, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo img {
  height: 52px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(0, 210, 200, 0.2));
}

.loader-logo {
  margin-bottom: 2.5rem;
}

.loader-logo img {
  height: 90px;
  width: auto;
  display: block;
  animation: logoPulse 2s infinite ease-in-out;
  filter: drop-shadow(0 0 20px rgba(0, 210, 200, 0.15));
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 5px var(--accent-cyan);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Glass Buttons */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta.cyan {
  background: rgba(0, 210, 200, 0.08);
  border: 1px solid var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 210, 200, 0.1);
}

.btn-cta.cyan:hover {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 25px rgba(0, 210, 200, 0.5), 0 0 40px rgba(0, 210, 200, 0.2);
  transform: translateY(-2px);
}

.btn-cta.silver {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-cta.silver:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Page Scroll Containers */
.scroll-container {
  position: relative;
  z-index: 2; /* Floats over canvas background */
  width: 100%;
}

section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 10% 6rem 10%;
}

/* Material Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
  border-color: var(--glass-border-cyan);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow), 0 25px 60px rgba(0, 0, 0, 0.5);
}

/* Cinematic Typography */
h1.cinematic, h2.cinematic {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cinematic span.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, var(--brushed-silver) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cinematic span.cyan-text {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 210, 200, 0.35);
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 5px var(--accent-cyan);
}

p.body-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 2rem;
}

/* HERO SECTION */
#hero {
  height: 100vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--navbar-height);
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0) 60%, rgba(5, 5, 7, 0.8) 100%);
}

#hero h1.cinematic {
  font-size: 5rem;
  max-width: 1000px;
  margin-bottom: 1rem;
}

#hero p.body-text {
  font-size: 1.35rem;
  max-width: 750px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* SERVICES SECTION */
#services {
  background: rgba(5, 5, 7, 0.8);
  z-index: 3;
}

#services .section-header {
  margin-bottom: 4rem;
  max-width: 800px;
}

#services h2.cinematic {
  font-size: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 210, 200, 0.08);
  border: 1px solid rgba(0, 210, 200, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  color: var(--accent-cyan);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent-cyan);
  color: #000000;
  box-shadow: 0 0 15px rgba(0, 210, 200, 0.4);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* WHY US / PROCESS SECTION */
#process {
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.8) 0%, rgba(5, 5, 7, 0) 50%, rgba(5, 5, 7, 0.9) 100%);
  z-index: 3;
}

#process h2.cinematic {
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.process-left {
  position: sticky;
  top: 150px;
}

.process-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.process-step {
  display: flex;
  gap: 2rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 210, 200, 0.2);
  line-height: 1;
  transition: color 0.4s ease;
}

.process-step:hover .step-num {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 210, 200, 0.4);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* WHY US / METRICS SECTION */
#why-us {
  background: rgba(5, 5, 7, 0.9);
  z-index: 3;
}

.metrics-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

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

.metric-value {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* PORTFOLIO SECTION */
#portfolio {
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.6) 50%, rgba(5, 5, 7, 0.9) 100%);
  z-index: 3;
}

#portfolio h2.cinematic {
  font-size: 3.5rem;
  margin-bottom: 3rem;
}

.portfolio-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.portfolio-visual {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  height: 380px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* A premium browser mockup screen look inside visual frame using CSS */
.browser-mockup {
  width: 92%;
  height: 85%;
  background: #0d0d11;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
}

.browser-header {
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: relative;
  flex-shrink: 0;
}

.browser-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 1rem;
}

.browser-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.browser-dots .dot.red { background: #ff5f56; }
.browser-dots .dot.yellow { background: #ffbd2e; }
.browser-dots .dot.green { background: #27c93f; }

.browser-url {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 0.2rem 2.5rem;
  margin: 0 auto;
  user-select: none;
}

.browser-content {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  background: #121216;
}

.browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup:hover .browser-content img {
  transform: scale(1.04);
}

.portfolio-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.portfolio-tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-weight: 500;
}

.portfolio-details h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.portfolio-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.portfolio-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.portfolio-details li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--brushed-silver);
}

.portfolio-details li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* CONTACT SECTION */
#contact {
  background: rgba(5, 5, 7, 0.95);
  z-index: 3;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

#contact h2.cinematic {
  font-size: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 210, 200, 0.05);
  border: 1px solid rgba(0, 210, 200, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-text h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-text p, .contact-text a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--accent-cyan);
}

.contact-form-container {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 200, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-status {
  font-size: 0.9rem;
  min-height: 20px;
  margin-top: 0.5rem;
  display: none;
}

.form-status.success {
  display: block;
  color: var(--accent-cyan);
}

.form-status.error {
  display: block;
  color: #ff3b30;
}

/* Phone links styling */
.phone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.phone-divider {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
  font-size: 0.95rem;
}

/* Contact CTA Card styling */
.contact-cta-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cta-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.cta-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(0, 210, 200, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 210, 200, 0.2);
}

.cta-card-content h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

.cta-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cta-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0.5rem 0 1rem 0;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cta-step:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(0, 210, 200, 0.1);
  transform: translateX(5px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.step-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.cta-google-form-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .cta-card-content h3 {
    font-size: 1.8rem;
  }
}

/* Testimonial Quote styling */
.testimonial-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #ffb800; /* gold color for stars */
}

.testimonial-text {
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0 !important;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-location {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
  opacity: 0.8;
}

/* Footer Socials */
.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.footer-socials a:hover {
  background: rgba(0, 210, 200, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 200, 0.2);
  transform: translateY(-3px);
}

/* FOOTER SECTION */
footer {
  background: #020203;
  padding: 4rem 10% 2.5rem 10%;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
  z-index: 3;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* LEGAL PAGES CUSTOM STYLES */
.legal-page {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

.legal-container {
  max-width: 900px;
  margin: 120px auto 60px auto; /* Clearance for fixed navbar */
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-header .last-updated {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-section li {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 1.5rem;
}

.legal-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.legal-section strong {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .legal-container {
    margin: 100px 1.5rem 40px 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .legal-header h1 {
    font-size: 2.2rem;
  }
  
  .legal-section h2 {
    font-size: 1.3rem;
  }
}

/* SCROLL FADE ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* KEYFRAMES */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(0.97);
    filter: drop-shadow(0 0 12px rgba(0, 210, 200, 0.2));
    opacity: 0.8;
  }
  50% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 25px rgba(0, 210, 200, 0.45));
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  header {
    padding: 0 2rem;
  }
  
  #hero h1.cinematic {
    font-size: 4rem;
  }
  
  .process-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .process-left {
    position: relative;
    top: 0;
  }
  
  .metrics-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .portfolio-visual {
    height: auto;
    padding: 2rem 0;
  }

  .browser-mockup {
    height: auto;
    width: 92%;
    max-width: 550px;
  }

  .browser-content {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 1.5rem;
  }
  
  .nav-links {
    display: none; /* Can implement simple hamburger or inline link list for mobile later */
  }
  
  #hero h1.cinematic {
    font-size: 2.8rem;
    letter-spacing: -1px;
  }
  
  #hero p.body-text {
    font-size: 1.1rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .metrics-container {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  section {
    padding: 6rem 1.5rem 4rem 1.5rem;
  }
}
