/* ==============================
   Sonali Basak Portfolio Styles
   Author: Sonali Basak
   ============================== */

/* ---------- Root Variables ---------- */
:root {
    --primary-color: #003736;
    --secondary-color: #046c61;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --dark-color: #1a1a1a;
    --text-color: #333;
    --accent-color: #c2a476;
    --font-title: 'Lora', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s ease;
}

/* ---------- Global Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--primary-color);
    font-weight: 600;
}

p {
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.pointer {
    cursor: pointer;
}

.pt-120 {
    padding-top: 120px !important;
}

.pt-150 {
    padding-top: 150px !important;
}

.mt-120 {
    margin-top: 120px !important;
}

.mt-150 {
    margin-top: 150px !important;
}

.bg-sb-primary {
    background-color: var(--primary-color) !important;
}

.text-sb-primary {
    color: var(--primary-color) !important;
}

.border-sb-primary {
    border: 1px solid var(--primary-color);
}

.bg-sb-accent {
    background-color: var(--accent-color) !important;
}

.bg-hero-card {
    background: url("https://sonalibasak.biz/assets/imgs/hero-card.png") no-repeat;
    background-position: top center;
}

.blockquote {
    font-style: italic;
    color: var(--dark-color);
    animation: fadeIn 1.5s ease;
}

#insights h4::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;

}

#advisor h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;
}

/* Slider track */
.custom-range::-webkit-slider-runnable-track {
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
}

/* Slider thumb (for Chrome, Edge, Safari) */
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #008037;
    /* Replace with your green color */
    cursor: pointer;
    margin-top: -6px;
}

/* For Firefox */
.custom-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #008037;
    /* Replace with your green color */
    cursor: pointer;
}

/* For IE */
.custom-range::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #008037;
    cursor: pointer;
}


.is-invalid {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

/* Fade-in-up animation */
.fade-in-up {
    animation: fadeInUp 0.6s ease both;
}

/* ---------- Header ---------- */
header {
    height: max-content;
    animation: fadeInDown 1.2s ease;
    padding: 0px 2rem;
    background-color: var(--white-color);
}

header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--dark-color);
    font-size: 1.1rem;
}

header .btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.7rem 1.6rem;
    color: #fff;
    border-radius: 6px;
    transition: var(--transition);
}

header .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}


.flip-card {
    background-color: transparent;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-back {
    background-color: #2980b9;
    color: white;
    transform: rotateY(180deg);
}

.topbar {
    display: flex;
}

.topbar a:hover {
    color: #003736;
    text-decoration: underline;
}

.navbar-nav .nav-link {
    color: #003736;
    font-weight: 500;
    margin: 0 10px;
}

.navbar-nav .nav-link.active {
    border-bottom: 2px solid var(--accent-color);
    transition: ease-in 4s;
}

.navbar-nav .nav-link:hover {
    border-bottom: 2px solid var(--accent-color);
}

.offcanvas-body .nav-link {
    color: #003736;
    font-family: 'Lora', serif;
}

#hero {
    background: url("https://sonalibasak.biz/assets/imgs/water-attestation-opt.gif");
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#hero h1 {
    color: var(--light-color);
    font-size: 70px;
}

.hero {
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* Scrollbar styling only for .hero */
.hero::-webkit-scrollbar {
    width: 8px;
    height: 2px;
    /* scrollbar width */
}

.hero::-webkit-scrollbar-track {
    background: #999;
    /* track color */
    border-radius: 10px;
}

.hero::-webkit-scrollbar-thumb {
    background-color: #034e31;
    /* scrollbar color */
    border-radius: 10px;
}

.hero::-webkit-scrollbar-thumb:hover {
    background-color: #034e31;
    /* color on hover */
}

.hero-card-hide {
    display: none;
}

.hero-card {
    display: flex;
    align-items: center;
    min-height: 300px;
    max-width: 320px;
}

.hero-card:hover+.hero-card-hide {
    display: block;
}

.read-more {
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #00695c;
}

.read-more:hover i {
    transform: translateX(4px);
}

.testimonial-card {
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); */
}

#testimonials h2 {
    color: #003736;
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.carousel-indicators button {
    background-color: #003736 !important;
}


/* ---------- Section Spacing ---------- */
section {
    padding: 4rem 1rem;
    animation: fadeInUp 1.2s ease both;
}

