:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #d4af37;
    /* Gold */
    --accent-glow: rgba(212, 175, 55, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --success-color: #00ff88;
    --danger-color: #ff4444;
}

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

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

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABERERmZmYzMzOZmZlmZmYzMzO8J04yAAAACHRSTlMAMwA3MzMzM7O0s1EAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAwSURBVDjLY2AYBaNgFIyCUTAKRsEoGAWjYBSMglEwCkbBKBgFo2AUjIJRMApGwSgAAAiAAAH3bGNLAAAAAElFTkSuQmCC');
    /* Simple noise pattern */
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-color);
}

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

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Buttons */
.cta-btn-small {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cta-btn-small:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.cta-btn-large {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.cta-btn-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    /* Glitch effect base */
    position: relative;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.7;
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

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

/* Sections */
.section {
    padding: 8rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.section-desc {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Daily Fuel */
.quote-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 20px;
    position: relative;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 2rem;
}

.quote-text {
    font-size: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 2rem;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.streak-tracker {
    margin-top: 2rem;
}

.streak-count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
}

/* Habit Tracker */
.habit-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.input-group {
    display: flex;
    gap: 1rem;
}

#habit-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-family: var(--font-main);
    font-size: 16px;
    /* Prevent iOS zoom */
}

#habit-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mode-label {
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.habits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.habit-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.habit-item:hover {
    border-color: var(--accent-color);
}

.habit-item.completed {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success-color);
}

.habit-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.habit-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.habit-item.completed .habit-checkbox {
    background: var(--success-color);
    border-color: var(--success-color);
}

.habit-checkbox i {
    color: black;
    font-size: 0.8rem;
    opacity: 0;
}

.habit-item.completed .habit-checkbox i {
    opacity: 1;
}

.habit-text {
    font-size: 1.1rem;
}

.delete-habit-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-habit-btn:hover {
    color: var(--danger-color);
}

/* Profile Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid var(--accent-color);
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
}

.close-modal:hover {
    opacity: 1;
    color: var(--accent-color);
}

.profile-header {
    margin-bottom: 2rem;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-color);
}

.profile-level {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-item p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.pins-section h3 {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.pin {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.pin.unlocked {
    background: var(--accent-color);
    color: black;
    box-shadow: 0 0 15px var(--accent-glow);
}

.pin:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    white-space: nowrap;
    border: 1px solid var(--glass-border);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: block;
    text-align: center;
    padding: 3rem 2rem;
}

.tool-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.tool-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: #050505;
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    opacity: 0.6;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    opacity: 0.4;
    font-size: 0.8rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-color);
    color: black;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Donation Modal */
.donation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.donation-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.donation-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.donation-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.donation-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 5%;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        font-size: 0.85rem;
    }

    .navbar {
        position: fixed;
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 1rem 5%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
        justify-content: flex-end;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        display: inline-block;
        width: auto;
    }

    .cta-btn-small {
        width: auto;
        text-align: center;
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .quote-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .quote-text {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .quote-icon {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .quote-author {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .quote-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .action-btn {
        width: 100%;
        margin: 0;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }

    .streak-tracker h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .streak-count {
        font-size: 2.2rem;
    }

    .habit-controls {
        padding: 1.2rem;
        gap: 1rem;
    }

    .input-group {
        flex-direction: column;
    }

    #habit-input {
        padding: 1rem 1.2rem;
    }

    #add-habit-btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .habit-item {
        padding: 1rem;
    }

    .habit-text {
        font-size: 1rem;
    }

    .habit-checkbox {
        min-width: 28px;
        min-height: 28px;
    }

    .delete-habit-btn {
        padding: 0.5rem;
        font-size: 1.2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 2rem 1.5rem;
    }

    .tool-icon {
        font-size: 2.5rem;
    }

    .tool-card h4 {
        font-size: 1.3rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }

    .cta-btn-large {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1rem;
        clip-path: none;
        border-radius: 50px;
        margin-top: 1.5rem;
    }

    .support-card {
        padding: 2rem 1.5rem !important;
    }

    .support-card h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .support-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .profile-header h2 {
        font-size: 1.5rem;
    }

    .avatar-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    .pins-section h3 {
        font-size: 1.1rem;
    }

    .pin {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }

    .donation-header h2 {
        font-size: 1.6rem;
    }

    .donation-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .donation-card {
        padding: 1.5rem;
    }

    .close-modal {
        font-size: 1.8rem;
        top: 0.8rem;
        right: 1rem;
    }
}