/* ==========================================================================
   CSS Variables & Global Reset
   ========================================================================== */
   :root {
    --bg-dark: #050508;
    --card-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-purple: #9b51e0;
    --text-main: #ffffff;
    --text-muted: #8b92a5;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==========================================================================
   Advanced 3D Background Effects
   ========================================================================== */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out alternate;
}

.orb-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.orb-2 {
    top: 50%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

/* ==========================================================================
   Utility Classes (Premium Glassmorphism)
   ========================================================================== */
.glass {
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    transform-style: preserve-3d;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.pulse-btn {
    box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(79, 172, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); }
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-purple));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(155, 81, 224, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-main);
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.1);
}

/* ==========================================================================
   Hero Section & 3D Mockup
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 50px 5%;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 10;
}

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.3d-text {
    display: block;
    margin-top: 10px;
}

.glow-text {
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 400;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 3D Dashboard Mockup Elements */
.hero-3d-visual {
    flex: 1;
    max-width: 600px;
    perspective: 1500px;
    opacity: 0;
    transform: translateX(50px) rotateY(-15deg) rotateX(10deg);
    transition: all 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.hero-3d-visual.visible {
    opacity: 1;
    transform: translateX(0) rotateY(-15deg) rotateX(10deg);
}

.dashboard-mockup {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8), 0 0 30px rgba(0, 242, 254, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.mockup-header {
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transform: translateZ(1px);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    display: flex;
    flex: 1;
    transform-style: preserve-3d;
}

.mockup-sidebar {
    width: 80px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom-left-radius: 12px;
    transform: translateZ(1px);
}

.mockup-main {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform-style: preserve-3d;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 4px;
    transform: translateZ(20px);
}

.skeleton-text {
    height: 12px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    transform: translateZ(10px);
}
.skeleton-text.short { width: 80%; }

.mockup-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.95rem;
    color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 10px rgba(0, 242, 254, 0.1);
    transform: translateZ(60px); /* Extreme 3D POP OUT */
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   Features Section with 3D Tilt Cards
   ========================================================================== */
.features-section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
}

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

.feature-card {
    padding: 40px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:nth-child(odd) {
    transform: translateX(-100px) translateY(50px);
}

.feature-card:nth-child(even) {
    transform: translateX(100px) translateY(50px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Stagger animation delays for cards */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.3s; }
.feature-card:nth-child(3) { transition-delay: 0.5s; }
.feature-card:nth-child(4) { transition-delay: 0.7s; }
.feature-card:nth-child(5) { transition-delay: 0.9s; }
.feature-card:nth-child(6) { transition-delay: 1.1s; }

.card-inner {
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 15px rgba(255,255,255,0.05);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.6), 0 0 40px rgba(155, 81, 224, 0.4);
    animation: floatingIcon 4s ease-in-out infinite;
}

@keyframes floatingIcon {
    0% { transform: translateZ(50px) translateY(0); }
    50% { transform: translateZ(50px) translateY(-5px); }
    100% { transform: translateZ(50px) translateY(0); }
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 100px;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .hero-3d-visual {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .cta-group .btn { width: 100%; }
    footer { flex-direction: column; text-align: center; }
}
