* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    background-color: #000000;
}

.header-sec {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 80px;
    background-color: transparent;
    display: block;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    z-index: 100;
    background: black;
    opacity: 0.7;
}

section {
    scroll-behavior: smooth;
    background : transparent;
}
div{
    background:transparent;
}

h1, h2, p {
    background:transparent;
}
.dot-navigation {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 10px 0;
    background-color: red;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ffffff;
}

nav {
    background: transparent;
    height: 90px;
    width: 100%;
}

label.logo {
    background: transparent;
    color: white;
    font-size: 22px;
    line-height: 86px;
    font-weight: bold;
}

.logo span {
    color: #ff0077;
    background: transparent;
}

/* Changed .logo to an anchor tag, so apply styles to the anchor */
a.logo {
    background: transparent;
    color: white;
    font-size: 22px;
    line-height: 86px;
    font-weight: bold;
    text-decoration: none; /* Remove underline for logo link */
    display: inline-block; /* Ensure it behaves like a block for line-height */
}


nav ul {
    float: right;
    background: transparent;
}

nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 2px;
    background: transparent;
    font-size: small;
}

nav ul li a {
    text-decoration: none;
    list-style: none;
    color: white;
    font-size: 12px;
    padding: 7px 19px;
    background: transparent;
    text-transform: uppercase;
}

a.active, a:hover {
    background: #ff0077;
    transition: .5s;
    border-radius: 50%;
    background-color: #ff0077;
}

.checkbtn {
    font-size: 30px;
    color: #ff0077;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

@media screen and (max-width: 952px) {
    .header-sec {
        padding: .8em;
    }

    label.logo {
        font-size: 22px;
    }
    a.logo { /* Apply to anchor tag for consistency */
        font-size: 22px;
    }

    nav ul li a {
        font-size: 15px;
    }
}

@media screen and (max-width: 858px) {
    .checkbtn {
        display: block;
        font-size: 26px;
        margin-right: 1em;
    }

    ul {
        position: fixed;
        width: 100%;
        height: 100vh;
        background: #2b2b2b;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }

    nav ul li {
        display: block;
        margin: 50px 0;
        line-height: 10px;
    }

    nav ul li a {
        font-size: 20px;
    }

    a:hover, a.active {
        background: none;
        color: #df003b;
    }

    #check:checked ~ ul {
        left: 0;
        background: #000;
    }
}


form {
    display: flex;
    flex-direction: column;
}

/* Main styles */
main {
    padding: 2rem;
}

/* Home section */
.hero {
    background-color: #000000;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: color;
    display: flex;
    align-items: center;
    padding: 3em 80px;
    /* Added to clear fixed header */
    padding-top: 150px; /* Adjust this value as needed to clear the fixed header */
}

.hero-content {
    margin-top: 5em; /* Original value, but overridden by inline style if set to 0 */
    /* Ensure no conflicting top margin/padding if adjusted in HTML's inline style */
    margin-top: 0; /* Updated from previous instruction for consistency */
    padding-top: 0; /* Updated from previous instruction for consistency */
}

.hero-content h1 {
    color: #ebebeb;
    font-size: 50px;
    font-weight: 700;
    line-height: 60px;
    padding-top: 80px;
}

.hero-content h2 {
    text-align:center;
    color: #ff0077;
    font-size: 34px;
    font-weight: 600;
}

.hero-content p {
    text-align:center;
    font-size: 16px;
    color: #ebebeb;
    line-height: 26px;
    margin: 20px 0 40px;
}

.btn-box {
    display: flex;
    justify-content: space-between;
    width: 350px;
    height: 50px;
    margin-left: 25em;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: #ff0077;
    border: 2px solid #ff0077;
    border-radius: 8px;
    font-size: 18px;
    color: #ebebeb;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 600;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.btn-box a:hover {
    color: #fff;
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #ff0077;
}

.btn-box a:nth-child(2):hover {
    color: #ebebeb;
}

.btn-box a:nth-child(2)::before {
    background: #ff0077;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: #000;
    z-index: -1;
    border-radius: 8px;
    transition: 0.5s;
}

.btn-box a:hover::before {
    width: 100%;
}

.social-icon {
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.social-icon a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff0077;
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #ff0077;
    text-decoration: none;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
}

.social-icon a:hover {
    color: #ebebeb;
}

.social-icon a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: #ff0077;
    z-index: -1;
    transition: 0.5s;
}

