/*  general styles */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #e74d61;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

header .header-text,
.about-me h2,
#services h2,
#portfolio h2,
#portfolio .btns,
.project-header,
.tools .tools-title {
    font-family: "Bai Jamjuree", sans-serif !important;
    color: rgb(247, 248, 248) !important;
    font-weight: 400;
}

#services h2,
#portfolio h2 {
    font-size: clamp(40px, 8vw, 75px);
}

/* For Webkit-based browsers (Chrome, Safari) */

a {
    text-decoration: none;
}

a:hover {
    color: inherit;
}

a {
    color: inherit;
}

.btn:focus {
    outline: 0;
    box-shadow: none;
}

/*  start nav*/

nav {
    font-size: 17px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-image: linear-gradient(45deg, rgb(255 255 255 / 0%) 22%, rgb(196 123 82 / 0%) 100%), url(../pics/nav-bg.webp);
    background-size: cover, cover;
    background-position: 0% 0%, center;
    background-repeat: repeat, repeat-y;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

nav:not(.transparent-bg) {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../pics/header-bg2.svg), linear-gradient(45deg, rgb(255 255 255 / 0%) 22%, rgb(196 123 82 / 0%) 100%), url(../pics/nav-bg.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav.transparent-bg {
    background-image: none;
}

nav.transparent-bg::before {
    opacity: 0;
}

/* Mobile menu iOS compatibility */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1031;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        text-align: center;
        margin: 0.5rem 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        color: white !important;
        font-size: 16px; /* Prevent iOS zoom */
    }
}

.navbar-brand {
    color: white !important;
}

nav .navbar-nav li a {
    color: white !important;
    transition: all 0.3s ease-in-out;
}

nav .navbar-nav li a:hover {
    color: black !important;
}

.navbar-nav .active {
    border-bottom: solid 2px #000000;
}

.navbar-nav .active a {
    color: black !important;
    transition: 0ms;
}

.hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.visible {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

/*  end nav*/

#header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #130000;
    background-image: url(../pics/logos/header-bg.gif), radial-gradient(at center center, #f4000026, #ffffff00);
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/*  start header*/

header {
    text-align: center;
    color: black;
    position: relative;
    overflow: hidden;
    font-family: "Bai Jamjuree", sans-serif !important;
}

header .title img {
    max-width: 19%;
}

header .text-holder {
    color: black;
    position: absolute;
    top: 58%;
    right: 50%;
    transform: translate(50%, -50%);
}

.name {
    font-family: 'Mrs Saint Delafield', cursive !important;
    font-size: clamp(4rem, 12vw, 8rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.1rem !important;
    text-transform: none !important;
    margin-top: 1rem !important;
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    display: inline-block;
    transform: rotate(-3deg);
    margin-bottom: 2rem !important;
}

.name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) rotate(5deg);
    animation: revealLetter 0.5s forwards;
    /* transition is handled by JS animation-delay */
}

@keyframes revealLetter {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

header .h2 {
    color: white;
    letter-spacing: 0.4rem;
    font-size: 1.375em;
    line-height: 1.875;
    font-weight: 400;
}

header p {
    font-family: 'Inter', sans-serif !important;
    color: white;
    letter-spacing: clamp(0.3rem, 2vw, 1.15rem);
    font-size: clamp(1.5rem, 5vw, 4.375em);
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.9;
}

header .arrow-bg {
    width: 45px;
    height: 45px;
    background-color: #ffffff43;
    margin: 0 auto;
}

header .arrow-down {
    transform: scale(0.5);
}

header .arrow-down:hover {
    cursor: pointer;
}

@media (max-width: 575px) {
    header .text-holder {
        max-width: none;
        top: 50%;
        width: 100%;
        padding: 0 20px;
    }
    header p {
        letter-spacing: 0.4rem;
        margin-top: 1rem;
    }
    .name {
        margin-bottom: 0.5rem !important;
    }
}

/*  end header*/

/*  start about-me*/

.about-me {
    background: #130000;
    color: white;
}

#cartona-link:hover {
    color: #0072b1;
    transition: all .3s ease-in-out;
}

.about-me .bg-holder {
    background-image: radial-gradient(at center center, #f4000026, #ffffff00);
    border-radius: 15px;
    padding-bottom: 3rem;
    box-shadow: 0px 0px 14px -1px rgba(255, 255, 255, 0.82);
}

.about-me h2 {
    font-weight: 500 !important;
}

.about-me-img-holder {
    position: relative;
    display: inline-block;
}

.img-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
}

#about-me .hvr-sweep-to-top:before {
    background: rgb(0 0 0 / 50%);
    border-radius: 15px;
    transition-duration: 0.5s;
}

.about-me-img-holder .icons {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, 50%);
    transition: top 0.5s ease-in-out;
    opacity: 0;
}

.about-me-img-holder .icons.about-me-active {
    top: 52%;
    opacity: 1;
    display: block;
}

.about-me-img-holder .icons {
    display: none;
}

.about-me-img-holder .icons .linkedin,
.about-me-img-holder .icons .twitter,
.about-me-img-holder .icons .github,
.about-me-img-holder .icons .kaggle {
    font-size: 22px;
    background-color: transparent;
    border: none;
    width: 30px;
    height: 30px;
}

