* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #EEEEEE;
    transition: background 0.5s ease, color 0.5s ease;
    position: relative;
    overflow-x: hidden;
}


header {
    position: relative;
    background: #1E1E1E;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
}

nav ul li {
    list-style: none;
    padding: 5px;
}

nav ul li a {
    text-decoration: none;
    color: #007F8F;
    padding: 10px;
}

nav ul li a:hover {
    transition: background-color 0.3s ease;
    background-color: yellow;
    padding: 10px;
    border-radius: 4px;
}

@media screen and (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: row;
        position: absolute;
        right: 0;
        background: #1E1E1E;
        width: 70%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul {
        display: flex;
        flex-direction: row;
    }
}

button {
    padding: 10px;
    background: #00ADB5;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    align-items: center;
    justify-content: center;
}

button:hover {
    background: #007F8F;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    position: absolute;
    width: 100%;
    left: 0;
    display: none;
}

section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}


.light-mode {
    /* background-color: #F5F5F5; */
    color: #eaebeb;
}

.light-mode header {
    background: #EEEEEE;
}

/* .light-mode .project-card {
    background: #DDDDDD;
} */

/* about section */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.5;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.profile-pic {
    width: 250px;
    height: 350px;
    object-fit: cover;
}

.about-text {
    max-width: 800px;
}

.about-text h3 {
    text-align: center;
}

.about-text p {
    text-align: center;
}

/* social media styling */
.social-media {
    margin-left: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-left: -10px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2E2E2E;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-media a img {
    width: 35px;
    height: 35px;
    filter: invert();
}

.social-media a:hover {
    background-color: #0073e6;
    transform: scale(1.2);
}

/* table area */
table {
    width: 100%;
    max-width: 600px;
    margin: 0px auto;
    border-collapse: collapse;
    background-color: black;
    color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

th,
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
}

thead {
    background-color: #2a8ef2;
    color: white;
    font-weight: bold;
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

th {
    text-transform: uppercase;
}

td {
    font-size: 14px;
}



/* projects section */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1E1E1E;
    padding: 20px;
    margin: 10px;
    transition: transform 0.3s;
    height: auto;
}

.project-card:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .project-card {
        max-width: 100%;
        height: auto;
    }
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url("https://picsum.photos/2600/1600") no-repeat center center fixed; */
    background: url("assets/videos/bg1.mp4") no-repeat center center fixed;

    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.project-card h2 {
    text-align: center;
    color: greenyellow;
}

.project-card p {
    text-align: center;
    margin-top: 30px;
}

.project-card a {
    text-decoration: none;
    color: white;
    text-align: center;
    padding: 10px 20px;
    margin-top: 30px;
    background-color: #0073e6;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
}

.project-card a:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

.project-card .live-demo {
    background-color: red;
}


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

#skills::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: url("https://picsum.photos/2600/1600") no-repeat center center fixed; */
    background: url("assets/videos/bg3.mp4") no-repeat center center/cover;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1E1E1E;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card p {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    background-color: darkblue;
}

.skill-card:hover img {
    transform: scale(1.1);
}

/* progress bar styling */
.skills-progress {
    max-width: 600px;
    margin: 50px auto;
    text-align: left;
}

.progress-bar {
    margin-bottom: 15px;
}

.progress-bar p {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress {
    width: 100%;
    background-color: #2E2E2E;
    height: 20px;
    border-radius: 5px;
    position: relative;
}

.progress-fill {
    height: 100%;
    transition: width 1s ease-in-out;
}

/* contact section */
#contact {
    text-align: center;
    padding: 60px 0px;
    background-color: #1e1e1e4c;
    color: white;
    height: 100vh;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://picsum.photos/2600/1600") no-repeat center fixed;
    background-size: cover;
    opacity: 0.3;
    z-index: -1;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 800px;
    margin: auto;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 250px;
    margin-top: 20%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item img {
    filter: invert(1);
}

.contact-item a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

#contact-form {
    flex: 1;
    min-width: 300px;
    background: #2e2e2e;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.993);
    margin-top: 10%;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

#contact-form button {
    width: 105%;
    padding: 10px;
    background-color: #0073e6;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#contact-form button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}