/* General Styles */
body, h1, h2, h3, p, ul, li, form, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header Styles */
header {
    background-color: #1f1f1f;
    padding: 20px 0;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.header-left {
    margin-left: 1%;
    display: flex;
    align-items: center;
    text-align: left;
}

.header-left .profile-picture {
    border-radius: 50%;
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Maintain aspect ratio */
    object-fit: cover;
    object-position: center top; /* Shifts the image towards the top */
    margin-right: 15px;
}

.header-left h1 {
    color: #00ff99;
    margin: 0;
    font-size: 1.25em;
    margin-right: 15px;
    text-shadow:
        1px 1px 0 #121212,
       -1px 1px 0 #121212,
        1px -1px 0 #121212,
       -1px -1px 0 #121212;
}


.header-right {
    text-align: right;
    padding-right: 3%;
}

.header-right nav ul {
    list-style: none;
    display: flex;
    margin: 0 5%;
    padding: 0;
}


.header-right nav ul li a {
    color: #00ff99;
    text-decoration: none;
    font-weight: bold;
    margin: 0 5px;
}

.header-right nav ul li a:hover {
    color: #e0e0e0;
}

/* Hide nav menu by default on smaller screens */
#nav-menu {
    display: none;
    flex-direction: column;
    background-color: #1f1f1f;
    position: absolute;
    right: 3%;
    top: 60px;
    width: 200px;
    border-radius: 20px;
    padding: 10px 0;
    z-index: 1000; 
}

#nav-menu li {
    text-align: center;
    margin: 10px 0;
}

#nav-menu li:hover {
    color: #fff;
    transform: scale(1.1);
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #00ff99;
    padding: 5px;
    background-color: #1f1f1f;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hamburger-menu:hover {
    background-color: #333;
    color: #fff;
}

@media (max-width: 860px) {
    .hamburger-menu {
        display: block;
        margin: -5px 0px;
    }

    /* Navigation menu shown in dropdown when hamburger is clicked */
    #nav-menu.show {
        display: flex;
        border: 2px solid #00ff99;

    }

    /* Nav is hidden on smaller screens */
    #nav-menu {
        display: none;
    }

    #nav-menu li:hover {
        color: #e0e0e0;
        transform: scale(1.1);
    }
}

@media (min-width: 861px) {
    #nav-menu {
        display: flex;
        position: static;
        width: auto;
        background-color: transparent;
        padding: 0;
        flex-direction: row;
    }

    #nav-menu li {
        margin: 0 15px;
    }

    .hamburger-menu {
        display: none;
    }
}


/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.7), rgba(0, 0, 0, 0.7)), 
                url('Pictures/Background_Image.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    flex-wrap: wrap;
    text-align: left;
    position: relative;
    overflow: hidden;
}

#matrix-popups {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.matrix-popup {
    position: absolute;
    color: limegreen;
    font-family: monospace;
    font-size: 40px;
    white-space: nowrap;
    opacity: 0;
    animation: pop 2s forwards; 
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


.hero-container {
    display: flex;
    justify-content: flex-start;
    margin-left: 5%;
    align-items: center;
    max-width: 1100px;
    margin: 5% auto;
    padding: 0 40px;
    flex-wrap: wrap;
    position: relative;
}

.hero-left {
    flex: 1;
    margin-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: -5%;
}

.hero-left h2 {
    font-size: 1.75em;
    margin-bottom: -22px;
}

#animated-text {
    display: inline-block;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    font-size: 20px;
    margin-top: 10px;
}

#animated-text .highlight {
    font-size: 24px;
    color: #00ff99;
    font-family: Arial, sans-serif;
    border-right: 2px solid #00ff99;
    padding-right: 2px;
    animation: blink 0.7s steps(40) infinite;
}

.contact-info {
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.contact-info h3 {
    font-size: 1em;
    color: #00ff99;
    border: 2px solid #00ff99;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 5px;
}

.contact-info h3:hover {
    color: #e0e0e0;
    border-color: #e0e0e0;
    transform: scale(1.1);
}

.icon-links {
    margin-top: 8px;
    display: flex;
    align-items: center;
}

.icon-link {
    display: inline-block;
    margin: 0px 7.5px;
}

.icon-link img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10%;
}

.icon-link img:hover {
    transform: scale(1.1);
}

