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

:root {
  --bg-dark: #161616;
  --bg-darker: #0d0d0d;
  --bg-light: #f6f6f6;
  --bg-white: #ffffff;
  
  --text-dark: #161616;
  --text-light: #f6f6f6;
  --text-muted-dark: #666666;
  --text-muted-light: #a0a0a0;
  
  --border-light: rgba(22, 22, 22, 0.08);
  --border-light-hover: rgba(22, 22, 22, 0.16);
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-hover: rgba(255, 255, 255, 0.16);
  
  --font-headers: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  --container-max-width: 1400px;
  --header-height: 80px;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
  line-height: 1.6;
}

body.page-dark {
  background-color: var(--bg-darker);
  color: var(--text-light);
}

body.page-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

ul, ol {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444444;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

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

.section {
  padding: 120px 0;
  position: relative;
}

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

/* Section Background Themes */
.theme-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.theme-darker {
  background-color: var(--bg-darker);
  color: var(--text-light);
}

.theme-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.theme-white {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #555555 0%, #ffffff 100%);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 999;
  transition: var(--transition-smooth);
}

body.page-dark header {
  color: var(--text-light);
}

body.page-light header {
  color: var(--text-dark);
}

header.scrolled {
  height: 70px;
  background-color: rgba(22, 22, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
}

header.scrolled-light {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

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

.logo {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: #ff3b30; /* dot accent */
}

/* Nav Menu */
nav.desktop-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

nav.desktop-nav ul a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

nav.desktop-nav ul a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition-fast);
}

nav.desktop-nav ul a:hover::after,
nav.desktop-nav ul a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 48px;
  border-radius: 30px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary:hover {
  background: transparent;
  color: var(--text-dark);
}

.theme-dark .btn-primary,
.theme-darker .btn-primary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--bg-light);
}

.theme-dark .btn-primary:hover,
.theme-darker .btn-primary:hover {
  background: transparent;
  color: var(--text-light);
}

.btn-outline {
  border: 1px solid currentColor;
  color: inherit;
  background-color: transparent;
}

/* Homepage (Dark Page) - Normal is transparent/white, Hover is white background with black text */
body.page-dark .btn-outline:hover {
  background-color: var(--text-light);
  color: var(--text-dark);
  border-color: var(--text-light);
}

body.page-dark .btn-outline:hover span {
  color: var(--text-dark);
}

/* Other Pages (Light Page) - Normal is transparent/black, Hover is white background with black text */
body.page-light .btn-outline:hover {
  background-color: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--text-dark);
}

body.page-light .btn-outline:hover span {
  color: var(--text-dark);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: var(--transition-fast);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  nav.desktop-nav {
    display: none;
  }
}

/* Mobile Menu Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-darker);
  color: var(--text-light);
  z-index: 1000;
  padding: 120px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer a {
  font-family: var(--font-headers);
  font-size: 28px;
  font-weight: 700;
  display: block;
}

.mobile-drawer a.active {
  color: #ff3b30;
}

.mobile-drawer .drawer-footer {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted-light);
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Animated Hamburger Open States */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition-slow);
}

.reveal.reveal-left {
  transform: translateX(-50px);
}

.reveal.reveal-right {
  transform: translateX(50px);
}

.reveal.reveal-scale {
  transform: scale(0.95);
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger reveals */
.stagger-container > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-container > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-container > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-container > *:nth-child(4) { transition-delay: 0.4s; }


/* Typography styles */
.section-subtitle {
  font-family: var(--font-headers);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #ff3b30;
  display: block;
}

.section-title {
  font-family: var(--font-headers);
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin-bottom: 48px;
}

.theme-dark .section-desc,
.theme-darker .section-desc {
  color: var(--text-muted-light);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }
  .section-desc {
    font-size: 16px;
  }
}


/* Homepage Specific Sections */

/* Hero Section */
.hero-sec {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow-1 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  width: 450px;
  height: 450px;
  background-color: #ff3b30;
  opacity: 0.1;
  top: 10%;
  right: 10%;
  animation: float-slow 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  width: 350px;
  height: 350px;
  background-color: #ff9500;
  opacity: 0.08;
  bottom: 10%;
  left: 10%;
  animation: float-slow 25s infinite ease-in-out reverse;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

@keyframes float-slow {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
  50% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
  }
}

