/* Apna Study AI - Premium Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-purple: #8B5CF6;
    --primary-indigo: #6366F1;
    --gradient-start: #A855F7;
    --gradient-end: #6366F1;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(139, 92, 246, 0.15);
    --shadow-medium: 0 20px 60px rgba(139, 92, 246, 0.2);

    /* Light Mode Texts */
    --text-main: #1a1a2e;
    --text-muted: #4a4a6a;
    --bg-main: #FAFAFA;
    --card-bg: white;
}

/* Cyberpunk Neon Dark Mode */
html.dark {
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(139, 92, 246, 0.3);
    --shadow-soft: 0 8px 32px rgba(139, 92, 246, 0.2);
    --shadow-medium: 0 20px 60px rgba(139, 92, 246, 0.4);
}

html.dark body {
    background: var(--bg-main);
    color: var(--text-main);
}

html.dark .navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

html.dark .nav-links a {
    color: var(--text-muted);
}

html.dark .nav-links a:hover,
html.dark .nav-links a.active {
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

html.dark .feature-card,
html.dark .glass-card,
html.dark .chatbot-window,
html.dark .chatbot-input-area {
    background: var(--card-bg);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

html.dark .section-title {
    color: white;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

html.dark .section-subtitle {
    color: var(--text-muted);
}

html.dark .chatbot-input {
    color: white;
}

html.dark .chatbot-input-container {
    background: #0f172a;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

html.dark .text-gray-900 {
    color: white !important;
}

html.dark .text-gray-600,
html.dark .text-gray-500 {
    color: #cbd5e1 !important;
}

html.dark .bg-white {
    background-color: #1e293b !important;
}

html.dark .nav-logo {
    color: white;
}

html.dark .footer-column h4 {
    color: white;
}

html.dark .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Comprehensive Dark Mode Overrides */
html.dark .gradient-bg {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 1) 0%,
            rgba(30, 27, 75, 1) 50%,
            rgba(15, 23, 42, 1) 100%);
}

html.dark .blob {
    opacity: 0.15;
    filter: blur(100px);
}

html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-gray-600 {
    color: #cbd5e1 !important;
}

html.dark .text-gray-500,
html.dark .text-gray-400 {
    color: #94a3b8 !important;
}

html.dark .bg-gray-50,
html.dark .bg-gray-100 {
    background-color: #1e293b !important;
}

html.dark .bg-white\/80 {
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fix Input Fields in Dark Mode */
html.dark .form-input {
    background: #0f172a;
    border-color: #334155;
    color: white;
}

html.dark .form-input:focus {
    border-color: var(--primary-purple);
}

/* Fix Mobile Menu in Dark Mode */
html.dark .mobile-menu-btn span {
    background: white;
}

html.dark .nav-links {
    background: #0f172a;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

html.dark .nav-links a {
    border-bottom-color: rgba(255,255,255,0.05);
}

html.dark .nav-overlay {
    z-index: 998;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FAFAFA;
    color: #1a1a2e;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #4a4a6a;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-purple);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #1a1a2e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* Gradient Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary-purple);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* Section Styles */
.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1a1a2e, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6a6a8a;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 240px;
    height: 500px;
    background: linear-gradient(145deg, #1a1a2e, #2d2d4a);
    border-radius: 50px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.3),
        0 25px 50px rgba(139, 92, 246, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #0a0a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    color: white;
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
}

.footer-brand p {
    color: #8a8ab0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.footer-social a:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

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

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: #8a8ab0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--primary-purple);
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6a6a8a;
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Feature Card */
.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

.feature-card p {
    color: #6a6a8a;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

/* Mobile Menu Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .phone-mockup {
        width: 170px;
        height: 360px;
        border-radius: 40px;
    }

    .phone-mockup::before {
        width: 80px;
        height: 20px;
    }

    /* Fix hero layout on mobile */
    section.relative.min-h-screen {
        padding-top: 80px !important;
    }
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg,
            rgba(168, 85, 247, 0.05) 0%,
            rgba(99, 102, 241, 0.08) 50%,
            rgba(168, 85, 247, 0.03) 100%);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delay {
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

/* Blob Animation */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    75% {
        transform: translate(30px, 10px) scale(1.05);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob 15s ease-in-out infinite;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e5ea;
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

/* Grid Layouts */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-purple);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1a1a2e, var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1a1a2e;
}

.legal-content p {
    color: #4a4a6a;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    color: #4a4a6a;
    line-height: 1.9;
    margin-bottom: 0.5rem;
}

/* Banner Images Styles */
.banner-img {
    transition: transform 0.5s ease;
}

.banner-anim-1 {
    animation: float 8s ease-in-out infinite;
}

.banner-anim-2 {
    animation: float 10s ease-in-out infinite;
    animation-delay: -2s;
}

.banner-anim-3 {
    animation: float 12s ease-in-out infinite;
    animation-delay: -4s;
}

.banner-anim-4 {
    animation: float 9s ease-in-out infinite;
    animation-delay: -1s;
}

.banner-anim-5 {
    animation: float 11s ease-in-out infinite;
    animation-delay: -3s;
}

.banner-anim-6 {
    animation: float 13s ease-in-out infinite;
    animation-delay: -5s;
}

/* AI Chatbot Premium Widget */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'Inter', sans-serif;
}

.chatbot-button {
    width: 65px;
    height: 65px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.chatbot-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

.chatbot-button i {
    font-size: 28px;
    transition: all 0.3s ease;
}

.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    box-shadow: var(--shadow-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-close {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: messageSlide 0.3s ease forwards;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    background: var(--primary-purple);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot {
    align-self: flex-start;
    background: white;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chatbot-input-area {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-input-container {
    display: flex;
    gap: 10px;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 16px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.chatbot-send,
.chatbot-image-btn {
    cursor: pointer;
    color: var(--primary-purple);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.chatbot-send:hover,
.chatbot-image-btn:hover {
    color: var(--primary-indigo);
}

.message img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 8px;
    cursor: zoom-in;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1s infinite alternate;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 80px;
    }
}

/* Ultra Advanced Splash Screen Animations */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes blob {
    0% {
        transform: scale(1);
    }

    33% {
        transform: scale(1.1);
    }

    66% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

@keyframes reveal-text {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-reveal-text {
    animation: reveal-text 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes load-bar {
    0% {
        width: 0;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.animate-load-bar {
    animation: load-bar 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

@keyframes slide-out-up {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 1;
    }
}

/* Magic Mouse Cursor */
@media (pointer: fine) {
    body {
        cursor: none;
        /* Hide default cursor */
    }

    .cursor-dot {
        width: 10px;
        height: 10px;
        background: white;
        mix-blend-mode: difference;
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 10001;
        pointer-events: none;
        transition: width 0.3s ease, height 0.3s ease;
    }

    .cursor-dot.hover-active {
        width: 80px;
        height: 80px;
        background: white;
    }

    .cursor-outline {
        width: 35px;
        height: 35px;
        border: 2px solid rgba(139, 92, 246, 0.5);
        position: fixed;
        top: 0;
        left: 0;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        z-index: 10001;
        pointer-events: none;
        transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    }

    .cursor-outline.hover-active {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }

    /* Ensure links also hide cursor */
    a,
    button,
    input,
    textarea {
        cursor: none;
    }
}

/* Live Demo Section */
.scanning {
    position: relative;
    overflow: hidden;
}

.scanning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    animation: scan 1.5s linear infinite;
}

@keyframes scan {
    0% {
        left: -20%;
    }

    100% {
        left: 120%;
    }
}

.confetti-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.demo-status {
    height: 24px;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-status.visible {
    opacity: 1;
}


/* Voice Navigation (Jarvis) */
#voice-nav-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    /* Red like Iron Man/Jarvis */
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#voice-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.5);
}

#voice-nav-btn.listening {
    animation: pulse-ring 1.5s infinite;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

#voice-feedback {
    position: fixed;
    bottom: 170px;
    right: 30px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 9999;
}

/* AI Assistant (Formerly Voice Nav) */
#ai-assistant-btn {
    position: fixed;
    bottom: 100px;
    /* Above Chatbot */
    right: 30px;
    /* Right Side */
    width: 60px;
    height: 60px;
    background: #1a1a2e;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
    cursor: pointer;
    z-index: 9998;
    /* Below splash */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: visible;

    /* Initially Hidden */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Show only when splash is done */
body.loaded-success #ai-assistant-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#ai-assistant-btn .mic-icon {
    font-size: 2rem;
    color: white;
    z-index: 2;
    transition: all 0.3s ease;
}

#ai-assistant-btn:hover {
    transform: scale(1.05);
    background: #2d2d4a;
}

/* Listening State - Blue/Purple Pulse */
#ai-assistant-btn.active {
    border-color: #3b82f6;
    animation: pulse-blue 2s infinite;
}

#ai-assistant-btn.active .mic-icon {
    color: #60a5fa;
}

/* Speaking State - Green/Purple Wave */
#ai-assistant-btn.speaking {
    border-color: #10b981;
    animation: pulse-green 1.5s infinite;
}

#ai-assistant-btn.speaking .mic-icon {
    color: #34d399;
    animation: bounce 1s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

#ai-status-box {
    position: fixed;
    bottom: 170px;
    /* Above Button */
    right: 30px;
    /* Right Side */
    /* Aligned with button on Right */
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px 16px 4px 16px;
    font-size: 0.95rem;
    max-width: 300px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    line-height: 1.5;
}

#ai-status-box.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* Smooth Scroll for whole page */
html {
    scroll-behavior: smooth;
}

/* Typing Effect Cursor */
.is-typing::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #8b5cf6;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Dark Mode Overrides for New Hero */
html.dark .btn-secondary-lg {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

html.dark .btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Instagram Section */
.instagram-section {
    padding: 5rem 1rem;
    background: #fff;
    text-align: center;
    position: relative;
    z-index: 10;
}

.instagram-section h2 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #4c3d91;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

.instagram-section p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.insta-handle {
    color: #8b5cf6;
    font-weight: 700;
}

.insta-card-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.insta-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.10);
    overflow: hidden;
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-card:hover {
    transform: translateY(-8px);
}

.insta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
}

.insta-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.insta-user-img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50%;
    border: 2px solid #e1306c;
    padding: 2px;
    object-fit: cover;
}

.insta-user-info span {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    text-align: left;
}

.insta-user-info small {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    text-align: left;
}

.insta-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    max-height: 280px;
}

.insta-overlay-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    text-decoration: none;
}

.insta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.75rem;
}

.insta-left-actions {
    display: flex;
    gap: 1rem;
}

.insta-left-actions svg, .insta-right-action svg {
    width: 24px;
    height: 24px;
    color: #1e293b;
    cursor: pointer;
    transition: transform 0.2s;
}

.insta-left-actions svg:hover, .insta-right-action svg:hover {
    transform: scale(1.1);
}

.insta-caption {
    padding: 0 0.75rem 1rem;
    text-align: left;
}

.insta-caption p {
    font-size: 0.88rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.insta-caption strong {
    font-weight: 800;
}

.insta-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #a855f7, #ec4899);
    color: #fff;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
    transition: all 0.3s ease;
}

.insta-follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.45);
}

/* Mobile Instagram fixes */
@media (max-width: 640px) {
    .instagram-section {
        padding: 3rem 1rem;
    }
    .instagram-section h2 {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    .instagram-section > div > p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .insta-card {
        max-width: 320px;
        border-radius: 20px;
        padding: 0.5rem;
    }
    .insta-image-container {
        aspect-ratio: 16/9;
        min-height: 150px;
        max-height: 200px;
    }
    .insta-follow-btn {
        padding: 0.85rem 2rem;
        font-size: 0.95rem;
        margin-top: 1.25rem;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .insta-card {
        max-width: 95%;
    }
    .insta-image-container {
        max-height: 160px;
    }
}