.social-icon a:hover:before {
    width: 100%;
}
/* Responsive Code */
@media screen and (max-width: 952px) {
    .hero {
        padding: 3em;
        margin-top:3em;
        display: block;
        /* Adjusted to clear fixed header on mobile */
        padding-top: 100px;
    }

    .hero h1 {
        padding: 60px 0 0 0;
        font-size:2.5em;
    }
    .hero h2{
        font-size:2em;
    }
    .dot-navigation{
        display:none;
    }
}

.about-section{
    padding: 75px 20px 50px;
}
/* Project section */
.project-section {
    width: 100%;
    min-height: 100vh;
    padding: 2em 100px 100px;
    position: relative;
    top: 0;
}

.project-heading {
    font-size: 50px;
    text-transform: capitalize;
    text-align: center;
    margin-bottom: 50px;
    color: #ff0077;
}

.project-container {
    display: block;
    gap: 20px;
}

.project-card {
    height: 400px;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    object-fit: cover;
}

.project-content {
    position: relative;
    padding: 40px;
    color: #fff;
}

.project-title {
    font-size: 50px;
    text-transform: capitalize;
    text-align: center;
    font-weight: 300;
}

.project-info {
    margin: 40px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
}

.project-btn-grp {
    display: flex;
}
.project-btn-grp a {
    text-decoration: none;
    list-style: none;
    color: white;
    font-size: 17px;
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
    background: #ff0077
}


/* About section */
.about-section {
    width: 100%;
    min-height: 100vh;
    padding: 150px 10px 100px;
    position: relative;
    top: 0;
    opacity: 1;
    transition: 1s;
}

.about {
    width: 100%;
    display: grid;
    grid-template-columns: 30% 65%;
    grid-gap: 40px;
}

.about-img-container {
    position: relative;
}

.about-info {
    color: #fff;
    opacity: 0.6;
    font-size: 20px;
    line-height: 40px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.download-cv-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    color: #fff;
    border: none;
    font-size: 16px;
    text-transform: capitalize;
    cursor: pointer;
    transition: .5s;
    background:#000;
}

.download-cv-btn:hover {
    background: #ff0077;
}

/* Skills section */
.skill-section {
    position: relative;
    margin: 100px 0;
}

.heading {
    text-align: center;
    font-size: 60px;
    color: #fff;
    text-transform: capitalize;
    font-weight: 300;
    margin-bottom: 100px;
    color: #ff0077
}

.skills-container {
    width: 95%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 100px;
    color: #fff;
}

.skill-card {
    position: relative;
}

.skill-img {
    display: block;
    margin: auto;
    height: 200px;
}

.skill-name {
    font-size: 30px;
    font-weight: 300;
    text-align: center;
    text-transform: capitalize;
    margin: 30px 0 20px;
}

.skill-info {
    text-align: center;
    opacity: 0.5;
    font-size: 18px;
    line-height: 30px;
}

.skill-level {
    position: absolute;
    top: 80px;
    right: 0;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    border-radius: 50%;
    border: 10px solid;
}

.skill-card:nth-child(1) .skill-level {
    background: #ff4f4f28;
    border-color: #ff4f4f;
    color: #ff4f4f;
}

.skill-card:nth-child(2) .skill-level {
    background: #4fa0ff28;
    border-color: #4fa0ff;
    color: #4fa0ff;
}

.skill-card:nth-child(3) .skill-level {
    background: #ffed4f28;
    border-color: #ffed4f;
    color: #ffed4f;
}

.skill-card:nth-child(4) .skill-level {
    background: #52ff4f28;
    border-color: #52ff4f;
    color: #52ff4f;
}

.skill-card:nth-child(5) .skill-level {
    background: #4fdfff28;
    border-color: #4fdfff;
    color: #4fdfff;
}


@media (min-width: 901px) {

    .skill-card:nth-child(1) {
        animation: transition-in-from-left 8s;
    }

    .skill-card:nth-child(2) {
        animation: transition-in-from-left 8s;
    }

    .skill-card:nth-child(3) {
        animation: transition-in-from-left 8s;
    }

    .skill-card:nth-child(4) {
        animation: transition-in-from-right 8s;
    }

    .skill-card:nth-child(5) {
        animation: transition-in-from-right 8s;
    }
}



