:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-dim: #888888;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --grid-color: rgba(0, 243, 255, 0.05);
    --font-heading: 'Jura', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
    --max-width: 1000px;
}

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

/* Accessibility Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Global Link Color Fix (Visited State) --- */
a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Default: Visited links stay Cyan (Fixes Privacy/Contact links) */
a:visited {
    color: var(--accent-cyan);
}

/* Exception: Navigation & Footer links stay Dim */
.nav-link:visited,
.footer-links a:visited {
    color: var(--text-dim);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Background Effects --- */

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(20deg) scale(1.2);
    transform-origin: top;
    opacity: 0.4;
    z-index: -1;
    animation: grid-move 20s linear infinite;
}

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

/* --- Header & Navigation --- */

.site-header {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.3s;
}

/* Updated Logo to be a clean link */
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.logo:hover {
    color: var(--accent-cyan);
}

.logo:visited {
    color: var(--text-main);
}

.highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Desktop Nav */
.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0; 
    padding: 0;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}

/* --- Hero Section --- */

main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    padding-bottom: 4rem;
}

.hero {
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    width: 100%;
}

.glitch {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* --- Projects Section --- */

.projects {
    margin-top: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--text-dim);
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid #333;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 1rem 0;
}

.card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-status {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-live { color: #00ff6a; }
.status-dev { color: #ffae00; }

.card-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-5px);
}
.product-card:hover h3 { color: var(--accent-cyan); }

.dev-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    transform: translateY(-5px);
}
.dev-card:hover h3 { color: var(--accent-purple); }

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: auto;
    background: rgba(5, 5, 5, 0.9);
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.2s;
}

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

.separator { opacity: 0.3; }


/* --- Contact Page Styles --- */

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem;
}

.contact-card {
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid #333;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    backdrop-filter: blur(10px);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.page-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
    letter-spacing: 1px;
}

.intro-text {
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.channel-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.channel-item .icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 50%;
    line-height: 1;
}

.channel-item h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    transition: all 0.2s;
}

.contact-link:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan);
}

/* --- Simple Mobile Response (No Hamburger) --- */

@media (max-width: 768px) {
    /* Allow header to expand vertically */
    .header-inner {
        height: auto;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
    }

    /* Stack or wrap the links below the logo */
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    /* Mobile adjustments for Contact */
    .contact-card {
        padding: 1.5rem;
    }
    
    .channel-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .channel-item .icon {
        padding: 0.8rem;
    }
}
