/* static/css/style.css */

/* Define Color Palette and Fonts using CSS Variables */
:root {
    --primary-color: #004D40; /* Dark Teal */
    --secondary-color: #BFA06A; /* Gold */
    --accent-color: #4A90E2; /* Accent Blue */
    --background-light: #F8F8F7; /* Off-white */
    --background-medium: #FFFFFF; /* White */
    --border-color: #E0E0E0; /* Soft Grey */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --text-medium: #555555;

    /* --font-main: 'Montserrat', sans-serif; */
    /* --font-logo: 'Montserrat', sans-serif;  */
    

    /* --font-main: 'Montserrat', sans-serif; */ /* Comment out or change */
    /* --font-logo: 'Montserrat', sans-serif; */ /* Comment out or change */

    /* --font-main: 'Nunito Sans', sans-serif; 
    --font-headings: 'Nunito Sans', sans-serif; 
    --font-logo: 'Nunito Sans', sans-serif;  */
    
    --font-main: 'Quicksand', sans-serif;
    --font-headings: 'Quicksand', sans-serif; /* Using same font */
    --font-logo: 'Quicksand', sans-serif; /* Using same font */
}

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

body {
    font-family: var(--font-main);
    line-height: 1.75; /* Slightly increased line height */
    color: var(--text-dark);
    background-color: var(--background-light);
    font-size: 17px; /* INCREASED base font size (from 16px) */
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
    

}

h1, h2, h3, h4 {
    font-family: var(--font-headings); /* Apply heading font */
    margin-bottom: 0.8em;
    color: var(--primary-color);
    font-weight: 700;
}

/* Adjusted heading sizes relative to new base font size */
h1 { font-size: 3em; line-height: 1.25; } /* Was 2.8em */
h2 { font-size: 2.4em; text-align: center; margin-bottom: 1.5em; } /* Was 2.2em */
h3 { font-size: 1.6em; } /* Was 1.5em */
h4 { font-size: 1.25em; color: var(--text-medium); } /* Was 1.2em */

/* Modify Paragraphs */
p {
    margin-bottom: 1.3em; /* Slightly more space */
    color: var(--text-medium);
}

/* Modify Hero Content Text */
.hero-content h1 {
    font-size: 3.4em; /* Adjusted */
}
.hero-content .tagline {
    font-size: 1.6em; /* Adjusted */
}
.hero-content p {
    font-size: 1.15em; /* Adjusted */
}

/* Modify Feature Box Text */
.feature-text h3 {
    font-size: 1.35em; /* Adjusted */
}
.feature-text p {
    font-size: 1.0em; /* Adjusted (was 0.95em of 16px, now 1em of 17px is larger) */
}

/* Modify Adventure List Text */
.adventure-list li {
    font-size: 1.05em; /* Adjusted */
}

/* Modify Author Credentials */
.author-credentials {
    font-size: 1.15em; /* Adjusted */
}

/* Modify Button Font Size if needed */
.cta-button {
    font-size: 1.0em; /* Ensure relative sizing, was 0.95em */
}
.cta-button.large {
    font-size: 1.15em; /* Adjusted */
}

/* Add Google Font Import at the top of style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,700;1,6..12,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Raleway:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap&subset=cyrillic,cyrillic-ext,latin,latin-ext,vietnamese');

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Headings */
h1, h2, h3, h4 {
    margin-bottom: 0.8em;
    color: var(--primary-color);
    font-weight: 700;
}

h1 { font-size: 2.8em; line-height: 1.2; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; color: var(--text-medium); }

p {
    margin-bottom: 1.2em;
    color: var(--text-medium);
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrap on very small screens */
}

header .logo a {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow nav items to wrap */
    padding-top: 5px; /* Add padding when wrapping */
}

header nav ul li {
    margin-left: 25px;
    margin-bottom: 5px; /* Spacing if wraps */
}

header nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95em;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: var(--text-light);
    border-bottom-color: var(--secondary-color);
}

/* Main Content Area */
main {
    padding: 50px 0;
}

.content-wrapper {
    background-color: var(--background-medium);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
}

/* Buttons - Professional Style */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.cta-button.primary:hover {
    background-color: #006a5a; /* Darken primary slightly */
    border-color: #006a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.cta-button.secondary:hover {
    background-color: #d4b07a; /* Darken secondary slightly */
    border-color: #d4b07a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button.tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-button.tertiary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: none;
}

.cta-button.large {
    padding: 15px 40px;
    font-size: 1.1em;
}