.about-me .icons .tableau {
    max-width: 26px;
    background-color: transparent;
    border: none;
    padding: 5px 0 0 0 !important;
}

.about-me-img-holder .icons .linkedin:hover,
.about-me-img-holder .icons .twitter:hover,
.about-me-img-holder .icons .github:hover,
.about-me-img-holder .icons .kaggle:hover {
    color: #e74d61;
    background-color: transparent;
    border: none;
}

.about-me-img-holder .icons .tableau:hover {
    fill: #e74d61 !important;
    border: none;
}

.line-holder .fa-address-card {
    font-size: 30px;
}

.about-me-line {
    background-color: #ffffff;
    height: 2px !important;
    width: 100%;
    margin: auto;
}

.about-me .line-holder img {
    max-width: 5%;
}

.about-me-photo {
    border-radius: 15px;
}

.hire-me,
.show-cv {
    position: relative;
    border: 1px solid #e74d61;
    background-color: #e74d61;
    color: white;
    padding: 13px 22px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.hire-me:hover,
.show-cv:hover {
    background-color: #e74d61;
    color: white;
}

.hire-me::before,
.show-cv::before {
    content: "";
    position: absolute;
    top: 3.25px;
    left: 3px;
    width: 34%;
    height: 84%;
    background-color: #fde6e9;
    border-radius: 11px;
    opacity: 0.5;
    transition: all 0.6s ease-in-out;
}

.hire-me:hover::before {
    left: 84px;
}

.show-cv:hover::before {
    left: 77px;
}

.hire-me .fa-arrow-right-long {
    transition: all 0.4s ease-in-out;
}

.hire-me:hover .fa-arrow-right-long {
    padding-left: 1.3rem !important;
}

.about-me .text {
    font-size: 20px;
    line-height: 1.7;
    color: #ffffff;
    font-family: "lato", sans-serif;
}

@media (min-width: 1200px) {
    .about-me-holder {
        max-width: 50%;
        margin-left: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1199.9px) {
    .about-me .col-left {
        margin-top: 10%;
        align-self: start !important;
    }
}

@media (min-width: 991.9px) {
    .about-me .bg-holder {
        padding-bottom: 9rem;
    }
    .about-me .bio {
        position: absolute;
        top: 12%;
        left: 80.5%;
        width: 320px;
        line-height: 0.5;
        font-size: 16px;
        z-index: 999;
    }
}

@media (max-width: 576px) {
    .about-me .bio {
        font-size: 13px;
    }
    .bio-text {
        padding-left: 1px !important;
    }
}

.bio {
    text-align: left;
    background-color: #e74d61;
    border-radius: 15px;
}

.bio p:nth-of-type(1),
.bio p:nth-of-type(3),
.bio p:nth-of-type(5),
.bio p:nth-of-type(7),
.bio p:nth-of-type(9),
.bio p:nth-of-type(11) {
    font-size: 14px;
}

.bio p:nth-of-type(2),
.bio p:nth-of-type(4),
.bio p:nth-of-type(6),
.bio p:nth-of-type(8),
.bio p:nth-of-type(10) {
    font-weight: 600;
    border-bottom: 1px white dashed;
}

.bio p:nth-of-type(12) {
    font-weight: 600;
}

.about-me .bio {
    line-height: 0.5;
}

/*  end about-me*/

/*  start services*/

#services {
    background: linear-gradient(to bottom, #130000 32%, #0b1423 98%);
    color: white;
}

.light {
    width: 100%;
    height: 600px;
    margin-bottom: -220px;
    margin-top: -200px;
    user-select: none;
    mask-image: radial-gradient(100% 50% at center center, black, transparent);
    -webkit-mask-image: radial-gradient( 100% 50% at center center, black, transparent);
    background-attachment: scroll;
    background-origin: padding-box, padding-box;
    background-clip: border-box;
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 1%, 99%;
    background-position-y: 0%, 0%;
    background-size: 50% 100%, 50% 100%;
    opacity: 1;
    transform-origin: center center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    /* Add smooth transition effect */
    pointer-events: none;
}

.light::before {
    content: "";
    position: relative;
    display: block;
    height: 600px;
    margin-bottom: -220px;
    margin-top: -200px;
    user-select: none;
    mask-image: radial-gradient(100% 50% at center center, black, transparent);
    -webkit-mask-image: radial-gradient( 100% 50% at center center, black, transparent);
    background-attachment: scroll;
    background-origin: padding-box, padding-box;
    background-clip: border-box;
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 1%, 99%;
    background-position-y: 0%, 0%;
    background-size: 50% 100%, 50% 100%;
    transform-origin: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.light-red {
    background-image: conic-gradient(from 90deg at 80% 50%, #66212a, #000212), conic-gradient(from 270deg at 20% 50%, #000212, #66212a);
}

.light-green {
    background-image: conic-gradient( from 90deg at 80% 50%, rgb(31, 49, 64), rgb(0, 2, 18)), conic-gradient(from 270deg at 20% 50%, rgb(0, 2, 18), rgb(31, 49, 64));
}

.light-red::before {
    background-image: conic-gradient(from 90deg at 55% 50%, #e74d61, #000212), conic-gradient(from 270deg at 45% 50%, #000212, #e74d61);
}

.light-green::before {
    background-image: conic-gradient(from 90deg at 55% 50%, #5683aa, #000212), conic-gradient(from 270deg at 45% 50%, #000212, #5683aa);
}

.scroll-in-view::before {
    opacity: 1;
}

#services .card-services {
    display: block;
    height: 100%;
    position: relative;
    background: radial-gradient( at center center, #2e1316, rgba(255, 255, 255, 0));
    border-style: solid;
    border-width: 1px;
    border-image: linear-gradient( rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)) 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

#services .svg,
#services .svg-hover {
    max-width: 90px;
}

#services .card-text {
    color: rgb(180, 188, 208);
}

#services .hvr-glow:hover {
    box-shadow: 0px 0px 10px -1px rgba(255, 255, 255, 0.82);
}

#services #dashboard-animation {
    max-width: 100%;
    position: relative;
    left: 47%;
    margin-bottom: -97px;
    top: 50%;
    transform: translate(-53%, -57%) scale(1.4) !important;
}

@media (min-width: 991.9px) {
    #services .container {
        padding: 0 8rem;
    }
}

@media (min-width: 767.9px) {
    #services .card-top .card-title {
        font-size: 1.5rem;
    }
    #services .card-top .card-text ul {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    #services .col {
        max-width: 388px;
        margin: 5px auto;
    }
    #services #dashboard-animation {
        max-width: 190px !important;
        margin-bottom: -46px;
        transform: translate(-42%, -60%) scale(1) !important;
    }
    #services .svg,
    #services .svg-hover {
        max-width: 70px;
    }
}

