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

:root {
  --bg-color: #0d0d12;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --primary-orange: #ff6a00;
  --secondary-orange: #ff3300;
  --gradient-orange: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--secondary-orange)
  );
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --font-main: "Outfit", sans-serif;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
}

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

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

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-sm);
}

.text-gradient {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 106, 0, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-orange);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(13, 13, 18, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.desktop-hidden {
  display: none;
}

.nav-links .nav-btn {
  background: rgba(255, 106, 0, 0.1);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: var(--primary-orange);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-links .nav-btn:hover {
  background: var(--gradient-orange);
  color: white !important;
  border-color: transparent;
}

.mobile-logo-container {
  display: none;
}

.nav-icon {
  display: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

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

/* Mobile Menu Toggle (hidden on desktop) */
.menu-toggle {
  display: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background:
    linear-gradient(
      90deg,
      rgba(13, 13, 18, 0.98) 0%,
      rgba(13, 13, 18, 0.85) 45%,
      rgba(13, 13, 18, 0.1) 100%
    ),
    url("images/hero_bg.jpg") center/cover;
  position: relative;
  overflow: hidden;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 900px) {
  .floating-card {
    display: none !important;
  }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Hero Buttons */
.btn-hero-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 25px -5px rgba(255, 106, 0, 0.6);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-hero-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  text-decoration: none;
}

/* Services */
.services {
  padding: var(--spacing-xl) 5%;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.service-card {
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-orange);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Contact / Lead Form */
.contact {
  padding: var(--spacing-xl) 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* Process Details */
.process-details {
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* Why Us Section */
.why-us-stats {
  grid-template-columns: 1fr 1fr;
}

/* Portfolio Hover Effects */
.portfolio {
  padding: var(--spacing-xl) 5%;
  background: rgba(0, 0, 0, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 5%;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.4);
}

.portfolio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-orange);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 106, 0, 0.1);
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-orange);
}

.status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  margin-top: auto;
  font-weight: 500;
}

.portfolio-link:hover {
  color: var(--primary-orange);
}

/* About Section Premium Styles */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text-content h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
}

.about-quote {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

.about-image-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: visible; /* To allow founder card to pop out slightly if needed */
}

.about-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

.founder-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(13, 13, 18, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 106, 0, 0.3);
  padding: 2rem;
  border-radius: 20px;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  width: 320px;
  z-index: 10;
  transition: transform 0.4s ease;
}

.founder-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-orange);
}

/* Testimonials / Marquee Styles */
.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

/* Gradient masks for fading edges */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  padding-left: 2rem;
  width: max-content;
}

.track-left {
  animation: marquee-left 60s linear infinite;
}

.track-right {
  animation: marquee-right 60s linear infinite;
}

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

.testimonial-card {
  width: 350px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 106, 0, 0.5);
}

.stars {
  color: #ffb400;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: white;
}

@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-orange);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.premium-select {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 0;
  border-radius: 0;
  color: white;
  font-family: inherit;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.premium-select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 4px 15px -10px var(--primary-orange);
  background: transparent;
}

/* Fix Chrome Autofill White Background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: white !important;
}

.premium-select option {
  background-color: var(--bg-color);
  color: white;
  padding: 10px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  padding: 3rem 5%;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive / Mobile Styling */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: var(--spacing-lg) 5%;
  }
  .about-layout {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }
  .founder-card {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    margin-top: 1rem;
    width: 100% !important;
    margin-left: 0;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 5% 60px 5%;
    background:
      linear-gradient(
        to bottom,
        rgba(13, 13, 18, 0.95) 0%,
        rgba(13, 13, 18, 0.8) 100%
      ),
      url("images/hero_bg.jpg") center/cover;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
  }
  .hero h1 {
    font-size: 3rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem !important;
  }
  .hero-buttons .btn-hero-primary {
    margin-bottom: 0 !important;
  }
  .hero-buttons a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 400px) {
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 1rem 1.2rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  /* Solid Header for Mobile */
  .navbar {
    background: #0d0d12 !important;
    padding: 1rem 5% !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Logo adjustments */
  .logo {
    height: 25px; /* Smaller to fit with hamburger */
  }

  .mobile-logo-container {
    display: block;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .mobile-logo {
    height: 35px;
    width: auto;
  }

  /* Why Us Stats */
  .why-us-stats {
    grid-template-columns: 1fr !important; /* Stack stats on small screens to prevent overflow */
  }

  /* Hamburger Menu Toggle */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
    transform: translateY(-4px);
  }
  .menu-toggle .bar {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
  }

  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mobile Drawer Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 2rem;
    gap: 0.5rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin-left: 0;
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(255, 106, 0, 0.1);
    color: var(--primary-orange);
  }

  .nav-icon {
    display: inline-block;
    width: 28px;
    margin-right: 12px;
    color: var(--primary-orange);
    font-size: 1.3rem;
    text-align: center;
  }

  .desktop-hidden {
    display: block;
  }

  .nav-links .nav-btn {
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.2);
    color: var(--primary-orange);
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
  }

  /* Prevent horizontal overflow causing issues */
  section {
    padding: var(--spacing-lg) 5%;
    overflow-x: hidden;
  }

  .direct-contact-card {
    padding: 1.5rem !important;
  }
  .contact-form {
    padding: 1.5rem !important;
  }
  .portfolio-card {
    padding: 1.5rem !important;
  }
  .testimonial-card {
    width: 280px;
    padding: 1.5rem;
  }
}
