@import "variables.css";

@import "components/navbar.css";
@import "components/hero.css";
@import "components/about.css";
@import "components/how-it-works.css";
@import "components/features.css";
@import "components/brands.css";
@import "components/partners.css";
@import "components/testimonials.css";
@import "components/blog.css";
@import "components/faq.css";
@import "components/contact.css";
@import "components/footer.css";
@import "components/whatsapp-widget.css";

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-normal);
  line-height: var(--line-height-normal);
  background-color: var(--color-surface);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s var(--transition-smooth),
    color 0.3s var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-normal);
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  line-height: var(--line-height-relaxed);
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: var(--font-normal);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

.small {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--transition-smooth);
}

a:hover {
  color: var(--color-brand);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.font-primary {
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.font-secondary {
  font-family: var(--font-secondary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@font-face {
  font-family: "Godber";
  src: url("../assets/fonts/Godber.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  font-variant-ligatures: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-brand: #fdb519;
  --color-brand-rgb: 253, 181, 25;
  --color-surface: #ffffff;
  --color-surface-secondary: #f5f5f5;
  --color-text: #000000;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;
  --color-hover: rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition-base: 0.3s ease;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
}

.dark-mode {
  --color-surface: #111111;
  --color-surface-secondary: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: #2d2d2d;
  --color-hover: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1024px) {
  .container {
    max-width: 100vw;
    padding: 0 var(--space-2);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 var(--space-1);
  }
  .main-content {
    width: 100vw;
    padding: 0;
  }
  html {
    font-size: 14px;
  }
}

@media print {
  body {
    background: white;
    color: black;
  }
  .no-print {
    display: none;
  }
}

/* Custom Scrollbar - Tobeez Branded */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface-secondary);
  border-radius: 6px;
  margin: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    rgba(253, 181, 25, 0.8) 100%
  );
  border-radius: 6px;
  border: 2px solid var(--color-surface-secondary);
  transition: all 0.3s var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    rgba(253, 181, 25, 1) 100%
  );
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(253, 181, 25, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(
    135deg,
    var(--color-brand-dark) 0%,
    var(--color-brand) 100%
  );
  transform: scale(0.95);
}

::-webkit-scrollbar-corner {
  background: var(--color-surface-secondary);
  border-radius: 6px;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand) var(--color-surface-secondary);
}

/* Dark Mode Scrollbar */
.dark-mode ::-webkit-scrollbar-track {
  background: var(--color-surface-secondary);
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    rgba(253, 181, 25, 0.7) 100%
  );
  border-color: var(--color-surface-secondary);
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--color-brand) 0%,
    rgba(253, 181, 25, 0.9) 100%
  );
  box-shadow: 0 2px 8px rgba(253, 181, 25, 0.4);
}

.dark-mode ::-webkit-scrollbar-corner {
  background: var(--color-surface-secondary);
}

.dark-mode * {
  scrollbar-color: var(--color-brand) var(--color-surface-secondary);
}

/* Mobile Scrollbar - Thinner */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    margin: 2px;
  }

  ::-webkit-scrollbar-thumb {
    border-width: 1px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Specific Elements */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand) transparent;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
  margin: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-brand);
  border-radius: 3px;
  border: none;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-dark);
}

/* Animation for Scrollbar on Page Load */
@keyframes scrollbarFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

::-webkit-scrollbar-thumb {
  animation: scrollbarFadeIn 0.5s ease-out;
}