@media (max-width: 576px) {
    #services #dashboard-animation {
        max-width: 130px !important;
    }
}

/*  end services*/

/* start tools */

.tools {
    background: linear-gradient(to top, black -13%, #0b1423 85%);
}

.tools-title {
    position: relative;
    top: -50px;
    z-index: 10;
}

.tools-bg {
    pointer-events: none;
    user-select: none;
    margin-top: -95px !important;
    margin-bottom: -99px !important;
    position: relative;
    margin: 0px auto;
    height: 600px;
    overflow: hidden;
    mask-image: radial-gradient(circle at center center, black, transparent 80%);
    -webkit-mask-image: radial-gradient( circle at center center, black, transparent 80%);
}

.tools-bg::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: radial-gradient( circle at bottom center, #7877c6, transparent 70%);
    opacity: 0.4;
}

.tools-bg::after {
    content: "";
    position: absolute;
    background: rgb(0, 2, 18);
    width: 200%;
    left: -50%;
    aspect-ratio: 1 / 0.7;
    border-radius: 50%;
    border-top: 1px solid rgba(120, 118, 197, 0.4);
    top: 50%;
}

.tools-bg-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    mask-image: radial-gradient(circle at center bottom, black, transparent);
    -webkit-mask-image: radial-gradient( circle at center bottom, black, transparent);
}

.tools svg {
    width: 150px;
}

.tools .dbt {
    scale: 0.8;
}

.tools .google-analytics {
    scale: 1.2;
}

.tools .snowflake-holder {
    overflow: hidden;
}

.tools .snowflake {
    scale: 2.5;
}

.tools svg path,
.tools svg polygon {
    fill: #b5b5b5 !important;
    transition: all 0.2s ease-in-out;
}

.tools .google-query #path24,
.tools .google-query #path26,
.tools .google-query #path28,
.tools .google-query #path30,
.tools .google-query #path32,
.tools .google-query #path34,
.tools .google-query #path36 {
    fill: white !important;
}

.dbt-holder:hover #one {
    fill: #262a38 !important;
}

.dbt-holder:hover #two {
    fill: #ff694a !important;
}

.google-analytics-holder:hover .st0 {
    fill: #75787d !important;
}

.google-analytics-holder:hover .st1 {
    fill: #5ca1d5 !important;
}

.google-analytics-holder:hover .st2 {
    fill: #fee875 !important;
}

.google-query-holder:hover #path20 {
    fill: #4386fa !important;
}

.google-query-holder:hover path {
    fill: #59585b !important;
}

.powerbi-holder:hover path {
    fill: #656565 !important;
}

.microsoft-sql-holder:hover .one,
.microsoft-sql-holder:hover .two,
.microsoft-sql-holder:hover .four {
    fill: white !important;
}

.microsoft-sql-holder:hover .three {
    fill: #a22226 !important;
}

.python-holder:hover .st0 {
    fill: #656565 !important;
}

.python-holder:hover .st1 {
    fill: #2a587f !important;
}

.python-holder:hover .st2 {
    fill: #bca649 !important;
}

.snowflake-holder:hover path {
    fill: #29b5e8 !important;
}

.tableau-holder:hover .one,
.tableau-holder:hover .three,
.tableau-holder:hover .seven {
    fill: #496f81 !important;
}