/* Homepage Specific Styles */

/* Hero Section (remains similar) */
.hero-revamped {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
    background-color: transparent;
    padding: 20px 0;
    border-radius: 0;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 350px;
}

.hero-content h1 {
    font-size: 3.2em;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

.hero-content .tagline {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--secondary-color);
    margin-bottom: 1em;
    font-style: italic;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: var(--text-medium);
}

.hero-buttons .cta-button {
    margin-right: 15px;
    margin-bottom: 10px;
}

.hero-visual {
    flex-basis: 350px;
    flex-grow: 0;
    text-align: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Why Special Section - Professional & ONE COLUMN */
.why-special {
    padding: 60px 0;
    background-color: var(--background-light); /* Use light background for contrast */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    /* Force 1 column layout */
    grid-template-columns: 1fr;
    gap: 25px; /* Vertical gap between boxes */
    margin-top: 30px;
    /* Center the column and limit width on large screens */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-box {
    background-color: var(--background-medium); /* White background for boxes */
    /* Use flex to layout icon and text side-by-side */
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 25px; /* Gap between icon and text content */
    padding: 30px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: left; /* Align text to the left */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-top: 5px; /* Align icon slightly lower */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 40px; /* Give icon a fixed width */
    text-align: center;
}

.feature-text {
    flex-grow: 1; /* Allow text content to take remaining space */
}

.feature-text h3 {
    margin-bottom: 0.5em; /* Reduce space below heading */
    font-size: 1.3em; /* Slightly larger heading */
    color: var(--primary-color);
    font-weight: 700;
}

.feature-text p {
    font-size: 0.95em; /* Standard text size */
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0; /* Remove bottom margin from p */
}

/* Meet Heroes Snippet (remains similar) */
.meet-heroes-snippet {
    text-align: center;
    background-color: var(--background-medium); /* Changed to white */
    padding: 50px 20px;
    margin: 60px 0;
    border-radius: 8px; /* Added radius */
}

.heroes-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-intro {
    max-width: 220px;
}

.hero-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 5px solid var(--background-light); /* Light background border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-intro h3 {
    color: var(--primary-color);
}

/* Peek Inside Section (remains similar) */
.peek-inside {
    margin-bottom: 60px;
    padding: 0 20px;
}

.peek-inside h2 {
     color: var(--primary-color);
     text-align: center;
}

.adventure-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 30px auto;
}

.adventure-list li {
    background-color: var(--background-medium);
    margin-bottom: 12px;
    padding: 18px 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 1.0em;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.adventure-list li:hover {
    border-color: var(--secondary-color);
}

.adventure-list li .icon {
    font-size: 1.6em;
    margin-right: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Final CTA Section (remains similar) */
.final-cta {
    text-align: center;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 8px;
    margin-top: 60px;
}

.final-cta h2 {
    color: var(--text-light);
    font-size: 2.4em;
}

.final-cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Footer (remains similar) */
footer {
    background-color: #333333;
    color: #cccccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 8px;
    color: #cccccc;
}


/* Author Page Specific Styles (remain similar) */
.author-page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.author-photo {
    flex-basis: 300px;
    flex-grow: 0;
    text-align: center;
}

.author-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 6px solid var(--background-medium);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.author-bio h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.author-bio h4 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 8px;
    font-size: 1.3em;
}

.author-credentials {
    font-size: 1.1em;
    background-color: var(--background-light);
    padding: 15px 20px;
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 25px;
    border-radius: 4px;
    color: var(--text-dark);
}

.author-bio p {
    line-height: 1.8;
    color: var(--text-medium);
}

.author-bio ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 20px;
}

.author-bio ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.author-bio ul li::before {
    content: '•';
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.2em;
    position: absolute;
    left: 10px;
    top: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
     .hero-content h1 { font-size: 2.8em; }
     h2 { font-size: 2em; }
     /* No change needed for features grid - already 1 column */
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2.4em; }
    h2 { font-size: 1.8em; }
    header .container {
        flex-direction: column;
        text-align: center;
    }
     header .logo a { margin-bottom: 10px; } /* Add space below logo when stacked */
    header nav ul {
        margin-top: 10px; /* Reduced margin */
        justify-content: center;
    }
     .hero-revamped {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-visual { flex-basis: auto; width: 80%; max-width: 300px; }

    .author-page-content {
        flex-direction: column;
        align-items: center;
    }
    .author-photo {
        flex-basis: auto;
        width: 70%;
        max-width: 250px;
    }
     .author-bio { width: 100%; }
     /* Center single-column features grid */
     .features-grid { max-width: 90%; }
}

@media (max-width: 576px) {
     h1 { font-size: 2em; }
     h2 { font-size: 1.6em; }
     .container { padding: 0 15px; }
     .content-wrapper { padding: 25px; }
     .cta-button { padding: 10px 20px; font-size: 0.9em; }
     .cta-button.large { padding: 12px 30px; font-size: 1em; }
     .adventure-list li { padding: 15px; }
     .adventure-list li .icon { font-size: 1.4em; margin-right: 15px; }
     /* Adjust feature box layout for very small screens */
     .feature-box { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
     .feature-icon { margin-bottom: 10px; margin-top: 0; }
     .feature-text { width: 100%; } /* Ensure text takes full width */
}
/* --- ANIMATIONS --- */

/* Keyframes */
@keyframes fadeInUp { /* Keep this one */
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft { /* New: Slide in from left */
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
/* --- ICON ANIMATIONS (SIMPLER) --- */

/* === Feature Icons & Adventure List Icons === */

/* Base style for these icons - Adjust Transition */
.feature-icon,
.adventure-list li .icon {
    /* Keep existing styles like font-size, color, margin etc. */
    /* Simpler transition for scale and color */
    transition: transform 0.3s ease-out,
                color 0.3s ease-out;
}

/* NEW Hover effect: Subtle Scale Up and Color Change */
.feature-box:hover .feature-icon,
.adventure-list li:hover .icon {
    transform: scale(1.15); /* Scale up slightly */
    color: var(--accent-color); /* Change to Accent Blue (or choose --secondary-color etc.) */
    /* Remove the rotate transform if it was left from previous edits */
    /* transform: rotate(360deg); */ /* REMOVE THIS */
}


/* === Navigation Icons === */
/* Keep the existing simple color change on hover */
header nav ul li a i {
    margin-right: 6px;
    font-size: 0.9em;
    color: inherit;
    transition: color 0.3s ease;
}

header nav ul li a:hover i {
    color: var(--text-light);
}


/* === Final CTA Button Icon === */
/* Keep existing styles and arrowBounce animation on hover (still relatively simple) */
.final-cta .final-buy-button i {
    margin-left: 12px;
}
.final-cta .final-buy-button:hover i {
    animation: arrowBounce 0.5s ease-in-out 1;
}
/* Keep @keyframes arrowBounce definition */
@keyframes arrowBounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}


/* --- END ICON ANIMATIONS --- */

/* --- REST OF YOUR CSS --- */

/* --- REST OF YOUR CSS --- */

@keyframes shine { /* New: For button shine */
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Keyframes for a brighter pulsing glow */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(144, 238, 144, 0.3), /* LightGreen glow */
                    0 0 10px rgba(144, 238, 144, 0.3),
                    0 0 15px rgba(144, 238, 144, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(144, 238, 144, 0.7), /* Brighter/Wider glow */
                    0 0 25px rgba(144, 238, 144, 0.7),
                    0 0 40px rgba(144, 238, 144, 0.7);
    }
    100% {
         box-shadow: 0 0 5px rgba(144, 238, 144, 0.3),
                     0 0 10px rgba(144, 238, 144, 0.3),
                     0 0 15px rgba(144, 238, 144, 0.3);
    }
}

/* Keyframes for icon bounce */
@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px); /* Bounce distance */
  }
}