@media (max-width: 900px) {

    .skill-card:nth-child(1) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 12s ease forwards;
    }

    .skill-card:nth-child(2) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 12s ease forwards;
    }

    .skill-card:nth-child(3) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 12s ease forwards;
    }

    .skill-card:nth-child(4) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 12s ease forwards;
    }

    .skill-card:nth-child(5) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 12s ease forwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.timeline {
    display: block;
    width: 80%;
    margin: 150px auto;
}

.timeline .heading {
    margin-bottom: 150px;
}

.card {
    width: 45%;
    padding: 30px;
    border-radius: 10px;
    color: #fff;
    display: block;
    position: relative;
    background: #ff0077;
}

@media (min-width: 901px) {
    .card:nth-child(even) {
        margin-left: auto;
        animation: transition-in-from-left 8s;
    }

    .card:nth-child(odd) {
        animation: transition-in-from-right 8s;
    }
}

@media (max-width: 900px) {
    .card:nth-child(even) {
        margin-left: auto;
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 15s ease forwards;
    }

    .card:nth-child(odd) {
        opacity: 0; /* Start at 0 opacity */
        animation: fadeIn 15s ease forwards;
    }

}

.card:nth-child(even):before {
    content: '';
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #ff0077;
    border-radius: 50%;
}

.card:nth-child(even):after {
    content: '';
    position: absolute;
    left: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
}

.card:nth-child(odd):before {
    content: '';
    position: absolute;
    right: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 5px solid #ff0077;
    border-radius: 50%;
}

.card:nth-child(odd):after {
    content: '';
    position: absolute;
    right: -8.5%;
    top: 50%;
    transform: translateY(-50%);
    width: 7%;
    height: 2px;
    background: #fff;
}

.card-title {
    text-transform: capitalize;
    font-size: 30px;
    text-align: center;
    margin-bottom: 30px;
    background-color: transparent;
}

.card-subtitle {
    font-size: 25px;
    font-weight: 300;
    margin-bottom: 20px;
}

.card-detail {
    text-align: center;
    background-color: transparent;
}


.card-info {
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
}

.card-body {
    background-color: transparent;
}

