/* ==============================================
   THE NUTRIHEROES - MAIN STYLESHEET
   ============================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

/* ==============================================
   NAVIGATION
   ============================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #2D3561;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #2D3561;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #FF9770;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFE66D, #FF9770);
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #2D3561;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    width: 250px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 15px;
    color: #2D3561;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: #f8f9fa;
    color: #FF9770;
    padding-left: 25px;
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFE66D 0%, #FF9770 50%, #4ECDC4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    padding: 40px;
}

.hero-logo {
    width: 400px;
    max-width: 90%;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero h1 {
    font-size: 4em;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: white;
    color: #2D3561;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.3em;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    background: #2D3561;
    color: white;
}

/* ==============================================
   SECTIONS
   ============================================== */

section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3em;
    color: #2D3561;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #FFE66D, #FF9770, #4ECDC4);
    border-radius: 5px;
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: #666;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================
   HEROES SECTION
   ============================================== */

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.hero-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--hero-color-1), var(--hero-color-2));
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.hero-card img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.hero-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.hero-card h3 {
    font-size: 1.8em;
    color: #2D3561;
    margin-bottom: 10px;
}

.hero-card .hero-title {
    font-size: 1em;
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.hero-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-link {
    display: inline-block;
    color: var(--hero-color-1);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-link:hover {
    transform: translateX(5px);
}

/* Hero Colors */
.hero-card.insulin {
    --hero-color-1: #FFD93D;
    --hero-color-2: #FFA500;
}

.hero-card.fiber {
    --hero-color-1: #95E1D3;
    --hero-color-2: #38817A;
}

.hero-card.aqua {
    --hero-color-1: #4ECDC4;
    --hero-color-2: #1A535C;
}

.hero-card.motion {
    --hero-color-1: #FF9770;
    --hero-color-2: #E67E22;
}

.hero-card.protein {
    --hero-color-1: #B565D8;
    --hero-color-2: #6C3483;
}

.hero-card.gluco {
    --hero-color-1: #FFD700;
    --hero-color-2: #FFA500;
}

/* ==============================================
   UNIVERSE SECTION
   ============================================== */

.universe-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 30px;
    padding: 60px;
    margin: 60px 0;
    text-align: center;
}

.universe-map {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    margin: 40px 0;
}

.universe-map:hover {
    transform: scale(1.02);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.location-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.location-card h3 {
    color: #2D3561;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.location-card p {
    color: #666;
    font-size: 0.95em;
}

/* ==============================================
   BOOK SHOWCASE
   ============================================== */

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #FFE66D 0%, #FF9770 100%);
    padding: 80px;
    border-radius: 30px;
    color: white;
    margin: 60px 0;
}

.book-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.book-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.book-image img:hover {
    transform: rotate(-5deg) scale(1.05);
}

.book-cover-container {
    display: flex;
    justify-content: center;
}

.book-cover {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: rotate(-5deg) scale(1.05);
}

.book-badge {
    display: inline-block;
    background: white;
    color: #2D3561;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.book-info h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.book-subtitle {
    font-size: 1.3em;
    font-style: italic;
    margin-bottom: 25px;
    opacity: 0.9;
}

.book-info p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.book-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 12px 20px;
    border-radius: 25px;
}

.feature-icon {
    font-size: 1.5em;
}

.buy-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.buy-button {
    display: inline-block;
    padding: 15px 35px;
    background: white;
    color: #2D3561;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.buy-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.buy-button.amazon {
    background: #FF9900;
    color: white;
}

/* ==============================================
   TESTIMONIALS SECTION
   ============================================== */

.testimonials-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 20px;
    margin: 60px 0;
}

.testimonials-section h3 {
    text-align: center;
    color: white;
    font-size: 2.2em;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease;
}

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

.quote-icon {
    font-size: 4em;
    color: #FFE66D;
    line-height: 0.5;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}

.testimonial-text {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-author {
    color: #666;
    font-size: 0.95em;
    font-weight: bold;
    text-align: right;
}

/* ==============================================
   COMING SOON SECTION
   ============================================== */

.coming-soon {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 20px;
    margin-top: 40px;
}

.coming-soon h3 {
    color: #2D3561;
    font-size: 2em;
    margin-bottom: 30px;
}

.future-books {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.future-book {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ==============================================
   ABOUT SECTION
   ============================================== */

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: #f8f9fa;
    border-radius: 30px;
}

.author-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.about-content h3 {
    color: #2D3561;
    font-size: 2em;
    margin-bottom: 20px;
}

.author-bio {
    color: #666;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

.author-quote {
    background: white;
    padding: 30px;
    border-left: 5px solid #FFD93D;
    border-radius: 10px;
    margin-top: 30px;
    font-style: italic;
}

.author-quote span {
    display: block;
    margin-top: 15px;
    color: #2D3561;
    font-weight: bold;
}

/* ==============================================
   NEWSLETTER
   ============================================== */

.newsletter {
    background: #2D3561;
    color: white;
    text-align: center;
    padding: 80px 60px;
    border-radius: 30px;
    margin: 60px 0;
}

.newsletter h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
}

.newsletter-form button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #FFE66D, #FF9770);
    color: #2D3561;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 230, 109, 0.4);
}

.privacy-note {
    font-size: 0.9em;
    opacity: 0.7;
}

/* ==============================================
   FOOTER
   ============================================== */

footer {
    background: #2D3561;
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #FFD93D;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: #FFD93D;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFD93D;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
    font-size: 0.95em;
}

.copyright p {
    margin: 5px 0;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .book-showcase {
        grid-template-columns: 1fr;
        padding: 50px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
}

/* ==============================================
   GLUCO PLACEHOLDER (for characters without images yet)
   ============================================== */

.gluco-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #FFE66D 0%, #FFD93D 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.gluco-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.gluco-icon {
    font-size: 120px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ==============================================
   CONTACT INFO IN NEWSLETTER
   ============================================== */

.contact-info {
    margin-top: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: #FFD93D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

/* ==============================================
   SOCIAL MEDIA ICONS
   ============================================== */

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.social-links a:hover {
    background: #FF9770;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 151, 112, 0.4);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero-subtitle {
        font-size: 1.3em;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .heroes-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .book-features {
        grid-template-columns: 1fr;
    }
    
    .newsletter {
        padding: 50px 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}