.tableau-holder:hover .two,
.tableau-holder:hover .five {
    fill: #b15d2d !important;
}

.tableau-holder:hover .four,
.tableau-holder:hover .eight,
.tableau-holder:hover .ten {
    fill: #1a3b6b !important;
}

.tableau-holder:hover .nine {
    fill: #951c30 !important;
}

.tableau-holder:hover .six,
.tableau-holder:hover .eleven {
    fill: #485177 !important;
}

@media (min-width: 991.9px) {
    .tools .container {
        padding: 0 8rem !important;
    }
}

@media (max-width: 767.9px) {
    .dbt-holder,
    .google-analytics-holder,
    .microsoft-sql-holder,
    .python-holder {
        border-bottom: 1px solid white;
    }
    .tools svg {
        width: 100px;
    }
    .google-analytics-holder,
    .python-holder {
        border-right: none !important;
    }
}

/* end tools */

/* start portfolio */

#portfolio {
    background: linear-gradient(to top, #130000 0%, #0b1423 17%);
}

#portfolio .project {
    background-image: radial-gradient( at center center, rgba(0, 225, 244, 0.15), rgba(255, 255, 255, 0));
    border-radius: 15px;
    margin-bottom: 5vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#portfolio h2 {
    color: white;
}

#portfolio .btns {
    background-color: white;
    display: inline-block;
    border-radius: 30px;
    transform: translateX(0);
}

.hover-btn-bg {
    position: absolute;
    margin: 3.29px;
    height: 46px;
    width: 143px;
    background-color: black;
    left: 0;
    top: 0;
    border-radius: 30px;
    z-index: -1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

.hover-btn-all-bg {
    position: absolute;
    margin: 3.29px;
    height: 44px;
    background-color: black;
    left: 0;
    top: 0;
    border-radius: 30px;
    z-index: -1;
    transform: translateX(0);
    transition: all 0.3s ease-in-out;
}

#portfolio .btn {
    border-radius: 30px;
    border: none;
    color: black;
}

#portfolio .active-btn {
    color: white;
}

#portfolio .project .image img {
    border-radius: 15px;
    position: relative;
    top: 15px;
}

#portfolio .fa-arrow-right {
    color: #e74d61;
}

#portfolio .project-content {
    color: rgb(180, 188, 208);
}

#portfolio .project-header {
    font-size: 30px;
    font-weight: 500;
    color: white;
}

#portfolio .project-content {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

#portfolio .read-more {
    color: rgb(180, 188, 208);
    font-size: 20px;
    padding: 0;
}

.read-more span:hover {
    color: #e74d61;
    transition: all 0.4s ease-in-out;
}

.hvr-underline-from-left::before {
    right: 53%;
    background: #e74d61;
}

.link-survey-project {
    color: blue;
}

.link-survey-project:hover {
    text-decoration: underline;
    color: blue;
}

#portfolio .carousel {
    max-width: 80%;
}

#portfolio .modal-title-edit {
    display: flex !important;
    position: relative;
    top: -27px;
    left: 23px;
}

#portfolio .modal img {
    max-width: 70%;
}

#portfolio .modal img,
#portfolio .carousel {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0%);
}

#portfolio .all-project {
    background-image: radial-gradient( at center center, rgba(0, 225, 244, 0.15), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    height: 25em;
}

#portfolio .all-project .project-header {
    font-weight: 300 !important;
    font-size: 20px !important;
}

.all-project .image img {
    border-radius: 15px;
    height: 16em;
}

.github-container {
    position: relative;
    display: flex;
    flex-direction: column;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    background-color: rgb(11 28 43);
    width: 38% !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.github-container .github-icon {
    width: 20px !important;
    margin: auto;
}

.github-container .text {
    margin: auto;
    font-size: 12px;
    color: white;
}

.github-container:hover {
    background-color: #e74d61;
    transition: all 0.3s ease-in-out;
}

/* modal btns  */

#portfolio .modal .modal-btn {
    display: flex !important;
    flex-direction: row-reverse !important;
    color: white !important;
    background-color: black !important;
    border-radius: 8px !important;
    width: 108px;
}

#portfolio .modal .modal-btn-svg {
    width: 20px !important;
    position: relative !important;
    top: 2px !important;
    left: 15px !important;
}

#portfolio .modal .modal-btn:hover {
    background-color: #e74d61 !important;
    transition: all 0.3s ease-in-out;
}

@media (min-width: 1200px) {
    .container-portfolio {
        max-width: 1020px;
    }
}

@media (min-width: 768px) and (max-width: 991.9px) {
    .container-portfolio {
        max-width: 785px;
    }
}

@media (min-width: 768px) and (max-width: 1199.9px) {
    #portfolio .all-project {
        height: 21em;
    }
    .all-project .image img {
        height: 12em;
    }
    #portfolio .all-project .project-header {
        font-size: 18px !important;
    }
}

#travel-header:hover {
    cursor: pointer;
}

@media (max-width: 991.9px) {
    #portfolio .modal-title-edit {
        top: -22px;
        left: 0;
    }
}

