/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors */
    --bg-color: #4B1D3F;
    --text-color: #D6C1E8;
    --text-dim: rgba(214, 193, 232, 0.7);
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(214, 193, 232, 0.05);
    --glass-border: rgba(214, 193, 232, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Gradients */
    --gradient-1: #9d4edd;
    --gradient-2: #ff006e;
    
    /* Spacing */
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   2. LIQUID BACKGROUND & ANIMATION
   ========================================= */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-bounce 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #742a63;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #3c096c;
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #5a189a;
    animation-delay: -10s;
    opacity: 0.4;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    opacity: 0.4;
}

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 50px) scale(1.1); }
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(75, 29, 63, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-icon i {
    color: var(--text-color);
    text-shadow: 0 0 15px var(--text-color);
}

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

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--text-color);
}

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

.btn-nav {
    padding: 8px 24px;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--text-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(214, 193, 232, 0.4);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.creator-tag {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    text-shadow: 0 0 30px rgba(214, 193, 232, 0.2);
}

/* Glitch Effect CSS */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px); }
    100% { clip-path: inset(10% 0 50% 0); transform: translate(-2px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px); }
    20% { clip-path: inset(80% 0 5% 0); transform: translate(-2px); }
    100% { clip-path: inset(30% 0 20% 0); transform: translate(2px); }
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Button Ripple & Liquid Effect */
.cta-wrapper {
    display: flex;
    gap: 20px;
}

.btn-primary {
    position: relative;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn-primary .liquid {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--text-color);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, .5);
    transition: .5s;
    z-index: -1;
    transform: translateY(160px);
}

.btn-primary:hover .liquid {
    transform: translateY(0);
}

.btn-primary:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--text-color);
}

.btn-secondary {
    padding: 15px 40px;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--text-color);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.visual-card {
    width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    background: rgba(255, 255, 255, 0.03);
}

.big-icon {
    font-size: 8rem;
    background: linear-gradient(to bottom, var(--text-color), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(214, 193, 232, 0.4));
}

.floating-badge {
    position: absolute;
    padding: 10px 20px;
    background: rgba(75, 29, 63, 0.8);
    border: 1px solid var(--text-color);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

.badge-1 {
    top: 40px;
    right: -30px;
    transform: translateZ(40px);
}

.badge-2 {
    bottom: 60px;
    left: -40px;
    animation-delay: 3s;
    transform: translateZ(60px);
}

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

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 100px 0;
}

.glass-panel {
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-dim);
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.check-list i {
    color: var(--text-color);
    background: rgba(214, 193, 232, 0.1);
    padding: 5px;
    border-radius: 50%;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(214, 193, 232, 0.1);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
}

/* =========================================
   7. FEATURES SECTION
   ========================================= */
.features-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.underline-glow {
    width: 60%;
    height: 4px;
    background: var(--text-color);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--text-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(214, 193, 232, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(214, 193, 232, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-dim);
}

/* =========================================
   8. CTA & FOOTER
   ========================================= */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    padding: 80px;
    position: relative;
}

.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, var(--text-color), transparent);
    z-index: -1;
    border-radius: 22px;
    filter: blur(10px);
    opacity: 0.5;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    margin-bottom: 40px;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.main-footer {
    padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

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

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(360deg);
    box-shadow: 0 0 15px var(--text-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* =========================================
   9. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .visual-card {
        width: 280px;
        height: 380px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .check-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(75, 29, 63, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }

    .hero-section {
        padding-top: 100px;
    }

    .hero-section .container {
        flex-direction: column-reverse;
        gap: 60px;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtext {
        margin: 0 auto 2.5rem;
    }
    
    .cta-wrapper {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .visual-card {
        width: 100%;
        max-width: 320px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
}

/* =========================================
   10. MOBILE & RESPONSIVE FIXES (ADDON)
   ========================================= */

/* 1. Global Overflow Fix - Prevents side-scrolling */
html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* 2. Typography Scaling (Using Clamp for fluid sizing) */
.hero-content h1 {
    /* Resizes smoothly between 2.5rem and 4.5rem based on screen width */
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.about-text h2, .cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

/* 3. Small Mobile Devices (Phones under 576px) */
@media (max-width: 576px) {
    
    /* Layout Adjustments */
    .container {
        padding: 0 15px; /* Reduce padding to give content more room */
    }

    .hero-section {
        padding-top: 120px; /* More space for the fixed nav */
        min-height: auto;
        padding-bottom: 60px;
    }

    /* Hero Text alignment */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-subtext {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Fix Buttons - Stack them on small screens */
    .cta-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Full width buttons for easier tapping */
        padding: 12px 20px;
        display: block;
        text-align: center;
    }

    /* Fix the Visual 3D Card */
    .visual-card {
        width: 100%;
        max-width: 300px; /* Ensure it fits within 320px screens */
        height: 380px; /* Reduce height */
    }

    .big-icon {
        font-size: 6rem; /* Smaller icon */
    }

    /* Adjust Floating Badges */
    .badge-1 {
        right: -10px;
        top: 20px;
        font-size: 0.8rem;
    }
    .badge-2 {
        left: -10px;
        bottom: 40px;
        font-size: 0.8rem;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .glass-panel {
        padding: 30px 20px; /* Reduce padding inside glass box */
    }

    .about-stats {
        grid-template-columns: 1fr; /* Stack stats vertically */
    }

    /* Footer adjustments */
    .main-footer {
        padding: 40px 0 20px;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 4. Navigation Bar Fixes */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 15px;
    }

    .logo {
        font-size: 1.2rem;
        z-index: 1001; /* Ensure logo stays above menu */
    }

    .nav-links {
        /* Ensure the mobile menu covers the whole screen comfortably */
        width: 100%;
        height: 100vh;
        top: 0;
        background: rgba(75, 29, 63, 0.98); /* Less transparent for readability */
        padding-top: 100px;
        justify-content: flex-start;
        gap: 2.5rem;
    }
    
    .mobile-menu-toggle {
        z-index: 1001; /* Ensure toggle button stays above menu */
    }
}
