:root {
    --bg-color: #0a0a0c;
    --surface-color: #16161a;
    --accent-color: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --border-color: #2a2a30;
    --font-main: 'Inter', -apple-system, sans-serif;
}

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

body {
    background-color: transparent; /* Let canvas show through from behind */
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

#antigravity-bg {
    position: fixed; /* Global background */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Always behind everything */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

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

.logo-text {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.logo-text span {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background-color: rgba(0, 210, 255, 0.15);
    color: var(--accent-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.btn.primary:hover {
    transform: scale(1.05);
    background-color: rgba(0, 210, 255, 0.25);
    box-shadow: 0 0 20px var(--accent-glow);
    border-color: var(--accent-color);
}

/* Section Styling */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.apps-section {
    padding: 6rem 0;
}

/* App Cards */
.app-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.app-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
    transition: transform 0.3s ease;
}

.app-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.app-icon-wrapper {
    flex-shrink: 0;
}

.app-details h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.app-details p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.app-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    margin-bottom: 1rem;
}

.badge-placeholder {
    color: #555;
    font-style: italic;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background-color: #050507;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    position: relative;
    z-index: 10; /* Far above the canvas */
}

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

.footer-left p {
    color: #555;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

/* Energy Counter UI */
#energy-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    width: 200px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.energy-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.energy-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 5px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.energy-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.energy-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.1s linear, background 0.3s ease;
}

/* Energy States */
.energy-warning .energy-value,
.energy-warning .energy-bar-fill {
    color: #ff9800;
    background: #ff9800;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
}

.energy-critical {
    border-color: #ff3d00 !important;
    animation: vibrate 0.1s linear infinite;
}

.energy-critical .energy-value,
.energy-critical .energy-bar-fill {
    color: #ff3d00;
    background: #ff3d00;
    box-shadow: 0 0 25px rgba(255, 61, 0, 0.8);
}

@keyframes vibrate {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(2px, 2px); }
}

@media (max-width: 768px) {
    #energy-container {
        width: 150px;
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    .energy-value {
        font-size: 1.2rem;
    }
}
