/* General Reset */

html {
    font-size: clamp(14px, 1.5vw, 18px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #191111;
    background: url('https://lucdn.letsupgrade.net/assets/users_count_bg_73c24b4781.gif') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: #cccccc00;
    background-image: url('My Image.jpg'); /* Replace with your profile image */
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(30, 34, 42, 0.85);
    border: 4px solid #c8c3c3;
    border-radius: 16px;
    margin: 1rem auto;
    width:100%;
    max-width: 1080px;
    box-shadow: 0 4px 6px rgba(181, 181, 182, 0.74);
    color: #abb2bf;
}

h1 {
    font-size: 2rem;
    margin: 1rem 0;
    color: #a5aaae;
}

p {
    font-size: 1.5rem;
    color: #c7ccc3;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem;
}

nav button {
    background: #d5cfcf;
    color: #253b77;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    font-size: 1rem;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav button:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 6px rgb(255, 255, 255);
    transform: translateY(-3px);
}

/* Sections */
main {
    padding: 2rem 1rem;
    max-width: 1080px;
    margin: auto;
}

.section {
    margin-bottom: 3rem;
    color: #abb2bf;
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    box-sizing: border-box;
}

.section-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.section-content {
    width: 100%;
    box-sizing: border-box;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.icon {
    text-decoration: none;
    width: 5.625rem;
    height: 5.625rem;
    border-radius: 14px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.icon > i {
    color: #2dd4bf;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.icon:hover > i {
    transform: scale(1.2);
    color: #f1f1f1;
}

.icon:before {
    background: var(--color);
    content: "";
    position: absolute;
    width: 130%;
    height: 130%;
    left: -110%;
    top: 80%;
    transform: rotate(45deg);
}

.icon:hover:before {
    animation: slide 0.7s forwards;
}

@keyframes slide {
    50% {
        left: 10%;
        top: -40%;
    }

    100% {
        left: -15%;
        top: -15%;
    }
}

.icon:has(.fa-instagram) {
    --color: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.icon:has(.fa-linkedin-in) {
    --color: #0077b5;
}

.icon:has(.fa-x-twitter) {
    --color: #141d23;
}

.icon:has(.fa-github) {
    --color: #333;
}

.outer-box {
    border: 4px solid #c8c3c3;
    padding: 30px;
    background-color: #222028;
    box-shadow: 0 4px 6px rgba(181, 181, 182, 0.74);
    border-radius: 20px;
}

.about-me {
    text-align: center;
    border: 2px solid #1c1b1b;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.about-me h2 {
    font-size: 2rem;
    color: #292828;
    margin-bottom: 1rem;
}

.about-me p {
    font-size: 1rem;
    line-height: 1.8;
    color: #6d6c6c;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.skill-box {
    flex: 1 1 200px;
    max-width: 300px;
    color: #000000;
    padding: 15px;
    border: 1px solid #918f8f;
    background-color: #000000;
    box-shadow: 0 4px 6px rgba(181, 181, 182, 0.74);
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.skill-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.74);
}

.skill-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.skill-item:hover {
    transform: translateY(-5px);
    color: #fffafa;
    box-shadow: 0 4px 6px rgb(221, 221, 221);
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.project-card {
    background: linear-gradient(135deg, #1d1e26, #1d232f 100%);
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.74);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    text-align: center; /* Center-align text */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
}

.project-card h3 {
    color: #d4d0d0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
}

.project-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.project-tags span {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.project-links {
    margin-top: 1.5rem;
}

.project-card a {
    display: inline-block;
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0.1);
}

.project-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
}


.ref-button {
    display: inline-block;
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgb(145, 144, 144);
}

.ref-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
}

/* Education Section */
#Education.section {
    padding: 2rem 2rem;
}

#Education h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.Education-grid {
    display: flex;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.Education-card {
    background: linear-gradient(135deg, #1d1e26, #1d232f 100%);
    padding: 0.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.74);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 1080px;
    box-sizing: border-box;
    margin-bottom: 1rem;
    text-align: center; /* Center-align text */
}

.Education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
}

.Education-card h3 {
    color: #d4d0d0;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
}

.Education-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.Education-links {
    margin-top: 1.5rem;
}

.Education-card a {
    display: inline-block;
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    color: #fff;
    text-decoration: none; 
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0.1);
}

.Education-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
}

/* Resume Section */
.resume-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #12161a, #121e20);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px;
    margin: 30px auto;
    box-shadow: 0 4px 6px rgba(181, 181, 182, 0.74);
    width: 90%;
    max-width: 1080px;
}

.resume-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c0bfb9;
}

.resume-section .resume-description {
    text-align: left;
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
    letter-spacing: 1px;
    color: #ecf0f1;
    max-width: 800px;
}

.resume-section .download-btn button {
    background-color: #3498db;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(181, 181, 182, 0.74);
}

.resume-section .download-btn button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 6px rgb(255, 255, 255);
    transform: scale(1.1);
}

/* Contact Section */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    padding: 2rem;
    background: rgba(21, 24, 28, 0.85);
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.74);
    border-radius: 20px;
    max-width: 1080px;
    margin: 2rem auto;
    width: 90%;
}

#contact h2 {
    font-size: 1.7rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #0077b6 0%, #00b4d8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(221, 221, 222, 0.992);
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgb(255, 255, 255);
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
}

.contact-link::before {
    content: '📧';
    font-size: 1.7rem;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    header {
        width: 90%;
        padding: 1rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.2rem;
    }

    .skill-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .project-card {
        width: 100%;
    }

    .resume-section .section-title {
        font-size: 1.8rem;
    }

    .resume-section .resume-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    nav {
        display: none;
    }

    header {
        width: 87%;
        padding: 1rem;
        border-radius: 8px;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-me h2 {
        font-size: 1.5rem;
    }

    .about-me p {
        font-size: 0.9rem;
    }

    .resume-section {
        padding: 1rem;
    }

    .resume-section .download-btn button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    #contact h2 {
        font-size: 1.5rem;
    }

    .contact-link {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
