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

:root {
    --bg-color: #08080a;
    --panel-bg: rgba(18, 18, 21, 0.85);
    --accent-color: #ff2e4d;
    --accent-glow: rgba(255, 46, 77, 0.4);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a5;
    --border-width: 1px;
    --panel-gap: 20px;
    --glitch-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 46, 77, 0.05) 0%, transparent 70%),
        url('hero-bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* Scanline Effect Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* Typography */
h1, h2, h3, h4, .ui-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.ui-panel {
    background: var(--panel-bg);
    border: var(--border-width) solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 30px;
    backdrop-filter: blur(10px);
    margin-bottom: var(--panel-gap);
    clip-path: polygon(
        0 10px, 10px 0, 
        calc(100% - 10px) 0, 100% 10px, 
        100% calc(100% - 10px), calc(100% - 10px) 100%, 
        10px 100%, 0 calc(100% - 10px)
    );
}

.ui-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--accent-color) 0%, transparent 15%, transparent 85%, var(--accent-color) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

/* Header & Nav */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 8, 10, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 10px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--accent-color);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

/* Projects Preview */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
}

.section-header .line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.project-card .img-placeholder {
    width: 100%;
    height: 200px;
    background: #1a1a1e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.project-card .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.project-card:hover .img-placeholder img {
    opacity: 1;
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Page Footer */
footer {
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-color);
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none; /* Mobile menu logic would go here */
    }
}