/* ------------ strategies section----- */
#strategies {
    background: url("https://sonalibasak.biz/assets/imgs/bg02.png") no-repeat;
    background-position: top right;
}

.strategies {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.strategies h2 {
    padding: 10px 0px;
}

.strategies .card {
    max-width: 32%;
    animation: fadeInUp 1.5s ease;
}

/* ---------- About Section ---------- */
#about {
    background: url("https://sonalibasak.biz/assets/imgs/about.png") no-repeat;
    background-position: center right;
    background-size: 40%;
    height: 600px;
    display: flex;
    align-items: center;
}

#about h2 {
    position: relative;
}

#about h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;
}

#about ul {
    list-style: none;
    padding: 0;
}

#about li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* ---------- Expertise Section ---------- */
#expertise {
    background-color: var(--light-color);
    text-align: center;
}

#expertise h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin: 10px auto;
}

#expertise .col-md-4 {
    transition: var(--transition);
}

#expertise .col-md-4:hover {
    transform: translateY(-5px);
}

/* ---------- Projects Section ---------- */
#projects {
    background: url("https://sonalibasak.biz/assets/imgs/bg03.png") no-repeat;
    background-position: top left;
    background-size: 43%;
}

#projects .card {
    border: none;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    border-radius: 10px;
}

#projects .card:hover {
    transform: translateY(-5px);
    border-left-color: var(--secondary-color);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* ------ Mission Section ------------ */

#mission {
    background: url("https://sonalibasak.biz/assets/imgs/img6.jpg") no-repeat;
    background-position: bottom center;
    background-size: cover;

}

/* ---------- Testimonials ---------- */
#testimonials {
    background-color: var(--light-color);
    text-align: center;
}

#testimonials h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin: 10px auto;
}

#testimonials blockquote {
    font-style: italic;
    color: var(--dark-color);
    animation: fadeIn 1.5s ease;
}

#testimonials footer {
    margin-top: 0.5rem;
    color: var(--secondary-color);
}

/* ---------- Contact Section ---------- */
#contact {
    background: url("https://sonalibasak.biz/assets/imgs/bg02.png") no-repeat;
    background-position: center right;
    background-size: 40%;
    height: max-content;
    padding-bottom: 80px;
}

#contact a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

#contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

#contact h2 {
    position: relative;
    padding-top: 40px;
}

#contact h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

footer h4 {
    color: var(--white-color);
    padding-bottom: 20px;
    font-size: 18px;
}

footer p {
    font-size: small;
}

footer ul,
li {
    list-style: none;
    display: inline-flex;
    padding: 0px 25px 0px 0px;
    font-size: small;
    color: var(--white-color) !important;
}

footer a {
    color: var(--white-color) !important;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Scroll Reveal Effect ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Map container must have height */
.allview-map__map.allview-map__map--initialized {
    width: 100%;
    height: 560px;
    /* adjust as needed */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Tooltip style (Leaflet default is fine but here's a little polish) */
.leaflet-popup-content-wrapper {
    font-family: "Poppins", sans-serif;
    font-size: 0.95rem;
}

/* Legend */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.map-legend .swatch {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Make sure the map fills its parent on small screens */
@media (max-width: 768px) {
    .allview-map__map.allview-map__map--initialized {
        height: 420px;
    }
}

/* ---------- Investments Section ---------- */
#investments {
    background: url("https://sonalibasak.biz/assets/imgs/img1.png") no-repeat;
    background-position: center right;
    background-size: 45%;
    height: 600px;
    display: flex;
    align-items: center;
}

#investments h2 {
    position: relative;
}

#investments h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;
}

#investments ul {
    list-style: none;
    padding: 0;
}

#investments li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#subscription {
    height: 600px;
    display: flex;
    align-items: center;
}

#subscription h2 {
    position: relative;
}

#subscription h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    display: block;
    margin-top: 8px;
}

#products {
    background: url("https://sonalibasak.biz/assets/imgs/img6.jpg") no-repeat;
    background-position: bottom center;
    background-size: cover;

}

