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

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    /* Default gradient background for non-home pages */
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.88), rgba(0, 0, 0, 0.95));
}

/* Home page specific styles - clear background for visualizer */
body.home {
    background: none;
}

/* Backup background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show backup background only when visualizer fails */
body.visualizer-failed::before {
    opacity: 1;
}

/* Canvas positioning */
#visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Ensure content stays above backgrounds */
.content {
    position: relative;
    z-index: 1;
}

/* Hide backup background when visualizer is working */
body:not(.visualizer-failed) #visualizer {
    opacity: 1;
}

body:not(.visualizer-failed)::before {
    opacity: 0;
}

/* Content Styles */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 100px);
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #8a7bf4 0%, #4834b8 100%);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 52, 184, 0.3);
}

.btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 52, 184, 0.5);
}

.btn:active {
    transform: scale(0.98) translateY(0);
}

/* Drawer Styles */
.bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    transform: translateY(calc(100% - 50px));
}

.bottom-drawer.open {
    transform: translateY(0);
}

.drawer-tab {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.drawer-icon {
    transition: transform 0.3s ease;
}

.open .drawer-icon {
    transform: rotate(180deg);
}

.drawer-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.drawer-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-section h3 {
    color: #8a7bf4;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.drawer-section a {
    color: #fff;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.drawer-section a:hover {
    background: rgba(138, 123, 244, 0.1);
}

/* Coming Soon Styles */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(138, 123, 244, 0.1);
    border-radius: 12px;
    margin: 2rem 0;
}

.coming-soon p {
    margin: 1rem 0;
    color: #fff;
}

.coming-soon a {
    color: #8a7bf4;
    text-decoration: none;
}

.coming-soon a:hover {
    text-decoration: underline;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .drawer-menu {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Social Links */
.social-proof {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-link {
    color: #8a7bf4;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #8a7bf4;
    transition: width 0.3s ease;
}

.social-link:hover {
    color: #fff;
}

/* Media query update */
@media screen and (max-width: 768px) {
    .social-proof {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
}

/* Service Description Box */
.service-description {
    text-align: left;
    background: rgba(138, 123, 244, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem auto;
    border: 1px solid rgba(138, 123, 244, 0.3);
    max-width: 600px;
}

.service-description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #8a7bf4;
}

.service-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-description p:last-child {
    margin-bottom: 0;
}

/* Media query update */
@media screen and (max-width: 768px) {
    .service-description {
        margin: 1.5rem 1rem;
        padding: 1.25rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 1rem 0;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: rgba(138, 123, 244, 0.05);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: rgba(138, 123, 244, 0.5);
}

.breadcrumb-link {
    color: rgba(138, 123, 244, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #8a7bf4;
    text-decoration: none;
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 768px) {
    .breadcrumb-nav {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Guide Navigation */
.guide-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(138, 123, 244, 0.3);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8a7bf4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #fff;
}

.keyboard-hint {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(138, 123, 244, 0.2);
    border-radius: 4px;
    font-size: 0.8em;
    margin: 0 4px;
}

@media (hover: none) {
    .keyboard-hint {
        display: none;
    }
}

/* Guide Navigation - Add mobile responsiveness */
@media screen and (max-width: 768px) {
    .guide-navigation {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
}

/* Base CTA Box Styles */
.cta-box {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin: 3rem auto;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 123, 244, 0.2);
}

/* Optional: Background zoom on hover */
.cta-box:hover .cta-bg {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Overlay gradient that works with any background */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(44, 62, 80, 0.85), 
        rgba(0, 0, 0, 0.95)
    );
    z-index: -1;
}

/* Background image container */
.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.cta-box h2 {
    color: #8a7bf4;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
}

.photo-credits {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.photo-credits a {
    color: #8a7bf4;
    text-decoration: none;
}

.photo-credits a:hover {
    text-decoration: underline;
}

/* Add these styles to your main.css */
.privacy-banner {
    position: relative;
    background: rgba(138, 123, 244, 0.1);
    border-bottom: 1px solid rgba(138, 123, 244, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    transition: transform 0.3s ease-out;
}

.privacy-banner.dismissed {
    transform: translateY(-100%);
}

.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.privacy-text {
    flex: 1;
}

.privacy-link {
    color: #8a7bf4;
    text-decoration: none;
    font-weight: 500;
}

.privacy-link:hover {
    text-decoration: underline;
}

.privacy-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.privacy-dismiss:hover {
    color: rgba(255, 255, 255, 0.9);
}

.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.fallback-bg {
    opacity: 0;
    z-index: -1;
    display: none; /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show backup background only when visualizer fails */
body.visualizer-failed::before {
    opacity: 1;
}

body.visualizer-failed .fallback-bg {
    display: block;
    opacity: 0.15;
}

/* Hide backup background when visualizer is working */
body:not(.visualizer-failed) #visualizer {
    opacity: 1;
}

body:not(.visualizer-failed)::before,
body:not(.visualizer-failed) .fallback-bg {
    opacity: 0;
} 