/* Style the supporting text (keep as is or slightly tone down if needed) */
.final-cta .cta-support-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -10px;
    margin-bottom: 30px; /* Increased space before button */
}

/* Target the specific final button - ENHANCED STYLES */
.final-cta .final-buy-button {
    /* --- CONTRAST --- */
    background-color: #32CD32; /* Vibrant Lime Green */
    border-color: #32CD32;
    color: #004D40; /* Dark Teal text for strong contrast */

    /* --- SIZE --- */
    padding: 16px 45px; /* Increased padding */
    font-size: 1.2em; /* Slightly larger font */
    font-weight: 700;
    border-radius: 50px; /* Pill shape */

    /* --- VISUAL WEIGHT --- */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a default shadow */
    text-shadow: none; /* Ensure no text shadow from other rules */

    /* --- ANIMATION --- */
    /* Apply NEW pulseGlow animation */
    animation: pulseGlow 2.2s infinite ease-in-out;
    transition: all 0.3s ease-out; /* Keep transition for hover */

    /* Ensure icon is vertically centered if needed */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Hover state for the final button - ENHANCED */
.final-cta .final-buy-button:hover {
    background-color: #228B22; /* Darker Forest Green on hover */
    border-color: #228B22;
    color: var(--text-light); /* White text on hover */
    transform: translateY(-4px) scale(1.05); /* More pronounced lift/scale */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); /* Stronger hover shadow */
    animation-play-state: paused; /* Pause glow on hover */
}
/* Remove or hide the shine effect on this button if it clashes */
.final-cta .final-buy-button:hover::before {
    /* left: -100%; */ /* Option 1: Reset shine */
    display: none; /* Option 2: Hide shine completely */
}


