:root {
    --button-padding-y: 16px;
    --button-padding-x: 32px;
    --button-font-size: 1.125rem;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure proper rendering on mobile devices */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-bottom: 150px; /* Creates offset when scrolling to anchor links */
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    image-rendering: -webkit-optimize-contrast; /* For webkit browsers */
    image-rendering: crisp-edges; /* For other browsers */
    overflow-x: hidden;
}

p {
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Typography */
/* Base heading styles */
h1, h2, h3, h4, h5 {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    color: #1D1D1C;
}

/* Individual heading styles */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--h1-font-size);
    font-weight: 300;
    line-height: 1.2;
}

h2, .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--h2-font-size);
    font-weight: 700;
    line-height: 1.2;
    padding-top: 0.7rem; /* 10px */
    margin-bottom: 0.625rem; /* 10px */
}

h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: var(--h3-font-size);
    color: #FF5555;
    line-height: 1.4;
}

h4 {
    font-family: 'Cormorant Upright', serif;
    font-size: var(--h4-font-size);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: 0.02em;
}

h5 {
    font-family: 'Exo 2', sans-serif;
    font-size: var(--h5-font-size);
    line-height: 0.8;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 0;
}

/* Layout */
.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow-x: hidden;
}

/* Navigation */
header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(249, 225, 217, 0.95);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.navbar > *:not(.logo) {
    margin-left: auto;
}

.navbar .cta-button {
    margin-left: 1.5rem;
    margin-right: 1rem;
    order: 2;
    white-space: nowrap;
    min-width: max-content;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Further increased from 1rem to add more space between logo and text */
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 33.6px; /* Increased by 40% from 24px */
    width: auto;
}

.logo span {
    font-family: 'Abhaya Libre', serif;
    font-size: min(2.875rem, max(1.5rem, 3.5vw)); /* 46px, 24px */
    font-weight: 800;
    color: #000;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    width: 100%;
}

.nav-menu a:not(:last-child) {
    margin-right: 1rem;
}

.nav-menu a {
    font-family: 'Abhaya Libre', serif;
    font-size: min(2.875rem, max(1.5rem, 3.5vw)); /* 46px, 24px */
    font-weight: 800;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.cta-button {
    font-family: 'Exo 2', sans-serif;
    font-size: var(--font-size-md);
    font-weight: 500;
    color: white;
    background: #FF3B30;
    padding: 0.75rem 1.5rem; /* 12px 24px */
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #E6352B;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

.nav-links .cta-button {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    width: 80px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Base CTA Button styles */
.cta-button {
    font-family: 'Exo 2', sans-serif;
    font-size: var(--button-font-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: var(--button-padding-y) var(--button-padding-x);
}

/* Primary CTA Button */
.cta-button.primary {
    background: linear-gradient(135deg, #14093C 0%, #2A1B63 100%);
    color: white;
    font-size: 1.125rem; /* Already using rem */
    font-weight: 500;
    padding: 16px 32px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(20, 9, 60, 0.15);
    text-decoration: none; /* Remove underline from links */
    white-space: nowrap;
    gap: 8px;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 9, 60, 0.25);
    background: linear-gradient(135deg, #2A1B63 0%, #14093C 100%);
}

/* Ensure proper rendering on mobile devices */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 30px; /* Creates offset when scrolling to anchor links */
}

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    image-rendering: -webkit-optimize-contrast; /* For webkit browsers */
    image-rendering: crisp-edges; /* For other browsers */
    overflow-x: hidden;
}

p {
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* Typography */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 65px;
    font-weight: 300;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    color: #1D1D1C;
}

/* Duplicate h2 style removed */

h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    color: #FF5555;
    margin: 0;
}

h4 {
    font-family: 'Cormorant Upright', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 0.8;
    margin: 0;
    letter-spacing: 0.02em;
}

h5 {
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 400;
   line-height: 0.8;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    pointer-events: none;
    z-index: 0;
}

/* Layout */
.container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    overflow-x: hidden;
}

/* Header */
.main-header {
    padding: var(--spacing-md) var(--container-padding);
    background: transparent;
    position: fixed;
    width: 100%;
    z-index: 9999;
    top: 0;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    position: relative;
    z-index: 10000;
    overflow-x: hidden;
}

.nav-links {
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    color: #000000;
    text-decoration: none;
    font-size: 46px;
    opacity: 1;
    transition: opacity 0.3s ease;
    line-height: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nav-links .cta-button {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.875rem;
    width: auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 0 16px;
    white-space: nowrap;
}

.nav-links .cta-button:hover {
    opacity: 0.9;
}

.nav-links a:hover {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.logo img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-family: 'Abhaya Libre', serif;
    font-weight: 800;
    font-size: 46px;
    color: #000000;
    line-height: 80px;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) var(--container-padding);
    background: url('../assets/images/hero-bg-waves.png') no-repeat top center;
    background-size: cover;
}

.hero-features-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: url('../assets/images/waves.png') no-repeat center;
    background-size: cover;
}

