/* ============================
   VARIABLES & BASE STYLES
=============================== */
:root {
  --brand-orange: #ff6e40;
  --brand-blue: #021e28;
  --brand-white: #FFF0E1;
  --brand-brown: #a04e40;

  --text-on-dark-primary: var(--brand-orange);
  --text-on-dark-secondary: var(--brand-orange);
  --text-on-light: var(--brand-blue);

  --font-body: "polymath", sans-serif;
  --font-heading: "boucherie-block", sans-serif;

  --container-max-width: 1140px;

  --focus-outline: rgba(243, 255, 0, 0.5);
  --transition-speed: 0.3s;
}

/* ============================
   GLOBAL RESET & BASE STYLES
=============================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background-color: var(--brand-white);
  color: var(--text-on-light);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none; /* Prevent unwanted borders */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover,
a:focus {
  color: var(--brand-orange);
  text-decoration: underline;
}

body > section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ============================
   UTILITY CLASSES
=============================== */
.font-heading { font-family: var(--font-heading) !important; }
.font-body    { font-family: var(--font-body) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-blue   { color: var(--brand-blue) !important; }
.text-brand-white  { color: var(--brand-white) !important; }
.text-brand-brown  { color: var(--brand-brown) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-blue   { background-color: var(--brand-blue) !important; }
.bg-brand-white  { background-color: var(--brand-white) !important; }
.bg-brand-brown  { background-color: var(--brand-brown) !important; }

.highlight {
  color: var(--brand-orange);
}

.pt-6 {
  padding-top: 5rem; /* or however much you want */
}
.pt-7 {
  padding-top: 7rem;
}
.pt-8 {
  padding-top: 10rem;
}


.section-headline {
  font-size: clamp(4rem, 8vw, 7rem); /* Keep same sizing */
  line-height: 1.1;
  margin-bottom: 0.25rem; /* Reduced from 1.5rem */
}

/* ============================
   SECTION SPACING & CONTAINERS
=============================== */
section {
  padding-block: 5rem;
 /* padding-inline: 2rem; */
}

.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow-x: hidden;
}

.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.custom-two-col-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.75fr;
  gap: 1rem;
}

.left-col {
  max-width: 520px;
  width: 100%;
}

.right-col {
  width: 100%;
}

@media (max-width: 767px) {
  .custom-two-col-grid {
    display: flex;
    flex-direction: column;
  }
}



/* ============================
   BUTTON & ICON STYLES
=============================== */
.btn {
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  border-radius: 50rem;
}

.btn-on-light {
  background-color: var(--brand-orange);
  color: var(--brand-blue);
  border: none;
}

.btn-on-light:hover,
.btn-on-light:focus {
  background-color: var(--brand-blue);
  color: var(--brand-white);
  outline: none;
}

.btn-on-blue {
  background-color: var(--brand-orange);
  color: var(--brand-blue);
  border: 3px solid transparent;
}

.btn-on-blue:hover,
.btn-on-blue:focus {
  background-color: var(--brand-blue);
  color: var(--brand-white);
  border-color: var(--brand-white);
  outline: none;
}

.btn-on-orange {
  background-color: var(--brand-blue);
  color: var(--brand-orange);
  border: 3px solid transparent;
}

.btn-on-orange:hover,
.btn-on-orange:focus {
  background-color: var(--brand-orange);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  outline: none;
}

/*  ============================
    5. DIVIDER
 ============================ */

.brand-divider-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.brand-divider {
  border: none;
  height: 6px;
  background-color: var(--brand-orange);
  width: 100%;
  margin: 0;
}

.land-divider {
  border-top: 6px solid var(--brand-orange);
  width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* ============================
   6. NAVIGATION
=============================== */

/* Logo sizing */
.navbar-brand img {
  height: 60px;
  width: auto;
}

/* Remove underline and apply scale effect to brand block */
.navbar-brand {
  display: inline-block;
  text-decoration: none !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover,
.navbar-brand:focus {
  transform: scale(1.03);
  text-decoration: none !important;
}

/* Nav link styling */
.navbar .nav-link {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--brand-blue);
  padding: 0.5rem 1rem; /* Keep horizontal padding */
  transition: color 0.3s ease;
}

.navbar .nav-link:hover::after {
  transform: scaleX(1);
}

/* Navbar toggler customization */
.navbar-toggler {
  border: none;
  background: transparent;
  padding: 0.25rem;
  box-shadow: none;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23021e28' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  background-size: 1.5em;
}

/* Padding applied to nav container */
.navbar .container-fluid {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Mobile layout adjustments */
@media (max-width: 991.98px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .navbar-collapse .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
  }

  .navbar-collapse .btn {
    display: inline-block;
    margin-top: 1.5rem;
    text-align: center;
    outline: none;
  }
}

/* ============================
   HERO SECTION
=============================== */

/* Default: Desktop keeps content centered */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--brand-blue);
  color: var(--brand-white);
  overflow: hidden;
  scroll-padding-bottom: 0;
}

