@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ===== Base Styles ===== */
:root {
    --primary-color: #A2B082;      /* Sage green - main app color */
    --primary-dark: #879069;       /* Darker sage green */
    --primary-light: #C5D1AC;      /* Lighter sage green */
    --secondary-color: #000000;    /* Black for buttons */
    --secondary-dark: #222222;     /* Deeper gray */
    --secondary-light: #8D8D8D;    /* Light gray */
    --dark-color: #2c3e50;         /* Nearly black text */
    --gray-dark: #555555;          /* Dark gray text */
    --gray-light: #F5F5F5;         /* Off-white */
    --white: #fff;
    --body-font: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --heading-font: 'Poppins', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    --header-height: 80px;
    --header-height-scrolled: 60px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
    scroll-padding-top: 100px; /* Should be equal or larger than header height */
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Container and Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0; /* Reduced padding for mobile */
    position: relative;
}

/* Add scroll margin to account for fixed header (sections and in-page anchors) */
section[id],
.section-anchor,
.top-anchor {
    scroll-margin-top: var(--header-height);
}

/* Adjust scroll margin for smaller screens with potential smaller header */
@media screen and (max-width: 768px) {
    section[id] {
        scroll-margin-top: var(--header-height-scrolled);
    }
}

/* Additional offset for Safari */
@supports (-webkit-touch-callout: none) {
    section[id] {
        scroll-margin-top: calc(var(--header-height) + 10px);
    }
}

.section-title {
    font-family: var(--heading-font);
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 1rem auto 3rem;
    border-radius: 2px;
}

/* Special top anchor positioning */
.top-anchor {
    position: absolute;
    top: 0;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
}

/* Section anchor: at section start so scroll lands on content, not hero (scroll-margin-top keeps it below header) */
.section-anchor {
    display: block;
    position: relative;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, background-color 0.3s ease;
    transform: translateY(0) !important;
    height: 80px !important; /* Consistent header height across all devices */
    padding: 0 !important; /* Remove variable padding */
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between; /* Restore horizontal spacing between logo and nav */
    align-items: center; /* Vertically center all content */
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    /* Remove height or padding changes on scroll for consistency */
    height: var(--header-height) !important;
    padding: 0 !important;
}

.header.hidden {
    transform: translateY(-100%);
}

.logo {
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center logo and text */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px; /* Slightly smaller than header for padding */
    margin: 0;    /* Remove any vertical margin */
    display: block;
    align-self: center;
}

.logo a:hover img {
    transform: scale(1.05);
}

.logo span {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Logo size adjustments for mobile devices */
@media screen and (max-width: 768px) {
    .header {
        height: 80px !important;
        padding: 0 !important;
    }
    .header-content {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .logo {
        height: 100%;
        display: flex;
        align-items: center;
    }
    .logo img {
        height: 60px;
        margin-top: 12px; /* Nudge logo up for perfect centering */
        margin-bottom: auto;
        display: block;
        align-self: center;
    }
    .hamburger {
    }
}

@media screen and (max-width: 576px) {
    .logo img {
        height: 45px; /* Further reduced for smallest screens */
    }
    
    .logo span {
        font-size: 2.2rem; /* Further reduced for smallest screens */
    }
}

/* ===== Navigation ===== */
.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.nav-menu li {
    margin-left: 3rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem; /* Add horizontal padding for a better touch target */
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-dark);
    transition: width var(--transition-speed) ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-dark);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    background-color: var(--primary-dark);
}

/* Hide hamburger by default (desktop) */
.hamburger {
    display: none;
}

/* --- Mobile Navigation: Hamburger and Nav Menu --- */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border: none;
    background: transparent;
    position: relative;
    top: 0;
    right: 0;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
  }
}

/* ===== Buttons ===== */
.btn-primary, 
.btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 800px; /* Reduced from 850px */
    display: flex;
    align-items: center;
    padding-top: 60px; /* Reduced from 80px */
    padding-bottom: 20px;
    overflow: hidden; /* Clip parallax-bg so green doesn't show above About/Features when scrolling */
}

/* Fix for Safari mobile 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
        /* Force minimum height for very small devices */
        min-height: 600px;
    }
}