.hero .container {
    width: min(var(--container-width), 90%);
    margin: 0 auto;
    text-align: left;
    overflow-x: hidden;
    padding: 0 var(--container-padding);
}

.hero h1 {
    margin-bottom: var(--spacing-sm);
    max-width: 800px;
    text-align: left;
    color: #1D1D1C;
}

.hero p {
    color: #1D1D1C;
    max-width: 800px;
}

.hero .subtitle {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    max-width: 800px;
    line-height: 1.2;
    text-align: left;
}

.hero .subtitle {
    margin-bottom: var(--spacing-lg);
}

/* Features Grid */
.features-grid {
    background: url('../assets/images/promo-main-features-bg-waves.png') no-repeat center top;
    background-size: cover;
    background-attachment: scroll;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -1px; /* Remove any potential gap */
    padding: var(--spacing-xl) var(--container-padding);
}

.features-grid > * {
    max-width: var(--container-width);
    margin: 0 auto;
}

.features-grid {
    width: 100%;
    padding: 0 var(--container-padding);
}

.features-container {
    display: flex;
    gap: 30pt;
    max-width: var(--container-width);
    margin: 0 auto;
    flex-wrap: wrap;
}

.features-column {
    display: flex;
    flex-direction: column;
    gap: 30pt;
    flex: 1;
    min-width: 300px; /* Smaller minimum to allow more flexibility */
}



@media screen and (max-width: 575px) {
    .features-container {
        flex-direction: column;
    }
    
    .features-column {
        min-width: 100%;
    }
    
    .section-one-planetary,
    .section-one-get-started {
        aspect-ratio: 470/172;
    }
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    .features-container {
        padding: 0 20pt;
    }
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.feature-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 2rem;
}

.card-content h3 {
    font-family: 'Cormorant Caption', serif;
    font-size: clamp(35px, 4vw, 60px);
    color: #14093C;
    line-height: 1.2;
    margin: 0;
}

/* Transit - bottom left */
.section-one-transit .card-content {
    align-items: flex-end;
    justify-content: flex-start;
}

/* Aspects - bottom right */
.section-one-aspects .card-content {
    align-items: flex-end;
    justify-content: flex-end;
}

/* Natal Reading - bottom center */
.section-one-natal .card-content {
    align-items: flex-end;
    justify-content: flex-start;
}

/* Affirmations - upper left */
.section-one-affirmations .card-content {
    align-items: flex-start;
    justify-content: flex-start;
}

/* Planetary Energy - upper left */
.section-one-planetary .card-content {
    align-items: flex-start;
    justify-content: flex-start;
}

/* Get Started - center right */
.section-one-get-started .card-content {
    align-items: center;
    justify-content: flex-end;
}

/* Section Four - Where Do You Seek Growth? */
/* Find Love - bottom left */
.section-four-find-love .card-content {
    align-items: flex-end;
    justify-content: flex-start;
}