.hero-sec h1 {
  font-family: var(--font-headers);
  font-size: 80px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.hero-sec h1 span {
  display: block;
  background: linear-gradient(135deg, #ff3b30 0%, #ff9500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sec p {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted-dark);
  margin-bottom: 48px;
  max-width: 700px;
  line-height: 1.4;
}

.hero-sec .btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .hero-sec h1 {
    font-size: 60px;
  }
  .hero-sec p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .hero-sec {
    min-height: 80vh;
    padding-top: 120px;
  }
  .hero-sec h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }
  .hero-sec p {
    font-size: 18px;
    margin-bottom: 32px;
  }
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 32px 0;
  display: flex;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 48px;
  color: var(--text-light);
  white-space: nowrap;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.marquee-item::after {
  content: '★';
  color: #ff3b30;
  font-size: 28px;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 768px) {
  .marquee-item {
    font-size: 32px;
    padding: 0 24px;
  }
  .marquee-item::after {
    font-size: 20px;
  }
}


/* Projects Slider */
.slider-sec {
  padding-bottom: 120px;
  overflow: hidden;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.slider-controls {
  display: flex;
  gap: 16px;
}

.slider-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

.slider-outer {
  margin: 0 -40px;
  padding: 0 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

.slider-outer::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.slider-inner {
  display: flex;
  gap: 32px;
  width: max-content;
  padding-bottom: 24px;
}

.project-card {
  width: 540px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--border-light-hover);
}

.project-img {
  width: 100%;
  height: 340px;
  background-color: #eaeaea;
  position: relative;
  overflow: hidden;
}

/* Vector placeholders for project images */
.project-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,22,22,0.05) 0%, rgba(22,22,22,0.15) 100%);
  z-index: 1;
}

.project-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-card:hover .project-img-inner {
  transform: scale(1.05);
}

.project-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.project-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-family: var(--font-headers);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-description {
  color: var(--text-muted-dark);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.project-meta {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--bg-light);
  color: var(--text-muted-dark);
  font-weight: 500;
}

.project-link {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-link svg {
  transition: transform 0.2s ease;
}

.project-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .slider-outer {
    margin: 0 -24px;
    padding: 0 24px;
  }
  .project-card {
    width: 320px;
  }
  .project-img {
    height: 220px;
  }
  .project-info {
    padding: 24px;
  }
  .project-title {
    font-size: 20px;
  }
  .project-description {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
}


/* Core Process / Services Section */
.process-sec {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.process-card {
  padding: 40px;
  border-radius: 24px;
  background-color: #1e1e1e;
  border: 1px solid var(--border-dark);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.process-card:hover {
  transform: translateY(-8px);
  background-color: #242424;
  border-color: var(--border-dark-hover);
}

.process-num {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 48px;
  color: #ff3b30;
  line-height: 1;
  margin-bottom: 32px;
}

.process-name {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}

.process-desc {
  color: var(--text-muted-light);
  font-size: 15px;
  line-height: 1.6;
}

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

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card {
    min-height: auto;
    padding: 32px;
  }
}


/* Why Workspace / About Section */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-features .about-feature {
  display: flex;
  gap: 20px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(225, 59, 48, 0.1);
  color: #ff3b30;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-desc {
  color: var(--text-muted-dark);
  font-size: 15px;
}

.about-graphic {
  background-color: var(--bg-dark);
  border-radius: 24px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.graphic-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.circle-1 {
  width: 300px;
  height: 300px;
  background-color: #ff3b30;
  opacity: 0.2;
  top: -50px;
  left: -50px;
}

.circle-2 {
  width: 250px;
  height: 250px;
  background-color: #ff9500;
  opacity: 0.15;
  bottom: -30px;
  right: -30px;
}

.about-graphic-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: var(--text-light);
  z-index: 2;
}

.about-graphic-text .large-stat {
  font-family: var(--font-headers);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: #ff3b30;
  margin-bottom: 12px;
}

.about-graphic-text p {
  font-size: 18px;
  color: var(--text-muted-light);
  max-width: 320px;
}

@media (max-width: 1024px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-graphic {
    height: 350px;
  }
}


/* Reviews / Testimonials Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.review-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: var(--transition-smooth);
}

.review-card:hover {
  border-color: var(--border-light-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02);
}

.review-stars {
  color: #ffcc00;
  margin-bottom: 24px;
  display: flex;
  gap: 4px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 28px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ff3b30;
  border: 1px solid var(--border-light);
}

.author-name {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 15px;
}

.author-title {
  font-size: 13px;
  color: var(--text-muted-dark);
}

.review-platform {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  background-color: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

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

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .review-card {
    min-height: auto;
    padding: 32px;
  }
}


/* Call to Action Banner */
.cta-sec {
  padding: 100px 0;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, #1e1e1e 0%, #111 100%);
  border: 1px solid var(--border-dark);
  border-radius: 32px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-box .graphic-circle {
  filter: blur(100px);
}

.cta-box .circle-1 {
  width: 400px;
  height: 400px;
  background-color: #ff3b30;
  opacity: 0.15;
  top: -100px;
  right: -100px;
}

.cta-box h2 {
  font-family: var(--font-headers);
  font-size: 54px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: -2px;
  max-width: 800px;
  line-height: 1.1;
  z-index: 2;
}

.cta-box p {
  font-size: 18px;
  color: var(--text-muted-light);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.5;
  z-index: 2;
}

.cta-box .btn {
  z-index: 2;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 48px 24px;
  }
  .cta-box h2 {
    font-size: 32px;
    letter-spacing: -1px;
  }
  .cta-box p {
    font-size: 15px;
    margin-bottom: 32px;
  }
}


/* Footer styling */
footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-dark);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-headers);
  font-size: 28px;
  font-weight: 800;
}