@keyframes transition-in-from-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes transition-in-from-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Footer styles */
.footer {
    position: relative;
    width: 100%;
    min-height: 100px;
    padding: 7em 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.social-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.social-icon__item,
.menu__item {
    list-style: none;
}

.social-icon__link {
    font-size: 2rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

.social-icon__link:hover {
    transform: translateY(-10px);
}

.menu__link {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
    font-weight: 300;
}

.menu__link:hover {
    opacity: 1;
}

.footer p {
    color: #fff;
    margin: 15px 0 10px 0;
    font-size: 1rem;
    font-weight: 300;
}



.courses-section {
    display: grid;
    grid-template-columns: repeat(2,2fr);
    background: #545454;
    margin-left: 120px
}

.course {
    justify-content: center;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 80%;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.course:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.course-img {
    width: 40%;
    overflow: hidden;
    border: 10px;
    margin-top: 5%;
    border-radius: 50%;
}

.course-heading {
    font-size: 24px;
    color: #ffffff;
    margin: 10px 0;
}

.course-text {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
}

.pay {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #cd7272;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.pay:hover {
    background-color: #d91c5f;
    transform: scale(1.05);
}

.button {
    background-color: #0000aa;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 12px;
}

@media screen and (max-width: 900px) {
    .nav-items {
        position: fixed;
        top: 70px;
        right: -250px;
        width: 250px;
        height: 10%;
        background: #0000aa;
        flex-direction: column;
        display: flex;
        transition: right 0.3s ease;
    }

    .nav-items.active {
        right: 0;
        display: flex;
    }

    .home-section {
        padding: 0 20px 20px;
        height: auto;
    }

    .btn-box {
        margin-left: 0em;
        width: fit-content;
    }

    .btn-box a{
        margin-right: 1em;
    }

    .hero-heading {
        padding-top: 20%;
        font-size: 300%;
    }

    .home-img {
        height: 100%;
        width: 50%;
        height: auto;
    }

    .project-section {
        padding: 150px 20px;
    }

    .project-heading {
        margin-top: 50px;
        font-size: 50px;
    }

    .project-card {
        padding-bottom: 100px;
        height: auto;
    }

    .project-img {
        padding-bottom: 50px;
    }

    .project-title {
        font-size: 40px;
    }

    .project-btn {
        height: 40px;
        text-transform: capitalize;
        font-size: 10px;
        border: 1px;
        background: #ffffff;
        color: #000000;
        border-radius: 50%;
        cursor: pointer;
    }

    .about-section {
        padding: 2.5em;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-info {
        font-size: 15px;
    }

    .download-cv-btn:hover, .download-cv-btn:active {
        background: #ff0077;
    }

    .skill-section {
        margin: 50px 0;
    }

    .heading {
        font-size: 40px;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }



    .timeline .heading {
        margin-bottom: 50px;
    }

    .card {
        width: 65%;
        height: 20%;
        padding: 30px;
        border-radius: 10px;
        margin-bottom: 2em;
        color: #fff;
        display: block;
        position: relative;
        background: #ff0077;
    }

    .card:nth-child(even) {
        margin-left: auto;
    }

    .card:nth-child(even):before {
        content: '';
        position: absolute;
        left: -30%;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border: 5px solid #ff0077;
        border-radius: 0%;
    }

    .card:nth-child(even):after {
        content: '';
        position: absolute;
        left: -15%;
        top: 50%;
        transform: translateY(-50%);
        width: 15%;
        height: 2px;
        background: #fff;
    }

    .card:nth-child(odd):before {
        content: '';
        position: absolute;
        right: -30%;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border: 5px solid #ff0077;
        border-radius: 0%;
    }

    .card:nth-child(odd):after {
        content: '';
        position: absolute;
        right: -15%;
        top: 50%;
        transform: translateY(-50%);
        width: 15%;
        height: 2px;
        background: #fff;
    }

    .card-title {
        text-transform: capitalize;
        font-size: 0.75em;
        text-align: center;
        margin-bottom: 1em;
        background-color: transparent;
    }

    .card-subtitle {
        font-size: 25px;
        font-weight: 300;
        margin-bottom: 20px;
    }

    .card-detail {
        text-align: center;
        background-color: transparent;
        font-size: 0.7em;
    }


    .card-info {
        font-size: 18px;
        font-weight: 300;
        line-height: 30px;
    }

    .card-body {
        background-color: transparent;
    }

    .footer ul {
        height: 0vh;
        top: 0px;
        left: 0%;
    }
}

@media screen and (max-width: 480px) {
    .btn-box{
        margin: 0 auto;
    }

    .header-sec{
        padding: :0 ;
    }

    .hero-content{
        margin-top: 7em;
    }

    .nav-items {
        height: 15%;
    }


    .courses-section {
        display: block;
    }

    .course {
        width: 100%
    }

    .footer {
        padding: 1em 20px;
    }
}

@media screen and (min-width : 769px) and (max-width: 1024px) {
    .footer {
        padding: 1em 20px;
    }
    .hero-heading {
        font-size: 400%;
    }

    .home-img {
        height: 80%;
        margin-bottom: 20%;
    }

    .project-heading {
        margin-top: 20%;
    }
}

/* Dropdown specific styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b2b2b; /* A darker shade for dropdown background */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); /* Darker shadow */
    z-index: 1;
    border-radius: 8px; /* Rounded corners for dropdown */
    padding: 10px 0; /* Padding inside dropdown */
    top: 100%; /* Position below the dropdown button */
    left: 0; /* Align to the left of the dropdown button */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left; /* Align text left within dropdown */
    background-color: transparent; /* Ensure transparent background for links */
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: #ff0077; /* Highlight on hover */
    color: #fff;
    border-radius: 0; /* Remove border-radius on hover for dropdown items */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Adjusting for mobile menu when dropdown is open */
@media screen and (max-width: 858px) {
    .dropdown-content {
        position: relative; /* Make dropdown content flow naturally in mobile menu */
        background-color: transparent; /* Transparent background in mobile menu */
        box-shadow: none; /* No shadow in mobile menu */
        width: 100%;
        min-width: unset;
        padding: 0; /* No extra padding in mobile menu */
    }

    .dropdown-content a {
        padding: 10px 20px; /* Adjust padding for mobile menu items */
        text-align: center; /* Center align dropdown items in mobile menu */
    }
     nav ul li {
        line-height: normal; /* Allow more natural spacing for dropdown in mobile */
    }
    .dropdown:hover .dropdown-content {
        display: block; /* Ensure it still displays on hover/touch for desktop-like interaction */
    }
}
