/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1593640408182-31c70c8268f5?ixlib=rb-4.0.1&auto=format&fit=crop&w=1200&q=80'); /* Placeholder PC image */
    background-size: cover;
    background-position: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #6633FF; /* Your accent color */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #6633FF; /* Your accent color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #5522DD;
}

.button.secondary {
    background-color: transparent;
    border: 2px solid #6633FF;
    color: #6633FF;
}

.button.secondary:hover {
    background-color: #6633FF;
    color: white;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 80px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #222;
}

section p {
    max-width: 700px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
}

.story {
    background-color: white;
}

.product {
    background-color: #f8f8f8;
}

/* Product Card */
.product-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    margin-bottom: 20px;
    border-radius: 5px;
    /* You can replace this with an actual image later using: background: url('your-image.jpg') center/cover; */
}

/* Signup Section */
.signup {
    background-color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #222;
    color: white;
}

footer a {
    color: #6633FF;
}

.logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

/* Enhanced Fixed Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.shrink {
    padding: 6px 0;
    background: rgba(26, 26, 26, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 100px;
    width: auto;
    max-width: 220px;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.2);
}

.site-header.shrink .header-logo-img {
    height: 80px;
}

.header-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.3) drop-shadow(0 0 8px rgba(102, 51, 255, 0.3));
}

/* Navigation Menu */
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav a:hover {
    color: #8C6EFF;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8C6EFF; /* Fixed typo - was #8C6EFFF */
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff; /* Fixed missing semicolon */
    padding: 5px;
}

.theme-toggle:hover {
    background: #8C6EFF;
    transform: scale(1.1);
}

/* Mobile Menu Toggle - FIXED: Always visible white lines */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff; /* Always white on dark header */
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Scroll Progress */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #8C6EFF, #6633FF);
    transition: width 0.3s ease;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #6633FF;
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1001;
    transition: top 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: -2px;
}

/* Push content down to account for fixed header */
body {
    padding-top: 70px;
}

/* Complete Dark Mode Fixes */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --accent-color: #8c6eff;
    --header-bg: rgba(26, 26, 26, 0.98);
    --border-color: #444;
    --button-text: #ffffff;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .story {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .product {
    background-color: var(--bg-color);
}