.hero-content {
  padding-top: 2rem;
}

.hero-inner {
  margin-left: auto;
  margin-right: auto;
}

.hero-xl {
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.4;
  max-width: relative;
}

/* Entrance animation */
.hero-content h1,
.hero-content h2 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
  will-change: opacity, transform;
  animation-fill-mode: forwards;
}

.hero-content h2 {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-wrapper {
  margin-top: 3rem;
}

.hero-logo {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
}

.scroll-down {
  text-align: center;
  margin-top: 3rem;
}

.scroll-down .bi {
  font-size: 4rem;
  color: var(--brand-white);
  display: inline-block;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@media (max-width: 400px) {
  .hero-xl {
    word-break: break-word;
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    max-width: 260px;
  }

  .scroll-down .bi {
    font-size: 3rem;
  }
}

/* Mobile: Align content to top */
@media (max-width: 767px) {
  .hero-section {
    min-height: unset;
    align-items: flex-start;
    padding-top: 50px;
  }
}


/* ============================
   8. PORTFOLIO SECTION
=============================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
}

.portfolio-left {
  position: relative;
}

.sticky-text-inner {
  position: sticky;
  top: 160px;
}

.portfolio-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cards-scroll-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background-color: var(--brand-blue);
  color: var(--brand-white);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  align-self: start; /* 🟢 Add this line --- makes grid responsive to content inside */
}

.project-img {
  width: 100%;
  display: block;
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-cta {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
}


.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.project-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

@media (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-left {
    position: static;
    margin-bottom: 2rem;
  }

  .sticky-text-inner {
    position: static;
    top: auto;
    padding-right: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .portfolio-scroll-section {
    padding-block: 3rem;
  }
}

/* ============================
   9. ROTATING BANNER SECTION
=============================== */

.rotating-banner {
  background-color: var(--brand-brown);
  overflow: hidden;
  padding: 6rem 0;
}

.logo-marquee {
  display: flex;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.logo-strip {
  display: flex;
  gap: 2rem; /* spacing between logos */
}

.logo-icon {
  height: 60px;
  width: auto;
  flex-shrink: 0; /* Prevents logos from shrinking on small screens */
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .logo-icon {
    height: 40px;
  }

  .rotating-banner {
    padding: 2rem 0;
  }
}

/* ============================
          Testimonials
=============================== */

.testimonials-section {
  padding-block: 5rem;
}

@media (max-width: 767px) {
  .testimonials-section {
    padding-block: 3rem;
  }
}

#testimonials .left-col {
  position: sticky;
  top: 120px;
  align-self: flex-start;
  z-index: 2;
}

@media (max-width: 767px) {
  #testimonials .left-col {
    position: static;
    top: auto;
    margin-bottom: 2rem;
  }
}

/* 🔧 Removed padding-top here */
.stacked-cards-wrapper {
  position: relative;
  height: auto;
}

/* ✅ Card stack itself has no extra padding */
.stacked-cards {
  display: flex;
  flex-direction: column;
  padding: 0; /* Just in case */
  margin: 0;
}

/* ✅ Margin only between individual cards */
.stacked-card {
  position: sticky;
  display: flex;
  justify-content: center;
  z-index: calc(10 + var(--card-index));
  animation: stackPop 1s linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
  margin-bottom: 4rem;
}

@media (max-width: 767px) {
  .stacked-card {
    position: static;
    animation: none;
    margin-bottom: 2rem;
  }
}
@media (max-width: 767px) {
  #testimonials .right-col {
    padding-top: 0 !important;
  }
}





/* ============================
   10. Expertise
=============================== */

.experience-section {
  padding-block-start: 0 !important;
  padding-block: 5rem;
}

@media (max-width: 767px) {
  .experience-section {
    padding-block: 3rem;
  }
}

.experience-two-col-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.75fr;
  gap: 2rem;
}

