:root {
    --primary-bg: #0B0F17;
    --secondary-bg: #121A26;
    --accent-blue: #4FA3D1;
    --highlight-cyan: #8FD3E8;
    --text-primary: #E6EDF3;
    --text-secondary: #AAB4C3;
    --border: #1F2A3A;
}

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

html { scroll-behavior: smooth; }

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

/* NAVBAR */
.navbar {
    background-color: var(--secondary-bg);
    padding: 1.2rem 8%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-title {
    color: var(--accent-blue);
    font-weight: 400;
    font-size: 0.9rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: 30px;
    font-size: 0.9rem;
}

/* ABOUT */
.about {
    padding: 50px 8%;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    object-fit: cover;
}

.tagline {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--highlight-cyan);
}

.summary {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
}

.summary-bold {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.hero-btns {
    display: flex;
    gap: 25px;
}

.social-icon {
    font-size: 2rem;
    color: var(--accent-blue);
}

/* SECTIONS */
.section {
    padding: 60px 8%;
}

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

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

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

.project-card {
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--primary-bg);
}

.project-info {
    padding: 25px;
}

.github-link {
    font-family: 'JetBrains Mono';
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.8rem;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 25px;
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.skill-category h4 {
    color: var(--highlight-cyan);
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skill-category li {
    margin-bottom: 5px;
}

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

.cert-card {
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.cert-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: var(--primary-bg);
}

.cert-info {
    padding: 25px;
}

/* CONTACT */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: var(--primary-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
}

.btn-cta {
    width: 100%;
    padding: 15px;
    background: var(--accent-blue);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

/* FOOTER */
.footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .logo {
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .nav-title {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        font-size: 0.8rem;
        justify-content: center;
        white-space: nowrap;
    }

    .nav-links a {
        margin-left: 0;
    }

    .about {
        padding: 40px 5%;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image img {
        width: 180px;
        height: 180px;
    }

    .tagline {
        font-size: 2.2rem;
    }

    .summary,
    .summary-bold {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .section {
        padding: 40px 5%;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .project-img,
    .cert-img {
        height: 180px;
    }

    .footer {
        padding: 30px 10px;
        font-size: 0.75rem;
    }
}
