/* Global Styles */

@font-face {
  font-family: "BillyOhio";
  src: url("fonts/billyohio.ttf") format("truetype");
}

:root {
  --primary: #1a75ff;
  /* Deep Aqua */
  --secondary: #00b3b3;
  /* Light Aqua */
  --dark: #1b1b1b;
  /* Deep Neutral */
  --light: #f0faff;
  /* Clean background */
  --gray: #6c757d;
  /* Muted Text */
}

html,
body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Segoe UI", sans-serif;
}

body {
  color: var(--dark);
  line-height: 1.6;
  background-color: #f5f7fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.btn {
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: #023e8a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #008080;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Header Styles */
header {
  background-color: transparent;
  /* background: #fff; */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  width: 100%;
  z-index: 1000;
  transition: top 0.2s ease;
  box-shadow: none;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  /* height: 70px; */
  overflow: hidden;
}

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

.logo img {
  margin-bottom: 10px;
  height: 55px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

.billy,
.billy span {
  font-family: "BillyOhio";
  color: rgba(255, 255, 255, 0.85);
  /* -webkit-text-stroke: 0.6px #3889dad9; */
}

.billy span {
  display: inline-block;
}

.billy .small {
  font-size: 80px;
}

.billy .big {
  font-size: 140px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

/* Video Section */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 7rem;
  margin-bottom: 10px;
  font-weight: normal;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.description {
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.description:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

/* Features Section */
.features {
  background-color: #ffffff;
}

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

.feature-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

/* Products Section */

.products-filter {
  display: flex;
  overflow-x: auto;
  justify-content: center;
  margin-bottom: 40px;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.products-filter::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

.filter-btn {
  padding: 10px 20px;
  margin: 0 10px;
  background-color: transparent;
  border: 2px solid transparent;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.3s ease;
  border-radius: 4px;
  flex: 0 0 auto;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(26, 117, 255, 0.05);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  max-width: 1000px;
  /* limit max width */
  margin: 0 auto;
  /* center the grid */
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 320px;
  /* limits card width */
  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
  height: 200px;
  background-color: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

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

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-info h3 {
  margin-bottom: 10px;
}

.product-info p {
  color: var(--gray);
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-info .btn {
  align-self: center;
  margin-top: auto;
}

/* How It Works Section */
.process-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
  background-color: var(--light);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
}

.testimonial-dot.active {
  background-color: var(--primary);
}

/* Contact Section */
/* === Enhanced Contact Section === */

.contact {
  background-color: #fff;
  padding: 80px 0;
  background: linear-gradient(to right, #f7fafd, #f1f6fc);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.card {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Contact Info Section */
/* ==== Modern Clean Contact Section ==== */

.contact {
  background-color: #f5f7fa;
  padding: 80px 0;
  position: relative;
}

.new-contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  align-items: start;
}

/* Contact Info */
.contact-info {
  padding-right: 20px;
}

.contact-info h3 {
  margin-bottom: 25px;
  font-size: 1.6rem;
  color: var(--primary);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--dark);
  line-height: 1.5;
}

.contact-detail a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.contact-detail a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-icon {
  margin-right: 15px;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}

/* Contact Form */
.contact-form {
  background: #ffffff;
  padding: 30px 30px 40px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-row input,
.form-row select {
  flex: 1;
  min-width: 45%;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--dark);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 117, 255, 0.1);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Button */
.contact-form button.btn {
  width: fit-content;
  align-self: flex-start;
  font-size: 1rem;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.contact-form button.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Responsive Touch */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-row input,
  .form-row select {
    min-width: 100%;
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.95rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
  display: block;
}

.social-icons {
  display: flex;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 1rem;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    margin: 15px 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .process-steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 30px;
  }
}

/* Scroll */
html {
  scroll-behavior: smooth;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(255, 10%, 80%);
  /* Thoda thoda zyada light for scrollbar track */
}

::-webkit-scrollbar-thumb {
  background-color: hsl(255, 15%, 60%);
  /* Thoda saturated and darker for better visibility */
  border-radius: 0.3rem;
  /* Rounded corners for better look */
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(255, 20%, 50%);
  /* Thoda aur dark on hover */
}

/* Splash screen container */
#splash {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.5s;
}

#splash.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#splash.hide {
  opacity: 0;
  transform: scale(0.98);
  visibility: hidden;
}

.splash-logo {
  width: 140px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#splash.show .splash-logo {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE OVERRIDES — SAFE ADDITIONS ONLY
   ===================================================== */

/* ---------- Tablets & Small Laptops ---------- */
@media (max-width: 1024px) {
  .billy .small {
    font-size: 56px;
  }

  .billy .big {
    font-size: 96px;
  }

  .hero-content {
    max-width: 90%;
  }
}

/* ---------- Mobile (iPhone 12 Pro Max & below) ---------- */
@media (max-width: 768px) {
  /* HEADER FIX */
  header {
    height: 70px;
  }

  .logo img {
    height: 48px;
    margin-bottom: 0;
  }

  /* NAV MENU (existing behavior preserved) */
  nav ul li a {
    color: var(--dark);
    font-size: 1.1rem;
  }

  /* HERO HEIGHT FIX (Safari friendly) */
  .hero {
    min-height: 100svh;
    height: auto;
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }

  /* BILLY FONT — SCALED, NOT CHANGED */
  .billy .small {
    font-size: 42px;
  }

  .billy .big {
    font-size: 72px;
  }

  .hero-content p,
  .description {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* BUTTONS STACK */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
    text-align: center;
  }

  /* FEATURES / PRODUCTS GRID SAFETY */
  .features-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 100%;
  }

  /* PROCESS STEPS */
  .process-steps {
    gap: 20px;
  }
}

/* ---------- Small Phones (≤ 430px) ---------- */
@media (max-width: 445px) {
  section {
    padding: 60px 0;
  }

  .billy .small {
    font-size: 32px;
  }

  .billy .big {
    font-size: 56px;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .contact-detail {
    font-size: 1.1rem;
  }
}

/* small phone --390*/
@media (max-width: 390px) {
  section {
    padding: 60px 0;
  }

  .billy .small {
    font-size: 32px;
  }

  .billy .big {
    font-size: 56px;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 12px;
    font-size: 0.95rem;
  }

  .contact-detail {
    font-size: 1.1rem;
  }
}

/* ---------- iOS SAFE AREA (Notch Support) ---------- */
@supports (padding: env(safe-area-inset-top)) {
  header {
    padding-top: env(safe-area-inset-top);
  }

  .hero {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