@media (max-width: 767.9px) {
    #portfolio .hover-btn-bg {
        display: none;
    }
    #portfolio .hover-btn-all-bg {
        display: none;
    }
    #portfolio .active-btn {
        color: white;
        background-color: black;
    }
    #portfolio .btns {
        margin-bottom: 1rem;
    }
    #portfolio .fa-arrow-right {
        margin-left: 10px;
    }
    #portfolio .all-project {
        height: 28em;
    }
    .all-project .image img {
        height: 21em;
    }
    #portfolio .all-project .project-header {
        font-size: 18px !important;
    }
}

@media (min-width: 461px) and (max-width: 575.9px) {
    .container-portfolio {
        width: 86% !important;
    }
    #portfolio .all-project .project-header {
        font-size: 17px !important;
    }
}

/* end portfolio */

/*  start contact*/

.contact {
    position: relative;
    background: #130000;
    overflow: hidden;
}

/* Animated background circles */
.contact .light-red {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(231, 77, 97, 0.08) 0%, transparent 70%);
    filter: blur(60px);
    animation: float-contact 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float-contact {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translate(40px, 60px) scale(1.05);
        opacity: 0.9;
    }
}

/* Additional texture overlay with noise effect */
.contact-texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Hexagon pattern */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="52" viewBox="0 0 60 52"><path fill="rgba(255,255,255,0.02)" d="M30 0l26 15v22L30 52 4 37V15z"/></svg>');
    background-size: 60px 52px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

/* Mesh gradient pattern */
.contact-mesh-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Organic mesh pattern */
        radial-gradient(ellipse at 20% 30%, rgba(231, 77, 97, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(231, 77, 97, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        /* Circuit board style lines */
        linear-gradient(90deg, transparent 0%, transparent 48%, rgba(231, 77, 97, 0.01) 48%, rgba(231, 77, 97, 0.01) 52%, transparent 52%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 48%, rgba(255, 255, 255, 0.01) 48%, rgba(255, 255, 255, 0.01) 52%, transparent 52%, transparent 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100px 100px, 100px 100px;
    z-index: 1;
    pointer-events: none;
    animation: mesh-shift 30s ease-in-out infinite;
}

@keyframes mesh-shift {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: translate(20px, 20px);
        opacity: 0.8;
    }
}

/* Subtle noise texture using SVG */
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Geometric grid pattern */
    background-image: 
        /* Diamond pattern */
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="none" stroke="rgba(231,77,97,0.03)" stroke-width="1" d="M20 0L40 20L20 40L0 20z"/></svg>'),
        /* Diagonal lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(231, 77, 97, 0.02) 40px,
            rgba(231, 77, 97, 0.02) 42px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255, 255, 255, 0.02) 40px,
            rgba(255, 255, 255, 0.02) 42px
        );
    background-size: 40px 40px, 80px 80px, 80px 80px;
    z-index: 1;
    pointer-events: none;
}

/* Decorative corner patterns */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Corner accents */
        radial-gradient(circle at 0% 0%, rgba(231, 77, 97, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(231, 77, 97, 0.06) 0%, transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(231, 77, 97, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(231, 77, 97, 0.07) 0%, transparent 30%),
        /* Gradient overlay for depth */
        linear-gradient(135deg, rgba(231, 77, 97, 0.03) 0%, rgba(19, 0, 0, 0.9) 100%),
        /* Subtle dots pattern */
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px;
    z-index: 1;
}

/* Ensure content stays above textures */
.contact .container {
    position: relative;
    z-index: 2;
}

.contact .contact-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(48px, 9vw, 90px);
    color: rgb(247, 248, 248) !important;
    font-weight: 300 !important;
}

.contact .row-padding {
    padding-top: 7rem;
}

.contact .C {
    width: 45px;
    height: 45px;
    background-color: #ffffff43;
    margin: 0 auto;
}

.contact .text {
    color: white;
    font-size: 16px;
}

/* Contact intro callout */
.contact-intro {
    position: relative;
    padding: 18px 16px 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.contact-intro::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #e74d61, #5683aa);
}
.contact-intro-icon {
    position: absolute;
    top: -17px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e74d61;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(231, 77, 97, 0.5);
}
.contact-intro-text {
    color: rgb(180, 188, 208);
    margin: 6px 0 10px 0;
    line-height: 1.7;
}
.contact-intro-text .highlight {
    color: #ffffff;
    font-weight: 600;
}
.contact-intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.contact-intro-tags span {
    font-size: 12px;
    color: #fff;
    background: #2b2a2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 999px;
}
@media (max-width: 575.9px) {
    .contact-intro {
        padding: 16px 14px 10px 14px;
    }
}

.contact h2 {
    font-size: clamp(26px, 6.5vw, 56px);
    font-weight: 900 !important;
}

.contact .arrow-bg {
    width: 45px;
    height: 45px;
    background-color: #ffffff43;
    margin: 0 auto;
}

.contact .arrow-down {
    transform: scale(0.5);
}

.contact .arrow-down:hover {
    cursor: pointer;
}

#get-touch {
    padding-top: 9rem;
}

.contact .title-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.contact .title-bg span {
    font-size: 110px;
    letter-spacing: 10px;
    line-height: 3.23;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07);
}

