@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --primary: #f59e0b;
  --primary-glow: rgba(245, 158, 11, 0.2);
  --secondary: #0ea5e9;
  --accent: #10b981;
  --text: #0f172a;
  --text-dim: #64748b;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.08);
  --font-main: 'Outfit', sans-serif;
  
  /* Typography Scale */
  --fs-h1: clamp(3rem, 8vw, 5rem);
  --fs-h2: clamp(2rem, 5vw, 2.8rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.1rem;
  --fs-small: 0.9rem;
  --fs-xs: 0.75rem;
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* Header */
header {
  position: relative;
  width: 100%;
  z-index: 100;
  background: #0f172a;
  color: white;
}

.top-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
  font-size: 0.95rem;
  display: flex;
  gap: 2.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.award-link:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.social-icon.facebook { background-color: #3b5998; }
.social-icon.linkedin { background-color: #0077b5; }
.social-icon.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.main-header .logo {
  font-weight: 800;
  letter-spacing: 0.1em;
}

nav {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
}

header.scrolled {
  position: fixed;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 200px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--primary);
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  transition: all 0.3s;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a.nav-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: block; /* Removed centering that pushed container up */
  overflow: hidden;
  position: relative;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
  text-align: center;
  max-width: 900px;
  color: white;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-sub {
  letter-spacing: 0.4em;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1.5rem 0 2.5rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 150px);
  padding-top: 2rem; /* As requested */
  padding-bottom: 8rem;
}

/* Logo Carousel */
.logo-carousel {
  overflow: hidden;
  padding: 4rem 0;
  background: #ffffff;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.logo-track {
  display: flex;
  width: calc(350px * 44); /* Increased from 250px */
  animation: scroll 40s linear infinite;
  align-items: center;
}

.logo-item {
  width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
}

.logo-item img {
  max-width: 240px; /* Increased from 160px */
  max-height: 80px; /* Increased from 50px */
  filter: grayscale(1) opacity(0.6);
  transition: all 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.05);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-350px * 22)); }
}

.logo-carousel::before,
.logo-carousel::after {
  content: "";
  height: 100%;
  position: absolute;
  width: 15%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  top: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}

.logo-carousel::after {
  right: 0;
  top: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}

/* Framing Brackets via Pseudo-elements */
.hero-content::before, .hero-content::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 60px);
  max-width: 1100px;
  height: 60px;
  pointer-events: none;
  background-repeat: no-repeat;
}

.hero-content::before {
  top: -40px;
  background-image: 
    linear-gradient(to right, var(--primary) 80px, transparent 80px),
    linear-gradient(to left, var(--primary) 80px, transparent 80px),
    linear-gradient(to bottom, var(--primary) 80px, transparent 80px),
    linear-gradient(to bottom, var(--primary) 80px, transparent 80px);
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%;
}

.hero-content::after {
  bottom: -40px;
  background-image: 
    linear-gradient(to right, var(--primary) 80px, transparent 80px),
    linear-gradient(to left, var(--primary) 80px, transparent 80px),
    linear-gradient(to top, var(--primary) 80px, transparent 80px),
    linear-gradient(to top, var(--primary) 80px, transparent 80px);
  background-position: 0 100%, 100% 100%, 0 100%, 100% 100%;
  background-size: 100% 3px, 100% 3px, 3px 100%, 3px 100%;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
  40% {transform: translateY(-10px) translateX(-50%);}
  60% {transform: translateY(-5px) translateX(-50%);}
}

.btn-hero-outline {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.2rem 3.5rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-hero-outline:hover {
    background: white;
    color: black;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: var(--fs-small);
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(17, 17, 38, 0.94);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 1.1rem 3rem;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(17, 17, 38, 1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero-outline {
  background: rgba(17, 17, 38, 0.94);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
}

.btn-hero-outline:hover {
  background: rgba(17, 17, 38, 1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Features Section */
#solutions {
  padding-bottom: 8rem;
}

#garden-route {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  transform: translateY(-10px);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-dim);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
footer {
  background: #0f172a;
  color: white;
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .logo img {
  height: 150px;
  filter: brightness(0) invert(1);
}

footer p {
  color: rgba(255, 255, 255, 0.6);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--primary);
}

footer .social-icon {
  background: rgba(255, 255, 255, 0.1);
}

footer .social-icon:hover {
  background: var(--primary);
  color: white !important;
}

/* Typewriter Banner */
.typewriter-banner {
  padding: 5rem 0;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.typewriter-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.typewriter-title {
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.02em;
}

.cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.towns-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.town-pill {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
}

.town-pill:hover {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

/* Testimonial Carousel */
.testimonial-carousel {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
}

.testimonial-track {
  display: flex;
  width: calc(450px * 10);
  animation: testimonialScroll 60s linear infinite;
  gap: 2rem;
}

.testimonial-card {
  width: 400px;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.1);
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-400px * 5 - 10rem)); }
}

/* Finance Carousel (Footer) */
.finance-carousel {
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  width: 100%;
}

.finance-carousel::before,
.finance-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.finance-carousel::before {
  left: 0;
  background: linear-gradient(to right, #0f172a, transparent);
}

.finance-carousel::after {
  right: 0;
  background: linear-gradient(to left, #0f172a, transparent);
}

.finance-carousel .logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: logoScroll 60s linear infinite;
}

.finance-carousel .logo-pod {
  background: #ffffff;
  padding: 12px 35px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  height: 90px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.finance-carousel img {
  max-height: 60px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
}

.finance-carousel .logo-pod:hover img {
  transform: scale(1.05);
}

@keyframes logoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1.5rem)); }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }

  .top-bar {
    display: none;
  }

  .logo img {
    height: 80px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: static !important;
    transform: none !important;
    margin: 0.5rem auto 0 auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: none;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem !important;
    transition: right 0.4s ease;
    z-index: 1000;
    box-shadow: none;
    margin: 0;
    padding: 0;
  }

  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    display: block;
    padding: 1rem;
  }
}