/* Grow Relationships - bottom left */
.section-four-grow-relationships .card-content {
    align-items: flex-end;
    justify-content: flex-start;
}

/* Thrive at Work & Finance - bottom right */
.section-four-thrive-work-finance .card-content {
    align-items: flex-end;
    justify-content: flex-end;
}

.section-four-thrive-work-finance .card-content h3 {
    text-align: right;
}

/* Self Growth - bottom right */
.section-four-self-growth .card-content {
    align-items: flex-end;
    justify-content: flex-end;
}

/* Get Started - center right */
.section-four-get-started .card-content {
    align-items: center;
    justify-content: flex-end;
}

.section-four-get-started .card-content h3,
.section-one-get-started .card-content h3 {
    font-size: clamp(18px, 2vw, 28px);
}

.feature-card .card-content h3 {
    font-family: 'Cormorant Upright', serif;
    font-size: clamp(35px, 4.5vw, 56px);
    color: #14093C;
    line-height: 1.2;
    margin: 0;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.02em;
}

/* Section One - Original Cards */
.section-one-transit {
    background: url('../assets/images/transit-visuals-card.svg') no-repeat center;
    background-size: cover;
    aspect-ratio: 470/320;
}

.section-one-aspects {
    background: url('../assets/images/aspects-visuals-card.svg') no-repeat center;
    background-size: cover;
    aspect-ratio: 470/380;
}

.section-one-natal {
    background: url('../assets/images/natal-chart-card.svg') no-repeat center bottom;
    background-size: cover;
    aspect-ratio: 470/320;
}

.section-one-affirmations {
    background: url('../assets/images/affirmations-card.svg') no-repeat center;
    background-size: cover;
    aspect-ratio: 470/260;
}

.section-one-planetary {
    background: url('../assets/images/planet-energy-card.png') no-repeat center;
    background-size: cover;
    aspect-ratio: 1151/364;
    width: 100%;
}

.section-one-get-started {
    background: url('../assets/images/get-started-card.svg') no-repeat center;
    background-size: cover;
    aspect-ratio: 1151/172;
    width: 100%;
}

/* Section on Growth Path */

.section-four-find-love {
    background: url('../assets/images/find-love-card.png') no-repeat center;
    background-size: cover;
    aspect-ratio: 470/420;
}

.section-four-thrive-work-finance {
    background: url('../assets/images/thrive-work-card.png') no-repeat center bottom;
    background-size: cover;
    aspect-ratio: 470/260;
}

.section-four-grow-relationships {
    background: url('../assets/images/grow-relationship-card.png') no-repeat center bottom;
    background-size: cover;
    aspect-ratio: 470/220;
}

.section-four-self-growth {
    background: url('../assets/images/self-growth-card.png') no-repeat center bottom;
    background-size: cover;
    aspect-ratio: 470/380;
}

.section-four-get-started {
    background: url('../assets/images/get-started-card5.png') no-repeat center;
    background-size: cover;
    aspect-ratio: 1151/172;
    width: 100%;
}

/* Affirmation Tiles Section */
.affirmation-tiles {
    position: relative;
    padding-top: var(--spacing-xl);
}

.affirmation-tiles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/affirmation-tiles-bg.png') no-repeat center top;
    background-size: 100% 100%;
    z-index: -1;
}

.affirmation-tiles .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.tiles-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.tiles-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Selling Points Section */
.selling-points {
    position: relative;
    padding: var(--spacing-xl) 0;
    background: url('../assets/images/selling-points-bg.png') no-repeat center top;
    background-size: cover;
}

.selling-points .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.selling-points .section-title {
    color: #000000;
}

