@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --btn-color: #fdfdfd; /* button color*/
  --btn-bg: #0d0d0d; /* button bg color*/

  --primary-text-color: #000;
  --link-hover: #6dbb00;
  --footer-link-hover: #6dbb00;
  --input-focus-bd-color: #0d0d0d;

  /* Professional Typography Variables */
  /* Mobile-first font sizes (base 16px = 1rem) */
  --brand-name-size: 2.25rem; /* 36px */
  --hero-headline-size: 1.5rem; /* 24px */
  --hero-description-size: 1.125rem; /* 18px */
  --feature-title-size: 1.25rem; /* 20px */
  --feature-description-size: 1rem; /* 16px */
  --footer-text-size: 0.875rem; /* 14px */

  /* Icon sizes */
  --icon-size-mobile: 1.5rem; /* 24px */
  --icon-size-desktop: 2rem; /* 32px */

  /* Line heights for better readability */
  --headline-line-height: 1.2;
  --subheadline-line-height: 1.3;
  --body-line-height: 1.5;
  --description-line-height: 1.6;

  /* Letter spacing for better readability */
  --headline-letter-spacing: -0.025em;
  --body-letter-spacing: 0.01em;
}

html {
  scroll-behavior: smooth;
  font-family: 'Roboto', sans-serif;
  font-size: 100%; /* Base 16px */
}

/* Professional Typography Responsive Breakpoints */
/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --brand-name-size: 2.75rem; /* 44px */
    --hero-headline-size: 2rem; /* 32px */
    --hero-description-size: 1.25rem; /* 20px */
    --feature-title-size: 1.375rem; /* 22px */
    --feature-description-size: 1.0625rem; /* 17px */
    --footer-text-size: 0.9375rem; /* 15px */
    --icon-size-mobile: 1.75rem; /* 28px */
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --brand-name-size: 3rem; /* 48px */
    --hero-headline-size: 2.25rem; /* 36px */
    --hero-description-size: 1.375rem; /* 22px */
    --feature-title-size: 1.5rem; /* 24px */
    --feature-description-size: 1.125rem; /* 18px */
    --footer-text-size: 1rem; /* 16px */
    --icon-size-desktop: 2rem; /* 32px */
  }
}

/* Professional Typography Classes */
.professional-brand {
  font-size: var(--brand-name-size);
  font-weight: 700;
  line-height: var(--headline-line-height);
  letter-spacing: var(--headline-letter-spacing);
}

.professional-hero-headline {
  font-size: var(--hero-headline-size);
  font-weight: 600;
  line-height: var(--subheadline-line-height);
  letter-spacing: var(--headline-letter-spacing);
}

.professional-hero-description {
  font-size: var(--hero-description-size);
  font-weight: 400;
  line-height: var(--description-line-height);
  letter-spacing: var(--body-letter-spacing);
  max-width: 65ch; /* Optimal line length for readability */
  color: #374151; /* Better contrast than gray-700 */
}

.professional-feature-title {
  font-size: var(--feature-title-size);
  font-weight: 500;
  line-height: var(--subheadline-line-height);
  letter-spacing: var(--headline-letter-spacing);
}

.professional-feature-description {
  font-size: var(--feature-description-size);
  font-weight: 400;
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
}

.professional-footer {
  font-size: var(--footer-text-size);
  font-weight: 400;
  line-height: var(--body-line-height);
}

