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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #111;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease-in; /* 2 seconds fade-in effect */
}

/* Final state - fully visible (opacity 1) */
body.fade-in {
    opacity: 1;
}

img {
    height: 50px;
    width: auto;
}

.gif {
    height: 70px;
    width: auto;
}

a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

button {
    text-decoration: none;
    background-color: transparent;
    border: 2px solid #007BFF;
    padding: 18px 40px;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

/* Dynamic Text */
#dynamic-text {
    border-right: 2px solid white;
    padding-right: 5px;
    animation: blink 0.7s steps(1) infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}



/* Navigation */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

nav {
    background-color: #333;
    padding: 2px;
    margin-top: 50px;
    width: 100%;
    position: fixed;
    z-index: 1; /*fixes the images appearing on top of the navbar when scrolling */
}

ul {
    list-style: none; /* removes bullet points */
    display: flex;
    align-items: center; /* aligns nav-items between the top and bottom of the navbar */
    margin: 0px;
    padding-left: 30px; /* Adjusts how far the navbar elements are from the edge of the screen */
    padding-right: 50px;
}

.website-name {
    font-size: 2rem;
    margin-right: auto; /* Pushes the website name to the left */
}

.website-name a:hover {
    color: yellowgreen;
    filter: invert(1) brightness(1.5) drop-shadow(0px 0px 10px grey);
    transition-duration: 1s;
}

.nav-links {
    display: flex;
    margin-left: auto; /* Pushes the rest of the links to the right */
}

.nav-item { /*styling for each button */
    padding: 10px 20px;
    font-size: 18px;
    position: relative; /* Add this to make the pseudo-element correctly positioned */
    transition: all 0.3s ease;
}

.nav-item a:hover {
    color: #007BFF;
}

/* Sliding Underline Effect */
.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 3px;
    background-color: #007BFF;
    transform: scaleX(0); /* Start hidden */
    transform-origin: left; /* Start scaling from the left */
    transition: transform 0.3s ease; /* Smooth transition */
}

/* On hover, make the underline slide into view */
.nav-item:hover::after {
    transform: scaleX(1); /* Expand to full width */
}



/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(images/me4.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* makes the image stay in place while you scroll */
}


.hero-content {
    text-align: center;
    text-shadow: black 1px 0 10px;
    color: white;
}

.hero h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 20px;
}



/* About Section */
.about {
    padding: 50px;
    background-color: #333;
    text-align: center;
    font-size: larger;
}

.about-text {
    width: 80%; /* You can adjust the width */
    max-width: 1000px; /* Ensure it doesn't grow too wide */
    margin: 0 auto; /* Center the container */
    text-align: left; /* Left-align the text within the container */
}

.about h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff;
}

.social-item {
    padding: 10px;
    /* transition: all 0.3s ease; don't need, already initialized in a{} section */
}

.social-item:hover {
    padding: 20px;
    filter: drop-shadow(0px 0px 10px grey);
}



/* Projects Section */
#projects {
    padding: 50px;
    background-color: #555; /* Light gray background */
    text-align: center;
}

#projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff;
}

.projects-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid Container */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Responsive grid */
    gap: 20px; /* Space between grid items */
    max-width: 900px; /* Disable this to make projects massive */
    margin: 0 auto;
}

/* Project Card Styles */
.project-card {
    text-align: left;
    background-color: #222;
    padding: 20px;
    border: 2px solid #555;
    transition: all 0.3s ease;
}

.project-card img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-card a {
    width: 10px;
    height: auto;
    border-radius: 10px;
}

.project-card h3 {
    margin-top: 15px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.project-card-links img{
    display: inline-block;
    width: 30px;
    height: auto;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.project-card-links img:hover{
    filter: brightness(1.2);
}

/* This isn't really being used but I might in the future */
.project-card-links button{
    text-decoration: none;
    border: 2px solid #007BFF;
    padding: 9px 20px;
    color: white;
    font-size: 16px;
    margin-top: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: #888;
    margin-top: 10px;
    font-family: 'Poppins';
}

/* Hover effect for cards */
.project-card:hover {
    border: 2px solid grey;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* More prominent shadow */
}

/* Hidden project cards and load more button */

.hidden {
    display: none;
}

/* Load More button sizing */
#view-more {
    margin-top: 40px;
    padding: 15px 150px;
}



/* Skills Section */
.skills {
    text-align: center;
    padding: 50px 0;
    background-color: #222;
}

.skills h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #fff;
}

.skills-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.skill-item {
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item img {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.skill-item span {
    font-family: 'Poppins';
    font-size: 16px;
    color: grey;
}

.skill-item:hover {
    cursor: pointer;
    filter: grayscale();
}



/* Contact Section */
.contact {
    padding: 50px;
    background-color: #e9e9e9;
    text-align: center;
}

.contact form {
    display: inline-block;
    text-align: left;
}

.contact input, .contact textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 16px;
}

.contact button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

.contact button:hover {
    background-color: #0056b3;
}



/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    font-family: 'Poppins';
    padding: 10px;
}

@media (max-width: 1000px) { /* Fix formatting for mobile */
    ul {
        padding-left: 0px;
        padding-right: 0px;
        padding: 5px;
    }
    .website-name {
        font-size: 1.5rem;
    }
    .nav-item {
        padding: 0px 5px;
        font-size: 15px;
    }
    .hero {
        background-attachment: scroll; /* Remove fixed background property, fixed makes image super zoomed in on IOS */
    }
    .social-item { /* Make all 4 social items fit together */
        padding: 5px;
    }
    .projects-grid { /* Make projects grid one column only */
        grid-template-columns: 1fr;
    }
}