.selling-point-row {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.selling-point-row.reverse {
    flex-direction: row-reverse;
}

.selling-point-image {
    width: 40%;
}

.selling-point-content {
    width: 60%;
}

.selling-point-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.selling-point-image img {
    width: 100%;
    height: auto;
    display: block;
}

.selling-point-content {
    flex: 0 0 60%;
    max-width: 60%;
    padding: var(--spacing-lg);
}

@media (max-width: 768px) {
    .selling-points {
        overflow: hidden;
    }

    .selling-points .container {
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        overflow: visible;
    }

    .selling-point-row,
    .selling-point-row.reverse {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
        width: 100vw;
        position: relative;
        left: calc(-1 * ((100vw - 100%) / 2));
    }

    .selling-point-image,
    .selling-point-content {
        width: 100%;
    }

    .selling-point-content {
        order: 1;
        padding: 0 var(--container-padding);
        margin: 0 auto;
        width: min(var(--container-width), 90%);
    }

    .selling-point-image {
        order: 2;
    }

    .selling-point-image img {
        width: 100%;
        display: block;
    }
}

@media (max-width: 768px) {
    .selling-point-row,
    .selling-point-row.reverse {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .selling-point-image,
    .selling-point-content {
        flex: none;
        width: 100%;
    }

    .selling-point-content {
        padding: 0;
        order: 1;
    }

    .selling-point-image {
        order: 2;
    }

    .feature-title {
        white-space: normal;
        font-size: 1.75rem; /* Slightly smaller font size on mobile using rem units */
        hyphens: none; /* Disable hyphenation */
        word-break: keep-all; /* Prevent words from breaking */
        overflow-wrap: normal; /* Don't wrap in the middle of words */
        max-width: 100%; /* Ensure content doesn't overflow container */
    }
}

.feature-category {
    font-size: 1rem;
    text-transform: uppercase;
    color: #FF4D4D;
    margin-bottom: var(--spacing-sm);
}

.feature-title {
    font-size: 2rem; /* Using rem as per user preference */
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    /* Removed white-space: nowrap to allow wrapping on all screen sizes */
}

.feature-title.with-circle-star {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    word-break: keep-all; /* Prevent words from breaking */
    overflow-wrap: normal; /* Don't wrap in the middle of words */
}

.feature-title.with-circle-star::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    background-image: url('../assets/images/bullet_star_black_circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

h5.with-star {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

h5.with-star::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('../assets/images/bullet_star.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.feature-item h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.feature-item p {
    color: #000000;
    opacity: 0.8;
    line-height: 1.6;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--spacing-md); /* Changed from spacing-xl (6rem) to spacing-md (2rem) */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tiles-image {
    width: 100%;
    margin-top: var(--spacing-xl);
    aspect-ratio: 5760/3652;
}

.tiles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Common button styles */
.cta-button,
.nav-links .cta-button {
    background: #000000;
    color: var(--color-text);
    border: none;
    border-radius: 4px;
    width: 180px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover,
.nav-links .cta-button:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    transform: translateY(-2px);
}

/* Remove any overriding styles */
.nav-links .cta-button,
.cta-button.primary {
    background: #000000;
}

.nav-links .cta-button:hover,
.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-xl) 0;
}

.category-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    aspect-ratio: 16/9;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

/* Responsive Design */
/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle.active span {
        background-color: white;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu a {
        font-size: 32px;
    }

    .logo span {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .nav-menu a {
        font-size: 28px;
    }

    .logo span {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .planetary-energy {
        grid-column: span 2;
    }

    /* Typography controlled via CSS variables */
    .section-title {
        font-size: var(--section-title-font-size-tablet);
    }
    
    .hero .subtitle {
        font-size: var(--subtitle-font-size-tablet);
    }
}

@media (max-width: 768px) {
    /* Typography is now controlled via CSS variables */
    h1 {
        font-size: var(--h1-font-size-tablet);
    }
    
    h2, .section-title {
        font-size: var(--h2-font-size-tablet);
    }
    
    h3 {
        font-size: var(--h3-font-size-tablet);
    }
    
    h4 {
        font-size: var(--h4-font-size-tablet);
    }
    
    h5 {
        font-size: var(--h5-font-size-tablet);
    }

    .features-grid {
        padding: 50px calc(var(--container-padding) * 3);
    }
    
    .navbar {
        justify-content: space-between;
        gap: 1rem;
    }

    .navbar > *:not(.logo) {
        margin-left: 0;
    }

    .navbar .hamburger {
        order: 3;
    }

    .navbar .cta-button {
        order: 2;
        margin-left: auto;
        margin-right: 1rem;
        font-size: 16px;
        padding: 10px 20px;
    }

    .nav-menu.active ~ .cta-button {
        background: transparent;
        border: 2px solid white;
        color: white;
    }

    .nav-menu.active ~ .cta-button:hover {
        background: white;
        color: black;
        border-color: white;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu.active {
        opacity: 1;
        display: block;
    }

    .menu-items {
        position: absolute;
        top: 25%;
        right: 3rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        width: 300px;
    }

    .nav-menu a {
        color: white;
        font-size: 32px;
        opacity: 0.8;
        text-align: right;
        display: block;
        width: 100%;
    }

    .nav-menu a:hover {
        opacity: 1;
    }
    
    .hamburger {
        display: block;
        position: relative;
        z-index: 101;
    }

    .hamburger.active span {
        background: white;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 992px) {
    /* Typography controlled via CSS variables */
    .section-title {
        font-size: var(--section-title-font-size-tablet);
    }
    
    .hero .subtitle {
        font-size: var(--subtitle-font-size-tablet);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .planetary-energy {
        grid-column: span 1;
    }

    .affirmations-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Typography is now controlled via CSS variables */
    h1 {
        font-size: var(--h1-font-size-mobile);
    }
    
    h2, .section-title {
        font-size: var(--h2-font-size-mobile);
    }
    
    h3 {
        font-size: var(--h3-font-size-mobile);
    }
    
    h4 {
        font-size: var(--h4-font-size-mobile);
    }
    
    h5 {
        font-size: var(--h5-font-size-mobile);
    }
    
    .logo span {
        font-size: 1.25rem; /* 20px */
    }

    .nav-links a {
        font-size: 1.25rem; /* 20px */
    }

    .feature-card {
        padding: var(--spacing-sm);
    }
}

/* Selling Points Section */
.selling-point-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.selling-point-row.reverse {
    flex-direction: row-reverse;
}

.selling-point-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selling-point-image img {
    width: 100%;
    height: auto;
    display: block;
}

.selling-point-content {
    flex: 1;
}

@media (max-width: 992px) {
    .container {
        width: 100%;
        max-width: none;
        padding: 0 24px;
    }

    .selling-point-row,
    .selling-point-row.reverse {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }

    .selling-point-row .selling-point-image {
        order: 2;
    }

    .selling-point-row .selling-point-content {
        order: 1;
    }

    .selling-point-row.reverse .selling-point-image {
        order: 2;
    }

    .selling-point-row.reverse .selling-point-content {
        order: 1;
    }

    .selling-point-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .selling-point-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .selling-point-content {
        width: 100%;
        text-align: left;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        padding-top: 2rem; /* Adding more top padding for h1 on mobile */
    }
    
    .container {
        padding-top: 16px;
        padding-bottom: 16px;
        /* Maintaining 20px left and right padding as requested */
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }

    .selling-point-row,
    .selling-point-row.reverse {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .selling-point-image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .selling-point-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .selling-point-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Cross-browser compatibility */
@supports not (aspect-ratio: 1) {
    .affirmations-card::before {
        float: left;
        padding-top: 57.5%; /* 364/633 ≈ 57.5% */
        content: '';
    }
    .affirmations-card::after {
        display: block;
        content: '';
        clear: both;
    }
}

/* Full-width image that extends edge-to-edge */
.full-width-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .nav-links a:hover,
    .nav-links .cta-button:hover {
        opacity: 1;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
    }
    
    .nav-links a:hover,
    .nav-links .cta-button:hover {
        opacity: 1;
    }
}

/* Full-width image that extends edge-to-edge */
.full-width-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
}

.full-width-image img {
    width: 100%;
    height: auto;
    display: block;
}
