﻿/* ============================
   GLOBAL STYLES (Dark Theme)
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #0e1117;
    color: #e6edf3;
    line-height: 1.6;
    /* Fixed background image */
    background-image: url('vince-liu-ndXFW-ykceU-unsplash.jpg');
    background-size: cover; /* cover the screen */
    background-repeat: no-repeat;
    background-position: center; /* center the image */
    background-attachment: fixed; /* stays in place while scrolling */
    position: relative; /* needed for the overlay */
}

body::before {
   content: "";
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.9); /* 0.5 = 90% opacity black */
   z-index: -1; /* behind all content */
}


/* ============================
   NAVIGATION (Sticky + Glow Text)
============================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
}

    /* Center horizontally */
    nav ul {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    /* Clean text links with glow effect */
    nav a {
        color: #e6edf3;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        text-shadow: 0 0 0 rgba(46, 160, 67, 0);
    }

    /* Green glow on hover */
    nav a:hover {
        color: #2ea043;
        transform: translateY(-2px);
        text-shadow: 0 0 10px rgba(46, 160, 67, 0.5), 0 0 20px rgba(46, 160, 67, 0.25);
        animation: glowPulse 2s ease-in-out infinite alternate;
    }

/* Shared pulse animation */
@keyframes glowPulse {
    from {
        text-shadow: 0 0 8px rgba(46, 160, 67, 0.15);
    }

    to {
        text-shadow: 0 0 14px rgba(46, 160, 67, 0.4);
    }
}



/* Push content down to avoid nav overlap */
body {
    padding-top: 70px; /* adjust if your nav is taller */
}

/* Sticky Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid #30363d;
}

/* Push content up to avoid footer overlap */
main, section:last-of-type {
    margin-bottom: 80px; /* creates space above footer */
}


/* ============================
   HERO SECTION
============================ */
#hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #161b22, #0d1117);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 1.2s ease forwards;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2ea043;
    margin-bottom: 20px;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1px;
}

#hero h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #a3b3c2;
}

.btn {
    display: inline-block;
    background: #2ea043;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background: #3fb950;
    transform: translateY(-2px);
}

/* ============================
   ABOUT SECTION
============================ */
#about {
    padding: 60px 20px;
    background: #161b22;
    max-width: 900px;
    margin: 60px auto;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#about h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #58a6ff;
}

.about-content p {
    color: #c9d1d9;
    margin-bottom: 15px;    
}

.about-content ul {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
    color: #8b949e;
}

/* ============================
   SKILLS SECTION
============================ */
#skills {
    background: #0d1117;
    padding: 60px 20px;
    text-align: center;
}

#skills h2 {
    color: #58a6ff;
    margin-bottom: 25px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* ============================
   SKILLS (No Box, Glow on Hover)
============================ */
.skill-card {
    background: none; /* Remove box background */
    border: none; /* Remove border */
    color: #e6edf3;
    font-weight: 600;
    transition: transform 0.3s, text-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    color: #2ea043; /* Green accent */
    text-shadow: 0 0 10px rgba(46, 160, 67, 0.6); /* Green glow */
}

/* ============================
   PROJECTS SECTION
============================ */
#projects {
    padding: 60px 20px;
    background: #161b22;
    text-align: center;
}

#projects h2 {
    color: #58a6ff;
    margin-bottom: 25px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.project-card {
    background: #0d1117;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #30363d;
    transition: transform 0.3s, box-shadow 0.3s;
}


/*===========================
    PROJECT CARDS (Flex Column with Bottom-Aligned Button)
============================ */
/*.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px; 
    box-sizing: border-box;
}*/

/*.project-card .btn {
    margin-top: auto; 
    text-align: center;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}*/


.project-card h3 {
    color: #2ea043;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(46, 160, 67, 0.3);
}

/* ============================
   CONTACT SECTION
============================ */
#contact {
    background: #0d1117;
    padding: 60px 20px;
    text-align: center;
}

#contact h2 {
    color: #58a6ff;
    margin-bottom: 25px;
}

#contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    background: #161b22;
    color: #e6edf3;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #30363d;
}

button {
    background: #2ea043;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #3fb950;
}

/* ============================
   FOOTER (Horizontal Icon Row)
============================ */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(6px);
    color: #8b949e;
    text-align: center;
    padding: 12px 0 10px;
    border-top: 1px solid #30363d;
    z-index: 1000;
}

footer p {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

footer .social-links {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 25px;
}

footer .social-links a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #e6edf3;
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: #2ea043;
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(46, 160, 67, 0.5);
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    .skills-container, .projects-container {
        flex-direction: column;
    }
}

/* ============================
   SOCIAL LINKS (Two-Line Layout)
============================ */
.social-links {
    text-align: center;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links a {
    color: #e6edf3;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links span {
    color: #8b949e;
    margin: 0 8px;
}

.social-links a:hover {
    color: #2ea043;
    text-shadow: 0 0 10px rgba(46, 160, 67, 0.6);
    transform: translateY(-2px);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        text-shadow: 0 0 8px rgba(46, 160, 67, 0.3);
    }

    to {
        text-shadow: 0 0 16px rgba(46, 160, 67, 0.6);
    }
}

.contact-links, .network-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}


section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: opacity, transform;
}

    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

footer p.photo-credit {
    font-size: 0.7rem;
    color: #8b949e; /* same as your footer text */
    margin: 4px 0;
}

/* ============================
   SKILL LINKS (OPEN IN NEW TAB)
============================ */

.skill-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-link:hover .skill-card {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.skill-card::after {
    content: "↗";
    float: right;
    opacity: 0.4;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 14px;
    }

    .contact-form button {
        padding: 12px;
        border: none;
        border-radius: 5px;
        background-color: #2c3e50;
        color: white;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .contact-form button:hover {
            background-color: #1a242f;
        }