/* Icon inside the button - ENHANCED HOVER */
.final-cta .final-buy-button i {
    margin-left: 12px; /* Slightly more space */
    /* Remove previous transition if conflicting */
    /* transition: transform 0.3s ease; */
}
.final-cta .final-buy-button:hover i {
    /* Apply bounce animation */
    animation: arrowBounce 0.5s ease-in-out 1; /* Play bounce once on hover */
    /* Reset transform from previous rule if needed */
    /* transform: translateX(0); */
}

/* Remove the old pulseShadow animation if it was defined */
/* Remove or comment out @keyframes pulseShadow { ... } */

/* General Animation Application */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Sections Animation (Keep fadeInUp for general sections) */
.meet-heroes-snippet, .final-cta, .author-page-content {
     animation: fadeInUp 0.9s ease-out forwards;
     opacity: 0;
     animation-delay: 0.2s; /* Slight delay */
}

/* Hero Section Animation */
.hero-content {
     animation: fadeInUp 0.9s 0.1s ease-out forwards; /* Delay */
     opacity: 0;
}
.hero-visual {
     animation: fadeInUp 0.9s 0.3s ease-out forwards; /* Delay */
     opacity: 0;
}

/* Staggered Features Animation (Still fadeInUp) */
.features-grid .feature-box {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
/* (Keep the nth-child delays as before) */
.features-grid .feature-box:nth-child(1) { animation-delay: 0.2s; }
.features-grid .feature-box:nth-child(2) { animation-delay: 0.3s; }
.features-grid .feature-box:nth-child(3) { animation-delay: 0.4s; }
.features-grid .feature-box:nth-child(4) { animation-delay: 0.5s; }


/* COOLER Adventure List Animation (Slide In Left) */
.adventure-list li {
    opacity: 0;
    /* Use slideInLeft instead */
    animation: slideInLeft 0.6s ease-out forwards;
}
/* (Keep the nth-child delays, adjust timing slightly if needed) */
.adventure-list li:nth-child(1) { animation-delay: 0.2s; }
.adventure-list li:nth-child(2) { animation-delay: 0.3s; }
.adventure-list li:nth-child(3) { animation-delay: 0.4s; }
.adventure-list li:nth-child(4) { animation-delay: 0.5s; }
.adventure-list li:nth-child(5) { animation-delay: 0.6s; }
.adventure-list li:nth-child(6) { animation-delay: 0.7s; }


/* COOL Hover effect for Icons (Pop) */
.feature-icon, .adventure-list li .icon {
    transition: transform 0.3s ease; /* Keep transition for smooth exit */
}
/* Apply pop animation on hover */
.feature-box:hover .feature-icon,
.adventure-list li:hover .icon {
    animation: iconPop 0.5s ease-out; /* Apply pop animation */
}


/* COOL Image Tilt Effect on Hover */
.hero-visual {
    perspective: 1000px; /* Add perspective to the container */
}
.hero-visual img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* Smoother ease */
                box-shadow 0.4s ease;
    /* Keep the previous hover effect base */
}
.hero-visual:hover img {
    transform: scale(1.04) rotateX(5deg) rotateY(-7deg); /* 3D tilt effect + scale */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}
/* Apply similar subtle tilt to character avatars if desired */
.hero-intro {
    perspective: 800px;
}
.hero-avatar {
     transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                 box-shadow 0.4s ease;
}
.hero-intro:hover .hero-avatar {
     transform: scale(1.05) rotateY(10deg); /* Simpler tilt */
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* COOL Button Shine Effect */
.cta-button {
    position: relative; /* Needed for pseudo-element positioning */
    overflow: hidden; /* Hide the shine overflow */
    /* Keep existing transitions */
    transition: all 0.3s ease-out;
}
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Start off-screen */
    width: 50%; /* Width of the shine */
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%, /* Shine color/intensity */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Angle the shine */
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth transition */
}
.cta-button:hover::before {
    left: 120%; /* Move across and off-screen */
}