/* Fluid Typography for Ultra-Smooth Scaling */
/* Using clamp() for seamless responsive scaling */
.professional-brand {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.professional-hero-headline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.professional-hero-description {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

.professional-feature-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.professional-feature-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.professional-footer {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Responsive icon sizing with clamp */
.professional-icon {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Enhanced mobile-first approach */
@media (max-width: 480px) {
  .professional-brand {
    font-size: 2rem; /* Slightly smaller on very small screens */
  }

  .professional-hero-headline {
    font-size: 1.375rem;
  }

  .professional-hero-description {
    font-size: 1rem;
    line-height: 1.7; /* More line height for easier reading on small screens */
  }
}

/* Large desktop optimization */
@media (min-width: 1440px) {
  .professional-brand {
    font-size: 3.25rem;
  }

  .professional-hero-headline {
    font-size: 2.5rem;
  }

  .professional-hero-description {
    font-size: 1.5rem;
  }
}

/* Responsive Icon Sizing */
.professional-icon {
  font-size: var(--icon-size-mobile);
  transition: font-size 0.3s ease;
}

@media (min-width: 1024px) {
  .professional-icon {
    font-size: var(--icon-size-desktop);
  }
}

/* Improved touch targets for mobile */
.touch-target {
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better spacing for mobile */
.mobile-spacing {
  padding: 1.5rem 1rem;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) {
  .mobile-spacing {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-spacing {
    padding: 2.5rem 2rem;
  }
}

header > .collapsible-header {
  display: flex;
  gap: 1rem;
  width: 100%;
  background-color: inherit;
  place-content: center;
  overflow: hidden;
  transition: width 0.3s ease;
}

.animated-collapse {
  transition: width 0.3s ease;
}

.header-links {
  display: flex;
  align-items: center;
  min-width: fit-content;
  border-radius: 10px;
  padding: 5px 10px;
  transition:
    background-color 0.5s,
    color 0.5s;
}

.header-links:hover {
  color: var(--link-hover);
}

.material-icons.md-40 {
  font-size: var(--icon-size-mobile);
}

@media (min-width: 1024px) {
  .material-icons.md-40 {
    font-size: var(--icon-size-desktop);
  }
}

.primary-text-color {
  color: var(--primary-text-color);
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 100 !important;
}

.btn {
  padding: 10px 15px;
  width: max-content;
  border-radius: 25px;
  color: var(--btn-color);
  background-color: var(--btn-bg);
  justify-content: center;
  align-items: center;
  display: flex;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.btn:disabled {
  cursor: default;
}

.input {
  padding: 10px;
  background-color: transparent;
  border-radius: 25px;
  /* outline: none; */
  min-width: 100px;
  border: 2px solid #818080;
  transition: border 0.3s;
}

.input:active,
.input:focus,
.input:focus-within {
  border: 2px solid var(--input-focus-bd-color);
}

.input-error {
  border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within {
  border-bottom: 3px solid #fd0101;
}

/* Navigation dots styling */
.dots-container {
  text-align: center;
  margin-top: 20px;
}

.footer-link {
  color: #0d0d0d;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--footer-link-hover);
}

.review-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.review-card {
  box-shadow: 0px 2px 4px #757474a0;
  border-radius: 15px;
  /* width: 200px; */
  /* height: 550px; */
  padding: 10px;
}

/* --------- collapsible div ---------- */
.collapsible {
  background-color: #f3f0f0;
  color: #2b2929;
  /* cursor: pointer; */
  padding: 5px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  transition: 0.4s;
}

/* Style for the collapsible content */
.content {
  padding: 0 18px;
  /* display: none; */
  height: 0px;
  overflow: hidden;
  background-color: transparent;
  transition: height 0.5s;
  text-align: justify;
  margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
  background-color: #dedddd;
}

@media not all and (min-width: 1024px) {
  header .collapsible-header {
    position: fixed;
    right: 0px;
    flex-direction: column;
    opacity: 0;
    height: 100vh;
    min-height: 100vh;
    height: 100dvh;
    width: 0vw;
    justify-content: space-between;
    padding: 5px;
    padding-top: 5%;
    padding-bottom: 5%;
    place-items: end;
    background-color: #ffffff;
    color: #000000;
    overflow-y: auto;
    box-shadow: 2px 0px 3px #000;
  }

  .header-links {
    color: black;
  }
}

/* Accessibility Improvements */
/* Focus states for better keyboard navigation */
.professional-brand:focus,
.footer-link:focus,
.touch-target:focus {
  outline: 2px solid var(--primary-text-color);
  outline-offset: 2px;
}

/* Improved contrast for text readability */
/* .professional-hero-description {
    color: #374151; /!** Better contrast than gray-700 *!/
} */

/* Better button hover states */
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

/* Smooth transitions for professional feel */
.professional-brand,
.professional-hero-headline,
.professional-feature-title {
  transition: color 0.3s ease;
}

/* Enhanced mobile spacing for better touch targets */
@media (max-width: 767px) {
  .touch-target {
    min-height: 56px;
    min-width: 56px;
  }

  .professional-feature-title {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }

  .professional-feature-description {
    margin-bottom: 1rem;
  }
}

/* Better visual hierarchy with subtle shadows */
.mobile-spacing {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.mobile-spacing:hover {
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Improved readability with better line spacing */
.professional-hero-description,
.professional-feature-description {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