#products h2 {
    color: var(--white-color) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .topbar {
        display: none !important;
    }

    #hero h1 {
        font-size: 2.2rem;
        padding-bottom: 30px;
    }

    .hero {
        padding-bottom: 10px;
        scroll-behavior: smooth;
    }

    .hero-card {
        min-height: 300px;
        max-width: 350px;
        width: 320px;
        margin-right: 20px;
    }

    .testimonial-card {
        margin-bottom: 30px;
        transition: all 0.4s ease;
    }

    .testimonial-card:hover {
        transform: translateY(-6px);
        /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); */
    }

    #testimonials h2 {
        color: #003736;
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

    .carousel-indicators button {
        background-color: #003736 !important;
    }


    /* ---------- Section Spacing ---------- */
    section {
        padding: 4rem 1rem;
        animation: fadeInUp 1.2s ease both;
    }

    /* ------------ strategies section----- */

    .strategies {
        display: inline-block;
    }

    .strategies h2 {
        padding: 10px 0px;
        font-size: 26px;
    }

    .strategies .card {
        max-width: 92%;
        margin-bottom: 20px;
        animation: fadeInUp 1.5s ease;
    }

    /* ---------- About Section ---------- */
    #about {
        height: 500px;
    }

    #about h2 {
        margin-bottom: 1rem;
        position: relative;
    }

    /* ---------- Expertise Section ---------- */
    #expertise {
        background-color: var(--light-color);
        text-align: center;
    }

    #expertise h2::after {
        content: "";
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
        display: block;
        margin: 10px auto;
    }

    #expertise .col-md-4 {
        transition: var(--transition);
    }

    #expertise .col-md-4:hover {
        transform: translateY(-5px);
    }

    /* ---------- Projects Section ---------- */
    #projects {
        background: url("https://sonalibasak.biz/assets/imgs/bg03.png") no-repeat;
        background-position: top left;
        background-size: 43%;
    }

    #projects h2 {
        background-color: var(--white-color);
    }

    #projects span {
        color: var(--primary-color) !important;
    }


    #projects .col-md-8 {
        margin-top: 30px !important;
    }

    #projects .card {
        border: none;
        border-left: 5px solid var(--primary-color);
        transition: var(--transition);
        border-radius: 10px;
    }

    #projects .card:hover {
        transform: translateY(-5px);
        border-left-color: var(--secondary-color);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }

    /* ------ Mission Section ------------ */

    #mission {
        background: url("https://sonalibasak.biz/assets/imgs/img6.jpg") no-repeat;
        background-position: bottom center;
        background-size: cover;

    }

    /* ---------- Testimonials ---------- */
    #testimonials {
        background-color: var(--light-color);
        text-align: center;
    }

    #testimonials h2::after {
        content: "";
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
        display: block;
        margin: 10px auto;
    }

    #testimonials blockquote {
        font-style: italic;
        color: var(--dark-color);
        animation: fadeIn 1.5s ease;
    }

    #testimonials footer {
        margin-top: 0.5rem;
        color: var(--secondary-color);
    }

    /* ---------- Contact Section ---------- */

    #contact a {
        color: var(--primary-color);
        font-weight: 500;
        transition: var(--transition);
    }

    #contact a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    /* ---------- Footer ---------- */
    footer {
        background-color: var(--primary-color);
        color: #fff;
        padding: 1rem 0;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    footer h4 {
        color: var(--white-color);
        padding-bottom: 20px;
        font-size: 18px;
    }

    footer p {
        font-size: small;
    }

    footer ul,
    li {
        list-style: none;
        display: inline-flex;
        padding: 0px 25px 0px 0px;
        font-size: small;
    }

    section {
        padding: 2.5rem 1rem;
    }

    #about img {
        margin-bottom: 1.5rem;
    }

    footer ul,
    li {
        display: block;
        padding: 0px 0px 20px 0px;
    }
}