@media (max-width: 767px) {
  .experience-two-col-grid {
    display: flex;
    flex-direction: column-reverse; /* Flip only Experience section */
  }
}



@media (min-width: 992px) {
  .mt-align-divider {
    margin-top: -4rem; /* Experience visually centers with divider on desktop */
  }
}

@media (max-width: 991.98px) {
  .mt-align-divider {
    margin-top: 0; /* Reset on mobile so it stacks clean */
  }
}

@keyframes stackPop {
  0% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}

/* If these classes are shared with another scroll section like Hobbies or Skills, leave them.
   If not reused, consider renaming or relocating for clarity. */

.scroll-hobbies-skills-section {
  background-color: var(--brand-blue);
  color: var(--brand-orange);
  padding: 2rem 1rem 8rem 1rem;
}

@media (max-width: 768px) {
  .scroll-hobbies-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.scroll-hobbies-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.5fr;
  gap: 2rem;
  align-items: start;
}

.hobbies-column {
  position: sticky;
  top: 120px;
  align-self: start;
  z-index: 2;
}

.sticky-hobbies {
  position: sticky;
  top: 100px;
  align-self: flex-start;
  z-index: 2;
}

.hobbies-content {
  max-width: 500px;
}

@media (max-width: 767px) {
  .scroll-hobbies-grid {
    grid-template-columns: 1fr;
  }

  .hobbies-column {
    position: static;
  }
}


/* ============================
          About
=============================== */

.about-section {
  padding-block: 5rem;
  background-color: var(--brand-white);
  color: var(--brand-blue);
}


.hero-headline .highlight {
  position: relative;
}

.hero-headline .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: 0.3em;
  background: var(--brand-orange);
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 767px) {
  .about-section {
    padding-block: 3rem;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 7vw, 3.5rem);
  }

  .about-copy p {
    font-size: 1rem;
  }
}



/* ============================
          Image Gallery
=============================== */

.hobby-section {
  padding-block: 5rem;
}

.gallery-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.gallery-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-row {
  display: flex;
  width: max-content;
  animation: scroll-gallery 40s linear infinite;
  will-change: transform;
}

.gallery-row.row-2 {
  animation-delay: -2s;
  transform: translateX(-25%);
}

.gallery-strip {
  display: flex;
  gap: 2rem;
}

.gallery-strip img {
  height: 300px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.gallery-strip img:last-child {
  margin-right: 2rem;
}

@keyframes scroll-gallery {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .gallery-strip {
    gap: 1rem;
  }

  .gallery-strip img {
    height: 200px;
  }

  .gallery-row {
    animation-duration: 30s;
    padding-inline: 1rem;
  }

  .gallery-wrapper {
    margin-left: 0;
    width: 100%;
  }
}


/* ============================
          FAQ SECTION
=============================== */

.faq-section {
  padding-block: 5rem;
}


/* Accordion base container */
.custom-accordion {
  max-width: 700px;
  width: 100%;
  margin-left: auto; /* Right-aligns it beside the left column */
}

/* Accordion items */
.accordion-item {
  border-bottom: 1px solid #ccc;
}

/* Accordion header button */
.accordion-header {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem 0;
  color: var(--brand-blue);
  cursor: pointer;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: var(--brand-orange);
}

/* Accordion body (collapsed by default) */
.accordion-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1rem;
  color: #555;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

/* Expanded state */
.accordion-item.open .accordion-body {
  max-height: 500px; /* Large enough for full content */
  opacity: 1;
}

@media (max-width: 767px) {
  .faq-section {
    padding-block: 3rem;
  }



/* ============================
            FOOTER
=============================== */

.footer-section {
  padding-block: 5rem;
  background-color: var(--brand-blue);
  color: var(--brand-white);
}
}

/* Logo sizing */
.footer-logo {
  height: 80px;
  width: auto;
}

/* Footer Nav Styling */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.footer-nav a {
  color: var(--brand-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* Social Icons */
.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  font-size: 2.5rem;
  color: var(--brand-white);
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: var(--brand-orange);
}

/* Contact Form */
.form-wrapper {
  max-width: 700px;
  width: 100%;
  margin-left: auto;
}

/* Divider Bar */
.footer-divider {
  border-top: 6px solid var(--brand-orange);
  width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* Copyright */
.footer-section .small {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-section .small a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section .small a:hover {
  color: var(--brand-white);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .footer-section {
    padding-block: 3rem;
  }











