/* ==========================================================================
   Cerej Design System & CSS Stylesheet (Figma Prototype Match)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Reddit+Sans:ital,wght@0,200..900;1,200..900&family=Ultra&display=swap');

/* Design Tokens & Theme Colors */
:root {
  /* Fonts */
  --font-ultra: 'Ultra', serif;
  --font-reddit: 'Reddit Sans', sans-serif;
  --font-vietnam: 'Be Vietnam Pro', sans-serif;
  --font-manrope: 'Manrope', sans-serif;

  /* Colors */
  --color-creme: #FFF8F7;
  --color-red: #E54A4A;
  --color-green: #00D37B;
  --color-dark-green: #003F34;
  --color-lime: #E6FF99;
  --color-gray: #EBEBEB;
  --color-white: #FFFFFF;
  --color-black: #111111;
  --color-text-white: #FFF8F7; /* Same as hero background color */
  
  /* Layout constraints */
  --max-width: 1280px;
  --navbar-height: 139px;
  --logo-offset: 4px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  background-color: var(--color-creme);
}

body {
  background-color: var(--color-creme);
  color: var(--color-dark-green);
  font-family: var(--font-reddit);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--color-creme);
}
::-webkit-scrollbar-thumb {
  background-color: var(--color-dark-green);
  border-radius: 6px;
  border: 3px solid var(--color-creme);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed; /* Fixed position so it floats on scroll */
  top: 0;
  left: 0;
  width: 100%;
  padding: 35px 80px;
  background-color: rgba(255, 248, 247, 0.85); /* Semi-transparent creme matching hero background */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 11px 80px; /* Reduced to 75% of current scrolled padding */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Added subtle shadow when scrolled */
  --logo-offset: 2px;
  --navbar-height: 56.5px;
}
.navbar.scrolled .brand-logo {
  width: 100px; /* Shrunk by 50% when scrolled */
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar .logo {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 200px;
  height: auto;
  transform: translateY(var(--logo-offset));
  transition: var(--transition-smooth);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 78px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-reddit);
  font-size: 18px; /* Reduced to 90% of original 20px */
  font-weight: 600;
  color: var(--color-red);
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  transition: var(--transition-smooth);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--color-red);
  font-weight: 700;
}

.nav-links a.active {
  color: var(--color-red);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-red);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Main content wrapper */
.App {
  width: 100%;
  padding-top: var(--navbar-height); /* Height offset for fixed header */
  background-color: var(--color-creme);
}

/* Hero Section */
.hero-section {
  background-color: var(--color-creme);
  background-image: linear-gradient(90deg, #FFF8F7 0%, #FFF8F7 100%);
  height: 688px; /* Fixed height matching Figma */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  overflow: visible; /* Allows image to overflow on top of services section */
  position: relative;
  z-index: 4;
}

.hero-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
}

.hero-left {
  flex: 1 1 637px;
  max-width: 637px;
  height: 100%;
  position: relative;
  padding-top: 203px; /* Exact Figma padding top */
  padding-bottom: 55px;
}

.hero-title {
  font-family: var(--font-reddit);
  font-size: 64px;
  font-weight: 500;
  line-height: 72px;
  color: var(--color-red);
}

.hero-letter-a {
  font-family: var(--font-reddit);
  font-weight: 500;
  letter-spacing: normal;
}

.italic-red {
  font-family: var(--font-reddit);
  font-weight: 900;
  font-style: italic;
  color: var(--color-red);
}

/* Scroll down stacked button */
.scroll-down-btn {
  position: absolute;
  left: 0; /* Aligned with left edge of text content, matching Figma spacing */
  bottom: 55px;
  width: 56px;
  height: 56px;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.scroll-down-btn:hover {
  transform: scale(1.08);
}

.scroll-circle {
  width: 55px;
  height: 55px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scroll-arrow {
  width: 14px;
  height: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: scroll-bounce 2s infinite ease-in-out;
}

@keyframes scroll-bounce {
  0%, 100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, -30%);
  }
}

