@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FAFAF9;
    color: #2B2B2B;
    line-height: 1.6;
    font-family: 'poppins', sans-serif;
}

header {
    margin-top: 0px;
    border: 1px solid white;
    display: flex;
    justify-content: center;
}

.navbar {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    backdrop-filter: blur(5px);
    /* d magic */
    -webkit-backdrop-filter: blur(5px);
    padding: .5rem;
    color: #fff;
    max-width: 400px;
    text-align: center;
    position: fixed;
    z-index: 1000;
    border: 1px solid rgba(212, 210, 210, 0.733);
    width: 80%;
    margin-top: 10px;
}

.navbar ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: auto;
    z-index: 1100;
    justify-content: space-around;
    gap: 1.8em;
}

.navbar ul li {
    margin: auto;
    width: max-content;
}

.navbar ul li a {
    text-decoration: none;
    color: #2B2B2B;
    display: flex;
}



.navbar ul li a span {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar ul li a {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.navbar ul li a:hover {
    transform: translateY(-3px);
}

/* .rsp{
    padding-bottom: 4px;
}

.psp{
    padding-bottom: 3px;
} */

.navbar ul li a span p {
    font-size: small;
    font-weight: normal;
}

.navbar ul li a span i {
    font-size: 25px;
}

.blog {
    padding: 19px;
    font-size: medium;
    background-color: #2B2B2B;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
}

.hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 150px;
    padding-left: 25px;
}

.hero-image {
    width: 40%;
    padding-left: 7px;
}

.hero-image img {
    border-radius: 15px;
}

.intro {
    font-weight: bolder;
    padding: 7px;
}

.intro h1 {
    color: #2B2B2B;
}

.intro p {
    font-size: medium;
    font-weight: normal;
    padding-top: 10px;
}

.btn-span {
    display: flex;
    flex-direction: row;
    gap: 25px;
    padding: 0px;
}


.cta {
    padding: 20px;
    font-size: medium;
    background: #2B2B2B;
    color: #FAFAF9;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 30px;
}

.ctai {
    padding: 20px;
    font-size: medium;
    background: #2B2B2B;
    color: #FAFAF9;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-top: 30px;
}

.ctai:hover {
    color: white;
    background-color: green;
    font-weight: normal;
}

.cta:hover {
    color: white;
    background-color: green;
    font-weight: normal;
}

.skills {
    padding: 4em 2rem;
    text-align: center;
    height: 500px;
}

/* ---------- Carousel styles (replace old scroll-container / item CSS) ---------- */
.carousel-wrapper {
    width: 100%;
    max-width: 1200px;
    /* optional center constraint */
    margin: 0 auto;
    overflow: hidden;
    /* prevent accidental overflow */
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0;
    /* IMPORTANT: no left padding that shifts initial slide */
    margin: 0;
    gap: 0;
    /* no gap between flex children (keeps width calc simple) */
    scrollbar-width: none;
    /* firefox */
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Each item must be EXACTLY the container width */
.item {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* optional inner padding so the card isn't edge-to-edge */
}

/* Card appearance (centered inside each slide) */
.card {
    width: 300px;
    /* card stays a fixed block centered in the slide */
    max-width: 90%;
    height: 520px;
    padding-top: 1rem;
    background-color: whitesmoke;
    color: #1c2120;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #2B2B2B;
}

.card:hover {
    transform: translateY(-8px);
}

.card img {
    width: 260px;
    height: 260px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.card button {
    color: white;
    padding: 10px;
    border: none;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.card button:hover {
    transform: translateY(-3px);
    cursor: pointer;
    padding: 11px;
}

.card-text {
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
}

.card-btn {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-left: 20px;
}

.book {
    background-color: #6F9E11;
}

.proj {
    background-color: #2B2B2B;
}

/* Dots */
.dots {
    text-align: center;
    margin-top: 7px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    border-radius: 50%;
    display: inline-block;
    background: #bbb;
    cursor: pointer;
    transition: background .25s;
}

.dot.active {
    background: #3a5a40;
}


.rgre {
    color: #3B5704;
    font-weight: bold;
    right: 0;
}


.Choose {
    margin-top: 20%;
    line-height: 4;
}

.Choose h1 {
    text-align: center;
}

.Choose ol li {
    list-style-type: square;
}

.Choose ol {
    padding-left: 35px;
    padding-right: 15px;
}

.experience {
    padding-left: 35px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding-top: 50px;
}

.experience ol {
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience h1 {
    font-size: x-large;
}

.experience h2 {
    font-size: large;
    font-weight: 600;
}

.experience button {
    padding: 10px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.hygie {
    color: white;
    font-weight: bold;
    font-size: medium;
    border: none;
    background-color: #6F9E11;
    text-align: center;
}

.calcubud {
    color: orange;
    font-weight: bold;
    font-size: medium;
    border: 1.5px solid orange;
    background-color: white;
    text-align: center;
}

.trav {
    color: #f24e1e;
    font-weight: bold;
    font-size: medium;
    border: 1.5px solid #1c2120;
    background-color: #1c2120;
    text-align: center;
}

.delta {
    color: blue;
    font-weight: bold;
    font-size: medium;
    border: 1.5px solid blue;
    background-color: whitesmoke;
    text-align: center;
}


.exp {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exp span {
    font-size: small;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 9rem;
    flex-direction: column;
    padding-top: 50px;
    padding-left: 70px;
}

.socials a h2 {
    text-decoration: underline;
}

.socials a {
    color: #2B2B2B;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    text-indent: block;
    gap: 20px;
}


.socials a:hover {
    transform: scale(1.2);
    color: #2B2B2B;
}

/* Projects Section */
.projects {
    padding: 3rem 2rem;
    text-align: center;
    padding-top: 80px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.project-card {
    background: #FAFAF9;
    color: #2B2B2B;
    padding: 1rem;
    border-radius: 5px;
    width: 300px;
    text-align: left;
    border: 1px solid #2B2B2B;
}

.project-card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.project-card p {
    text-indent: 25px;
}

.rbtn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 15px;
}

/* Contact Section */
.contact {
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 10%;
}

.border {
    border-bottom: 1px solid #2B2B2B;
    width: 80%;
    margin: auto;
    margin-top: 40px;
}

.mailco {
    text-align: initial;
    border: #EDFFCC 1px solid;
    width: 500px;
    margin: auto;
    padding-left: 20px;
    height: 250px;
    padding-top: 45px;
    background-color: #EDFFCC;
    border-radius: 15px;
    color: #2B2B2B;
}

.mailco p {
    font-size: larger;
    font-weight: bolder;
}

.mailco p a {
    text-decoration: underline;
    font-size: medium;
    font-weight: normal;
    color: #2B2B2B;
}

.contact h1 {
    font-weight: 800;
    font-size: xx-large;
}

.booking {
    margin-top: 10%;
}

.booking h2 {
    text-align: center;
}

.booking form {
    margin-top: 10%;
    display: flex;
    flex-direction: column;
}

.booking form button {
    background-color: #2B2B2B;
    width: 90%;
    height: 50px;
    border: none;
    color: white;
    font-size: large;
    margin: auto;
    margin-top: 10%;
}

.booking form button:hover {
    background-color: green;
}

.booking span {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.booking span div {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking span div p {
    padding-left: 5%;
    font-weight: bold;
}

.booking span input {
    width: 90%;
    border: #1c2120 1px solid;
    background-color: rgb(255, 255, 255);
    height: 50px;
    border-radius: 3px;
    padding-left: 10px;
    font-style: poppins;
    font-weight: normal;
    color: #2B2B2B;
    margin: auto;
}

.booking span textarea {
    width: 90%;
    border: #1c2120 1px solid;
    background-color: rgb(255, 255, 255);
    border-radius: 3px;
    padding-left: 10px;
    font-style: poppins;
    font-weight: normal;
    color: #2B2B2B;
    padding-top: 10px;
    margin: auto;
}

footer {
    text-align: center;
    font-size: small;
    padding: 40px;
}

.preview-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #2B2B2B;
    color: #FAFAF9;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    font-weight: bold;
}

.preview-btn a {
    text-decoration: none;
    color: inherit;
}

.preview-btn a:hover {
    color: inherit;
}

.preview-btn:hover {
    background: green;
    color: white;
    font-weight: bolder;
}

/* Add animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero,
.skills,
.Choose,
.contact {
    animation: fadeIn 1s ease-in-out;
}

.scroll-container .card {
    animation: slideIn 0.6s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (min-width: 1024px) {

    .navbar ul {
        gap: 2.9rem;
    }

    .project-grid {
        gap: 70px;
    }

    .cta {
        border-radius: 4px;
    }

    .ctai {
        border-radius: 4px;
    }

    .hero-image img {
        width: 60%;
        height: 60%;
    }

    .intro p {
        line-height: 2.4;
    }

}

@media screen and (max-width: 768px) {
    .body {
        line-height: 1.5;
        width: 100%;
        font-size: medium;
    }

    .navbar ul {
        gap: 2.9rem;
    }

    .intro p {
        line-height: 1.9;
    }

    .cta {
        padding: 10px;
        font-size: small;
        border-radius: 3px;
    }

    .ctai {
        padding: 10px;
        font-size: small;
        border-radius: 3px;
    }



    .skills {
        padding: 1.5em 1rem;
        text-align: center;
        height: 560px;

    }

    .skills h1 {
        font-size: x-large;
        font-weight: 700;
    }


    .Choose {
        line-height: 3;
        animation: fadeInUp 1.5s forwards;
        width: 100%;
        font-size: small;
    }

    .Choose h1 {
        text-align: center;
        font-size: large;
    }

    .contact {
        padding: 1rem 2rem;
        text-align: center;
    }

    .mailco {
        text-align: initial;
        border: #EDFFCC 1px solid;
        width: 300px;
        margin: auto;
        padding-left: 20px;
        height: 200px;
        padding-top: 45px;
        background-color: #EDFFCC;
        border-radius: 15px;
        color: #3B5704;
    }

    .mailco p {
        font-size: small;
        font-weight: bold;
    }

    .mailco p a {
        text-decoration: underline;
        font-size: small;
        font-weight: normal;
        color: #3B5704;
    }

    .contact h1 {
        font-weight: 700;
        font-size: x-large;
    }

    .riri {
        width: 100%;
    }





}

@media screen and (max-width: 480px) {

    .navbar ul li {
        z-index: 1200;
    }

    .navbar ul {
        gap: 1.8rem;
    }

    .body {
        line-height: 1.5;
        width: 100%;
        font-size: medium;
    }

    .intro {
        font-size: larger;
        font-weight: bolder;
    }

    .intro h1 {
        font-size: 25px;
    }

    .hero-page {
        width: 45%;
    }


    .cta {
        padding: 13px;
        font-size: medium;
        border-radius: 3px;
        margin-top: 20px;
    }

    .ctai {
        padding: 13px;
        font-size: medium;
        border-radius: 3px;
        margin-top: 20px;
    }


    .skills h1 {
        font-size: x-large;
        font-weight: 700;
    }


    .socials {
        gap: 10px;
    }


    .Choose {
        line-height: 3;
        animation: fadeInUp 1.5s forwards;
        width: 100%;
        font-size: small;
        margin-top: 25%;
    }

    .Choose h1 {
        text-align: center;
        font-size: large;
    }

    .contact {
        text-align: center;
    }

    .mailco {
        text-align: initial;
        border: #EDFFCC 1px solid;
        width: 270px;
        margin: auto;
        padding-left: 12px;
        padding-right: 12px;
        height: 180px;
        padding-top: 25px;
        background-color: #EDFFCC;
        border-radius: 15px;
        color: #2B2B2B;
    }

    .mailco p {
        font-size: smaller;
        font-weight: bolder;
    }

    .mailco p a {
        text-decoration: underline;
        font-size: smaller;
        font-weight: bold;
        color: #2B2B2B;
    }

    .contact h1 {
        font-weight: 700;
        font-size: x-large;
    }



}

@media screen and (max-width: 390px) {

    .navbar ul li {
        z-index: 1200;
    }

    .navbar ul {
        gap: 1.4rem;
    }

    .intro h1 {
        font-size: 24px;
    }

    .navbar ul li a span i {
        font-size: 23px;
    }

    .card {
        padding-top: .7rem;
    }

    .card-text {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card-btn {
        padding-left: 12px;
    }

    .Choose {
        margin-top: 30%;
    }

    .socials {
        padding-left: 55px;
    }

    .mailco {
        padding-left: 18px;
    }

}

@media screen and (max-width: 360px) {

    .navbar ul li {
        z-index: 1200;
    }

    .navbar ul {
        gap: .9rem;
    }

    .intro h1 {
        font-size: 24px;
    }

    .navbar ul li a span i {
        font-size: 20px;
    }

    .card img {
        width: 240px;
        height: 240px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }

    .Choose {
        margin-top: 30%;
    }

    .navbar ul li a span p {
        font-size: smaller;
        font-weight: normal;
    }

    .card {
        padding-top: .5rem;
    }

    .card-text {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-btn {
        padding-left: 10px;
    }

    .mailco {
        padding-left: 18px;
    }

    .exp h2 {
        line-height: 50px;
    }

    .socials {
        padding-left: 40px;
    }

    .hero {
        margin-top: 130px;
    }

}