@media screen and (max-width: 768px) {
    .hero-section {
        padding-top: 60px;
        padding-bottom: 30px; /* Added bottom padding */
        min-height: 550px;
    }
    
    .hero-buttons {
        margin-bottom: 10px; /* Reduced space after buttons */
    }
    
    .hero-image {
        margin-top: 10px; /* Reduced space before image */
        padding-bottom: 20px; /* Added padding below the hero image */
    }
    
    .hero-image img {
        margin-top: 0; /* Remove additional top margin on image */
    }
    
    .hero-text {
        padding-top: 60px; /* Increased padding for medium-sized mobile devices from 30px to 60px */
    }
}

@media screen and (max-width: 576px) {
    .hero-section {
        min-height: 950px;
        padding-top: 10px;
        padding-bottom: 120px;
        overflow: hidden;
    }
    
    .hero-content {
        padding-top: calc(var(--header-height) + 0.5rem); /* Further reduced from 1rem to 0.5rem */
        position: relative;
        z-index: 10;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 40px; /* Further reduced from 50px to 40px */
        margin-top: 5px; /* Further reduced from 10px to 5px */
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 15;
        color: var(--white);
        display: block;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .hero-text p {
        font-size: 1.6rem;
        margin-top: 10px;
        position: relative;
        z-index: 15;
    }
    
    .hero-image {
        margin-top: 20px;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-width: 200px;
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        margin-bottom: 5px;
        position: relative;
        z-index: 15;
    }
}

.hero-section .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* was 120% – prevents green strip above About/Features when scrolling */
    background: linear-gradient(rgba(162, 176, 130, 0.85), rgba(135, 144, 105, 0.9));
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0);
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    color: var(--white);
    padding-top: 10px; /* Reduced from 20px */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    /* Ensure content is always visible */
    z-index: 5;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .hero-questions {
    display: block;
}

.hero-content h1 .hero-cta-line {
    display: block;
    white-space: nowrap;
    font-size: 0.85em; /* slightly smaller so "Start Feeling Better Now" fits one line on small screens */
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15px; /* Reduced from 30px */
}

.hero-image img {
    max-width: 250px;
    height: auto;
    border-radius: 15px;
}

/* ===== Media Queries for Hero Section ===== */
@media screen and (max-width: 991px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 20px; /* Adjusted padding for tablet */
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .hero-image {
        margin-top: 10px; /* Reduced space before image */
        padding-top: 15px; /* Added padding on tablet */
    }
    
    .hero-image img {
        max-width: 200px;
    }
}

@media screen and (max-width: 768px) {
    .hero-buttons {
        margin-bottom: 10px; /* Reduced space after buttons */
    }
    
    .hero-image {
        margin-top: 10px; /* Reduced space before image */
    }
    
    .hero-image img {
        margin-top: 0; /* Remove additional top margin on image */
    }
}