@keyframes blink-animation {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.15;
  }
}

.hero-right {
  flex: 1 1 603px;
  max-width: 603px;
  height: 100%;
  position: relative;
}

.hero-graphic {
  width: 100%;
  height: auto;
  position: relative;
}

.hero-image {
  position: absolute;
  top: 60px; /* Repositioned to prevent overlap cut-off with navbar */
  right: 0;
  left: auto;
  width: 100%; /* Responsive fluid width */
  max-width: 603px;
  height: auto; /* Fluid height scale */
  max-height: 806px; /* Proportional Figma size overflowing bottom of hero */
  object-fit: contain;
  display: block;
  z-index: 5;
}

/* Services Section */
.services-section {
  background-color: var(--color-green);
  padding: 180px 80px 80px; /* Aligns Services title horizontally with the bottom of the hero workstation desk */
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 3; /* Rendered below hero, allowing overflow overlap */
}

.services-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.services-title {
  font-family: var(--font-ultra);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -1.28px;
  color: var(--color-dark-green);
  text-align: left;
  position: relative;
  width: fit-content;
  display: block;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* Stretches to align with right edge like portfolio */
  column-gap: 40px;
  row-gap: 40px;
  width: 100%;
}

.service-card {
  background-color: #00c673; /* Vibrant background */
  box-shadow: 0px 4px 18.8px 14px rgba(0, 63, 52, 0.16);
  border-radius: 15px;
  padding: 14px 15px; /* Matches Figma code */
  width: 100%;
  min-height: 495px; /* Matches Figma card container height */
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px; /* Matches Figma gap: 10px */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 24px 16px rgba(0, 63, 52, 0.22);
}

.card-header {
  display: flex;
  align-items: flex-start;
}

