:root {
    --bg-dark: #0a192f;
    --bg-light: #112240;
    --primary: #64ffda;
    --text-main: #ccd6f6;
    --text-muted: #8892b0;
    --window-header: #2d2d2d;
    --window-bg: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(10, 25, 47, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    font-family: monospace;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    gap: 2rem;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Code Animation Window */
.code-animation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.code-window {
    width: 100%;
    max-width: 450px;
    background-color: var(--window-bg);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.window-header {
    background-color: var(--window-header);
    padding: 10px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.window-body {
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.window-body pre {
    margin: 0;
    overflow-x: auto;
}

.token.class { color: #e2b93d; }
.token.property { color: #56b6c2; }
.token.string { color: #98c379; }
.token.boolean { color: #d19a66; }

/* Sections Common */
section {
    padding: 100px 10%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--primary);
}

.about-stats-pseudo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.skill-card:hover {
    border-bottom: 3px solid var(--primary);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.skill-card h3 {
    margin-bottom: 1rem;
}

/* Projects Section */
.section-subtitle {
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    background-color: #1d3557;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
}

.placeholder-1 { background: linear-gradient(45deg, #112240, #1d3557); }
.placeholder-2 { background: linear-gradient(45deg, #112240, #0f4c5c); }
.placeholder-3 { background: linear-gradient(45deg, #112240, #312244); }

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
}

.tags span {
    font-size: 0.8rem;
    color: var(--primary);
    background-color: rgba(100, 255, 218, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Contact */
.contact {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact h2::after {
    left: 25%;
}

.contact-form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-light);
}

.text-red { color: #ff5f56; }

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile nav override */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger { display: block; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero p { margin: 0 auto 2rem; }
    
    .code-animation { margin-top: 3rem; width: 100%; }
    
    .input-group { flex-direction: column; gap: 1.5rem; }
    
    .contact h2::after { left: 25%; width: 50%; }
}