.contact p {
    color: rgb(182, 182, 182);
    margin: 0;
}

.contact a {
    color: white;
}

.contact .fa-envelope {
    font-size: 38px;
    margin-top: auto;
}

.contact .fa-phone {
    font-size: 30px;
    background-color: #e74d61;
    border-radius: 8px;
    padding: 2px;
    margin-top: auto;
    margin-bottom: 4px;
}

.icons .twitter,
.icons .linkedin,
.icons .github,
.icons .kaggle {
    color: white;
    font-size: 29px;
    width: 40px;
    height: 40px;
    background-color: #2b2a2a;
}

.icons .twitter:hover {
    background-color: #1da1f2;
    border: #1da1f2 solid 2px;
}

.icons .linkedin:hover {
    background-color: #0072b1;
    border: #0072b1 solid 2px;
}

.icons .github:hover {
    background-color: #0072b1;
    border: #0072b1 solid 2px;
}

.icons .kaggle:hover {
    background-color: #20BEFF; /* Kaggle brand color */
    border: #20BEFF solid 2px;
}

.contact .icons .tableau:hover {
    background-color: #0072b1;
    border: #0072b1 solid 2px;
}

.icons .twitter:hover,
.icons .linkedin:hover,
.icons .github:hover,
.icons .tableau:hover,
.icons .kaggle:hover {
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.icons .linkedin {
    font-size: 25px;
    background-color: #2b2a2a;
    border: #2b2a2a solid 2px;
}

.icons .github {
    font-size: 25px;
    background-color: #2b2a2a;
    border: #2b2a2a solid 2px;
}

.icons .kaggle {
    font-size: 25px;
    background-color: #2b2a2a;
    border: #2b2a2a solid 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icons .tableau {
    max-width: 42px;
    margin-bottom: 27px;
    background-color: #2b2a2a;
    border: #2b2a2a solid 2px;
}

/* Form Input Wrapper with Icons */
.form-input-wrapper {
    position: relative;
    width: 100%;
}

.form-input-wrapper .form-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #e74d61;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input-wrapper textarea + .form-icon {
    top: 25px;
    transform: none;
}

.contact .contactform input[type="text"],
.contact .contactform input[type="email"],
.contact .contactform select {
    border: 1px solid #111;
    width: 100%;
    background: #252525;
    color: #fff;
    padding: 11px 26px 11px 50px;
    margin-bottom: 29px;
    border-radius: 30px;
    outline: none !important;
    transition: 0.3s;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
}