/* ----------- Mobile Device ---------- */
@media (max-width: 568px) {
    header {
        padding: 0px;
    }

    #hero {
        display: block;
        height: 650px;
    }

    #hero h1 {
        font-size: 2.2rem;
        padding: 40px 0px;
    }

    .hero-card {
        display: flex;
        align-items: center;
        min-height: 300px;
        max-width: 310px;
        width: 310px;
        margin-right: 10px;
    }

    .testimonial-card {
        margin-bottom: 30px;
        transition: all 0.4s ease;
    }

    .testimonial-card:hover {
        transform: translateY(-6px);
        /* box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); */
    }

    #testimonials h2 {
        color: #003736;
        font-size: 2rem;
        letter-spacing: 0.5px;
    }

    .carousel-indicators button {
        background-color: #003736 !important;
    }


    /* ---------- Section Spacing ---------- */
    section {
        padding: 4rem 1rem;
        animation: fadeInUp 1.2s ease both;
    }

    /* ------------ strategies section----- */
    #strategies {
        padding: auto 10px;
    }

    #strategies .col-md-4 p {
        color: var(--light-color);
        font-weight: 600;
    }

    #strategies h2 {
        color: var(--light-color);
    }

    .strategies {
        display: block;
    }

    .strategies h2 {
        padding: 10px 0px;
        color: var(--primary-color) !important;
    }

    .strategies .card {
        max-width: 100%;
        animation: fadeInUp 1.5s ease;
        margin-bottom: 20px;
    }

    /* ---------- About Section ---------- */
    #about {
        background-size: 90%;
    }

    #about h2 {
        position: relative;
        margin-top: -45px;
    }

    #about .col-md-7 {
        padding-top: 10% !important;
    }

    #about p {
        background-color: var(--white-color);
        padding: 20px;
    }

    /* ---------- Expertise Section ---------- */
    #expertise {
        background-color: var(--light-color);
        text-align: center;
    }

    #expertise h2::after {
        content: "";
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
        display: block;
        margin: 10px auto;
    }

    #expertise .col-md-4 {
        transition: var(--transition);
        margin-bottom: 30px;
    }

    #expertise .col-md-4:hover {
        transform: translateY(-5px);
    }

    /* ---------- Projects Section ---------- */
    #projects {
        background: url("https://sonalibasak.biz/assets/imgs/bg03.png") no-repeat;
        background-position: top center;
        background-size: 100%;
        display: block !important;
    }

    #projects h2 {
        margin-top: 60px;
        margin-left: 10px;
        max-width: 200px;
        min-width: 100px;
        background-color: var(--white-color);
    }

    #projects span {
        color: var(--primary-color) !important;
    }


    #projects .col-md-8 {
        background: none !important;
        margin-top: 30px !important;
    }

    #projects .card-body {
        transition: var(--transition);
    }

    #projects .card-body:hover {
        transform: translateY(-5px);
    }

    /* ------ Mission Section ------------ */

    #mission {
        background: url("https://sonalibasak.biz/assets/imgs/img6.jpg") no-repeat;
        background-position: bottom center;
        background-size: cover;

    }

    /* ---------- Testimonials ---------- */
    #testimonials {
        background-color: var(--light-color);
        text-align: center;
    }

    #testimonials h2::after {
        content: "";
        width: 60px;
        height: 3px;
        background-color: var(--accent-color);
        display: block;
        margin: 10px auto;
    }

    #testimonials blockquote {
        font-style: italic;
        color: var(--dark-color);
        animation: fadeIn 1.5s ease;
    }

    #testimonials footer {
        margin-top: 0.5rem;
        color: var(--secondary-color);
    }

    /* ---------- Contact Section ---------- */
    #contact {
        background: url("https://sonalibasak.biz/assets/imgs/bg02.png") no-repeat;
        background-position: top right;
        background-size: 70%;
        height: max-content;
        padding-bottom: 80px;
    }

    #contact a {
        color: var(--primary-color);
        font-weight: 500;
        transition: var(--transition);
    }

    #contact a:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

    /* ---------- Footer ---------- */
    footer {
        background-color: var(--primary-color);
        color: #fff;
        padding: 1rem 0;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    footer h4 {
        color: var(--white-color);
        padding-bottom: 20px;
        font-size: 18px;
    }

    footer p {
        font-size: small;
    }

    footer ul,
    li {
        list-style: none;
        display: inline-flex;
        padding: 0px 25px 0px 0px;
        font-size: small;
    }

    .topbar {
        display: none !important;
    }

    section {
        padding: 2.5rem 1rem;
    }

    #about img {
        margin-bottom: 1.5rem;
    }

    footer ul,
    li {
        display: block;
        padding: 0px 0px 20px 0px;
    }

    #investments {
        background: none;
        height: 600px;
        display: flex;
        align-items: center;
    }
}

/* -------- Smaller Device ---------- */
@media (max-width: 369px) {
    #about h2 {
        position: relative;
        margin-top: -20px;
    }
}