.hero-right {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
    overflow: hidden;
    margin-left: -5%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blink animation for the cursor */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@media (max-width: 1100px) {
    .contact-info {
        margin-top: -1px;
        margin-bottom: 12px;
        justify-content: center;
        text-align: center;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-left {
        text-align: center;
        width: 100%;
    }
    
    .icon-links {
        justify-content: center;
        text-align: center;
    }


}


/* About & Skills Section */
#about-skills {
    padding: 50px 0;
    background-color: #1f1f1f;
    display: flex;
    justify-content: center;
}

#about-skills .container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about, #skills {
    flex: 1;
    min-width: 300px; /* Ensures sections are stacked vertically on smaller screens */
}

#about h2, #skills h2 {
    color: #00ff99;
    font-size: 2em;
    margin-bottom: -10px;
}
#skills h2 {
    margin-bottom: 20px;
}

#about h1 {
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 10px;
}

#about p {
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.6;
}

#skills ul {
    list-style-type: none;
    padding: 0;
}

#skills li {
    background-color: #333;
    color: #e0e0e0;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1em;
    display: inline-block;
}

/* Responsive Design */
@media (max-width: 1000px) {
    #about-skills .container {
        flex-direction: column; /* Stack sections vertically */
        gap: 20px;
    }
}




/* Projects Section */
#projects {
    padding: 50px;
}

#projects h2 {
    color: #00ff99;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project {
    display: flex;
    background-color: #1f1f1f;
    border-radius: 10px;
    padding: 40px;
    transition: transform 0.3s ease;
    height: 300px; /* Adjust height for a larger rectangle */
}

.project:hover {
    transform: scale(1.05);
}

.project-left {
    width: 300px; /* Square size */
    height: 300px; /* Square size */
    margin-right: 30px; /* Space between image and text */
    overflow: hidden; /* Ensure image does not overflow */
    border-radius: 10px;
}

.project-left .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
    background-color:#121212;
}

.project-right {
    flex: 1;
}

.project-right h3 {
    color: #00ff99;
    margin-bottom: 10px;
    font-size: 1.5em; /* Adjust font size for larger text */
}

.project-right p {
    color: #ddd;
    font-size: 1.1em; /* Adjust font size for larger text */
}

.github-link {
    display: block;
    color: #00ff99;
    text-decoration: none;
    font-size: 1.1em; /* Adjust font size to match the description */
    margin-top: 10px;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for color and size */
    transform-origin: center; /* Ensure scaling effect is centered */
}

.github-link:hover {
    color: #66ffcc; /* Lighter color on hover */
    text-decoration: underline; /* Underline on hover */
}

/* Media query for small screens */
@media (max-width: 1000px) {
    .project {
        flex-direction: column;
        height: auto; /* Allow height to adjust based on content */
        padding: 20px;
        width: 90%; /* Adjust width to take up most of the screen */
        max-width: 400px; /* Set a maximum width */
        margin: 0 auto; /* Center the project container */
    }

    .project-left {
        margin-right: 0;
        margin-bottom: 20px; /* Add space between the image and text */
        width: 300px; /* Fixed width */
        height: 300px; /* Fixed height */
        align-self: center; /* Center the image on smaller screens */
    }
    
    .project-right {
        width: 100%; /* Allow the text to take full width below the image */
        align-self: center; /* Center the text on smaller screens */
        text-align: center; /* Center the text within the box */
    }

    .project-right h3, .project-right p {
        margin: 0;
        padding: 0 10px;
        font-size: 1em; /* Adjust font size for smaller screens */
    }

    .github-link {
        margin-top: 10px;
    }
}



/* Contact Section */
#contact {
    padding: 50px 0;
}

#contact h2 {
    color: #00ff99;
    font-size: 2em;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #1f1f1f;
    color: #fff;
}

/* Ensure autofilled fields retain background color */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #1f1f1f inset;
    box-shadow: 0 0 0px 1000px #1f1f1f inset;
    -webkit-text-fill-color: #fff;
}

button {
    padding: 10px;
    background-color: #00ff99;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #009966;
}



/* Footer */
footer {
    background-color: #1f1f1f;
    color: #00ff99;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

@media (max-width: 768px) {
    #about, #skills, #projects, #experience, #contact {
        padding: 30px 0;
    }
}

