/* Fonts */
@font-face {
    font-family: 'train-one';
    /*a name to be used later*/
    src: url('../fonts/TrainOne-Regular.ttf');
    /*URL to font*/
}

@font-face {
    font-family: 'work-sans';
    src: url(../fonts/WorkSans-VariableFont_wght.ttf);
}

@font-face {
    font-family: 'work-sans-itac';
    src: url(../fonts/WorkSans-Italic-VariableFont_wght.ttf);
}

/* Colors Vars */
:root {
    --primary-highlight: #008919;
    --primary-color: #ffffff;
    --hover-color: #3083DC;
    --primary-text-color: #000;
    --sub-text-color: #fff;
}

/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'work-sans';
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: none;
}

body {
    background-color: #fff;
    font-family: 'work-sans';
    color: #000;
    overscroll-behavior-y: none;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/*Span Bold*/
span{
    font-weight: bold;
}

.home-link{
    display: none;
}

/* Navbar */
.navbar {
    background-color: #000;
    padding: 1.3rem 4rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #FFFF00;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .5);
    transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin: 0 auto;
    /* float: left; Removed */
}

.logo {
    margin-right: 1em;
    margin-right: 1em;
    /* float: left; Removed */
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
    text-align: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

a:hover {
    color: var(--hover-color);
}

.hero h1 {
    font-family: 'train-one';
}

.cv-button {
    border: var(--primary-highlight) 1px solid;
    padding: .5em;
    margin-left: 2rem;
}

.cv-button:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    border: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background-color: #006d5b;
    /* Teal */
    color: #fff;
    padding: 10rem 2rem 5rem;
    position: relative;
    overflow: hidden;
    height: 50em;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 100;
    /* Thin for "HELLO I AM" */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text h2 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 60%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 400px;
    height: 400px;
    background-color: #ccc;
    /* Grey */
    border-radius: 50%;
    opacity: 0.8;
    object-fit: cover;
    object-position: center;
}


/* ###About Section### */

.content-section {
    float: left;
}

.content-section h1 {
    font-size: 4em;
}

.content-section h2 {
    padding-top: 1em;
    color: #000;
    font-size: 1em;
}

.content-section p {
    max-width: 60ch;
}

/*Subsections */
.content-subsection {
    padding-top: 2em;
}

.content-subsection h4 {
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}

.content-subsection p {
    padding-top: .5em;
    font-family: 'work-sans';
}

/* ### Portiflo Section ###*/
.portfolio-section {
    clear: both;
    text-align: center;
    padding-top: 2em;
}

.portfolio-section h2 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0.5rem 0;
}



/* Content Sections (for more paragraphs and images) */
.content-section {
    padding: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section img {
    max-width: 100%;
    height: auto;
}

/* =========================
   Projects Section
========================= */
.projects {
    padding: 4rem 2rem;
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   Project Card
========================= */
.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.tag {
    background: var(--primary-highlight);
    color: var(--primary-color);
    padding: 0.2em 0.6em;
    border-radius: 999px;
    font-weight: bold;
}

.project-content h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: #333;
}

/* =========================
   Buttons
========================= */
.project-btn {
    align-self: center;
    margin-top: auto;
    border: 2px solid var(--primary-highlight);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: 0.2s ease;
}

.project-btn:hover {
    background: var(--hover-color);
    color: var(--sub-text-color);
    border: none;
}

.project-btn.outline {
    background: transparent;
}

.project-btn-large {
    align-self: center;
    margin-top: auto;
    border: 2px solid var(--primary-highlight);
    padding: 1rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: 0.2s ease;
    font-size: 1.5rem;
}

.project-btn-large:hover {
    background: var(--hover-color);
    color: var(--sub-text-color);
    border: none;
}

.project-btn-large.outline {
    background: transparent;
}


/* =========================
   Contact Section
========================= */
.contact {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-sub {
    font-style: italic;
    color: #555;
    margin-bottom: 3rem;
}

/* =========================
   Layout
========================= */
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

/* =========================
   Form
========================= */
.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    border: none;
    border-bottom: 2px solid #ddd;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--hover-color);
}

.contact-form button {
    margin-top: 1.5rem;
    width: fit-content;
    background: transparent;
    border: 2px solid var(--primary-highlight);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.contact-form button:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    border: none;
}

/* =========================
   Social Icons
========================= */
.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3.5rem;
}

.contact-icons a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-highlight);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    transition: 0.2s ease;
}

.contact-icons a:hover {
    background: var(--hover-color);
    color: var(--primary-color);
    border: none;
}

/*Footer */
footer {
    background-color: #111;
    color: #aaa;
    padding-bottom: 2em;
    padding-top: 2em;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--hover-color);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #aaa;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--hover-color);

}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #777;
}

.tech-highlight {
    background-color: #f0f4f8; /* Light blue-grey background */
    color: #2d3748;            /* Darker text for contrast */
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-family: 'Courier New', Courier, monospace; /* Monospaced to look like code */
    border: 1px solid #e2e8f0;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 160px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 1rem 0;
    }

    .hero {
        height: auto;
        padding-bottom: 4rem;
    }

    .navbar {
        padding: 1.3rem 1.5rem;
    }

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

    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }

    .cv-button {
        margin-left: 0;
        margin-top: 1rem;
    }


    .hamburger {
        display: flex;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-image {
        justify-content: center;
        margin-top: 2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
            .footer-container {
                flex-direction: column;
                text-align: center;
            }
            
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================
   Project Page Redesign
========================= */

.project-page {
    padding-top: 8rem; /* Space for fixed navbar */
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
    width: 90%;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 800; /* Extra bold */
    color: #000;
    margin-bottom: 0.5rem;
}

.project-meta-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #777;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-tag {
    background-color: var(--primary-highlight);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
}

.project-summary {
    font-size: 1.5rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #333;
    font-weight: 400;
    text-align: center;
}

.project-image-container {
    
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard landscape ratio */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.project-image-caption {
    text-align: left;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

.project-content-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-content-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #000;
    padding-top: 2em;
}

.project-content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify; 
    text-align-last: left; /* Ensures last line isn't justified */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .project-header h1 {
        font-size: 2.5rem;
    }

    .project-summary {
        font-size: 1.2rem;
    }

    .project-content-section h2 {
        font-size: 2rem;
    }
}