* {
    box-sizing: border-box !important;
    transition: ease all 0.5s;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #F1EFEC;
    background-color: #FEF7F1;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.25;
}

.menu {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background-color: #FEF8EE;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item a {
    text-decoration: none;
    color: #123458;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.1s ease;
}

.nav-item a:hover {
    color: #FF4500;
    border-bottom: 2px solid #FF4500;
}

.nav-item a:active {
    border-bottom: #F1EFEC;
}

/*menu icon */
.menu-icon {
    display: none;
    cursor: pointer;
    margin-left: auto;
    padding: 5px;
}

.portion {
    padding: 100px 0 80px 0;
}


#hero {
    border-radius: 10%;
    margin-top: 60px;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: end;
    align-items: center;
    text-align: center;
    flex-direction: column;
    flex-wrap: wrap;
    position: relative;
    color: #fff;
    font-family: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;
    font-weight: normal;
    padding: 90px 20px;
    background-image: url(Images/hero-img.png);
}

#hero hr {
    width: 30%;
    text-align: center;
    margin: 0 auto;
}

#hero h1 {
    font-size: 80px;
    font-weight: 700;
    line-height: 0.25;
    padding: 20px 0;
}

#hero h2 {
    font-size: 30px;
    font-weight: 500;
    padding: 20px 0 10px 0;
}

#hero p {
    font-weight: 400;
    font-size: 20px;
    margin: 20px 0;
    max-width: 80%;
}

.expertise-section {
    color: #123458;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.skill-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.skill-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.skill-card ul {
    list-style: none;
    text-align: left;
    flex-direction: row;
}

.skill-card ul li {
    margin-bottom: 5px;
    font-size: 14px;
}

ul li::before {
    content: "|";
    margin-right: 10px;
    color: green;
}



ul li {
    list-style-type: none;
    padding: 10px;
}




#portfolio {
    background-color: #123458;
    overflow: hidden;
    text-align: center;
}

.portfolio-cards {
    display: flex;
    gap: 30px;
    padding: 30px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

button {
    text-decoration: none;
}

.portfolio-card {
    min-height: 80px;
    max-width: 250px;
    height: 300px;
    padding: 30px;
    color: #123458;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
    overflow: hidden;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.portfolio-card h4 {
    font-size: 20px;
    font-weight: bold;
}

.portfolio-card p {
    font-size: 16px;
    padding: 10px 0;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 10px #fff;
    transition: all 0.3s ease;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)), #fff6ef;
}

.portfolio-card .default-text {
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
}

.portfolio-card .hover-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #123458;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hover-text a {
    text-decoration: none;
    color: #123458 important;
}

.portfolio-card:hover .hover-text {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-card:hover .default-text {
    opacity: 0;
}

/* Change text on hover */
.portfolio-card:hover .default-text {
    opacity: 0;
}

.portfolio-card:hover .hover-text {
    opacity: 1;
    font-size: 14px;
}


.experience {
    background-color: #fef3eb;
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.section-title {
    font-size: 28px;
    color: #003344;
    font-weight: bold;
    border-left: 4px solid #003344;
    padding-left: 12px;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    margin-left: 20px;
    border-left: 2px solid #003344;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-item .dot {
    position: absolute;
    left: -10px;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: #003344;
    border: 3px solid #fef3eb;
    border-radius: 50%;
}

.timeline-item .content h3 {
    font-size: 18px;
    color: #002244;
    margin-bottom: 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.timeline-item .content h3 span {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.timeline-item .content p {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.5;
}

.timeline-item .content p span {
    font-weight: 600;
    color: #004c4c;
}


.connect-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
}

.connect-image {
    flex: 1 1 300px;
    max-width: 400px;
}

.connect-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #ddd;
    object-fit: cover;
}

.connect-content {
    flex: 1 1 300px;
    max-width: 500px;
}

.connect-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    text-transform: capitalize;
}

.connect-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-buttons {
    display: flex;
    gap: 14px;
}

.btn,
#hero-btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

/* LinkedIn */
.btn.linkedin {
    background-color: #ff4500;
    color: #fff;
    border: 2px solid #ff4500;
}

.btn.linkedin:hover {
    background-color: #e63e00;
}

/* GitHub */
.btn.github {
    background-color: transparent;
    color: #ff4500;
    border: 2px solid #ff4500;
}

.btn.github:hover {
    background-color: #ff4500;
    color: #fff;
}

/* Twitter (X) */
.btn.twitter {
    background-color: transparent;
    color: #ff4500;
    border: 2px solid #ff4500;
}

.btn.twitter:hover {
    background-color: #ff4500;
    color: #fff;
}

#certificates {
    color: #123458;
    text-align: center;
    padding: 60px 20px;
}

