/* --- Reset & Variables --- */
:root {
  --bg-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent-blue: #6a5ae0;
  --accent-hover: #5b4bc4;
  --border-color: #e2e8f0;
  --card-bg: #f8fafc;
  --font-main: "Nunito", sans-serif;
  --container-width: 1400px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

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

/* --- Components --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

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

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

/* --- Navigation --- */
.navbar {
  padding: 24px 0;
  background-color: rgba(255, 255, 255, 0.85);
  /* Semi-transparent bg */
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hamburger Menu */
.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: var(--text-main);
  transition: all 0.3s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 800px) {
  .brand span {
    display: none;
  }
}

@media (max-width: 550px) {
  .hamburger {
    display: flex;
  }

  .nav-actions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-actions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

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

/* --- Hero Section --- */
/* --- Hero Section --- */
.hero-section {
  padding: 0;
  height: 70vh;
  /* Taller hero to accommodate visuals */
  min-height: 500px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%); */
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
  height: 100%;
}

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

.hero-subtext {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Diagonal Scrolling Visuals */
.hero-visuals-scroller {
  height: 100%;
  width: 120%;
  /* wider to account for rotation clipping */
  position: absolute;
  right: -35%;
  top: -15%;
  transform: rotate(-12deg);
  /* Diagonal Tilt */
  overflow: hidden;
  mask-image: linear-gradient(to bottom,
      transparent,
      white 10%,
      white 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to bottom,
      transparent,
      white 10%,
      white 90%,
      transparent);
  opacity: 0.6;
  /* Subtle blend */
}

.scrolling-wrapper {
  display: flex;
  height: 150%;
  gap: 24px;
  justify-content: center;
}

/* Animation applied to the column itself */
.scroll-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 240px;
  position: relative;
  will-change: transform;
  /* Explicit animation properties */
  animation-name: scroll-loop;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Ensure inner groups have no animation */
.scroll-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  animation: none;
}

/* Speed variations */

.col-3 {
  animation-duration: 10s;
}

@keyframes scroll-loop {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

@keyframes scroll-loop {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.visual-item {
  height: 320px;
  background-color: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.visual-item {
  height: 120px;
  /* Reduced height to bring icons closer */
  background-color: transparent;
  border-radius: 0;
  border: none;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.visual-item svg,
.visual-item img {
  width: 80px;
  height: 80px;
  opacity: 1;
  /* Reset opacity to full */
  object-fit: contain;
}

/* Removed background images for v7, v8, v9 to show only icons */
.v7,
.v8,
.v9 {
  background-image: none;
}

/* --- Services Section --- */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-color);
  /* Ensure dark bg */
}

.service-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 40px;
  /* Slight padding inside card */
  border: 1px solid var(--border-color);
  background-color: var(--bg-color);
  /* Essential for stacking */
  gap: 60px;
  position: sticky;
  top: 100px;
  /* Base sticky position */
  margin-bottom: 40px;
  /* Space for next card to scroll into view */
  border-radius: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  /* Shadow to separate cards */
  z-index: 1;
}

/* Stacking offsets for deck effect */
.service-row:nth-child(1) {
  top: 100px;
  z-index: 1;
}

.service-row:nth-child(2) {
  top: 120px;
  z-index: 2;
}

.service-row:nth-child(3) {
  top: 140px;
  z-index: 3;
}

.service-row:nth-child(4) {
  top: 160px;
  z-index: 4;
}

.service-left {
  flex: 0 0 35%;
  position: sticky;
  top: 100px;
  /* Optional: sticky title/desc while scrolling grid */
}

.service-icon {
  display: inline-block;
  margin-bottom: 24px;
  /* Placeholder icon style */
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-left h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--text-main);
}

.service-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 90%;
}

.service-right {
  flex: 1;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}

.service-grid-item h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 600;
}

.service-grid-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-grid-item li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Response for mobile */
@media (max-width: 900px) {
  .service-row {
    flex-direction: column;
    gap: 40px;
  }

  .service-left {
    position: static;
    max-width: 100%;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-meta {
  flex: 0 0 300px;
}

.service-num {
  font-family: monospace;
  color: var(--accent-blue);
  margin-bottom: 16px;
  display: block;
}

.service-title {
  font-size: 2.25rem;
  color: var(--text-main);
}

.service-details {
  flex: 0 0 600px;
}

.service-desc {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-main);
  opacity: 0.9;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* --- Process Section --- */
.process-section {
  padding: 100px 0;
}

/* --- Process Section --- */
.process-section {
  padding: 120px 0;
  position: relative;
}

.process-header {
  text-align: center;
  margin-bottom: 80px;
}

.process-header h2 {
  font-size: 3rem;
  color: var(--text-main);
}

.process-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

/* Central Line Container */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  /* JS will update this */
  background: #6a5ae0;
  /* Bright blue */
  box-shadow: 0 0 10px rgba(106, 90, 224, 0.5);
  transition: height 0.1s linear;
}

/* Timeline Items */
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 150px;
  /* Space between steps */
  position: relative;
  width: 100%;
}