/* Ensure smooth transitions on elements with existing hover effects */
.feature-box, .adventure-list li {
     transition: all 0.3s ease-out;
}


/* --- PAGE-SPECIFIC ANIMATIONS --- */

/* === About Page (О книге) === */

.about-content {
    /* Apply fadeInUp to the container */
    opacity: 0;
    animation: fadeInUp 0.8s 0.1s ease-out forwards; /* Add slight delay */
}

.about-image {
    perspective: 1000px; /* Needed for tilt */
}

.about-image img {
     /* Apply tilt effect on hover */
     transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                 box-shadow 0.4s ease;
}

.about-image:hover img {
    transform: scale(1.04) rotateX(4deg) rotateY(-6deg); /* Subtle tilt */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}


/* === Characters Page (Герои) === */

/* Fade in heading and intro text */
.characters-page-intro h2, /* Assuming you might wrap H2/P in a div */
.characters-page-intro p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.characters-page-intro h2 { animation-delay: 0.1s; }
.characters-page-intro p { animation-delay: 0.2s; }
/* If H2/P are not wrapped, apply directly */
/*
main .content-wrapper > h2 { ... animation ... animation-delay: 0.1s; }
main .content-wrapper > p:first-of-type { ... animation ... animation-delay: 0.2s; }
*/


/* Staggered animation for character cards */
.characters-list .character-card {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards; /* Or slideInLeft */
    /* Add perspective for potential tilt */
    perspective: 800px;
}
/* Add nth-child delays */
.characters-list .character-card:nth-child(1) { animation-delay: 0.3s; }
.characters-list .character-card:nth-child(2) { animation-delay: 0.4s; }
.characters-list .character-card:nth-child(3) { animation-delay: 0.5s; }
/* Add more if you expect more characters */
.characters-list .character-card:nth-child(4) { animation-delay: 0.6s; }
.characters-list .character-card:nth-child(5) { animation-delay: 0.7s; }


/* Hover effect for character cards */
.character-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Base transition */
}
.character-card:hover {
     transform: translateY(-8px); /* Lift slightly more */
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Tilt effect for character avatar */
.character-card .hero-avatar { /* Reuse .hero-avatar style if applicable */
     transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                 box-shadow 0.4s ease;
}
.character-card:hover .hero-avatar {
     transform: scale(1.05) rotateY(8deg); /* Simple Y rotation */
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* === Buy Page (Где купить) === */

/* Fade in heading and intro text */
.buy-page-intro h2, /* Assuming you wrap H2/P */
.buy-page-intro p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.buy-page-intro h2 { animation-delay: 0.1s; }
.buy-page-intro p { animation-delay: 0.2s; }
/* If H2/P are not wrapped, apply directly */
/*
main .content-wrapper > h2 { ... animation ... animation-delay: 0.1s; }
main .content-wrapper > p:first-of-type { ... animation ... animation-delay: 0.2s; }
*/

/* Staggered animation for store list items */
.store-list li {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
    transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease; /* Add transform transition */
}
/* Add nth-child delays */
.store-list li:nth-child(1) { animation-delay: 0.3s; }
.store-list li:nth-child(2) { animation-delay: 0.4s; }
.store-list li:nth-child(3) { animation-delay: 0.5s; }
/* Add more if needed */
.store-list li:nth-child(4) { animation-delay: 0.6s; }
.store-list li:nth-child(5) { animation-delay: 0.7s; }

/* Enhance hover effect for store list items */
.store-list li:hover {
    /* border-color: var(--secondary-color); Already likely have this */
    transform: translateX(5px); /* Slight shift right */
    background-color: #e0f2f7; /* Example: light blue background */
}
.store-list li a {
    transition: color 0.3s ease; /* Smooth color transition */
}


/* === Author Page (Об авторе) === */

/* Fade in photo and bio columns */
.author-page-content .author-photo {
    opacity: 0;
    animation: fadeInUp 0.8s 0.1s ease-out forwards;
}
.author-page-content .author-bio {
    opacity: 0;
    animation: fadeInUp 0.8s 0.3s ease-out forwards;
}

/* Apply tilt effect to author photo */
.author-photo {
    perspective: 1000px; /* Add perspective */
}
/* (Ensure img hover is already defined, like this from previous step) */
.author-photo img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}
.author-photo:hover img {
    transform: scale(1.03) rotateX(2deg) rotateY(-4deg); /* Very subtle tilt */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Header Nav Icon Styling */
header nav ul li a i {
    margin-right: 6px; /* Space between icon and text */
    font-size: 0.9em;  /* Slightly smaller icon relative to text */
    /* Optional: Adjust vertical alignment if needed */
    /* vertical-align: middle; */
}
/* --- END PAGE-SPECIFIC ANIMATIONS --- */



/* --- MORE STRIKING ANIMATIONS --- */

/* --- Keyframes --- */

/* Keep fadeInUp if used elsewhere, or remove if fully replaced */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); } /* Slightly more distance */
    to { opacity: 1; transform: translateY(0); }
}

