:root {
    --bg-main: #000000; /* Deep black */
    --bg-nav: rgba(0, 0, 0, 0.7);
    --bg-card: rgba(9, 9, 11, 0.2); /* 80% transparent dark zinc */
    --bg-card-hover: rgba(18, 18, 20, 0.3);
    --bg-input: rgba(0, 0, 0, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa; /* Zinc 400 */
    --text-tertiary: #71717a; /* Zinc 500 */
    
    --border-color: #27272a; /* Zinc 800 */
    --border-hover: #3f3f46; /* Zinc 700 */
    
    /* Subtle glow accent */
    --accent: #E5FF45; /* Vibrant lime/yellow */
    --accent-glow: rgba(229, 255, 69, 0.15);
    --accent-blue: rgba(59, 130, 246, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Organic Flow Background */
.organic-flow {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 0;
    background-color: transparent;
    background-image: 
        radial-gradient(circle, rgba(0, 243, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle, rgba(255, 0, 255, 0.25) 0%, transparent 60%),
        radial-gradient(circle, rgba(138, 43, 226, 0.25) 0%, transparent 60%),
        radial-gradient(circle, rgba(229, 255, 69, 0.2) 0%, transparent 60%);
    background-repeat: no-repeat;
    background-size: 150vw 150vh, 200vw 200vh, 180vw 180vh, 160vw 160vh;
    background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0%;
    filter: blur(80px);
    animation: lava-flow 25s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes lava-flow {
    0% { background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0%; }
    25% { background-position: 100% 0%, 0% 100%, 50% 0%, 50% 100%; }
    50% { background-position: 100% 100%, 0% 0%, 100% 0%, 0% 100%; }
    75% { background-position: 50% 100%, 50% 0%, 100% 100%, 0% 0%; }
    100% { background-position: 0% 100%, 100% 0%, 50% 50%, 50% 50%; }
}

/* Electric Grid Overlay */
.electric-grid {
    position: fixed;
    top: -10vh; left: -10vw; width: 120vw; height: 120vh;
    background-image: 
        linear-gradient(rgba(229, 255, 69, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 255, 69, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 80%);
    mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 80%);
    animation: electric-grid-move 20s linear infinite;
    transform: translate(var(--mouse-x, 0px), var(--mouse-y, 0px));
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes electric-grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 25px; }
}

/* Typography */
h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Roboto Slab', serif;
    position: relative;
    z-index: 2;
}
.btn-primary {
    background-color: var(--accent);
    color: var(--bg-main);
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background-color: #d4ff00;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background-color: rgba(229, 255, 69, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}
.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}
.logo {
    font-family: 'Roboto Slab', serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.logo span {
    color: var(--accent);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}
.nav-links a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 1; /* Ensures content sits above the grid */
}
.hero-content {
    max-width: 800px;
    margin-top: 5vh;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(229, 255, 69, 0.03);
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}
.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}
.hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features / Bento Grid */
.features {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.features-header {
    text-align: center;
    margin-bottom: 4rem;
}
.features-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.features-header p {
    font-size: 1.1rem;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.bento-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--accent-glow);
}
.icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}
.bento-card:hover .icon-wrapper {
    border-color: var(--accent);
}
.icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}
.bento-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.bento-card p {
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}
.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.contact-text p {
    font-size: 1.1rem;
}
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.input-group input,
.input-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

/* Footer */
footer {
    padding: 2.5rem 5%;
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-content .logo {
    font-size: 1.2rem;
}
.footer-content p {
    font-size: 0.85rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent);
    color: var(--bg-main);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}
.toast-content strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-main);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, transform 0.2s ease;
    z-index: 100;
}
#back-to-top svg {
    width: 24px;
    height: 24px;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--accent);
    color: var(--bg-main);
    transform: translateY(-3px);
}