.timeline-content {
  width: 42%;
  /* Leave space for center */
}

/* Number Styling */
.timeline-num {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-color);
  /* Mask line behind number if needed, or just sit on top */
  padding: 10px 0;
  /* Clear space vertically */
  line-height: 1;
  z-index: 2;
}

/* Directions */
.timeline-item.left {
  flex-direction: row;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-item.left .timeline-content {
  text-align: left;
}

.timeline-item.right .timeline-content {
  text-align: left;
  /* Keep text aligned left even on right side? Image shows left alignment for text blocks generally. Let's keep distinct sides. */
}

.process-title {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.process-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.process-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

@media (max-width: 768px) {
  .process-timeline {
    padding-left: 0;
  }

  .timeline-line {
    left: 40px;
  }

  .timeline-num {
    left: 40px;
    font-size: 1.5rem;
    transform: translateX(-50%);
  }

  .timeline-item {
    flex-direction: column;
    margin-left: 0;
    padding-left: 90px;
    width: 100%;
    margin-bottom: 60px;
  }

  .timeline-item.right {
    flex-direction: column;
  }

  .timeline-content {
    width: 100%;
    text-align: left;
  }

  .timeline-item.right .timeline-content {
    text-align: left;
  }
}

/* --- Digital Solutions Section --- */
.solutions-section {
  padding: 120px 0;
  background-color: var(--bg-color);
}

.solutions-header {
  text-align: center;
  margin-bottom: 80px;
}

.solutions-header h2 {
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.solutions-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.solutions-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.solution-card {
  display: flex;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  /* Subtle linear dark gradient */
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-visual {
  flex: 0 0 60%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Card Themes */
.card-visual.websites {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.card-visual.apps {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-visual.products {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mockup-window {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 500;
  font-size: 1.2rem;
}

.card-content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.card-content h3 {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.card-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.card-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.solution-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px 0 0 20px;
}

@media (max-width: 900px) {
  .solution-card {
    flex-direction: column;
  }

  .card-visual {
    height: 300px;
  }
}

.process-card:hover {
  border-left-color: var(--accent-blue);
}

.process-num {
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
  font-size: 0.9rem;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.process-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  text-align: center;
}

.footer-cta {
  margin-bottom: 80px;
}

.footer-cta h2 {
  font-size: 3rem;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
}

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

.footer-bottom {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    margin: 0 auto;
    z-index: 5;
  }

  .hero-visuals-scroller {
    width: 100%;
    right: 0;
    top: 0;
    opacity: 0.2;
    /* Fade even more on mobile so text is legible */
    transform: rotate(0deg);
    /* Remove tilt on mobile if simplify needed, or keep */
  }

  /* ... rest ... */
  .service-row {
    flex-direction: column;
    gap: 32px;
  }

  .service-details {
    flex: auto;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* --- Final CTA Section --- */
.final-cta-section {
  padding: 80px 0 0;
  background-color: var(--bg-color);
}

.cta-card {
  background-color: #0c1220;
  /* Deep Navy */
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cta-content {
  padding: 100px 40px 60px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.cta-content p {
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta {
  background-color: var(--accent-blue);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-cta:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Horizontal Scroller */
.cta-scroller-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding-bottom: 0;
  margin-top: 60px;
  /* Mask to fade edges if desired, or keep sharp as per image */
  mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      black 10%,
      black 90%,
      transparent);
}

.cta-scroller-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-horizontal 40s linear infinite;
  padding-bottom: 20px;
  /* Space for shadow/bottom */
}

.scroller-item {
  width: 300px;
  height: 200px;
  background-color: #1e293b;
  border-radius: 12px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Gradients for placeholders */
.sc-1 {
  background-image: linear-gradient(135deg, #1e293b, #0f172a);
}

.sc-2 {
  background-image: linear-gradient(135deg, #334155, #1e293b);
}

.sc-3 {
  background-image: linear-gradient(135deg, #475569, #334155);
}

.sc-4 {
  background-image: linear-gradient(135deg, #64748b, #475569);
}

.sc-5 {
  background-image: linear-gradient(135deg, #0f172a, #1e293b);
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Accessing duplicate set */
}

@media (max-width: 600px) {
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content {
    padding: 60px 20px 40px;
  }

  .scroller-item {
    width: 200px;
    height: 140px;
  }
}

/* --- Homepage Specifics --- */
.projects-hero {
  height: 60vh;
  min-height: 300px;
}

.projects-hero .hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 40vh;
  min-height: 300px;
  padding-bottom: 0;
}

.projects-hero .hero-content {
  max-width: 800px;
}

.homepage-hero .hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Vertically center content */
  align-items: flex-start;
  /* Align text to the left */
  text-align: left;
  /* Ensure text alignment is left-aligned */
  height: 100%;
  max-width: 1000px;
  /* Constrain width for better readability */
  margin: 0 auto;
  /* Center the container horizontally */
}

.homepage-hero .hero-content {
  max-width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  /* Allow content to take full width of container */
}

.hero-title-large {
  font-size: 5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.homepage-hero .hero-subtext {
  font-size: 1.5rem;
  max-width: 100%;
  margin-bottom: 40px;
}

/* Social Proof */
.social-proof-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.social-proof-text {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1rem;
  color: var(--text-muted);
}

.logo-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.client-logo {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-main);
  /* Placeholder style for text logos */
}

/* Featured Projects */
.featured-projects-section {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 80px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.project-card-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.project-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.project-tags {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-tags li {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
}

.project-meta {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-visual {
  flex: 1.2;
  height: 500px;
  background-color: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.visual-placeholder img {
  width: 100%;
}

.v-helio {
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.v-xpress {
  background: linear-gradient(135deg, #f0fdf4, #bbf7d0);
}

@media (max-width: 900px) {
  .hero-title-large {
    font-size: 3.5rem;
  }

  .project-card-row {
    flex-direction: column;
    gap: 40px;
  }

  .project-visual {
    width: 100%;
    height: 300px;
  }
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(106, 90, 224, 0.2) 0%,
      rgba(255, 255, 255, 0) 70%);
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  mix-blend-mode: multiply;
  /* Optional: blends better with underlying content */
}

/* --- 3D Rotating Logo Background --- */
.hero-logo-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  z-index: 0;
  opacity: 0.2;
  /* Very fainty */
  pointer-events: none;
  perspective: 1000px;
}

.hero-logo-background img {
  width: 100%;
  height: 100%;
  color: var(--accent-blue);
  /* For SVG stroke if using inline or mask, but basic img tag won't take color directly unless SVG has currentColor and color set on parent. Let's rely on opacity mostly. */
  animation: rotateLogo 20s linear infinite;
}

@keyframes rotateLogo {
  0% {
    transform: rotateY(0deg) rotateX(10deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}

/* --- Sticky Features Section --- */
.sticky-features-section {
  padding: 120px 0;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.features-container {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.features-sticky {
  flex: 0 0 40%;
  position: sticky;
  top: 150px;
  /* Adjust based on navbar height */
  height: fit-content;
}

.features-sticky h2 {
  font-size: 3rem;
  margin-bottom: 32px;
  color: var(--text-main);
  line-height: 1.2;
}

.features-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 120px;
  /* Space out features for scrolling */
  padding-top: 20px;
  /* Optional alignment adjust */
}

.feature-item h3 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  color: var(--text-main);
}

.feature-item p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .features-container {
    flex-direction: column;
    gap: 60px;
  }

  .features-sticky {
    position: static;
    flex: auto;
    width: 100%;
  }
}

/* --- Projects Grid & Vertical Cards --- */
.featured-projects-section {
  padding-top: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.project-card-vertical {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Default Gradient Border */
.project-card-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), #818cf8);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/* Distinct Colors for Cards */
.project-card-vertical:nth-child(2n)::before {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  /* Amber */
}

.project-card-vertical:nth-child(3n)::before {
  background: linear-gradient(90deg, #10B981, #34D399);
  /* Emerald */
}

.project-card-vertical:nth-child(4n)::before {
  background: linear-gradient(90deg, #EF4444, #F87171);
  /* Red */
}

.project-card-vertical:nth-child(5n)::before {
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
  /* Purple */
}

.project-card-vertical:nth-child(6n)::before {
  background: linear-gradient(90deg, #EC4899, #F472B6);
  /* Pink */
}

/* Hover Effects */
.project-card-vertical:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

.project-card-vertical:hover::before {
  opacity: 1;
}

/* Specific Hover border colors matching gradients */
.project-card-vertical:nth-child(2n):hover {
  border-color: rgba(245, 158, 11, 0.2);
}

.project-card-vertical:nth-child(3n):hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.project-card-vertical:nth-child(4n):hover {
  border-color: rgba(239, 68, 68, 0.2);
}

.project-card-vertical:nth-child(5n):hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.project-card-vertical:nth-child(6n):hover {
  border-color: rgba(236, 72, 153, 0.2);
}

/* Typography Enhancements */
.project-card-vertical h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;
}

.project-card-vertical p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.card-visual-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  box-shadow: 0px 0px 8px 2px #b9b9b9;
}

.card-visual-wrapper .visual-placeholder {
  width: 100%;
  height: 100%;
}

.project-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 4px 7px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-info h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 600;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tag-pill {
  font-size: 0.85rem;
}


.tag-pill:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background-color: rgba(106, 90, 224, 0.05);
}

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

/* --- Section Footer & Buttons --- */
.section-footer {
  text-align: center;
  margin-top: 60px;
}

.btn-secondary {
  background: var(--accent-blue);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(106, 90, 224, 0.3);
  /* Colored shadow */
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(106, 90, 224, 0.4);
}

/* --- About Page Sections --- */

/* Story Section */
.story-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.story-content {
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

.story-content h2 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Quote Section */
.quote-section {
  padding: 100px 0;
  background-color: var(--card-bg);
  text-align: center;
}

.quote-section blockquote {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-main);
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.quote-section cite {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* Team Section */
.team-section {
  padding: 100px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px;
  /* Constrain width for better 3-col look */
  margin-left: auto;
  margin-right: auto;
}

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

.team-visual {
  width: 100%;
  aspect-ratio: 1;
  background-color: #e2e8f0;
  border-radius: 12px;
  margin-bottom: 20px;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.team-edu {
  color: var(--accent-blue) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* Global Section Header Alignment */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* --- About Page Hero --- */
.about-hero .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero .hero-content {
  text-align: left;
  max-width: 100%;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.about-hero .hero-image-wrapper {
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-hero .hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .about-hero .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-hero .hero-content {
    text-align: center;
    margin: 0 auto;
  }
}

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

  .quote-section blockquote {
    font-size: 1.8rem;
  }
}

/* Typewriter Effect */
.typewriter-block {
  opacity: 0;
  /* Hidden initially, JS will reveal */
  position: relative;
  display: inline;
  /* To behave nicely with cursor */
}

.typewriter-block.typing-active {
  opacity: 1;
}

.typewriter-cursor::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  animation: blink 0.7s infinite;
  color: var(--accent-blue);
  font-weight: bold;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* --- Mobile Typography & Spacing --- */
@media (max-width: 800px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-title-large {
    font-size: 3.5rem;
    /* Already set, but reaffirming */
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 1rem;
  }

  .hero-title-large {
    font-size: 3rem;
  }

  .quote-section blockquote {
    font-size: 1.5rem;
  }

  .section-header,
  .solutions-header,
  .process-header {
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Card Overflow Fix */


  .card-content {
    padding: 40px;
  }

  .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
}

/* --- Footer Sections --- */
.site-footer {
  background-color: var(--bg-color);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-main);
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-tagline {
  color: var(--text-light);
  line-height: 1.6;
  max-width: 300px;
  font-size: 1rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.footer-socials a {
  color: var(--text-light);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.footer-socials a:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background-color: rgba(106, 90, 224, 0.05);
}

.footer-links-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-main);
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1rem;
}

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

.contact-list li {
  color: var(--text-light);
  margin-bottom: 12px;
  font-size: 1rem;
  display: flex;
  gap: 10px;
}

.contact-list a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.footer-legal a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent-blue);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Quote Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.quote-modal {
  background: var(--bg-color);
  width: 90%;
  max-width: 700px;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .quote-modal {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--text-main);
}

.quote-modal h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--text-main);
  text-align: center;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
  /* Let grid gap handle spacing */
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.btn-submit {
  grid-column: 1 / -1;
  width: 100%;
  background-color: var(--accent-blue);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
  font-family: var(--font-main);
}

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

.success-message {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.success-message h3 {
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.success-message p {
  color: var(--text-muted);
}

/* Modal Mobile Response */
@media (max-width: 600px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }
}