/* Keep slideInLeft if used elsewhere */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); } /* Slightly more distance */
    to { opacity: 1; transform: translateX(0); }
}

/* Keep iconPop */
@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); } /* Slightly bigger pop */
    100% { transform: scale(1); }
}

/* Keep shine for buttons */
@keyframes shine { /* ... */ }
/* Keep pulseGlow for final CTA */
@keyframes pulseGlow { /* ... */ }
/* Keep arrowBounce for final CTA icon */
@keyframes arrowBounce { /* ... */ }


/* NEW Keyframes: Flip In Effect */
@keyframes flipInX {
    from {
      transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
      animation-timing-function: ease-in;
      opacity: 0;
    }
    40% {
      transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
      animation-timing-function: ease-in;
      /* Opacity becomes 1 around the midpoint */
    }
    60% {
      transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
      opacity: 1; /* Explicitly set opacity */
    }
    80% {
      transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }
    to {
      /* Ensure final state is not rotated and opacity is 1 */
      transform: perspective(400px) rotate3d(1, 0, 0, 0deg); /* Finish flat */
      /* OR more simply: transform: none; */
      opacity: 1; /* Explicitly set opacity */
    }
  }

/* NEW Keyframes: Scale with Bounce */
@keyframes scaleBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  60% {
      opacity: 1;
      transform: scale(1.05); /* Overshoot */
  }
  80% {
    transform: scale(0.95); /* Bounce back */
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* NEW Keyframes: Simple Text Clip Reveal */
@keyframes revealClip {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes scaleFadeIn {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

/* --- Apply Animations to Homepage Elements --- */

/* Striking Hero Headline Reveal (Clip Path method) */
.hero-content h1 {
    /* Ensure it's an inline element or wrap text in span if needed for other methods */
    /* For clip-path, works on block */
    opacity: 1; /* Start visible for clip-path */
    animation: revealClip 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000) 0.2s forwards; /* Apply clip animation */
    /* Reset previous animation if any */
    /* animation: none; */
}


/* Striking Feature Box Entrance (Flip In) */
.features-grid .feature-box {
    opacity: 0; /* Start hidden */
    /* Use flipInX instead of fadeInUp */
    animation: scaleFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; /* Example */

    /* Keep existing nth-child delays */
}
.features-grid .feature-box:nth-child(1) { animation-delay: 0.2s; }
.features-grid .feature-box:nth-child(2) { animation-delay: 0.35s; } /* Adjusted delay */
.features-grid .feature-box:nth-child(3) { animation-delay: 0.5s; } /* Adjusted delay */
.features-grid .feature-box:nth-child(4) { animation-delay: 0.65s; } /* Adjusted delay */


/* Striking Character Avatar Entrance (Scale Bounce) */
/* Apply directly to the image for scale effect */
.meet-heroes-snippet .hero-avatar {
    opacity: 0; /* Start hidden */
    animation: scaleBounceIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    /* Stagger the two avatars */
}
.heroes-container .hero-intro:nth-child(1) .hero-avatar { animation-delay: 0.3s; }
.heroes-container .hero-intro:nth-child(2) .hero-avatar { animation-delay: 0.5s; }


/* Striking Adventure List Animation (Slide with Overshoot) */
.adventure-list li {
    opacity: 0;
    animation: slideInLeft 0.7s cubic-bezier(0.25, 0.46, 0.45, 1.4) forwards; /* Bezier curve for overshoot */
    /* Keep existing nth-child delays, maybe adjust timing */
}
.adventure-list li:nth-child(1) { animation-delay: 0.2s; }
.adventure-list li:nth-child(2) { animation-delay: 0.28s; } /* Slightly faster stagger */
.adventure-list li:nth-child(3) { animation-delay: 0.36s; }
.adventure-list li:nth-child(4) { animation-delay: 0.44s; }
.adventure-list li:nth-child(5) { animation-delay: 0.52s; }
.adventure-list li:nth-child(6) { animation-delay: 0.6s; }


/* Optional: Enhance Image Tilt further? (Be careful not to overdo) */
.hero-visual:hover img {
    /* Example: Increase tilt slightly */
    transform: scale(1.05) rotateX(6deg) rotateY(-8deg);
    /* Adjust shadow if needed */
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

/* Keep other animations like button shine, icon pop, final CTA pulse */
/* Ensure smooth transitions are still applied where needed */
/* ... (rest of transitions and hover effects) ... */

/* --- END STRIKING ANIMATIONS --- */

/* --- REST OF YOUR CSS --- */

/* --- END ANIMATIONS --- */

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

.page-intro {
    text-align: center;
    font-size: 1.15em;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-list {
    margin-top: 30px;
}

.testimonial-card {
    background-color: var(--background-light); /* Light background for card */
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--secondary-color); /* Gold accent border */
    border-radius: 8px;
    padding: 30px 35px;
    margin-bottom: 30px;
    position: relative; /* For quote icons */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    /* Animation */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards; /* Default animation */
}

/* Staggered animation using nth-child */
.testimonials-list .testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonials-list .testimonial-card:nth-child(2) { animation-delay: 0.25s; }
.testimonials-list .testimonial-card:nth-child(3) { animation-delay: 0.4s; }
/* Add more if needed */


.testimonial-quote {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.8;
    position: relative;
    /* Increase padding slightly to give icons more room */
    padding-left: 20px;  /* Was 10px */
    padding-right: 20px; /* Was 10px */
    /* Add top/bottom padding if needed */
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Style paragraphs within blockquote if needed */
.testimonial-quote p {
    margin-bottom: 1em; /* Space between paragraphs */
    font-style: normal; /* Reset italics if desired for main text */
     color: var(--text-dark); /* Darker text for readability */
}
.testimonial-quote p:first-child {
    /* Optional: Style first paragraph differently, e.g., make it bolder */
    /* font-weight: bold; */
}
.testimonial-quote p:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph */
}


/* Decorative Quote Icons */
.testimonial-quote .quote-icon {
    position: absolute;
    font-size: 3em; /* Slightly larger if desired, or keep 2.5em */
    color: var(--border-color);
    opacity: 0.7; /* Slightly less opaque */
    z-index: 0; /* Ensure it's behind text if needed, though unlikely needed */
}
.testimonial-quote .quote-icon.start {
    /* Move further top-left */
    top: -15px;    /* Was -10px */
    left: -25px;   /* Was -15px */
}
.testimonial-quote .quote-icon.end {
    /* Move further bottom-right */
    bottom: -20px; /* Was -15px */
    right: -15px;  /* Was -10px */
}
.testimonial-author {
    display: block; /* Ensure it's on its own line */
    text-align: right;
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color); /* Use primary color */
    margin-top: 15px;
}

/* Divider between testimonials */
hr.testimonial-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 40px auto; /* Space above/below */
    width: 80%;
}

/* --- END TESTIMONIALS PAGE --- */
/* --- Responsive Navigation / Hamburger Menu --- */
/* Hamburger Button base style (hidden by default) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-light); /* White icon */
    font-size: 1.8rem; /* Size of the icon */
    cursor: pointer;
    padding: 5px;
    line-height: 1; /* Prevent extra space */
    z-index: 1100; /* Ensure it's above other header content */
}

