@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - Neon Cyber Dark */
    --bg-base: #03040b;
    --bg-surface: rgba(10, 15, 30, 0.4);
    --bg-surface-hover: rgba(15, 25, 45, 0.6);
    --bg-card: rgba(8, 12, 22, 0.6);
    
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #ffffff;
    
    --accent-cyan: #00f0ff;
    --accent-cyan-hover: #00d2ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    --accent-blue: #0044ff;
    
    --border-subtle: rgba(0, 240, 255, 0.1);
    --border-strong: rgba(0, 240, 255, 0.3);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Background Grid Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Background Glow */
body::after {
    content: '';
    position: fixed;
    top: -50vh; left: 10vw;
    width: 80vw; height: 100vh;
    background: radial-gradient(ellipse at center, rgba(0, 68, 255, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6, .mono {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-bright);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.03) 0%, transparent 100%);
}

.hero-content {
    z-index: 10;
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 16px;
    color: var(--text-bright);
    text-shadow: 0 0 20px var(--accent-cyan-glow);
    text-transform: uppercase;
}

.subheadline {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-mono);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1), 0 0 15px rgba(0, 240, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-cyan);
    opacity: 0.1;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    color: var(--bg-base);
    background-color: var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan-glow);
}

.btn-primary:hover::before {
    opacity: 0;
}

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

.btn-secondary:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- Sections --- */
.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--accent-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.about-card p {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    font-weight: 300;
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: var(--bg-surface-hover);
    border-color: var(--border-strong);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.feature-item:hover::after {
    transform: translateX(100%);
}

.feature-item::before {
    content: ">>";
    color: var(--accent-cyan);
    margin-right: 15px;
    font-weight: bold;
    opacity: 0.8;
}

/* --- Dev Log --- */
.devlog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-left: 40px;
}

.devlog-list::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 10px;
    width: 2px;
    background: var(--border-strong);
    z-index: 0;
}

.devlog-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
}

.devlog-item::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -36px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--accent-cyan);
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    box-sizing: border-box;
}

.devlog-item:hover {
    border-color: var(--border-strong);
    box-shadow: 0 5px 30px rgba(0, 240, 255, 0.08);
}

.devlog-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.devlog-title {
    font-size: 1.4rem;
    color: var(--text-bright);
    margin: 0;
    letter-spacing: -0.5px;
}

.devlog-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.devlog-body {
    padding: 30px;
}

.devlog-body p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.devlog-body p:last-child {
    margin-bottom: 0;
}

.devlog-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.code-snippet {
    background: rgba(5, 5, 10, 0.8);
    padding: 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-main);
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: pre;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    margin-top: 20px;
}

.code-snippet > code {
    color: #4cd8ff; /* Vibrant blue tint */
}

.video-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    color: var(--bg-base);
    background-color: var(--accent-cyan);
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.video-link:hover {
    background-color: var(--accent-cyan-hover);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    transform: translateY(-2px);
}

.error-msg {
    color: #ff3366;
    font-family: var(--font-mono);
    padding: 24px;
    border: 1px solid rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.05);
    border-radius: 8px;
    text-align: center;
}

/* --- Footer --- */
footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 50px 0;
    border-top: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.2s ease;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.social-links a:hover {
    color: var(--accent-cyan);
    border-bottom-color: var(--accent-cyan);
}

/* --- Utilities / Animation Classes --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .devlog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .devlog-list {
        padding-left: 25px;
    }

    .devlog-list::before {
        left: 5px;
    }

    .devlog-item::before {
        left: -26px;
        top: 25px;
    }
    
    .feature-item {
        margin-bottom: 15px;
    }
}
