/* ============ Variables & Reset ============ */
:root {
    --bg: #050807;
    --text: #e6fff5;
    --muted: #b3b3b3;
    --muted-dark: #81968e;
    --green: #00ff9c;
    --green-soft: #0ee895;
    --blue: #00bbff;
    --pill-bg: #092d1b;
    --card-bg: #030906ee;
    --card-border: rgba(7, 37, 5, 0.6);
    --hover-border: rgba(0, 255, 157, 0.3);
    --gutter: clamp(1.2em, 5vw, 5em);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5em; /* keeps section headings clear of the fixed header */
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 255, 156, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 156, 0.035) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 10%;
    left: -200px;
    width: 500px;
    height: 500px;
    background: #00ffbf;
    opacity: 0.04;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.475);
    font-size: 1.2em;
}

a:hover {
    color: #5dc35d;
}

span {
    color: var(--blue);
}

/* ============ Header ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.9em var(--gutter);
    background-color: #050807d8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.116);
    backdrop-filter: blur(15px);
    font-family: monospace;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.logo {
    font-weight: bold;
    font-size: 1.7em;
}

.logo p {
    color: #5dca5f;
}

.nav-list {
    display: flex;
    gap: 2em;
    list-style: none;
}

.menu-btn {
    display: none;
    padding: 0.5em 0.7em;
    background: transparent;
    border: 1px solid rgba(0, 255, 156, 0.35);
    border-radius: 0.4em;
    color: var(--green);
    font-size: 1.1em;
    cursor: pointer;
}

/* ============ Hero ============ */
.hero {
    display: flex;
    align-items: center;
    gap: 3em;
    margin: 10em var(--gutter) 0;
}

.hero-container {
    flex: 1 1 28em;
}

.whoami {
    margin-bottom: 0.7em;
}

.root {
    color: #51c34d;
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bolder;
}

.name {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1em;
}

.surname {
    display: block;
    color: #3ee386;
}

.occupation {
    max-width: 23em;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: bold;
    color: var(--muted);
}

.se {
    color: #06c5ffcf;
}

.what-i-can-do {
    max-width: 40em;
    margin-top: 1em;
    color: #8080809d;
}

.hero-image {
    flex: 1 1 22em;
    max-width: 30em;
    aspect-ratio: 2 / 1;
    border: 2px solid white;
    border-radius: 0.4em;
    background: url("./assets/image/excel-ose.jpg") center / cover no-repeat;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
    height: 30em;
}

.hero-image:hover {
    filter: grayscale(0%);
}

/* Buttons */
.btn {
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    margin-top: 2em;
}

.primary {
    display: inline-block;
    padding: 1em;
    border: 1px solid var(--green);
    border-radius: 0.5em;
    font-family: "Fira Code", monospace;
    font-size: 1em;
    text-align: center;
    cursor: pointer;
}

.view-projects {
    background: var(--green);
    color: #03100a;
}

.view-projects:hover {
    color: #03100a;
    box-shadow: 0 0 25px rgba(0, 255, 156, 0.35);
}

.contact {
    color: var(--green);
}

.contact:hover {
    background-color: #00ff9d33;
    color: var(--green);
}

/* ============ Section headings (shared) ============ */
.about-heading,
.skills-heading,
.projects-heading,
.education-heading,
.contact-heading,
.certification-heading 
{
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 10em var(--gutter) 3em;
    font-family: monospace;
}

.about-heading h2,
.skills-heading h2,
.projects-heading h2,
.education-heading h2,
.contact-heading h2,
.certification-heading h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.about-heading span,
.skills-heading span,
.projects-heading span,
.education-heading span,
.contact-heading span,
.certification-heading span 
{
    font-size: 1.5em;
    color: var(--green);
}

hr {
    flex: 1;
    max-width: 20em;
    height: 1px;
    border: none;
    background: #084d32;
}

/* ============ About ============ */
.about-container {
    display: flex;
    gap: 2em;
    margin: 0 var(--gutter);
}

.about-text {
    flex: 1 1 24em;
    color: var(--muted);
}

.me {
    margin-bottom: 2.3em;
    font-size: 1.1em;
}

.about-terminal {
    border-left: 4px solid #00ffbf;
    font-family: "Fira Code", monospace;
}

.about-terminal p {
    margin: 0 0 3em 1em;
}

.green {
    background-color: var(--green);
}

.about-card {
    flex: 1 1 18em;
    align-self: flex-start;
    padding: 4em 1.5em;
    background: rgba(0, 255, 156, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.112);
    border-radius: 1em;
    text-align: center;
}

.about-card .fa-solid {
    margin-bottom: 0.4em;
    font-size: 6em;
    color: var(--green-soft);
}

.about-card h3 {
    margin-bottom: 0.5em;
}

.about-card p {
    max-width: 18em;
    margin: auto;
}

/* ============ Cards: skills & projects ============ */
.skills-grid,
.project-grid {
    display: grid;
    gap: 1.5em;
    margin: 0 var(--gutter);
}

.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22em), 1fr));
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24em), 1fr));
}

.skill-card,
.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 5px;
    padding: 3em 2em;
    transition: transform 0.2s ease-in, border-color 0.2s ease-in;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--hover-border);
}