/* Media Query for Mobile/Tablet */
@media (max-width: 992px) { /* Breakpoint where hamburger appears */

    header .container {
        /* Ensure space is made for the button if needed */
        /* Adjust justify-content if logo/button alignment needs fixing */
    }

    /* Show Hamburger Button */
    .hamburger-menu {
        display: block;
        order: 3; /* Place it after logo and nav if needed by flexbox */
        margin-left: auto; /* Push to the right */
    }

    /* Hide original nav list BUT prepare for animation */
    #main-nav ul {
        display: block; /* Change from flex */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        right: 0;
        background-color: var(--primary-color); /* Match header */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        /* Animate max-height for dropdown effect */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        padding: 0; /* Remove padding when collapsed */
        list-style: none; /* Remove list bullets */
    }

    /* Styles for when the menu is active/open */
    #main-nav.nav-active ul {
        max-height: 500px; /* Allow height to expand (adjust if more items) */
        padding: 10px 0; /* Add padding when open */
    }

    /* Style list items and links for vertical layout */
    #main-nav li {
        margin-left: 0; /* Remove horizontal margin */
        width: 100%;
        text-align: center; /* Center text */
    }

    #main-nav li a {
        display: block; /* Make links take full width */
        padding: 15px 20px; /* Generous padding for touch targets */
        color: rgba(255, 255, 255, 0.9); /* Adjust color if needed */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
        border-bottom-color: transparent; /* Reset desktop border */
    }
     #main-nav li:last-child a {
         border-bottom: none; /* No border on last item */
     }

    #main-nav li a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Subtle hover */
        color: var(--text-light);
        border-bottom-color: transparent; /* Ensure hover doesn't show bottom border */
    }
    /* Ensure icons align well */
     #main-nav li a i{
         margin-right: 10px;
     }

}

