:root {
    --primary-color: #f8b195;
    --secondary-color: #f67280;
    --text-color: #2c3e50;
    --background-color: #fff5f5;
    --accent-color: #6c5b7b;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: #323638;
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.logo img {
    height: 240px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 300;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-family: 'Roboto', sans-serif;
}

nav a:hover {
    color: #ef3aaa;
}

.hero {
    height: 80vh;
    background-image: url('resources/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.7),
        rgba(245, 245, 245, 0.8)
    );
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

h1 {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.features {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    scroll-margin-top: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.number {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.feature-card h3 {
    font-family: 'Lora', serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.feature-card:nth-child(4),
.feature-card:nth-child(5) {
    margin-top: 2rem;
}

footer {
    background-color: #323638;
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: white;
    font-size: 1rem;
}

@media (min-width: 1200px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        grid-column: span 1.5;
    }
}

@media (max-width: 1200px) {
    .hero {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 160px;
    }
    
    header {
        padding: 0.5rem 1rem;
    }
    
    nav {
        height: 40px;
        gap: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .features {
        grid-template-columns: 1fr;
    }
    
    .feature-card:nth-child(4),
    .feature-card:nth-child(5) {
        margin-top: 0;
    }
    
    .feature-card {
        padding: 2rem;
    }

    footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        min-height: 300px;
    }
}

/* Handle very tall screens */
@media (min-aspect-ratio: 16/9) {
    .hero {
        height: 100vh;
    }
}

/* Handle very short screens */
@media (max-aspect-ratio: 16/9) and (max-height: 600px) {
    .hero {
        height: auto;
        padding: 4rem 2rem;
    }
}

/* Add link styling for feature cards */
a.feature-card {
    text-decoration: none;
    color: inherit;
}

/* Content page styles */
.content-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.content-page .intro {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.section {
    position: relative;
    padding: 3rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.section-image {
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 15px;
}

.section-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

/* Right float image - positive rotation */
.section-image.right-float {
    float: right;
    width: 40%;
    margin-left: 3rem;
    margin-bottom: 2rem;
    shape-outside: margin-box;
    transform: rotate(3deg);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-image.right-float:hover {
    transform: rotate(0deg);
}

/* Left float image - negative rotation */
.section-image.left-float {
    float: left;
    width: 40%;
    margin-right: 3rem;
    margin-bottom: 2rem;
    shape-outside: margin-box;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-image.left-float:hover {
    transform: rotate(0deg);
}

/* Circle image - subtle rotation */
.section-image.circle-right {
    float: right;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-left: 3rem;
    margin-bottom: 2rem;
    shape-outside: circle(50%);
    transform: rotate(4deg);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-image.circle-right:hover {
    transform: rotate(0deg);
}

/* Full width image */
.full-width {
    width: 100%;
    height: 300px;
    margin: 2rem 0;
    float: none;
}

/* Clear floats after sections */
.section::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure text content has proper spacing */
.section h2 {
    clear: none;
    margin-top: 0;
}

.section p, 
.section ul, 
.section .highlight,
.section .key-point {
    clear: none;
    margin-bottom: 1.5rem;
}

/* Table specific spacing */
.comparison-table {
    clear: both;
    margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 1.5rem;
    }

    .section-image.right-float,
    .section-image.left-float,
    .section-image.circle-right {
        float: none;
        width: 100%;
        margin: 2rem 0;
        transform: rotate(0deg);
    }

    .section-image.circle-right {
        width: 200px;
        height: 200px;
        margin: 2rem auto;
    }

    .full-width {
        height: 200px;
    }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.key-point {
    font-size: 1.2rem;
    color: var(--accent-color);
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
}

.special-list {
    list-style: none;
    padding: 0;
}

.special-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--background-color);
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--background-color);
}

th {
    background: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background: var(--background-color);
}

.book-list {
    list-style: none;
    padding: 0;
}

.book-list li {
    padding: 0.8rem 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 1.1rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.8rem;
    }
}

/* Full width image section specific styling */
.section-image.full-width {
    width: 100%;
    height: auto; /* Changed from fixed height to auto */
    margin: 2rem 0;
    float: none;
}

.section-image.full-width img {
    width: 100%;
    height: auto; /* Changed from 100% to auto */
    object-fit: contain; /* Changed from cover to contain */
    display: block; /* Ensures no unwanted spacing */
}

/* Ensure content after the full-width image is properly spaced */
.section-image.full-width + h2 {
    margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-image.full-width {
        margin: 1.5rem 0;
    }
    
    .section-image.full-width + h2 {
        margin-top: 2rem;
    }
}

.takeaways {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.takeaways li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.takeaways li:last-child {
    margin-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

.features {
    scroll-margin-top: 2rem;
}

.section-image a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.section-image a img {
    transition: transform 0.3s ease;
}

.section-image a:hover img {
    transform: scale(1.02);
}

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #323638;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    opacity: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-size: 24px;
    font-weight: bold;
}

.scroll-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    nav.nav-mobile-2row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
        height: auto !important;
        background: #323638;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .nav-row {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
    }
    .nav-row-top {
        padding: 0 0 0 0;
    }
    .logo img {
        height: 120px !important;
        margin-top: -3rem !important;
    }
    #langSwitch {
        position: static;
        font-size: 1.1rem;
        margin-right: 0.5rem;
        margin-top: -3rem;
        z-index: 1;
        background: none;
        text-align: right;
    }
    .nav-row-bottom {
        padding-bottom: 0;
        margin-top: -4rem;
    }
    #navLinks {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
        width: 100%;
        background: none;
        position: static;
        box-shadow: none;
        padding: 0.1rem 0 0.1rem 0;
        margin: 0;
    }
    #navLinks li {
        margin: 0;
        width: auto;
        text-align: center;
    }
    #navLinks li a {
        color: #fff !important;
        font-size: 1.1rem;
        padding: 0.3rem 0.7rem;
        border-radius: 6px;
        transition: background 0.2s;
    }
    #navLinks li a:hover {
        background: #222;
        color: #ef3aaa !important;
    }
}

@media (min-width: 901px) {
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        height: 60px;
        gap: 3rem;
    }
    .logo {
        display: flex;
        align-items: center;
        margin-top: 20px;
    }
    .logo img {
        height: 240px;
        width: auto;
        object-fit: contain;
        position: relative;
        z-index: 1000;
        margin-top: 0;
    }
    .nav-row, .nav-row-top, .nav-row-bottom {
        display: contents;
    }
    #navLinks {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        margin-left: auto;
        margin-right: 0;
        background: none;
        position: static;
        box-shadow: none;
        padding: 0;
    }
    #navLinks li {
        margin: 0;
        width: auto;
        text-align: center;
    }
    #navLinks li a {
        color: #fff !important;
        font-size: 1.1rem;
        padding: 0.3rem 0.7rem;
        border-radius: 6px;
        transition: background 0.2s;
    }
    #navLinks li a:hover {
        background: #222;
        color: #ef3aaa !important;
    }
    #langSwitch {
        position: static;
        margin-left: 2rem;
        margin-right: 0;
        margin-top: 0;
        font-size: 1.1rem;
        text-align: right;
        background: none;
        z-index: 1;
        display: flex;
        align-items: center;
        height: 100%;
    }
}

#langSwitch span {
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
#langSwitch span.active {
    color: #ef3aaa;
}
#langSwitch span:hover {
    color: #ef3aaa;
} 