.skill-card h3 {
    margin-bottom: 1.2em;
}

.skill-icon .fa-solid,
.skill-icon .fa-brands {
    margin-bottom: 0.3em;
    font-size: 2em;
    color: var(--green-soft);
}

.project-card {
    cursor: pointer;
}

.git-link,
.git-link:hover,
.git-link:visited {
    display: block;
    color: white;
    font-size: 1em;
}

.project-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1em;
}

.fa-github,
.fa-folder-open {
    font-size: 1.6em;
    color: var(--green-soft);
}

.project-card h3 {
    margin-bottom: 1em;
}

.project-card p {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--muted-dark);
}

/* Tag pills (shared) */
.skill-card span,
.project-card span,
.education-tags span {
    display: inline-block;
    margin-bottom: 0.6em;
    padding: 0.5em;
    background-color: var(--pill-bg);
    border-radius: 5px;
    color: #b3b3b3c1;
    font-size: 0.7em;
}

.project-card span,
.education-tags span {
    font-family: monospace;
}

/* ============ Education ============ */
.education-container {
    margin: 0 var(--gutter);
    background-color: #0e1310ee;
    border-left: 4px solid var(--green);
    border-radius: 5px;
}

.education-card {
    display: flex;
    gap: 1em;
    padding: 2em;
}

.fa-graduation-cap {
    font-size: 2.5em;
    color: var(--green-soft);
}

.education-date {
    display: inline-block;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 1.2em;
    color: #00bbff6b;
}

.education-details p {
    margin: 0.8em 0;
    color: var(--muted);
}

.education-tags {
    margin-top: 1.5em;
}

.education-tags span {
    padding: 0.6em;
    font-size: 0.8em;
    color: #b3b3b3d8;
}

/* =============== Certification =============== */
#certification p {
    text-align: center;
    font-size: 1.1em;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-style: italic;
    color: var(--muted-dark);
    animation: blink 1s infinite;
}

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

/* ============ Contact ============ */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    margin: 2em var(--gutter);
}

.get-in-touch {
    flex: 1 1 22em;
}

.get-in-touch h3 {
    max-width: 14em;
    margin-bottom: 0.5em;
    font-size: 2em;
}

.get-in-touch span {
    color: var(--green);
}

.get-in-touch p {
    max-width: 30em;
    font-size: 0.9em;
    color: var(--muted-dark);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.contact-cards {
    display: flex;
    flex: 1 1 22em;
    flex-direction: column;
    gap: 2em;
    max-width: 30em;
}

.contact-cards a {
    font-size: 1em;
}

.contact-links {
    padding: 1em;
    background-color: #0e1310ee;
    border: 1px solid rgba(83, 124, 79, 0.322);
    border-radius: 0.9em;
    transition: transform 0.3s ease-in, border-color 0.3s ease-in;
}

.contact-links:hover {
    border-color: #00ff00b0;
    transform: translateX(2px);
}

.contact-cards .fa-brands,
.contact-cards .fa-solid {
    font-size: 1.4em;
    color: var(--green);
}

.contact-cards span {
    font-family: monospace;
    font-size: 1em;
    color: var(--muted-dark);
}

.contact-cards p {
    color: #e6fff5b9;
    overflow-wrap: anywhere;
}

/* ============ Footer ============ */
footer {
    margin-top: 6em;
    padding: 3em 1em;
    background-color: #05080735;
    border-top: 1px solid white;
    font-family: monospace;
    text-align: center;
}

footer p {
    color: var(--green);
}

footer span {
    font-size: 0.8em;
    color: var(--muted);
}

/* Scroll Effect */
.reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Responsive ============ */

/* Tablet / small laptop */
@media (max-width: 1100px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        margin-top: 8em;
        gap: 2em;
    }

    .hero-image {
        flex: none;
        width: 100%;
    }

    .about-container {
        flex-direction: column;
    }

    .about-card {
        align-self: stretch;
    }

    .about-heading,
    .skills-heading,
    .projects-heading,
    .education-heading,
    .contact-heading {
        margin-top: 6em;
    }
}

/* Mobile navigation */
@media (max-width: 900px) {
    header {
        padding: 1em 1.2em;
    }

    .logo {
        font-size: 1.4em;
    }

    .menu-btn {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5em 0;
        background: #050807f5;
        border-bottom: 1px solid rgba(255, 255, 255, 0.116);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list a {
        display: block;
        padding: 0.9em 1.5em;
    }
}

/* Phones */
@media (max-width: 700px) {
    .hero {
        margin-top: 6.5em;
    }

    .about-heading,
    .skills-heading,
    .projects-heading,
    .education-heading,
    .contact-heading {
        margin-top: 4em;
        margin-bottom: 1.5em;
    }

    .about-heading span,
    .skills-heading span,
    .projects-heading span,
    .education-heading span,
    .contact-heading span {
        font-size: 1.2em;
    }

    .about-card {
        padding: 3em 1em;
    }

    .about-card .fa-solid {
        font-size: 4.5em;
    }

    .skill-card,
    .project-card {
        padding: 2em 1.2em;
    }

    .education-card {
        flex-direction: column;
        padding: 1.5em;
    }

    .contact-cards {
        max-width: none;
    }
}