/* ======= VARIABLES ======= */
:root {
  --bg-color: #050505;
  --text-dark: #f0f0f0; /* Flipped for dark theme */
  --text-light: #ffffff;
  --accent-color: #fcc201;
  --border-color: rgba(255, 255, 255, 0.1);
  --section-padding: 100px 5%;
  --font-main: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ======= RESET & CANVAS ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-main);
  background-color: transparent;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: center center;
}

#webgl-canvas.zoomed {
  transform: scale(2.0);
}

/* Add a subtle grain texture over everything for that "texture" feel */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.title-orange {
    color: var(--accent-color);
}

.text-center { text-align: center; }
.align-center { text-align: center; }
.text-sm { font-size: 0.875rem; opacity: 0.7; }
.mt-4 { margin-top: 2rem; }

/* ======= LAYOUT UTILS ======= */
.container {
  max-width: 1400px;
  margin: 0 auto;
}

.bg-dark {
  background-color: rgba(5, 5, 5, 0.4);
}

.bg-gray {
  background-color: rgba(20, 20, 20, 0.4);
}

section {
  padding: var(--section-padding);
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #000;
}
.btn-primary:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--text-light);
  color: var(--text-light);
  padding: 10px 24px;
}
.btn-outline:hover {
  background-color: var(--text-light);
  color: #000;
}

.btn-outline-light {
  border: 1px solid var(--text-light);
  color: var(--text-light);
  background: transparent;
}
.btn-outline-light:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #000;
}

/* ======= NAVBAR ======= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.5);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.logo-img-footer {
  height: 60px;
  width: auto;
  margin-bottom: 15px;
}
.nav-links a {
  margin-left: 32px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--accent-color);
}

/* ======= HERO ======= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}
.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  max-width: 800px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.7);
}
.cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.trust-line {
  font-size: 1rem;
  opacity: 0.6;
  font-weight: 500;
}

/* ======= PROBLEM SECTION ======= */
.problem-circles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}
.problem-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background-color: transparent;
  color: #ffffff;
  transition: var(--transition);
  animation: highlightCircle 4s infinite;
}
.problem-circle h3 {
  font-size: 1.3rem;
  margin: 0;
  color: #ffffff;
}

/* Sequential Animation Delays */
.problem-circle:nth-child(1) { animation-delay: 0s; }
.problem-circle:nth-child(2) { animation-delay: 1s; }
.problem-circle:nth-child(3) { animation-delay: 2s; }
.problem-circle:nth-child(4) { animation-delay: 3s; }

@keyframes highlightCircle {
  0%, 22% {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 40px rgba(255, 85, 0, 0.5);
    transform: scale(1.05);
  }
  25%, 100% {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4); /* Softer outline natively, brighter on orange */
    box-shadow: none;
    transform: scale(1);
  }
}
.problem-conclusion {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: right;
  color: var(--accent-color);
}