#certificates h2 {
    margin-bottom: 15px;
}

.card-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    color: #123458;
    padding: 60px 20px;
}

.card {
    background: transparent;
    width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding-bottom: 15px;
}

.card-image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Or use "contain" if you don’t want cropping */
    display: block;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0 20px;
}

.card p {
    font-size: 0.8rem;
    margin: 2px 0;
    padding: 0 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}


#contact {
    color: #123458;
    text-align: center;
}

.contact-form {
    max-width: 100%;
    padding-top: 40px;
}

.mail-section {
    width: 70%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}

.mail-section input,
.mail-section textarea {
    border: 1px solid rgba(212, 201, 190, 0.5);
    box-shadow: 0 0 10px rgba(212, 201, 190, 0.5);
    background: #fef3eb;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    outline: none;
    font-size: 16px;
    font-weight: 300;
    color: #030303;
    padding: 20px 30px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 15px;
}

.mail-section input:focus,
textarea:focus {
    border: 1px solid rgba(212, 201, 190, 0.5);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 201, 190, 0.5);
    transform: scale(1.02);
    transition: all ease;
}


.mail-section textarea {
    resize: none;
    height: 120px;
    margin-bottom: 10px;
}


.Btn {
    position: relative;
    width: 150px;
    height: 55px;
    margin-top: 10px;
    border-radius: 45px;
    border: none;
    background-color: #FF4500;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0px 10px 10px #FF4500 inset,
        0px 5px 10px rgba(5, 5, 5, 0.212),
        0px -10px 10px #FF4500 inset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Btn::before {
    width: 70%;
    height: 2px;
    position: absolute;
    background-color: rgba(250, 250, 250, 0.678);
    content: "";
    filter: blur(1px);
    top: 7px;
    border-radius: 50%;
}

.Btn::after {
    width: 70%;
    height: 2px;
    position: absolute;
    background-color: rgba(250, 250, 250, 0.137);
    content: "";
    filter: blur(1px);
    bottom: 7px;
    border-radius: 50%;
}

.Btn:hover {
    animation: jello-horizontal 0.9s both;
}

@keyframes jello-horizontal {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.25, 0.75, 1);
    }

    40% {
        transform: scale3d(0.75, 1.25, 1);
    }

    50% {
        transform: scale3d(1.15, 0.85, 1);
    }

    65% {
        transform: scale3d(0.95, 1.05, 1);
    }

    75% {
        transform: scale3d(1.05, 0.95, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}



.contact-info {
    width: 100%;
    box-sizing: border-box;
    background-color: #123458;
    padding: 20px;
    color: #fff;
    font-weight: 300;
    font-size: 16px;
}

ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

ul a {
    text-decoration: none;
    color: white;
}


#Aboutme {
    padding: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 20px;
    font-family: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;
    font-weight: normal;
    font-style: normal;
    background-color: #123458;
}

#seeMoreBtn,
.hover-text a {
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    text-transform: uppercase;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
}

#seeMoreBtn {
    color: #fff;
}

#seeMoreBtn:focus,
.hover-text a:focus {
    outline: none;
    color: #fff;
}

#seeMoreBtn:hover {
    color: #fff;
}

