/* --- FULL PAGE SCROLL SNAPPING (DESKTOP ONLY) --- */

/* Typography Overrides */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d !important; /* Extremely dark grey, not pure black */
    padding-top: 40px;
}

/* --- SCROLL SNAP OVERRIDE FOR TEXT PAGES --- */
html.disable-scroll-snapping {
    scroll-snap-type: none !important;
    overflow-y: auto !important;
    height: auto !important;
}

html.disable-scroll-snapping body {
    height: auto !important;
    overflow-y: visible !important;
}

@media (min-width: 992px) {
    html {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        height: 100vh;
        overflow-y: scroll;
    }
    
    body {
        height: 100vh;
        margin: 0;
    }
    
    /* 1. Main sections take up full screen and snap to the top */
    section, .hero-section {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 2. The Footer snaps to the BOTTOM and keeps its normal height */
    footer {
        scroll-snap-align: end;
        min-height: auto; /* Don't stretch to full screen */
    }
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}
.tracking-wide {
    letter-spacing: 2px;
}

/* Navbar Transitions */
.transition-all {
    transition: all 0.3s ease-in-out;
}
.navbar.bg-transparent {
    background-color: transparent !important;
}
.navbar.bg-black {
    background-color: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at 70% 30%, #1a1a24 0%, #0d0d0d 60%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Creates a permanent buffer for the fixed navbar */
    padding-bottom: 40px;
}
/* --- Page Load Animations --- */

/* Hero Text Fade-Up */
@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.hero-text-anim {
    opacity: 0; /* Start hidden */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Navbar Brand Animation on Load */
@keyframes rollInNavbar {
    from {
        transform: translateX(40px) rotate(-90deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes fadeInNavbarText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.navbar-logo-anim {
    opacity: 0; /* Start hidden */
    animation: rollInNavbar 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}
.navbar-text-anim {
    opacity: 0; /* Start hidden */
    animation: fadeInNavbarText 0.6s ease-out 1.1s forwards; /* Delay to start after logo is nearly done */
}

/* Animations & Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2) !important;
}
.hover-lift-subtle {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.hover-lift-subtle:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.5) !important;
}

.blur-glow {
    filter: blur(100px);
    opacity: 0.15;
}

.bg-gradient-dark {
    background: linear-gradient(180deg, rgba(30,30,30,0.5) 0%, rgba(15,15,15,0.5) 100%);
}

/* Bouncing scroll arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
.bounce-anim {
    animation: bounce 2s infinite;
}
/* Helper Classes */
.hover-opacity-100 {
    transition: opacity 0.2s ease;
}
.hover-opacity-100:hover {
    opacity: 1 !important;
}

/* 1. The Wrapper (Creates the boundary) */
.magic-button-wrapper {
    position: relative;
    display: inline-block;
    padding: 3px; /* This padding IS the thickness of your rainbow border! */
    border-radius: 50px; /* Match your button's pill shape */
    overflow: hidden; /* Hides the corners of the spinning background */
}

/* 2. The Spinning Rainbow Background (The pseudo-element) */
.magic-button-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    /* The Google-style AI gradient */
    background: conic-gradient(
        transparent, 
        rgba(168, 239, 255, 1), 
        rgba(66, 133, 244, 1), 
        rgba(234, 67, 53, 1), 
        rgba(251, 188, 5, 1), 
        rgba(52, 168, 83, 1), 
        transparent 30%
    );
    
    /* The spin animation */
    animation: spin-gradient 4s linear infinite;
    z-index: -1; /* Pushes it behind the button */
}

/* 3. The Actual Button */
.magic-button {
    position: relative;
    display: block;
    background-color: #1a1a1a; /* Dark background to match your site */
    color: white;
    font-weight: bold;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 1;
    transition: background-color 0.2s ease;
}

/* Hover effect for the inner button */
.magic-button:hover {
    background-color: #2a2a2a;
    color: white;
}

/* 4. The Keyframe Animation */
@keyframes spin-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

    .scanner-beam {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: rgba(168, 239, 255, 1);
        box-shadow: 0 0 15px 5px rgba(168, 239, 255, 0.5);
        animation: scan-vertical 3s ease-in-out infinite alternate;
        z-index: 10;
    }
    @keyframes scan-vertical {
        0% { top: 5%; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 95%; opacity: 0; }
    }
    .scanner-frame {
        border: 2px solid rgba(168, 239, 255, 0.3);
        border-radius: 1rem;
        position: relative;
        overflow: hidden;
        background: #111;
    }
    /* Responsive heights for UI mockups to prevent severe mobile cropping */
.mockup-frame {
    height: 400px;
}
@media (max-width: 991px) {
    .mockup-frame {
        height: 250px; 
    }
}