/* Minor adjustment for existing nav on desktop if needed */
@media (min-width: 993px) {
    #main-nav ul {
        display: flex; /* Ensure flex display on desktop */
        position: static; /* Override absolute positioning */
        background-color: transparent;
        box-shadow: none;
        max-height: none; /* Remove height restriction */
        overflow: visible;
        padding: 0;
    }
    #main-nav li {
        margin-left: 25px; /* Restore horizontal margin */
        width: auto;
    }
     #main-nav li a {
        display: inline-block; /* Restore inline display */
        padding: 5px 0; /* Restore desktop padding */
         border-bottom: 2px solid transparent; /* Restore underline effect prep */
    }
     #main-nav li a:hover {
         background-color: transparent; /* Remove mobile hover background */
         border-bottom-color: var(--secondary-color); /* Restore underline */
     }

}

/* --- Buy Page Specific Styles --- */

.page-intro { /* Reusing style from Testimonials if suitable, or define here */
    text-align: center;
    font-size: 1.15em;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.purchase-options-container {
    display: grid;
    /* Creates 1 or 2 columns based on available width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between cards */
    margin-top: 30px;
    margin-bottom: 40px;
}

.purchase-option-card {
    background-color: var(--background-medium); /* White card background */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex; /* Icon and details side-by-side */
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between icon and details */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Animation */
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}

/* Stagger card animations */
.purchase-options-container .purchase-option-card:nth-child(1) { animation-delay: 0.2s; }
.purchase-options-container .purchase-option-card:nth-child(2) { animation-delay: 0.3s; }
.purchase-options-container .purchase-option-card:nth-child(3) { animation-delay: 0.4s; }
/* Add more if needed */

.purchase-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.purchase-option-icon {
    font-size: 2.5em; /* Size of the icon */
    color: var(--primary-color); /* Icon color */
    margin-top: 5px; /* Align icon nicely */
    flex-shrink: 0; /* Prevent icon from shrinking */
    width: 40px; /* Fixed width for alignment */
    text-align: center;
}

.purchase-option-details {
    flex-grow: 1; /* Allow details to take remaining space */
}

.purchase-option-details h3 {
    margin-bottom: 0.5em; /* Space below store name */
    color: var(--primary-color);
    font-size: 1.4em;
}

.purchase-option-details .store-description {
    font-size: 0.95em;
    color: var(--text-medium);
    margin-bottom: 1.5em; /* Space before the button */
    line-height: 1.6;
}

.purchase-option-details .store-link {
    /* Use existing .cta-button.tertiary styles */
    /* Add specific adjustments if needed */
    padding: 8px 20px; /* Slightly smaller padding */
    font-size: 0.9em;
    margin-top: auto; /* Push button to bottom if card height varies */
}

.purchase-option-details .store-link i {
    margin-left: 8px; /* Space before external link icon */
}

/* Optional divider */
hr.buy-page-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 50px auto;
    width: 60%;
}

/* Info block for local stores */
.local-stores-info {
    text-align: center;
    background-color: var(--background-light);
    padding: 30px 20px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px dashed var(--border-color);
}

.local-stores-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.local-stores-info h4 i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.local-stores-info p {
    color: var(--text-medium);
    font-size: 1em;
    margin-bottom: 0;
}

/* Responsive adjustments for buy page grid if needed */
@media (max-width: 768px) {
    .purchase-options-container {
        /* Ensure it stacks to 1 column on smaller screens if needed */
        grid-template-columns: 1fr;
    }
}

/* --- END Buy Page Specific Styles --- */