:root {
    --min-width: 100%; /* Change to 100% for better responsiveness */
}

html,
body {
    height: 100%;
    margin: 0;
    background: #000000; /* Set the entire background to black */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: auto; /* Allow horizontal scrolling */
}

a {
    color: white; /* Set the color of all links to white */
    text-decoration: none; /* Remove underline from links */
}

a:hover {
    text-decoration: underline; /* Add underline on hover for better visibility */
}

.white-text {
    color: white;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Ensure it is behind other elements */
}

.hero {
    flex-grow: 1;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    opacity: 0;
    animation: fadeInHero 1.5s ease-in-out forwards;
    position: relative; /* Ensure it stays centered */
}

.main-container {
    background: #000000; /* Same black color as the background */
    width: 90%; /* Adjust width for better responsiveness */
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0; /* Reset margin-top */
}

footer {
    margin-top: auto;
    background: #161616;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

body {
    padding-bottom: 60px;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    color: #fff;
    height: 100%;
    position: relative;
    animation: backgroundTransition 2s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0;
    animation: fadeInText 1.5s ease-in-out forwards 0.5s;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0;
    margin-top: 10px;
    color: #fff;
    animation: fadeInText 1.5s ease-in-out forwards 1.5s;
}

.hero .btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #00ff00;
    color: #0d0d0d;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    animation: fadeInText 1.5s ease-in-out forwards 2.5s;
}

.hero .btn:hover {
    background: #00cc00;
}

.green-text {
    color: #00ff00;
}

.title-section {
    text-align: center;
    margin: 20px 0 10px 0;
    padding: 20px;
}

.title-section .software {
    font-size: 6.5rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.title-section .engineer {
    font-size: 6.5rem;
    color: #888888;
    margin: 0;
    line-height: 1.2;
}

.skills-section {
    max-width: 1200px;
    margin: -20px auto 20px auto;
    padding: 0 20px;
    text-align: center;
}

.skills-category {
    margin: 15px 0;
}

.skills-category h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skills-content {
    color: #888888;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content-container {
    width: 100%; /* Adjust width for better responsiveness */
    margin: 0 auto;
    position: relative;
}

.cards {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for better responsiveness */
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card, .description-card {
    background: rgba(30, 30, 30, 0.6); /* Adjust the alpha value (0.8) for slight transparency */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%; /* Adjust width for better responsiveness */
    max-width: 600px; /* Set a maximum width */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    text-align: left; /* Align text to the left */
    z-index: 1; /* Ensure it is above other elements */
}

.card h3, .description-card h3 {
    color: #ffffff;
    text-align: left; /* Align text to the left */
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00ff00;
}

.card p, .description-card p {
    color: #888888;
    line-height: 1.6;
    margin: 0;
    text-align: left; /* Align text to the left */
}

.card:hover, .description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
}

.description-text {
    text-align: left; /* Align text to the left */
    color: #ffffff; /* Make the text white */
}

.description-text ul {
    padding-left: 20px; /* Add padding to the left for bullets */
    list-style-position: inside; /* Ensure bullets are inside the padding */
    text-align: left; /* Align text to the left */
}

.description-text li {
    text-align: left; /* Align text to the left */
    margin-left: 20px; /* Add margin to the left for better alignment */
}

.section {
    text-align: center;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 40px;
}

.section p {
    font-size: 1.1rem; /* Increase this value to make the text bigger */
    line-height: 1.6; /* Adjust line height for better readability */
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInHero {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: #161616;
    color: #aaaaaa;
    width: 100%; /* Ensure the footer takes the full width */
    position: relative; /* Ensure it stays at the bottom */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.no-underline {
    text-decoration: none;
}

#experience,
#about,
#projects,
#contact {
    margin-top: 20px;
}

@media screen and (min-width: 1920px) {
    body {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.section {
    width: 100%; /* Adjust width for better responsiveness */
}

.hero,
.title-section,
.skills-section {
    width: 100%; /* Adjust width for better responsiveness */
}
