/* CSS STYLES */

/* ------------------- */
/* --- ROOT & RESET -- */
/* ------------------- */
:root {
    --bg-color: #121212; /* Very dark grey, almost black */
    --surface-color: #1E1E1E; /* Dark grey for cards and surfaces */
    --primary-color: #00f5c3; /* A vibrant, techy mint green */
    --text-color: #E0E0E0; /* Light grey for body text */
    --heading-color: #FFFFFF; /* Pure white for headings */
    --shadow-color: rgba(0, 245, 195, 0.1); /* Subtle glow effect */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* ------------------- */
/* --- UTILITIES ----- */
/* ------------------- */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 6rem 0;
    overflow: hidden; /* For animations */
}

.section-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fade-in Animation on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* --- HEADER & NAV -- */
/* ------------------- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav {
    height: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 700;
}

.nav__logo span {
    color: var(--primary-color);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav__link:hover, .nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle {
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
    display: none;
}

/* ------------------- */
/* --- HERO SECTION -- */
/* ------------------- */
.hero {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.hero__container {
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero__content {
    text-align: left;
}

.hero__greeting {
    color: var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
}

.hero__subtitle .typing-effect {
    color: var(--primary-color);
    font-weight: 700;
}

.hero__cta {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.hero__cta:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.hero__image-wrapper {
    justify-self: center;
    position: relative;
}

.hero__image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 25px var(--shadow-color);
    transition: transform 0.4s ease;
}

.hero__image:hover {
    transform: scale(1.05);
}

/* ------------------- */
/* --- ABOUT SECTION - */
/* ------------------- */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: 4rem;
}

.about__image-wrapper {
    position: relative;
    justify-self: center;
}

.about__image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.about__image-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    left: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.about__image-wrapper:hover::after {
    top: 10px;
    left: 10px;
}

.about__text p {
    margin-bottom: 1rem;
}

/* ------------------- */
/* -- SKILLS SECTION - */
/* ------------------- */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill__card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.skill__card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.skill__card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ------------------- */
/* - TIMELINE SECTION  */
/* ------------------- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--surface-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

.timeline__item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline__item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-color);
    top: 25px;
    border-radius: 50%;
    z-index: 2;
}

.timeline__item:nth-child(odd) {
    left: 0;
}

.timeline__item:nth-child(even) {
    left: 50%;
}

.timeline__item:nth-child(even)::after {
    left: -10px;
}

.timeline__content {
    padding: 20px 30px;
    background-color: var(--surface-color);
    position: relative;
    border-radius: 8px;
}

.timeline__date {
    font-family: 'Roboto Mono', monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline__title {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.timeline__company {
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
}

/* ------------------- */
/* - PROJECTS SECTION  */
/* ------------------- */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project__card {
    background-color: var(--surface-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.project__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project__title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.project__description {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.project__tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project__tag {
    background-color: rgba(0, 245, 195, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-family: 'Roboto Mono', monospace;
}

.project__links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 1.5rem;
}

.project__links a:hover {
    text-decoration: underline;
}

.project__links i {
    margin-right: 0.5rem;
}

/* ------------------- */
/* - CONTACT SECTION - */
/* ------------------- */
.contact__container {
    text-align: center;
    max-width: 600px;
}

.contact__description {
    margin-bottom: 2rem;
}

.contact__button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact__socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact__socials a {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
}

.contact__socials a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ------------------- */
/* ------ FOOTER ----- */
/* ------------------- */
.footer {
    background-color: var(--surface-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer__text {
    color: var(--text-color);
    opacity: 0.7;
}

/* ------------------- */
/* -- RESPONSIVENESS - */
/* ------------------- */
@media screen and (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero__content {
        order: 2;
        text-align: center;
    }
    .hero__image-wrapper {
        order: 1;
    }
}

@media screen and (max-width: 768px) {
    .nav__toggle {
        display: block;
    }
    
    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }
    
    .nav__list.show-menu {
        right: 0;
    }
    
    .about__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about__image-wrapper {
        margin-bottom: 2rem;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline__item {
        width: 100%;
        padding-left: 60px;
        padding-right: 10px;
    }
    
    .timeline__item:nth-child(even) {
        left: 0;
    }
    
    .timeline__item::after {
        left: 10px;
    }

    .hero__image {
        width: 280px;
        height: 280px;
    }
}