/* Icon color change on focus */
.form-input-wrapper input:focus ~ .form-icon,
.form-input-wrapper select:focus ~ .form-icon,
.form-input-wrapper textarea:focus ~ .form-icon {
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.form-input-wrapper textarea:focus ~ .form-icon {
    transform: scale(1.1);
}

.contact .contactform select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.contact .contactform select option {
    background: #252525;
    color: #fff;
    padding: 10px;
}

.contact .contactform textarea {
    border: 1px solid #111;
    background: #252525;
    color: #fff;
    width: 100%;
    padding: 12px 26px 12px 50px;
    margin-bottom: 20px;
    height: 160px;
    overflow: hidden;
    border-radius: 30px;
    outline: none !important;
    transition: 0.3s;
}

.button:before,
.button-icon {
    background-color: #e74d61;
}

.button:before {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateX(100%);
    transition: 0.3s ease-out all;
}

.contact .button {
    border: 1px solid #e74d61;
    overflow: hidden;
    display: inline-block;
    line-height: 1.4;
    border-radius: 35px;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    cursor: pointer;
    vertical-align: middle;
    user-select: none;
    transition: 250ms all;
    text-transform: uppercase;
    text-decoration: none !important;
    position: relative;
    z-index: 1;
    padding: 16px 70px 16px 35px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: transparent;
    outline: none !important;
}

.contact .contactform input[type="text"]:focus,
.contact .contactform input[type="email"]:focus,
.contact .contactform textarea:focus,
body.light.contact .contactform input[type="text"]:focus,
body.light.contact .contactform input[type="email"]:focus,
body.light.contact .contactform textarea:focus,
.blog .page-item.active .page-link,
.blog .page-link:hover,
.button {
    border: 1px solid #e74d61;
}

.contact .button:hover {
    background-color: #e74d61;
}

.button .button-text {
    position: relative;
    z-index: 2;
    color: #fff;
    transition: 0.3s ease-out all;
}

.button-icon {
    position: absolute;
    right: -1px;
    top: -1px;
    bottom: 0;
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 19px;
    color: #ffffff;
    border-radius: 50%;
}

/* New Iconic Button Styles */
.button-icon-left,
.button-icon-right {
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.button-icon-left {
    margin-right: 10px;
    animation: pulse-icon 2s ease-in-out infinite;
}

.button-icon-right {
    margin-left: 10px;
    opacity: 0;
    transform: translateX(-10px);
}

.button:hover .button-icon-left {
    transform: translateX(-5px);
    animation: none;
}

.button:hover .button-icon-right {
    opacity: 1;
    transform: translateX(0);
}

.button .button-text {
    position: relative;
    z-index: 2;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.contact .contactform .form-message {
    margin: 24px 0;
}

#message-sent,
#sending {
    display: block;
    color: #fff;
    line-height: 46px;
    border-radius: 15px;
    font-size: 26px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

#message-sent {
    background-color: #2ecc71;
}

#sending {
    background-color: #dd8622;
}

/* Toast Notification Styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    min-width: 350px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 16px;
}

.toast-notification.show {
    right: 20px;
}

.toast-notification.success {
    border-left: 4px solid #2ecc71;
}

.toast-notification.error {
    border-left: 4px solid #e74d61;
}

.toast-notification.loading {
    border-left: 4px solid #dd8622;
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.toast-notification.success .toast-icon {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
}

.toast-notification.error .toast-icon {
    background: linear-gradient(135deg, #e74d61 0%, #c73d52 100%);
    color: #fff;
}

.toast-notification.loading .toast-icon {
    background: linear-gradient(135deg, #dd8622 0%, #c97519 100%);
    color: #fff;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.toast-message {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    font-size: 18px;
    padding: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.toast-notification.loading .toast-icon i {
    animation: spin 1s linear infinite;
}

/* Mobile Responsive */
@media (max-width: 575.9px) {
    .toast-notification {
        top: 10px;
        right: -100%;
        left: 10px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
    
    .toast-notification.show {
        right: auto;
        left: 10px;
    }
}

@media (max-width: 575.9px) {
    .contact .title-bg span {
        font-size: 70px;
        line-height: 4.78;
    }
}

@media (min-width: 576px) and (max-width: 767.9px) {
    .contact-title {
        margin-left: 0rem !important;
    }
    .contact .title-bg span {
        font-size: 90px;
        line-height: 3.8;
    }
}

/* end contact */



/* Mobile Responsive */


/* adjustment for media query 460px or low */

@media (max-width: 460px) {
    header .text-holder {
        padding: 0;
    }
    header .header-text {
        font-size: 13px;
    }
    .about-me-btn-holder {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    .hire-me,
    .show-cv {
        margin: 0.5rem 0 !important;
        min-width: 180px;
    }
    .contact .container {
        padding: 1rem !important;
    }
    .contact .title-bg span {
        font-size: 44px;
        line-height: 7.3;
    }
    .contact .email-me,
    .contact .whatsapp-me a {
        font-size: 15px;
    }
    #portfolio .all-project {
        height: 25em;
    }
    .all-project .image img {
        height: 18em;
    }
}

/* BACK TOP BUTTON */

.back-top {
    display: flex;
    justify-content: start;
    position: relative;
    z-index: 3; /* ensure above contact overlays */
}

.back-top button {
    width: 150px;
    height: 50px;
    margin: 35px;
    color: white;
    position: relative;
    overflow: hidden;
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-top button p {
    color: #fff !important;
}

.back-top button p:before,
.back-top button p:after {
    position: absolute;
    width: 100%;
    transition: all 0.1s cubic-bezier(0.35, 0.1, 0.25, 1);
    z-index: 1;
    left: 0;
}

.back-top button p:before {
    content: attr(data-title);
    top: 50%;
    transform: translateY(-50%);
}

.back-top button p:after {
    content: attr(data-text);
    top: 150%;
    color: #ffffff;
}

.back-top button:hover p:before {
    top: -50%;
    transform: rotate(5deg);
}

.back-top button:hover p:after {
    top: 50%;
    transform: translateY(-50%);
}

.back-top button .fa-chevron-up {
    position: absolute;
    left: 0px;
}

/* end back top button */

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

/* Base reveal state — hidden, ready to animate */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.88) translateY(20px);
}

/* Visible state — animated in */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for child elements */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* end scroll reveal */

/* =============================================
   NAVBAR TOGGLER — WHITE HAMBURGER ICON
   ============================================= */

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25) !important;
}

/* Active nav item — white underline + white text */
.navbar-nav .active {
    border-bottom: solid 2px #ffffff !important;
}

.navbar-nav .active a {
    color: #ffffff !important;
}

/* =============================================
   PAGE PRELOADER — sign.png
   ============================================= */

#preloader {
    position: fixed;
    inset: 0;
    background: #0b1423;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(231, 77, 97, 0.65));
    animation: preloader-breathe 1.4s ease-in-out infinite;
}

@keyframes preloader-breathe {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%       { transform: scale(1.07); opacity: 1; }
}

.preloader-track {
    width: 130px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-top: 26px;
    overflow: hidden;
}

.preloader-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e74d61, #ff8fa0);
    border-radius: 10px;
    animation: preloader-run 1.3s ease-in-out infinite;
}

@keyframes preloader-run {
    0%   { width: 0%;   transform: translateX(0); }
    60%  { width: 100%; }
    100% { width: 100%; transform: translateX(130px); }
}

/* =============================================
   BOOK-CLICK PRELOADER OVERLAY
   ============================================= */

#book-preloader {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 35, 0.9);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#book-preloader.show {
    opacity: 1;
    visibility: visible;
}

