/* --- Basic Setup & Variables --- */
:root {
    --dark-navy: #0a192f;
    --navy: #112240;
    --light-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #64ffda;
    --font-sans: 'Poppins', sans-serif;
}

/* --- Global Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--dark-navy);
    color: var(--slate);
    font-family: var(--font-sans);
    line-height: 1.6;
}

/* --- Header & Navigation --- */
header {
    position: fixed; inset-block-start: 0; inline-size: 100%;
    padding: 1rem 5%; z-index: 100;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: top 0.3s;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-weight: bold; color: var(--green); text-decoration: none; 
    font-size: 1.5rem; z-index: 101; 
}
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-inline-start: 35px; }
.nav-links a { color: var(--lightest-slate); text-decoration: none; transition: color 0.3s; }
.nav-links a:hover { color: var(--green); }
.burger { display: none; cursor: pointer; z-index: 101; }
.burger div { inline-size: 25px; block-size: 3px; background-color: var(--green); margin: 5px; transition: all 0.3s ease; }

/* --- Hero Section (with Canvas) --- */
#hero {
    min-block-size: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}
#heroCanvas {
    position: absolute;
    inset-block-start: 0; inset-inline-start: 0;
    inline-size: 100%; block-size: 100%;
    z-index: 1;
}
.hero-content { 
    position: relative; z-index: 2; 
    max-inline-size: 800px;
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-intro { color: var(--green); margin-block-end: 1rem; font-size: 1rem; }
.hero-name { font-size: clamp(40px, 8vw, 80px); color: var(--lightest-slate); line-height: 1.1; }
.hero-tagline { font-size: clamp(10px, 7vw, 40px); color: var(--slate); line-height: 1.1; margin-block-end: 1.5rem; }
.hero-desc { color: var(--light-slate); max-inline-size: 540px; margin-block-end: 2rem; }
.btn {
    display: inline-block; padding: 1rem 1.75rem;
    border: 1px solid var(--green); color: var(--green);
    background-color: transparent; border-radius: 4px;
    text-decoration: none; font-size: 1rem;
    transition: background-color 0.3s ease;
}
.btn:hover { background-color: rgba(100, 255, 218, 0.1); }

/* --- General Section Styling --- */
.section {
    padding: 100px 15%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    visibility: hidden;
}
.section.visible { 
    opacity: 1; 
    transform: translateY(0);
    visibility: visible;
}
.section-title {
    font-size: clamp(26px, 5vw, 32px); color: var(--lightest-slate);
    margin-block-end: 40px; display: flex; align-items: center;
}
.section-title::after {
    content: ""; display: block;
    inline-size: 200px; block-size: 1px;
    margin-inline-start: 20px; background-color: var(--light-navy);
}

/* --- About Section --- */
.about-container { display: flex; gap: 50px; align-items: flex-start; }
.about-text { flex: 3; }
.skills-list {
    display: grid; grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px; padding: 0px; list-style: none; margin-block-start: 20px;
}
.skills-list li::before { content: "▹"; margin-inline-end: 10px; color: var(--green); }
.about-image { flex: 2; position: relative; max-inline-size: 300px; margin: 0 auto; }
.about-image img {
    inline-size: 100%; border-radius: 4px;
    display: block;
}

/* --- Projects Section --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.project-card {
    background-color: var(--light-navy);
    padding: 2rem; border-radius: 4px;
    box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between;
}
.project-card:hover { transform: translateY(-7px); }
.project-title { color: var(--lightest-slate); margin-block-end: 10px; }
.project-description { color: var(--light-slate); font-size: 0.95rem; flex-grow: 1; }
.project-tech { list-style: none; display: flex; flex-wrap: wrap; gap: 15px; margin-block-start: 20px; color: var(--slate); font-size: 0.8rem; }
.project-links { margin-block-start: 20px; text-align: end; }
.project-links a { color: var(--light-slate); font-size: 1.3rem; margin-inline-start: 15px; transition: color 0.3s; }
.project-links a:hover { color: var(--green); }

/* --- Contact Section --- */
.contact-content { text-align: center; max-inline-size: 600px; margin: 0 auto; }
.contact-content h2 { color: var(--lightest-slate); font-size: clamp(30px, 5vw, 50px); }
.contact-content p { margin: 1rem 0 2rem 0; }

/* --- Footer --- */
footer { text-align: center; padding: 2rem; }
.social-links { margin-block-end: 1rem; }
.social-links a {
    color: var(--light-slate); font-size: 1.5rem;
    margin: 0 10px; transition: color 0.3s, transform 0.3s; display: inline-block;
}
.social-links a:hover { color: var(--green); transform: translateY(-3px); }
footer p { font-size: 0.8rem; color: var(--slate); }

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; inset-inline-end: 0; inset-block-start: 0;
        background-color: var(--light-navy);
        block-size: 100vh; inline-size: 75%;
        flex-direction: column; align-items: center; justify-content: center;
        transform: translateX(100%); transition: transform 0.3s ease-in-out;
        gap: 2rem;
    }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    .section { padding: 80px 10%; }
    .section-title::after { inline-size: 100px; }
    .about-container { flex-direction: column; }
    .about-image { margin-block-start: 40px; }
}