@media screen and (max-width: 576px) {
    .hero-section {
        min-height: 950px;
        padding-top: 10px;
        padding-bottom: 120px;
        overflow: hidden;
    }
    
    .hero-content {
        padding-top: calc(var(--header-height) + 0.5rem); /* Further reduced from 1rem to 0.5rem */
        position: relative;
        z-index: 10;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 40px; /* Further reduced from 50px to 40px */
        margin-top: 5px; /* Further reduced from 10px to 5px */
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 15;
        color: var(--white);
        display: block;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .hero-text p {
        font-size: 1.6rem;
        margin-top: 10px;
        position: relative;
        z-index: 15;
    }
    
    .hero-image {
        margin-top: 20px;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-width: 200px;
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        margin-bottom: 5px;
        position: relative;
        z-index: 15;
    }
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    line-height: 1.7;
}

/* About Facts List Styling */
.about-facts {
    margin: 3rem 0;
    padding: 0 0 0 2rem;
    list-style-position: outside;
}

.about-facts li {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 0.5rem;
}

.about-facts strong {
    color: var(--primary-dark);
}

.about-facts em {
    display: block;
    font-size: 1.4rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
    font-style: italic;
}

.about-text h3 {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: var(--dark-color);
}

@media screen and (max-width: 768px) {
    .about-facts {
        padding-left: 1.5rem;
    }
    
    .about-facts li {
        margin-bottom: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 2.2rem;
        margin: 2.5rem 0 1.2rem;
    }
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Features Section ===== */
.features-section {
    background-color: var(--primary-color);
    padding: 8rem 0;
    color: var(--white);
    position: relative;
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-block {
    display: flex;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
    font-size: 3.5rem;
    color: var(--primary-dark);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.feature-content p {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.features-cta {
    margin-top: 5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-summary {
    flex: 2;
}

.features-summary h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.features-summary ul {
    list-style-type: none;
}

.features-summary li {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.6rem;
    position: relative;
    padding-left: 2.5rem;
}

.features-summary li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.app-buttons {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.app-store-btn,
.play-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem 2rem;
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.app-store-btn:hover,
.play-store-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-store-btn i,
.play-store-btn i {
    font-size: 2.4rem;
    margin-right: 1rem;
}

/* ===== Benefits Section ===== */
.benefits-section {
    background-color: var(--gray-light);
    padding: 8rem 0;
    position: relative;
}

.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.benefit-item {
    display: flex;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all var(--transition-speed) ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 2rem;
}

.benefit-icon i {
    font-size: 2.8rem;
    color: var(--primary-dark);
}

.benefit-content {
    flex: 1;
}

.benefit-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.benefit-content p {
    font-size: 1.6rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.benefits-cta {
    margin-top: 5rem;
    text-align: center;
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.benefits-cta h3 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.benefits-cta p {
    font-size: 1.8rem;
    color: var(--gray-dark);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.benefits-cta strong {
    color: var(--primary-dark);
}

.benefits-cta .app-buttons {
    margin-top: 3rem;
}

@media screen and (max-width: 991px) {
    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem;
    }
    
    .benefit-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
    
    .benefits-cta {
        padding: 3rem 2rem;
    }
    
    .benefits-cta h3 {
        font-size: 2.2rem;
    }
    
    .benefits-cta p {
        font-size: 1.6rem;
    }
}

/* ===== App Section ===== */
.app-section {
    color: var(--white);
}

.app-section .parallax-bg {
    background: linear-gradient(rgba(169, 190, 140, 0.8), rgba(135, 157, 109, 0.9)), url('../images/app-bg.jpg');
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
}

.app-section .section-title {
    color: var(--white);
}

.app-section .section-title::after {
    background-color: var(--white);
}

.app-content {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-top: 4rem;
}

.app-text {
    flex: 1;
}

.app-text p {
    font-size: 1.7rem;
    margin-bottom: 2rem;
}

.app-features ul {
    list-style-position: inside;
    margin-bottom: 3rem;
}

.app-features li {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.app-screenshots {
    flex: 1;
    display: flex;
    gap: 2rem;
}

.app-screenshots img {
    max-width: 230px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.app-buttons {
    display: flex;
    gap: 2rem;
}

.app-store-btn,
.play-store-btn {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.app-store-btn:hover,
.play-store-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-5px);
}

.app-store-btn i,
.play-store-btn i {
    font-size: 2.4rem;
    margin-right: 1rem;
}

/* ===== Target Users Section ===== */
.target-users-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.target-users-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(162, 176, 130, 0.07) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(168, 198, 219, 0.07) 0%, transparent 70%);
    z-index: 0;
    opacity: 0.8;
}

.target-users-section .container {
    position: relative;
    z-index: 1;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.user-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--gray-light);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.user-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation timing */
.user-card:nth-child(1) {
    transition-delay: 0.1s;
}

.user-card:nth-child(2) {
    transition-delay: 0.2s;
}

.user-card:nth-child(3) {
    transition-delay: 0.3s;
}

.user-card:nth-child(4) {
    transition-delay: 0.4s;
}

.user-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.user-card:hover::before {
    opacity: 0.06;
}

.user-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.user-card:hover .user-icon {
    transform: scale(1.1) translateY(-5px);
    background-color: var(--primary-light);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.user-icon i {
    font-size: 3.2rem;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.user-card:hover .user-icon i {
    color: var(--secondary-dark);
    transform: scale(1.1);
}

.user-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.user-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.user-card:hover h3::after {
    width: 70%;
}

.user-card p {
    font-size: 1.6rem;
    color: var(--gray-dark);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.user-card:hover p {
    color: var(--dark-color);
}

/* Add a subtle pulse animation to draw attention */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(169, 190, 140, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(169, 190, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(169, 190, 140, 0);
    }
}

.user-card.fade-in .user-icon {
    animation: pulse 2s infinite;
    animation-delay: 1s;
}

.user-card:hover .user-icon {
    animation: none;
}

/* Media queries for responsive adjustments */
@media screen and (max-width: 768px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .user-card {
        padding: 2.5rem;
    }
    
    .user-icon {
        width: 70px;
        height: 70px;
    }
}

@media screen and (max-width: 576px) {
    .users-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .user-card {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Footer ===== */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 40px;
    margin-right: 1rem;
}

.footer-logo span {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 1rem;
}

.link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.link-group a:hover {
    color: var(--white);
}

.footer-social h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Parallax Effect ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

/* ===== Media Queries ===== */
@media screen and (max-width: 991px) {
    html {
        font-size: 58%;
    }
    
    .about-content, 
    .benefits-content,
    .app-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    .benefits-image, 
    .app-screenshots {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999 !important;
        border: none !important;
        background: transparent !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 80px 20px 40px;
        overflow-y: auto;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Improved transition */
        display: flex;
        flex-direction: column;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }
    
    .nav-menu li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-in-out;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s; /* Staggered animation */
    }
    
    .nav-menu.active li:nth-child(2) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.45s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.5s; }
    
    .nav-menu a {
        font-size: 18px;
        padding: 10px 5px;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    body.menu-open::before {
        /* Remove overlay and filter for mobile menu */
        background: none !important;
        content: none !important;
        position: static !important;
        width: 0 !important;
        height: 0 !important;
        z-index: auto !important;
        opacity: 0 !important;
        transition: none !important;
        backdrop-filter: none !important;
    }
    
    .hero-content h1 {
        font-size: 4.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .app-screenshots {
        justify-content: center;
    }
    
    .app-screenshots img:last-child {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 52%;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .hero-content h1 .hero-cta-line {
        font-size: 0.75em; /* keep "Start Feeling Better Now" on one line on small screens */
    }
    
    .hero-content p {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
}

/* Features CTA section */
.features-cta {
    margin-top: 5rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.features-summary {
    flex: 2;
}

.features-summary h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.features-summary ul {
    list-style-type: none;
}

.features-summary li {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.6rem;
    position: relative;
    padding-left: 2.5rem;
}

.features-summary li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
}

.app-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-store-btn,
.play-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem 2rem;
    text-decoration: none;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.app-store-btn:hover,
.play-store-btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-store-btn i,
.play-store-btn i {
    font-size: 2.4rem;
    margin-right: 1rem;
}

/* Update for responsive layout */
@media screen and (max-width: 768px) {
    .features-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .features-summary li {
        text-align: left;
    }
    
    .app-buttons {
        width: 100%;
        margin-top: 2rem;
    }
}

/* Media Queries for Features Section */
@media screen and (max-width: 991px) {
    .feature-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2.5rem;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .feature-list li {
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .features-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .features-summary li {
        text-align: left;
    }
    
    .app-buttons {
        width: 100%;
        margin-top: 2rem;
    }
}

/* Add this to nav element to make it take full height */
nav {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Enhance touch targets for mobile */
button, 
a.btn-primary, 
a.btn-secondary,
.nav-menu a,
.hamburger {
    min-height: 44px; /* Minimum height for touch targets */
    min-width: 44px;  /* Minimum width for touch targets */
}

/* ===== Mobile Navigation Improvements ===== */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 99999 !important;
        position: fixed !important;
        top: 20px;
        right: 20px;
        background: #fff;
    }
    
    .hamburger .bar {
        width: 25px;
        height: 3px;
        background: #000;
        margin: 5px 0;
        border-radius: 2px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 80px 20px 40px;
        overflow-y: auto;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0); /* Improved transition */
        display: flex;
        flex-direction: column;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }
    
    .nav-menu li {
        margin: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-in-out;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s; /* Staggered animation */
    }
    
    .nav-menu.active li:nth-child(2) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.45s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.5s; }
    
    .nav-menu a {
        font-size: 18px;
        padding: 10px 5px;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    body.menu-open::before {
        /* Remove overlay and filter for mobile menu */
        background: none !important;
        content: none !important;
        position: static !important;
        width: 0 !important;
        height: 0 !important;
        z-index: auto !important;
        opacity: 0 !important;
        transition: none !important;
        backdrop-filter: none !important;
    }
}

/* ===== Hero Section Mobile Improvements ===== */
@media screen and (max-width: 576px) {
    .hero-section {
        min-height: 950px;
        padding-top: 10px;
        padding-bottom: 120px;
        overflow: hidden;
    }
    
    .hero-content {
        padding-top: calc(var(--header-height) + 0.5rem); /* Further reduced from 1rem to 0.5rem */
        position: relative;
        z-index: 10;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 40px; /* Further reduced from 50px to 40px */
        margin-top: 5px; /* Further reduced from 10px to 5px */
    }
    
    .hero-text h1 {
        font-size: 3.2rem;
        margin-bottom: 1.5rem;
        position: relative;
        z-index: 15;
        color: var(--white);
        display: block;
        opacity: 1;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .hero-text p {
        font-size: 1.6rem;
        margin-top: 10px;
        position: relative;
        z-index: 15;
    }
    
    .hero-image {
        margin-top: 20px;
        padding-bottom: 30px;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        max-width: 200px;
        margin-top: 0;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        margin-bottom: 5px;
        position: relative;
        z-index: 15;
    }
}

/* ===== Buttons Mobile Improvements ===== */
@media screen and (max-width: 576px) {
    .btn-primary, 
    .btn-secondary {
        display: block; /* Full width on small screens */
        width: 100%;
        padding: 1.5rem 2rem; /* Larger touch target */
        font-size: 1.7rem; /* Slightly larger font */
    }
    
    .hero-buttons {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .app-buttons {
        width: 100%;
    }
    
    .app-store-btn,
    .play-store-btn {
        padding: 1.5rem;
        justify-content: center;
    }
}

/* ===== Features Section Mobile Improvements ===== */
@media screen and (max-width: 768px) {
    .feature-block {
        padding: 2.5rem 2rem; /* Slightly smaller padding on mobile */
    }
    
    .features-cta {
        padding: 2rem;
        flex-direction: column;
    }
    
    .features-summary ul {
        padding-left: 1rem; /* Less left padding on mobile */
    }
}

/* ===== Performance Optimizations ===== */
/* Add will-change to elements that animate for better performance */
.parallax-bg,
.fade-in,
.user-card,
.hero-image img {
    will-change: transform, opacity;
}

/* Add overscroll-behavior to prevent overscroll on mobile */
html, body {
    overscroll-behavior: none;
}

/* Fix for 100vh issue on mobile browsers */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
    }
}

/* ===== Mobile Touch Optimizations ===== */
@media (hover: none) {
    /* Override hover states on touch devices where they cause issues */
    .feature-block:hover,
    .user-card:hover,
    .btn-primary:hover,
    .btn-secondary:hover {
        transform: none;
    }
    
    /* Make all touch targets large enough */
    .footer-links a,
    .social-icons a {
        padding: 1rem;
        display: inline-block;
    }
    
    /* Improve tap targets in the footer */
    .footer-links li {
        margin-bottom: 1.5rem;
    }
    
    .social-icons a {
        width: 48px;
        height: 48px;
    }
}

/* ===== FAQ Section ===== */
.faq-section {
    background-color: var(--gray-light);
    padding: var(--section-padding);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section .section-subtitle {
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-weight: 600;
    background-color: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.faq-question h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.faq-question i {
    color: var(--primary-color);
}

.faq-answer {
    padding: 2rem;
    background-color: var(--white);
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.faq-answer ul li {
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.faq-cta {
    margin-top: 3rem;
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-cta h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Responsive adjustments for FAQ */
@media screen and (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.6rem;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
    }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background-color: var(--white);
    padding: var(--section-padding);
    position: relative;
}

.testimonials-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.png');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.05;
    z-index: 0;
}

.testimonials-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    transform: translateY(0);
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    padding: 30px;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.8rem;
    margin-right: 2px;
}

.testimonial-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.testimonial-author h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 1.4rem;
    color: var(--secondary-light);
}

@media screen and (max-width: 991px) {
    .testimonial-item {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .testimonial-content {
        padding: 25px;
    }
}

/* Testimonials CTA section */
.testimonials-cta {
    margin-top: 3rem;
    text-align: center;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonials-cta h3 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .testimonials-cta {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-buttons {
        margin-top: 0.5rem;
    }
    
    .app-buttons {
        margin-top: 0.5rem;
    }
}

/* === Desktop Header Vertical Centering === */
@media screen and (min-width: 769px) {
  .header {
    height: 80px !important;
    padding: 0 !important;
  }
  .header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center all children */
  }
  .logo, .nav-menu {
    height: 100%; /* Fill header height */
    display: flex;
    align-items: center; /* Vertically center their content */
  }
  .logo img {
    height: 60px;
    margin: 0;
    display: block;
    align-self: center;
  }
  .nav-menu a {
    line-height: 80px; /* Match header height for perfect centering */
    padding-top: 0;
    padding-bottom: 0;
    height: 80px;
    display: flex;
    align-items: center;
  }
}

/* On desktop, set top padding for hero section to 0px for flush alignment with header */
@media screen and (min-width: 769px) {
  .hero-section {
    padding-top: 0px;
  }
} 