[data-theme="dark"] .product-card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .signup {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] footer {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .hero {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1593640408182-31c70c8268f5?ixlib=rb-4.0.1&auto=format&fit=crop&w=1200&q=80');
    color: var(--text-color);
}

/* Fixed Button Colors for Dark Mode */
[data-theme="dark"] .button {
    background-color: var(--accent-color);
    color: var(--button-text) !important;
}

[data-theme="dark"] .button.secondary {
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
    background-color: transparent;
}

[data-theme="dark"] .button.secondary:hover {
    background-color: var(--accent-color);
    color: var(--button-text) !important;
}

[data-theme="dark"] a {
    color: #ffffff;
}

[data-theme="dark"] a:hover {
    color: #8C6EFF;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
    color: var(--text-color);
}

[data-theme="dark"] p {
    color: var(--text-color);
}

[data-theme="dark"] .tagline {
    color: var(--accent-color);
}

[data-theme="dark"] .ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input {
    background-color: var(--card-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--accent-color) !important;
}

[data-theme="dark"] .ml-form-embedContainer .ml-form-embedBody .ml-form-embedSubmit button {
    background: var(--accent-color) !important;
    color: var(--button-text) !important;
}

/* MailerLite Form Styling */
.ml-form-embedContainer {
    max-width: 400px;
    margin: 0 auto;
}

.ml-form-embedContainer .ml-form-embedWrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ml-form-embedContainer .ml-form-embedBody .ml-form-fieldRow input {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    border: 2px solid #6633FF !important;
    border-radius: 8px !important;
    background: white !important;
    margin-bottom: 15px !important;
}

.ml-form-embedContainer .ml-form-embedBody .ml-form-embedSubmit button {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    background: #6633FF !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.ml-form-embedContainer .ml-form-embedBody .ml-form-embedSubmit button:hover {
    background: #5522DD !important;
}

.ml-form-recaptcha {
    margin: 15px 0;
    transform: scale(0.9);
    transform-origin: 0 0;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: 0 0;
}


/* Policy Page Styling */
.policy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.policy-container h1 {
    color: #6633FF;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

/* iubenda Embed Styling */
.iubenda-embed {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.6;
}    

[data-theme="dark"] .policy-container h1 {
    color: #8C6EFF;
    border-bottom-color: #8C6EFF;
}



[data-theme="dark"] .iubenda-embed {
    background: var(--card-bg);
    color: var(--text-color);
}

/* Remove the widget banner if it appears */
.iubenda-embed-banner {
    display: none !important;
}
/* Policy Page Styling */
.policy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.policy-container h1 {
    color: #6633FF;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #6633FF;
    padding-bottom: 15px;
}

/* iubenda Cookie Banner Styling */
.iubenda-consent-ui, 
.iucs-consent-ui,
.iubenda-cs-container {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid #444 !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3) !important;
    color: #ffffff !important;
    font-family: 'Arial', sans-serif !important;
}

/* Banner text */
.iubenda-consent-ui .iubenda-consent-content,
.iucs-consent-ui .iucs-consent-content {
    color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Buttons */
.iubenda-consent-ui .iubenda-consent-btn,
.iucs-consent-ui .iucs-consent-btn,
.iubenda-cs-btn {
    background: #6633FF !important;
    border: 2px solid #6633FF !important;
    border-radius: 5px !important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
}

.iubenda-consent-ui .iubenda-consent-btn:hover,
.iucs-consent-ui .iucs-consent-btn:hover,
.iubenda-cs-btn:hover {
    background: #5522DD !important;
    transform: scale(1.05) !important;
}

/* Secondary buttons */
.iubenda-consent-ui .iubenda-consent-btn.iubenda-consent-btn-secondary,
.iucs-consent-ui .iucs-consent-btn.iucs-consent-btn-secondary {
    background: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.iubenda-consent-ui .iubenda-consent-btn.iubenda-consent-btn-secondary:hover,
.iucs-consent-ui .iucs-consent-btn.iucs-consent-btn-secondary:hover {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Links */
.iubenda-consent-ui a,
.iucs-consent-ui a,
.iubenda-cs-container a {
    color: #8C6EFF !important;
    text-decoration: none !important;
}

.iubenda-consent-ui a:hover,
.iucs-consent-ui a:hover,
.iubenda-cs-container a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Close button */
.iubenda-consent-ui .iubenda-consent-close,
.iucs-consent-ui .iucs-consent-close {
    color: #ffffff !important;
    opacity: 0.8 !important;
}

.iubenda-consent-ui .iubenda-consent-close:hover,
.iucs-consent-ui .iucs-consent-close:hover {
    opacity: 1 !important;
}

/* Banner positioning */
.iubenda-cs-bottom,
.iubenda-cs-rationale {
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-width: 90% !important;
    width: 600px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .iubenda-cs-bottom,
    .iubenda-cs-rationale {
        width: 95% !important;
        bottom: 10px !important;
    }
    
    .iubenda-consent-ui .iubenda-consent-btn,
    .iucs-consent-ui .iucs-consent-btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* Dark mode support */
[data-theme="dark"] .iubenda-consent-ui,
[data-theme="dark"] .iucs-consent-ui {
    background: rgba(26, 26, 26, 0.98) !important;
    border-color: #444 !important;
}

/* Policy Page Styling */
.policy-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.policy-container h1 {
    color: #6633FF;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 2px solid #6633FF;
    padding-bottom: 15px;
}

[data-theme="dark"] .policy-container h1 {
    color: #8C6EFF;
    border-bottom-color: #8C6EFF;
}

/* iubenda Embed Styling */
.iubenda-embed {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.6;
}

[data-theme="dark"] .iubenda-embed {
    background: var(--card-bg);
    color: var(--text-color);
}
/* Make the form responsive */
@media (max-width: 768px) {
    .ml-form-embedContainer {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* For mobile */
@media (max-width: 768px) {
    .logo {
        max-width: 200px;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        display: block;
        width: 100%;
        max-width: 250px;
    }

    .hero .button {
        display: block;
        margin: 0 auto;
        text-align: center;
        max-width: 250px;
    }
    
    .hero {
        text-align: center;
    }

    /* Mobile Navigation Fixes - FIXED hamburger visibility */
    .mobile-menu-toggle {
        display: flex !important; /* Force show on mobile */
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 998;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav a {
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid #444;
        margin: 0;
        color: #ffffff;
    }

    .header-nav a::after {
        display: none;
    }

    .header-nav .theme-toggle {
        margin-top: 2rem;
        align-self: center;
        order: 5; /* Ensure it comes after nav links */
    }
    .header-logo-img {
        height: 80px
    }
    .site-header.shrink .header-logo-img {
        height: 60px;
    }

    /* REMOVED conflicting mobile theme toggle styles since we don't have one in HTML */
    /*
    .theme-toggle.mobile-menu-version {
        position: static;
        margin-top: 2rem;
        margin-left: 0;
        align-self: center;
        border-color: #ffffff;
        color: #ffffff;
    }
    */

    /* Mobile menu toggle styling - REMOVED conflicting color rule */
    .mobile-menu-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    /* REMOVED this conflicting rule that was overriding the white color */
    /*
    .mobile-menu-toggle span {
        background: var(--text-color);
    }
    */

    /* Hamburger animation when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Adjust header for mobile */
    .header-actions {
        gap: 10px;
    }

    /* Show desktop theme toggle on mobile since we don't have mobile version */
    .header-actions .theme-toggle {
        display: flex !important; /* Changed from 'none' to 'flex' 
    } 
    
}

/* Desktop Styles */
@media (min-width: 769px) {
    /* Ensure logo and theme toggle are vertically aligned */
    .header-logo,
    .header-nav,
    .header-actions {
        display: flex;
        align-items: center;
        height: 100%;
    }

    /* Position the navigation to take available space and push theme toggle right */
    .header-nav {
        flex: 1; /* Take available space */
        justify-content: flex-end; /* Push nav items to the right */
        margin-right: 2rem; /* Add some space between nav and theme toggle */
    }

    .theme-toggle {
        margin-left: 0; /* Remove left margin since it's on the right now */
    }

    /* Hide mobile theme toggle on desktop */
    .theme-toggle.mobile-menu-version {
        display: none !important;
    }
}
        
/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid #6633FF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .button {
        border: 2px solid;
    }
    
    .header-nav a::after {
        height: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero .button,
    .theme-toggle,
    .header-logo-img {
        transition: none;
    }
}