.card-badge {
  font-family: var(--font-ultra);
  font-size: 20px;
  height: 39px; /* Matches Figma label height */
  padding: 0 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.bg-dark-green {
  background-color: var(--color-dark-green);
  color: var(--color-text-white);
}

.bg-red {
  background-color: var(--color-red);
  color: var(--color-text-white);
}

.card-desc {
  font-family: var(--font-reddit);
  font-weight: 500;
  font-size: 16px;
  line-height: 23px;
  color: var(--color-dark-green);
  margin: 0; /* Clear margins to allow perfect 14px bottom padding gap */
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 339px; /* Matches Figma image height */
  border-radius: 12px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.card-leaf {
  position: absolute;
  width: 22px;
  height: 22px;
  left: 65%; /* Responsive positioning relative to fluid card width */
  top: 33%; /* Responsive positioning relative to card image box */
  z-index: 2;
  pointer-events: none;
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--color-dark-green);
  padding: 100px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.portfolio-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.portfolio-title {
  font-family: var(--font-ultra);
  font-size: 28px;
  letter-spacing: -1.28px;
  color: var(--color-lime);
  position: relative;
  width: fit-content;
  display: block;
}

.services-title .title-icon, .portfolio-title .title-icon {
  position: absolute;
  left: calc(100% + 8px);
  bottom: -8px; /* Clean gap of 8px from the text baseline, matching contact page */
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 69px;
  width: 100%;
}

.portfolio-card {
  position: relative;
  aspect-ratio: 359 / 367;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 4px 26px 16px rgba(230, 255, 153, 0.15);
  cursor: pointer;
  background-color: var(--color-dark-green);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.portfolio-hover {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 63, 52, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.portfolio-card:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-hover-leaf {
  width: 32px;
  height: 32px;
}

.portfolio-hover h3 {
  color: var(--color-text-white);
  font-family: var(--font-reddit);
  font-weight: 700;
  font-size: 24px;
  text-align: center;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-gray);
  padding: 100px 80px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.contact-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.contact-left {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.contact-title {
  font-family: var(--font-reddit);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.82px;
  line-height: 1.1;
  color: var(--color-red);
}

.text-neon-green {
  color: var(--color-green);
}

.contact-btn {
  background-color: var(--color-red);
  color: var(--color-text-white);
  font-family: var(--font-reddit);
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  padding: 17px 26px;
  border-radius: 83px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.contact-chevron {
  width: 9px;
  height: auto;
  transform: rotate(-90deg);
}

.contact-right {
  flex: 1;
  max-width: 400px; /* Decreased size of contact image */
  display: flex;
  justify-content: flex-end;
}

.contact-image-wrapper {
  position: relative;
  width: 100%;
}

.contact-brand-icon {
  position: absolute;
  left: -90px;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.contact-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0px 25px 50px -12px rgba(0,0,0,0.25);
  display: block;
}

.contact-leaf {
  position: absolute;
  width: 210px;
  height: auto;
  left: 499px;
  top: 260px;
  z-index: 2;
  pointer-events: none;
}

/* Footer Section */
.footer {
  background-color: var(--color-red);
  padding: 65px 80px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.footer-corner-icon {
  position: absolute;
  bottom: 80px;
  right: 40px;
  width: 53px;
  height: 68px;
  pointer-events: none;
}

.footer-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.footer-logo {
  width: 93px;
  height: auto;
  display: block;
}

.footer-copyright {
  font-family: var(--font-reddit);
  font-size: 16px;
  color: var(--color-text-white);
  line-height: 1.5;
}

.footer-bottom {
  width: 100%;
  max-width: var(--max-width);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
}

.footer-dev {
  font-family: var(--font-reddit);
  font-size: 14px;
  color: var(--color-text-white);
  opacity: 0.9;
}

.footer-dev a {
  color: var(--color-text-white);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.footer-dev a:hover {
  opacity: 0.8;
}

.font-bold {
  font-weight: 700;
}

.footer-col h3 {
  font-family: var(--font-reddit);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text-white);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col ul a {
  font-family: var(--font-manrope);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-white);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-col ul a:hover {
  opacity: 0.8;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icons a {
  display: block;
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.social-icons a img {
  width: 100%;
  height: 100%;
}

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

/* Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Layout & Media Queries
   ========================================================================== */

/* Laptops & Intermediate Screen Sizes */
@media (max-width: 1440px) {
  .services-section {
    padding-top: 180px; /* Reduced to match the scaled down hero image overlap */
  }
}
@media (max-width: 1300px) {
  .services-section {
    padding-top: 140px; /* Further reduced to match the scaled down hero image overlap */
  }
}

/* Medium Laptops & Large Tablets */
@media (max-width: 1200px) {
  :root {
    --navbar-height: 115px; /* Adjusted to match padding + logo height */
  }
  .navbar {
    padding: 28px 40px; /* Increased vertical padding to fix gap */
    --logo-offset: 3px;
  }
  .navbar.scrolled {
    padding: 14px 40px; /* Increased vertical padding to fix gap when scrolled */
    --logo-offset: 1.5px;
    --navbar-height: 57px;
  }
  .navbar.scrolled .brand-logo {
    width: 85px; /* Shrunk by 50% when scrolled */
  }
  .brand-logo {
    width: 170px; /* Scaled down logo */
  }
  .hero-section {
    height: 580px;
    padding: 0 40px;
  }
  .hero-left {
    flex: 1 1 510px;
    max-width: 510px;
    padding-top: 150px;
  }
  .hero-right {
    flex: 1 1 450px;
    max-width: 450px;
  }
  .hero-image {
    position: absolute;
    top: 40px; /* adjusted top offset */
    right: 0;
    left: auto;
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 600px;
  }
  .services-section {
    padding: 120px 40px 60px; /* Adjusted to keep gap coherent as the hero image scales down */
  }
  .portfolio-section, .contact-section, .footer {
    padding: 60px 40px;
  }
  .footer {
    padding-bottom: 15px;
  }
  .hero-title {
    font-size: 52px;
    line-height: 60px;
  }
  .portfolio-grid {
    column-gap: 20px;
    row-gap: 40px;
  }
  .contact-title {
    font-size: 52px;
  }
}

@media (max-width: 1050px) {
  .services-section {
    padding-top: 80px; /* Reduced to match the scaled down hero image overlap */
  }
}

/* Tablets (Portrait) */
@media (max-width: 992px) {
  .navbar {
    --logo-offset: 3px;
  }
  .navbar.scrolled {
    --logo-offset: 1.5px;
  }
  .brand-logo {
    width: 150px; /* Scaled down logo */
  }
  .navbar.scrolled .brand-logo {
    width: 75px; /* Shrunk by 50% when scrolled */
  }
  .nav-links {
    gap: 30px;
  }
  .hero-section {
    height: auto;
    padding: 60px 40px 0; /* Changed bottom padding to 0 to glue image to Services section */
    overflow: visible; /* Allows image to overflow without cutting off */
  }
  .services-section {
    padding: 60px 40px; /* Reset padding since hero image is relative and no longer overlapping */
  }
  .hero-content {
    flex-direction: column; /* Stack image below text */
    text-align: center;
    gap: 40px;
  }
  .hero-left {
    align-items: center;
    flex: 1 1 100%;
    max-width: 100%;
    height: auto;
    padding: 0;
  }
  .hero-title {
    text-align: center; /* Center text in smaller breakpoints */
  }
  .hero-right {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
  }
  .hero-image {
    position: relative;
    top: 0;
    left: 0;
    right: auto;
    margin: 0 auto; /* Centered in smaller screen sizes */
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
  }
  .scroll-down-btn {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 40px auto 0;
    display: block;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card {
    width: 100%;
    max-width: none;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-left {
    align-items: center;
    max-width: 100%;
  }
  .contact-right {
    max-width: 320px; /* Reduced from 80% to be smaller and fit mobile nicely */
    justify-content: center;
  }
  .contact-leaf {
    width: 150px;
    left: 80%;
    top: 60%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  :root {
    --navbar-height: 85px; /* Adjusted to match padding + logo height */
  }
  .navbar {
    padding: 22px 20px; /* Increased vertical padding to fix gap */
    --logo-offset: 2px;
  }
  .navbar.scrolled {
    padding: 14px 20px; /* Increased vertical padding to fix gap when scrolled */
    --logo-offset: 1px;
    --navbar-height: 49px;
  }
  .navbar.scrolled .brand-logo {
    width: 60px; /* Shrunk by 50% when scrolled */
  }
  .brand-logo {
    width: 120px; /* Smaller logo for mobile */
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--navbar-height); /* Dynamic height alignment */
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height)); /* Dynamic height calculations */
    background-color: var(--color-green); /* Background is green when open */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--color-text-white); /* Offwhite divider instead of black/dark green */
  }
  .nav-links.open {
    left: 0;
  }
  .nav-links a {
    color: var(--color-text-white); /* Every text to offwhite */
  }
  .nav-links a:hover, .nav-links a.active {
    color: var(--color-text-white);
  }
  .nav-links a::after {
    background-color: var(--color-text-white); /* Underline to offwhite */
  }
  .navbar.menu-open {
    background-color: var(--color-green); /* Navbar background turns green when open */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .navbar.menu-open .mobile-toggle {
    color: var(--color-text-white); /* Toggle icon turns offwhite */
  }
  .hero-section {
    padding: 40px 20px 0; /* Glue to bottom of section on mobile */
  }
  .services-section, .portfolio-section, .contact-section, .footer {
    padding: 40px 20px;
  }
  .footer {
    padding-bottom: 15px;
  }
  .hero-title {
    font-size: 38px;
    line-height: 46px;
    text-align: center; /* Centered on mobile */
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  .services-title, .portfolio-title {
    max-width: 450px; /* Center alignment of titles matching internal container max-width */
    margin: 0 auto 30px;
    width: fit-content;
  }
  .services-title {
    font-size: 28px; /* Proportional text sizes */
  }
  .portfolio-title {
    font-size: 24px; /* Proportional text sizes */
  }
  .contact-title {
    font-size: 38px;
    line-height: 46px;
  }
  .contact-leaf {
    display: none; /* Hide decorative leaf on small mobile to avoid layout breaking */
  }
  .scroll-down-btn {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 40px auto 0;
    animation: blink-animation 1.5s infinite ease-in-out;
  }
  .contact-brand-icon {
    width: 120px;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
  }
  .footer-corner-icon {
    right: 20px;
    bottom: 65px;
    width: 35px;
    height: auto;
  }
}

/* Extra Small Phones */
@media (max-width: 480px) {
  .navbar {
    --logo-offset: 2px;
  }
  .navbar.scrolled {
    --logo-offset: 1px;
  }
  .brand-logo {
    width: 100px; /* Even smaller logo for tiny screens */
  }
  .navbar.scrolled .brand-logo {
    width: 50px; /* Shrunk by 50% when scrolled */
  }
  .hero-title {
    font-size: 32px;
    line-height: 40px;
    text-align: center;
  }
  .services-title {
    font-size: 24px;
  }
  .portfolio-title {
    font-size: 20px;
  }
  .contact-title {
    font-size: 32px;
    line-height: 40px;
  }
}

/* ==========================================================================
   6. Sanity CMS Dynamic Portfolio Customizations
   ========================================================================== */

/* Animação para Skeleton Loaders do Portfólio */
.portfolio-skeleton {
  background-color: var(--color-dark-green);
  position: relative;
  overflow: hidden;
}

.portfolio-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(230, 255, 153, 0.08) 20%,
    rgba(230, 255, 153, 0.15) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Garante que os cards como tags <a> não tenham sublinhados ou cores padrão de links */
a.portfolio-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ==========================================================================
   7. About Page Custom Styles
   ========================================================================== */
.about-hero {
  background-color: var(--color-creme);
  padding: 100px 80px 60px;
  position: relative;
}

.about-hero-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-hero-title {
  font-family: var(--font-reddit);
  font-size: 72px;
  font-weight: 500;
  line-height: 72px;
  color: var(--color-red);
  margin: 0;
}

/* Decorative Hero Leaf positioning (at the boundary) */
.about-hero-leaf {
  position: absolute;
  bottom: -140px; /* Centered on the boundary line between hero and content section */
  right: calc(50% - 640px + 80px);
  width: 280px;
  height: 280px;
  z-index: 10;
  pointer-events: none;
}

.about-hero-leaf svg {
  width: 100%;
  height: 100%;
  display: block;
}

.about-content-section {
  background-color: var(--color-dark-green);
  padding: 100px 80px;
  color: var(--color-white);
}

.about-content-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-text-block {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-subtitle {
  font-family: var(--font-ultra);
  font-size: 32px;
  color: var(--color-lime);
  font-weight: 400;
  margin-bottom: 10px;
}

.about-text-block p {
  font-family: var(--font-reddit);
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.value-card {
  background-color: #004d40;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  font-family: var(--font-ultra);
  font-size: 22px;
  color: var(--color-green);
  margin-bottom: 15px;
  font-weight: 400;
}

.value-card p {
  font-family: var(--font-reddit);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-gray);
}

/* Responsive styles for about page */
@media (max-width: 1200px) {
  .about-hero {
    padding: 80px 40px 40px;
  }
  .about-hero-title {
    font-size: 56px;
    line-height: 56px;
  }
  .about-hero-leaf {
    right: 40px;
    width: 200px;
    height: 200px;
    bottom: -100px;
  }
}

@media (max-width: 992px) {
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 40px 20px 20px;
  }
  .about-hero-title {
    font-size: 44px;
    line-height: 44px;
    text-align: left;
  }
  .about-content-section {
    padding: 60px 20px;
  }
  .about-subtitle {
    font-size: 26px;
  }
  .about-hero-leaf {
    right: 20px;
    width: 140px;
    height: 140px;
    bottom: -50px; /* Prevent overlapping subtitle on mobile */
  }
}

@media (max-width: 480px) {
  .about-hero-title {
    font-size: 36px;
    line-height: 36px;
  }
}