.footer-logo span {
  color: #ff3b30;
}

.footer-brand p {
  color: var(--text-muted-light);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--text-light);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  color: var(--text-muted-light);
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-contact-label {
  font-size: 12px;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact-value {
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-link:hover {
  background-color: var(--text-light);
  color: var(--bg-darker);
  border-color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted-light);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

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

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer-legal {
    flex-wrap: wrap;
    gap: 16px;
  }
}


/* Subpages General Layout (Hero & Sections) */

.subpage-hero {
  padding-top: 200px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-white);
}

.subpage-hero.theme-dark {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}

.subpage-hero-content {
  max-width: 900px;
}

.subpage-hero h1 {
  font-family: var(--font-headers);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.subpage-hero p {
  font-size: 20px;
  color: var(--text-muted-dark);
  max-width: 700px;
}

.subpage-hero.theme-dark p {
  color: var(--text-muted-light);
}

@media (max-width: 768px) {
  .subpage-hero {
    padding-top: 150px;
    padding-bottom: 60px;
  }
  .subpage-hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
  }
  .subpage-hero p {
    font-size: 16px;
  }
}


/* Work Page / Grid layout */
.portfolio-grid {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  grid-template-columns: 1fr 1.2fr;
}

.portfolio-item:nth-child(even) .portfolio-media {
  order: 2;
}

.portfolio-media {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  overflow: hidden;
  height: 480px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.portfolio-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,22,22,0.02) 0%, rgba(22,22,22,0.08) 100%);
}

.portfolio-media-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-item:hover .portfolio-media-inner {
  transform: scale(1.03);
}

.portfolio-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portfolio-num {
  font-family: var(--font-headers);
  font-size: 16px;
  font-weight: 800;
  color: #ff3b30;
  margin-bottom: 24px;
}

.portfolio-title {
  font-family: var(--font-headers);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.portfolio-desc {
  font-size: 16px;
  color: var(--text-muted-dark);
  margin-bottom: 32px;
  line-height: 1.6;
}

.portfolio-scopes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
  margin-bottom: 32px;
}

.scope-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.scope-item svg {
  color: #ff3b30;
  flex-shrink: 0;
}

.portfolio-tech-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .portfolio-item, .portfolio-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portfolio-item:nth-child(even) .portfolio-media {
    order: 0;
  }
  .portfolio-media {
    height: 320px;
    border-radius: 20px;
  }
  .portfolio-title {
    font-size: 30px;
  }
}


/* Services Subpage Columns */
.service-stage {
  border-bottom: 1px solid var(--border-light);
  padding: 100px 0;
}

.service-stage:last-child {
  border-bottom: none;
}

.service-stage-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

