:root {
    --bg: #0B0B0B;
    --card: #161618;
    --primary:  #915eff; /* Volt Lime */
    --text: #FFFFFF;
    --subtext: #888888;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* Update your existing nav style */
nav {
    padding: 20px 5%; /* Use percentage instead of fixed 50px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

.logo { font-size: 24px; font-weight: 100;  }
#n-logo { font-size: 26px; font-weight: 600;color: var(--primary)  }
#z-logo { font-size: 30px; font-weight: 900;color: var(--primary)  }

/* Navigation Desktop Styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

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

.menu-toggle {
    display: none; /* Hidden on desktop */
    font-size: 32px;
    cursor: pointer;
    color: var(--primary);
}

/* --- Mobile Menu Styles --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide desktop links */
    .menu-toggle { display: block; } /* Show hamburger */

    .mobile-overlay {
        position: fixed;
        top: 0;
        right: -100%; /* Start hidden off-screen */
        width: 100%;
        height: 100vh;
        background: var(--bg);
        z-index: 100;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-overlay.active {
        right: 0; /* Slide in */
    }

    .mobile-overlay a {
        font-size: 28px;
        color: #fff;
        text-decoration: none;
        font-weight: 700;
    }

    .close-menu {
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 40px;
        color: var(--primary);
    }
}

.hero {
    display: flex;
    padding: 100px 50px;
    align-items: center;
    min-height: 80vh;
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 64px; margin-bottom: 20px; line-height: 1.1; }
.highlight { color: var(--primary); }

.cta-btn {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.primary { background: var(--primary); color: #000; text-decoration: none}
.primary:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(196, 255, 97, 0.4); }
/* --- 3D Hero Visual Container --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; /* Essential for 3D depth */
    position: relative;
    padding: 50px;
}

/* The Phone Body - Applying the 3D structure */
.app-mockup {
    width: 290px;
    height: 600px;
    background: #0B0B0B; /* Match your app background */
    border: 10px solid #1A1A1E; /* Phone frame color */
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    padding: 10px;
    
    /* The 3D effect + strong dark-theme shadow */
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.8), 
        0 100px 200px rgba(0,0,0,0.5),
        0 0 50px rgba(196, 255, 97, 0.05); /* Slight Volt Lime glow */

    /* Initial 3D orientation: Tilt away from user */
    transform: rotateY(-18deg) rotateX(8deg) rotateZ(2deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth springy motion */
    
    transform-style: preserve-3d; /* Key for floating elements */
}

/* Face the user on hover */
.hero-visual:hover .app-mockup {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
}

/* Glass effect overlay for extra realism */
.app-mockup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    border-radius: 30px;
    pointer-events: none;
    z-index: 5;
}

/* --- Floating Content Elements ( preserve-3d) --- */

/* The Status Bar (Top) */
.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    padding: 10px 15px;
    color: #fff;
    transform: translateZ(20px); /* Float slightly above screen */
}

.screen-content {
    padding: 15px;
    transform: translateZ(10px); /* Main content layer */
    display: flex;
    flex-direction: column;
}

.greeting { font-size: 22px; font-weight: bold; margin: 20px 0; color: #fff; transform: translateZ(30px); }

/* The Sliding Quote Card (Glass Effect) */
.quote-card-mock {
    background: linear-gradient(145deg, rgba(26,26,30,0.8), rgba(11,11,11,0.8));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease;
    transform: translateZ(40px); /* Float higher than other content */
    backdrop-filter: blur(10px); /* Add blurring behind the "glass" */
    margin-bottom: 20px;
}

.quote-label { color: #C4FF61; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.quote-text { color: #fff; font-size: 14px; font-style: italic; margin-top: 5px; line-height: 1.4; }

/* The Dots (Pagination) */
.dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    transform: translateZ(20px);
}

.dot { width: 6px; height: 6px; border-radius: 3px; background: #333; }
.dot.active { background: #C4FF61; width: 16px; }

/* --- Financial Buckets Grid ( preserve-3d) --- */
.section-title { color: #888; font-size: 11px; font-weight: bold; margin: 10px 0 15px; text-transform: uppercase; transform: translateZ(20px); }
.bucket-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    transform: translateZ(30px);
}

.b-card {
    background: #1A1A1E;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 90px;
    transition: 0.3s;
}

.b-card:hover {
    transform: translateZ(50px) scale(1.05); /* Pop out even more on hover */
    border-color: rgba(196, 255, 97, 0.2);
}

.b-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.b-card span { font-size: 14px; font-weight: bold; color: #fff; margin-top: 10px; }

/* The FAB Button (Bottom Right) */
.fab-mock {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: #d8d8d8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #202020;
    font-size: 26px;
    transform: translateZ(60px); /* Float the highest */
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 10;
}
#features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 100px 50px;
}

.feature-card {
    background: var(--card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #222;
    transition: 0.3s;
}

.feature-card:hover { border-color: var(--primary); }
.feature-card ion-icon { font-size: 40px; margin-bottom: 20px; }
.icon-save { color: #3498db; }
.icon-expense { color: #e74c3c; }
.icon-invest { color: var(--primary); }
.pricing {
    padding: 100px 50px;
    text-align: center;
}

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

.price-card {
    background: var(--card);
    padding: 40px;
    border-radius: 28px;
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Make the Pro plan stand out */
.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: linear-gradient(145deg, #161618, #1c1c1e);
}

.price-card:hover {
    transform: translateY(-10px);
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin: 20px 0;
}

.price span { font-size: 18px; color: var(--subtext); }

.price-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
}

.price-card li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card li.disabled { color: var(--subtext); opacity: 0.5; }

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* mobile view */
/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    /* Stack Hero Content */
    .hero {
        flex-direction: column;
        padding: 60px 20px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 42px; /* Smaller text for mobile */
    }

    .hero-btns {
	display: flex;
	flex-direction: column;
	gap: 20px;
    }

    /* Remove 3D tilt for mobile - Keep it flat and readable */
    .hero-visual {
        margin-top: 50px;
        perspective: none; /* Turn off 3D depth */
        padding: 0;
    }

    .app-mockup {
        transform: rotateY(0) rotateX(0) rotateZ(0) scale(0.9); /* Reset tilt */
        width: 260px; /* Slightly narrower for small screens */
        height: 540px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5); /* Simpler shadow */
    }

    /* Optimize the Website Features Grid (the 3 column section) */
    #features {
        grid-template-columns: 1fr; /* Stack cards vertically */
        padding: 40px 20px;
    }

    .feature-card {
        padding: 30px;
    }

    /* Optimize the Pricing Grid */
    .pricing-grid {
        grid-template-columns: 1fr;
	margin: 0 auto;
    }

    .price-card {
	width: max-content;
	padding: 2em;
    }

    .price-card.featured {
        transform: scale(1); /* Don't scale up on mobile to avoid overlapping */
        /* margin: 20px 0; */
    }
}

/* Very Small Devices (iPhone SE, etc) */
@media (max-width: 380px) {
    .app-mockup {
        width: 240px;
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
}