/* ======= SOLUTION SECTION ======= */
.solution .section-desc {
  font-size: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* ======= SERVICES SECTION ======= */
.services {
  padding: 100px 5%;
}
.service-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 100px 0 150px 0;
  position: relative;
}
.service-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.service-sidebar {
  width: 40%;
  position: sticky;
  top: 200px;
  height: fit-content;
  align-self: flex-start;
}
.service-num {
  font-size: 1.5rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 30px;
  opacity: 0.8;
}
.service-title {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}
.service-details {
  width: 50%;
}
.service-list {
  list-style: none;
  font-size: clamp(1.5rem, 3vw, 3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.service-list li {
  margin-bottom: 30px;
  padding: 0;
  border: none;
  transition: color 0.4s ease, transform 0.4s ease;
  cursor: default;
}
.service-list li:hover {
  color: #fff;
  transform: translateX(15px);
}

@media (max-width: 900px) {
  .service-row {
    flex-direction: column;
    padding: 60px 0;
  }
  .service-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
  .service-details {
    width: 100%;
  }
  .service-list li {
    font-size: 2rem;
  }
}

/* ======= HOW IT WORKS ======= */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.step-card {
  padding: 32px 24px;
  border-top: 2px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.step-card:hover {
  border-color: var(--accent-color);
}
.step-number {
  font-size: 4rem;
  opacity: 0.1;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--accent-color);
}
.step-card h4 {
  font-size: 1.5rem;
}

/* ======= PRICING SECTION ======= */
.pricing {
  padding: 100px 5%;
}
.pricing-split-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.pricing-left {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.circle-badge {
  position: relative;
  width: 300px;
  height: 300px;
}
.rotating-text {
  width: 100%;
  height: 100%;
  animation: rotateText 15s linear infinite;
}
.circle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: var(--accent-color);
}
@keyframes rotateText {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pricing-right {
  width: 55%;
}
.pricing-right .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 40px;
  text-align: left;
}
.pricing-list {
  list-style: none;
  font-size: clamp(1.2rem, 2vw, 2rem);
}
.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  color: #fff;
  transition: var(--transition);
}
.pricing-list li:hover {
  color: var(--accent-color);
  padding-left: 10px;
  padding-right: 10px;
  border-bottom-color: var(--accent-color);
}
.pricing-detail {
  font-weight: 500;
}
.pricing-icon {
  font-size: 2rem;
  color: var(--text-light);
  transition: var(--transition);
}
.pricing-list li:hover .pricing-icon {
  transform: rotate(15deg) scale(1.2);
}

@media (max-width: 900px) {
  .pricing-split-layout {
    flex-direction: column;
  }
  .pricing-left, .pricing-right {
    width: 100%;
  }
}

/* ======= HORIZONTAL PORTFOLIO ======= */
.horizontal-scroll-container {
  height: 100vh; /* Fallback, JS sets exact height */
  position: relative;
  margin-top: 0px;
  padding: 0; /* Remove default section padding */
}
.scroll-group {
  will-change: opacity, filter;
  padding: 50px 0; /* Vertical spacing inside the group */
}
.sticky-view {
  position: sticky;
  top: 10vh;
  height: auto;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.horizontal-track {
  display: flex;
  gap: 40px;
  padding: 0 5vw;
  will-change: transform;
  align-items: center;
}
.logo-box {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  background: #0a0a0a;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(252, 194, 1, 0.4);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-box:hover {
  box-shadow: 0 0 40px rgba(252, 194, 1, 0.7);
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
}
.poster-box {
  width: 300px;
  height: auto;
  flex-shrink: 0;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(252, 194, 1, 0.4);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}
.poster-box:hover {
  box-shadow: 0 0 40px rgba(252, 194, 1, 0.7);
}
.poster-box img {
  width: 100%;
  height: auto;
  display: block;
}
.website-box {
  width: 450px;
  height: 320px;
  flex-shrink: 0;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(252, 194, 1, 0.4);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
}
.website-box:hover {
  box-shadow: 0 0 40px rgba(252, 194, 1, 0.7);
}
.website-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.see-more-box {
  background: var(--accent-color);
  color: #000;
  text-align: center;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
}
.see-more-box h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #000;
}
.see-more-box .btn {
  border-color: #000;
  color: #000;
}
.see-more-box .btn:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .logo-box {
    width: 250px;
    height: 250px;
  }
  .poster-box {
    width: 250px;
    height: auto;
  }
}

/* ======= WHY CHOOSE US ======= */
.features-list {
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  color: #eee;
}

/* ======= RESULTS ======= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.portfolio-img {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  background-color: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #777;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.portfolio-item:hover .portfolio-img {
  transform: scale(0.98);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ======= FINAL CTA ======= */
.final-cta {
  padding: 150px 5%;
}
.cta-heading {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

/* ======= FOOTER ======= */
.footer {
  padding: 80px 5% 40px;
  background: #000;
  color: #888;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}
.footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-top: 8px;
  transition: var(--transition);
}
.footer a:hover {
  color: var(--accent-color);
}
.brand h3 {
  color: #fff;
  font-size: 2rem;
  letter-spacing: -1px;
}

/* ======= NEW TEXT ANIMATIONS ======= */
.reveal-text .word {
  display: inline-block;
  transform: translateY(30px) scale(0.9);
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.8s ease, filter 0.8s ease;
  opacity: 0;
  filter: blur(15px);
}

.reveal-text.visible .word {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0px);
}

/* Keep basic fade-in as fallback */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(15px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* Responsive Navbar */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 30px;
  height: 2px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}
.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);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    padding-top: 100px;
    align-items: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.25, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    margin: 0;
  }
}

/* ======= FLOATING BUTTONS ======= */
.floating-wa {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
}
.floating-wa:hover {
  transform: scale(1.1);
}

.floating-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--text-dark);
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 1000;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.floating-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.floating-top:hover {
  background-color: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

/* ======= MODAL ======= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 50px;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-modal:hover {
  color: var(--accent-color);
}
.modal-title {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #fff;
}
.form-group {
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}
.form-group input {
  width: 100%;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}
.w-100 {
  width: 100%;
}
