/* about.css
   Page-specific styles for the About page.
   - Uses global tokens, colors, typography, footer, etc. from styles.css
   - Removes duplicated rules that are already defined in styles.css
   - Keeps only what's unique to About/Why sections, hero, animations, etc.
   - Font is already forced to Century Gothic in styles.css, so no font overrides here.
*/

/* =========================================
   EXTRA PAGE VARIABLES
   (only what's NOT in styles.css)
   ========================================= */
:root {
  /* light background sections like "Why Choose Us" */
  --light-bg: #f9f9f9;
}

[data-theme="night"] {
  --light-bg: #2d2d2d;
}

/* =========================================
   GLOBAL TWEAKS (page-level overrides/utilities)
   ========================================= */

/* On this page we want a solid navbar (not transparent first, like on home)
   + smooth shadow behavior */
.navbar {
  background-color: var(--navbar-bg) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Slight shadow on mobile so it feels like an app bar */
@media (max-width: 991.98px) {
  .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
}

/* Center nav items on tablet/mobile breakpoint.
   (Not in styles.css; this is about-page specific layout polish.) */
@media (max-width: 1024px) {
  .navbar-nav .nav-item {
    display: flex;
    justify-content: center;
  }

  /* ensure the theme toggle button in the nav doesn't stretch full width */
  .navbar-nav .theme-toggle {
    width: auto;
    margin: 0;
  }
}

/* Bootstrap's .text-muted / .text-secondary can look gray-on-gray in dark mode.
   Force them to follow our themed text color. */
.text-muted,
.text-secondary {
  color: var(--text-primary) !important;
}

/* =========================================
   HERO / TOP CAROUSEL SECTION
   Fullscreen hero with slow parallax bg
   ========================================= */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.2s ease-out;
  filter: brightness(90%);
}

/* Make Bootstrap carousel fill viewport height */
.carousel-inner,
.carousel-item {
  height: 100vh;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   ABOUT SECTION
   ========================================= */

#about {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

/* Title styling for sections on this page */
.section-title {
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 2rem;
  animation: titleFade 1.2s ease both;
}

/* Enforce readable body text color in this block,
   especially in dark mode where Bootstrap might dim it */
#about .fs-5 {
  color: var(--text-primary) !important;
}

/* =========================================
   WHY CHOOSE US / SERVICES BLOCK
   (light background cards with accent headings)
   ========================================= */

#why {
  background-color: var(--light-bg);
  transition: background-color 0.3s ease;
  padding: 2rem 0;
}

#why .section-title {
  color: var(--accent-color);
}

#why .list-unstyled li i {
  color: var(--accent-color);
}

/* Card-style service highlights */
#why .bg-light {
  background-color: var(--light-bg) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 6px var(--card-shadow);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#why .bg-light h5 {
  color: var(--accent-color) !important;
}

/* =========================================
   ANIMATIONS / REVEAL EFFECTS
   ========================================= */

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reusable fade-in / scroll-reveal helper */
.elegant-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.elegant-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   LOGO / BRAND CIRCLE BADGE
   (the glowing round logo avatar in About section)
   ========================================= */

.logo-circle {
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  background-color: var(--card-bg);
  box-shadow: 0 0 15px var(--accent-color);
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--card-hover-shadow);
}

/* =========================================
   FOOTER MINOR EXTRAS
   (Footer base styles & colors are already in styles.css.
    We only add subtle hover/animation for icons here.)
   ========================================= */

.social-icon i {
  color: var(--accent-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover i {
  transform: scale(1.1);
  color: var(--accent-color);
}