.bpl-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(231, 77, 97, 0.75));
    animation: preloader-breathe 0.9s ease-in-out infinite;
}

.bpl-text {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 3.5px;
    margin-top: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

/* =============================================
   3D BOOK FLOATING BUTTON
   ============================================= */


/* Hide default Cal.com button */
/* =============================================
   WHATSAPP FLOATING BUTTON
   ============================================= */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    animation: wa-reveal 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 1s;
}

@keyframes wa-reveal {
    from {
        opacity: 0;
        transform: scale(0);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
}

.whatsapp-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(15px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #333;
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 575px) {
    .floating-whatsapp-btn {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .whatsapp-tooltip {
        display: none; /* Hide tooltip on small mobile */
    }
}


@keyframes book-float {
    0%, 100% { transform: rotateY(-22deg) rotateX(6deg) translateY(0px);   }
    50%       { transform: rotateY(-22deg) rotateX(6deg) translateY(-9px);  }
}


/* Cover (front face) */



/* Pages (right edge — simulated with shadow) */

/* Spine (left face) */

/* Tooltip label */



/* Pulsing glow ring */

@keyframes book-glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(231, 77, 97, 0.5); }
    50%       { box-shadow: 0 0 0 10px rgba(231, 77, 97, 0);   }
}

/* =============================================
   TOOLS SECTION — ICON HOLDERS MIN-HEIGHT
   (prevents layout shift while SVGs load)
   ============================================= */

.dbt-holder > div,
.google-analytics-holder > div,
.powerbi-holder > div,
.google-query-holder > div,
.microsoft-sql-holder > div,
.python-holder > div,
.snowflake-holder > div,
.tableau-holder > div {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   ABOUT-ME SOCIAL ICONS — ALWAYS VISIBLE ON MOBILE/TABLET
   ============================================= */

@media (hover: none), (max-width: 991.98px) {
    /* Always show icons on touch / small screens */
    .about-me-img-holder .icons {
        display: flex !important;
        opacity: 1 !important;
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        justify-content: center;
        padding: 10px 0 8px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
        border-radius: 0 0 15px 15px;
    }

    /* Show the photo overlay on mobile so icons have a container */
    .about-me-img-holder .img-overlay {
        opacity: 1 !important;
        background: transparent !important;
    }
}
/* =============================================
   PROFESSIONAL POLISH — GLOBAL REFINEMENTS
   ============================================= */

/* Anchor offset so the fixed navbar never covers section titles */
html {
    scroll-padding-top: 76px;
}

/* Brand-colored text selection */
::selection {
    background: #e74d61;
    color: #ffffff;
}

/* Slim, dark, brand-accented scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #130000;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 10px;
    border: 2px solid #130000;
}

::-webkit-scrollbar-thumb:hover {
    background: #e74d61;
}

@supports (scrollbar-color: red blue) {
    html {
        scrollbar-color: #3a3a3a #130000;
        scrollbar-width: thin;
    }
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e74d61;
    outline-offset: 3px;
    border-radius: 4px;
}

/* =============================================
   CARD & PROJECT HOVER LIFTS
   ============================================= */

#services .card-services {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#services .card-services:hover {
    transform: translateY(-6px);
    border-color: rgba(231, 77, 97, 0.35);
}

#portfolio .project {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#portfolio .project:hover {
    transform: translateY(-4px);
    border-color: rgba(231, 77, 97, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

#portfolio .project .image img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#portfolio .project:hover .image img {
    transform: scale(1.015);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

#portfolio .all-project {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

#portfolio .all-project:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 77, 97, 0.35);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

/* =============================================
   BUTTON & FORM REFINEMENTS
   ============================================= */

.hire-me,
.show-cv {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hire-me:hover,
.show-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(231, 77, 97, 0.35);
}

.contact .contactform input[type="text"]:focus,
.contact .contactform input[type="email"]:focus,
.contact .contactform select:focus,
.contact .contactform textarea:focus {
    border-color: #e74d61;
    box-shadow: 0 0 0 3px rgba(231, 77, 97, 0.18);
}

.github-container {
    transition: background-color 0.3s ease-in-out, transform 0.25s ease;
}

.github-container:hover {
    transform: translateX(-50%) translateY(-2px);
}

/* =============================================
   MODAL & CAROUSEL — MOBILE RESPONSIVENESS
   ============================================= */

@media (max-width: 767.9px) {
    #portfolio .modal img {
        max-width: 100%;
    }
    #portfolio .carousel {
        max-width: 100%;
    }
    #portfolio .modal .modal-body {
        padding: 1rem;
    }
    .github-container {
        width: auto !important;
        min-width: 110px;
        padding: 6px 14px;
    }
}

/* Respect reduced-motion for decorative animations */
@media (prefers-reduced-motion: reduce) {
    .contact .light-red,
    .contact-mesh-pattern,
    .whatsapp-pulse,
    .preloader-logo,
    .bpl-logo,
    .button-icon-left {
        animation: none !important;
    }
    #services .card-services,
    #portfolio .project,
    #portfolio .all-project,
    .hire-me,
    .show-cv {
        transition: none;
    }
}
