/* --- Variables & Reset --- */
:root {
    --bg-color: #0a192f;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --card-bg: #112240;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    margin-top: 2rem;
}

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

/* --- Navigation (Glassmorphism) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--accent-color); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

.greeting { color: var(--accent-color); font-family: monospace; margin-bottom: 1rem; }
.name { font-size: clamp(40px, 8vw, 80px); font-weight: 800; color: #e6f1ff; line-height: 1.1; }
.role { font-size: clamp(30px, 5vw, 60px); font-weight: 700; color: var(--text-secondary); margin-bottom: 1.5rem; }
.bio { max-width: 540px; color: var(--text-secondary); font-size: 1.1rem; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 30px; }
}

/* --- About Section --- */
section { padding: 100px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
    font-family: monospace;
    font-size: 0.9rem;
}

.skills-list li::before {
    content: "▹";
    color: var(--accent-color);
    margin-right: 10px;
}

/* Code Card Visual */
.code-card {
    background: #1d2d50;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: var(--transition);
}
.code-card:hover { transform: translateY(-5px); }
.card-header { display: flex; gap: 8px; margin-bottom: 15px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.keyword { color: #c792ea; } .string { color: #ecc48d; } .boolean { color: #ff5874; }

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
}

.project-card:hover { transform: translateY(-10px); }

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #64ffda, #0a192f);
    opacity: 0.7;
    transition: var(--transition);
}

.project-card:hover .project-image img { transform: scale(1.1); }

.project-content { padding: 1.5rem; }
.project-content h3 { margin-bottom: 10px; color: #e6f1ff; }
.project-content p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }

.tech-tags { display: flex; gap: 15px; font-family: monospace; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 20px; }
.project-links a { margin-right: 20px; font-size: 1.2rem; }
.project-links a:hover { color: var(--accent-color); }

/* --- Contact & Footer --- */
.contact-container { text-align: center; max-width: 600px; }
.big-btn { padding: 1.2rem 3rem; font-size: 1rem; }
.socials { margin-top: 3rem; display: flex; justify-content: center; gap: 2rem; font-size: 1.5rem; }
.socials a:hover { color: var(--accent-color); transform: translateY(-3px); }

footer { text-align: center; padding: 2rem; color: var(--text-secondary); font-size: 0.8rem; font-family: monospace; }

/* --- Animations (Intersection Observer Classes) --- */
.hidden { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.show { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: -10px 0px 30px -15px rgba(2,12,27,0.7);
    }
    .nav-links.nav-active { transform: translateX(0%); }
    .hamburger { display: block; z-index: 200; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { display: none; }
}