.stage-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stage-badge {
  font-family: var(--font-headers);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.stage-title {
  font-family: var(--font-headers);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
}

.stage-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.stage-lead {
  font-size: 20px;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 500;
}

.stage-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.stage-item-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.stage-item-desc {
  font-size: 14px;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .service-stage-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stage-title {
    font-size: 28px;
  }
  .stage-lead {
    font-size: 18px;
  }
  .stage-items {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* Expertise & Industry Page */
.exp-section {
  border-bottom: 1px solid var(--border-light);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.exp-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.exp-text h2 {
  font-family: var(--font-headers);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.exp-text p {
  font-size: 16px;
  color: var(--text-muted-dark);
  line-height: 1.7;
  margin-bottom: 32px;
}

.exp-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.exp-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.exp-feature-item svg {
  color: #ff3b30;
  flex-shrink: 0;
  margin-top: 4px;
}

.exp-feature-title {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.exp-feature-desc {
  font-size: 14px;
  color: var(--text-muted-dark);
}

.exp-visual {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
}

.exp-visual-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.exp-visual-num {
  font-family: var(--font-headers);
  font-weight: 800;
  font-size: 28px;
  color: #ff3b30;
}

.exp-visual-detail h4 {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.exp-visual-detail p {
  font-size: 13px;
  color: var(--text-muted-dark);
}

@media (max-width: 1024px) {
  .exp-grid, .exp-grid.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .exp-grid.reverse .exp-visual {
    order: -1;
  }
  .exp-text h2 {
    font-size: 32px;
  }
}


/* About Page Specifics */
.about-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
  margin-top: 60px;
}

.about-stat-item {
  text-align: center;
}

.about-stat-num {
  font-family: var(--font-headers);
  font-size: 48px;
  font-weight: 800;
  color: #ff3b30;
  margin-bottom: 8px;
  line-height: 1;
}

.about-stat-label {
  font-size: 14px;
  color: var(--text-muted-dark);
  font-weight: 500;
}

.about-team-sec {
  background-color: var(--bg-white);
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.team-card {
  text-align: center;
  transition: var(--transition-smooth);
}

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

.team-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 24px;
  background-color: var(--bg-light);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  color: #ff3b30;
  position: relative;
  overflow: hidden;
}

.team-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225,59,48,0.05) 0%, rgba(225,59,48,0.15) 100%);
  z-index: 1;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.team-name {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 14px;
  color: var(--text-muted-dark);
}

@media (max-width: 1024px) {
  .about-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .about-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-hero-stats {
    grid-template-columns: 1fr;
  }
  .about-team-grid {
    grid-template-columns: 1fr;
  }
}


/* Careers Page Details */
.career-values {
  background-color: var(--bg-white);
}

.career-positions {
  background-color: var(--bg-light);
}

.position-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.position-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 32px 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.position-card:hover {
  border-color: var(--border-light-hover);
  transform: translateX(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.position-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.position-title {
  font-family: var(--font-headers);
  font-size: 22px;
  font-weight: 700;
}

.position-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted-dark);
}

.position-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .position-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
  }
  .position-card:hover {
    transform: translateY(-4px);
  }
  .position-title {
    font-size: 18px;
  }
  .position-meta {
    flex-wrap: wrap;
    gap: 12px;
  }
}


/* Blog Page Specifics */
.blog-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 20px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.blog-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  border-color: var(--border-light-hover);
}

.blog-img {
  width: 100%;
  height: 220px;
  background-color: var(--bg-light);
  position: relative;
}

.blog-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-info {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted-dark);
  margin-bottom: 16px;
}

.blog-title {
  font-family: var(--font-headers);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.blog-card-footer {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ff3b30;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.blog-more {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-info {
    padding: 24px;
  }
}


/* Contact Page & Forms */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-info-block h3 {
  font-family: var(--font-headers);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info-block p {
  color: var(--text-muted-dark);
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-info-block a {
  color: #ff3b30;
  font-weight: 600;
}

.map-container {
  border-radius: 24px;
  overflow: hidden;
  height: 300px;
  border: 1px solid var(--border-light);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.map-placeholder svg {
  color: #ff3b30;
}

.map-placeholder span {
  font-weight: 600;
  font-size: 14px;
}

/* Form Styling */
.contact-form-wrapper {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  position: relative;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: #ff3b30;
  background-color: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.checkbox-btn {
  padding: 10px 18px;
  border-radius: 10px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checkbox-btn.active {
  background-color: #ff3b30;
  color: var(--text-light);
  border-color: #ff3b30;
}

.form-error {
  font-size: 12px;
  color: #ff3b30;
  margin-top: 6px;
  display: none;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--bg-white);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.form-success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(76, 217, 100, 0.1);
  color: #4cd964;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-title {
  font-family: var(--font-headers);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-desc {
  color: var(--text-muted-dark);
  font-size: 15px;
  max-width: 320px;
}

@media (max-width: 1024px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 32px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Nav Logo Styles */
.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}
.footer-logo img.nav-logo {
  height: 40px;
}

/* Blog Post Specific Styles */
.blog-post-header {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}
.blog-post-header h1 {
  font-size: 48px;
  margin-bottom: 24px;
}
.blog-post-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}
.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  line-height: 1.8;
  font-size: 18px;
  color: var(--text-body);
}
.blog-post-content h2 {
  font-size: 32px;
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--text-heading);
}
.blog-post-content h3 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-heading);
}
.blog-post-content p {
  margin-bottom: 24px;
}
.blog-post-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 48px;
}