.hover-text a {
    color: #ff4500;
}

#seeMoreBtn:focus:after,
.hover-text a:focus:after {
    width: 100%;
    left: 0%;
}

#seeMoreBtn:hover:after,
.hover-text a:hover:after {
    width: 100%;
    left: 0%;
}

#seeMoreBtn:after,
.hover-text a:after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #FF4500;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

/* responsive view */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
        float: inline-end;
        width: 40px !important;
        height: 40px !important;
    }

    .menu {
        color: #fff;
    }

    .menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background-color: #123458;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 60px;
        width: 150px;
        background-color: #123458;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        padding-bottom: 20px;
        color: #F1EFEC;
    }


    .navbar.active {
        display: flex;
    }

    .nav-item {
        text-align: center;
        padding: 10px 0;
    }

    .nav-item a {
        font-size: 16px;
        color: #fff;
    }

    #hero {
        padding: 20px;
        border-radius: 0;
        background-image: url(Images/hero-img.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        font-weight: 400;
        font-style: normal;
    }

    #hero h1 {
        margin: 20px 0;
    }

    .mail-section {
        width: 90%;
    }

    .mail-section input,
    textarea {
        padding: 15px;
        max-width: 100%;
    }
}



@media (max-width: 480px) {

    .portion {
        padding: 50px 0;
    }

    .menu .menu-icon {
        margin: 5px;
        width: 15px;
        height: 15px;
        color: fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }



    body {
        font-size: 14px;
    }

    #hero {
        height: 80vh;
        border-radius: 0;
        background-color: #123458;
        background-image: url(Images/hero-img.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        color: #fff;
        text-align: center;
        flex-direction: column;
        justify-content: end;
        align-items: center;
        font-family: Rockwell, 'Rockwell Nova', 'Roboto Slab', 'DejaVu Serif', 'Sitka Small', serif;
        font-weight: normal;
        font-style: normal;
        padding: 40px 20px;
        overflow: hidden;
        margin-top: 60px;
    }

    #hero h1 {
        font-size: 40px;
        margin: 10px 0;
    }

    #hero h2 {
        font-size: 18px;
        padding: 0 10px;
    }

    #hero p {
        font-size: 16px;
        max-width: 90%;

    }

    #hero hr {
        width: 50%;
    }

    #hero button {
        padding: 10px 20px;
        font-size: 14px;
    }

    #Expertise {
        padding: 20px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1px;
    }

    #Expertise .skill-cards {
        padding: 20px;
        margin: 0;
    }

    #Expertise ul {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        line-height: 0.25;
        padding: 0;
        margin: 0;
    }

    #Expertise ul li {
        padding: 10px;
        font-size: 16px;
        border-bottom: none;
    }

    ul li {
        list-style-type: none;
        padding: 10px;
    }

    .Soft-skills,
    .Technical-Skills {
        width: 100%;
        padding: 10px;
        box-shadow: none;
    }


    .portfolio-cards {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .portfolio-card {
        width: 100%;
        max-width: 90%;
        height: auto;
        padding: 20px;
    }

    .portfolio-card:hover {
        font-size: 14px;
        transform-style: flat;
    }

    .hover-text p {
        font-size: 14px;
    }

    .card {
        width: 100%;
        height: 200px;
        max-width: 90%;
        margin: 10px 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        float: center;
        padding-bottom: 15px;
    }

    .card img {
        height: auto;
        border-radius: 6px
    }

    .card h3 {
        font-size: 1.2rem;
        margin-top: 10px;
        padding: 0 20px;
    }

    .card p {
        padding: 0 10px;
        margin: 0;
    }

    #Aboutme {
        padding: 20px;
        font-size: 16px;
    }

    .contact-info {
        width: 90%;
    }

    #contact p {
        font-size: 20px;
    }

    .contact-info {
        font-size: 14px;
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .Btn {
        width: 100%;
        max-width: 100px;
        height: 45px;
        font-size: 14px;
    }

}