:root {
    --bg-color: #0a192e;
    --bg-alt-color: #060d1a;
    --card-bg: #112240;
    --accent-color: #1b4332; /* Dark Green */
    --accent-light: #2d6a4f; /* Lighter Green */
    --text-color: #e6f1ff;
    --text-dim: #8892b0;
    --highlight: #64ffda; /* Teal/Cyan for highlights */
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utility Classes */
.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: var(--bg-alt-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-light);
    margin: 10px auto 0;
}

.highlight {
    color: var(--highlight);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 46, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--highlight);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--highlight);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-alt-color) 100%);
    position: relative;
    overflow: hidden;
}

#top-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 30px;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-light);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px solid var(--highlight);
    color: var(--highlight);
}

.btn-secondary:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-3px);
}

/* About Section */
.about-text p {
    color: var(--text-dim);
    margin-bottom: 15px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--highlight);
}

.skill-card span {
    display: block;
    font-weight: 600;
}

/* Projects Section */
.filter-container {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--accent-light);
    color: white;
    border-color: var(--accent-light);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: scale(1.03);
}

.project-img {
    background-color: var(--accent-color);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.tags {
    margin-bottom: 20px;
}

.tags span {
    background: rgba(100, 255, 218, 0.1);
    color: var(--highlight);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
}

.project-links a {
    font-size: 0.9rem;
    color: var(--highlight);
    font-weight: 600;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.contact-item i {
    font-size: 2rem;
    color: var(--highlight);
}

.contact-item:hover {
    color: var(--highlight);
}

#email-canvas {
    width: 280px;
    height: 44px;
    cursor: pointer;
    display: block;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    color: var(--highlight);
    animation: blink 0.7s steps(2) infinite;
    font-weight: 100;
    margin-left: 2px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* For simplicity in this MVP */
    }
    
    .menu-toggle {
        display: block;
    }
}
