/********** Template CSS **********/
:root {
    --primary: #6244C5;
    --secondary: #FFC448;
    --light: #FAFAFB;
    --dark: #12141D;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


.lang-floating-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  background: var(--bs-body-bg);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.typed-cursor:nth-of-type(2) {
    display: none !important;
}

html {
  scroll-behavior: smooth;
}

.lang-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-floating-btn .lang-active {
    font-weight: 700;
    opacity: 1;
}

.lang-floating-btn .lang-inactive {
    opacity: 0.4;
}
/* --- MOBILE NAVBAR FIX --- */
@media (max-width: 991px) {

  /* Reduce padding so navbar is fully visible */
  .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Remove extra padding in collapse menu */
  .navbar .collapse {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Prevent WOW animation from jumping */
  .navbar.wow {
    visibility: visible !important;
    animation-name: none !important;
  }
}
/* Heartbeat animation */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1.08);
    }
    40% {
        transform: scale(0.98);
    }
    60% {
        transform: scale(1.06);
    }
    80% {
        transform: scale(0.99);
    }
    100% {
        transform: scale(1);
    }
}

.heartbeat {
    animation: heartbeat 2s infinite ease-in-out;
    transform-origin: center;
}

.innovation-card {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}
.innovation-card .card-content {
    padding: 20px;
    border-radius: 15px;
    background: #ffffff;
}
.innovation-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
@media (max-width: 576px) {
    .innovation-card {
        width: 100%;
    }
    .innovation-card .card-content {
        padding: 15px;
    }
}
.wrapper-box {
    
   
    border-radius: 12px;        /* Rounded corners */
    max-width: 700px;           /* How wide the whole block can be */
    margin: 0 auto;             /* Centers the entire box */
    
}

.card-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}



.professional-text {
    text-align: left;
    max-width: 400px;           /* Keeps long text from stretching too far */
}
/* Desktop stays unchanged */
/* Desktop default */
.logo-img {
    width: 200px;
    height: auto;
}

/* MOBILE FIX – stack and center */
@media (max-width: 768px) {

    .wrapper-box {
        display: flex;
        flex-direction: column;    /* stack text + logo */
        align-items: center;       /* center them */
        text-align: center;
    }

    .professional-text {
        max-width: 100% !important;  /* full width text */
        text-align: left;          /* center text */
    }

    .card-wrapper {
        width: 50%;
        display: flex;
        justify-content: center;     /* center logo */
        margin-top: 20px;
    }

    .logo-img {
        width: 200px !important;     /* bigger logo on mobile */
        height: auto;
    }
}



/* --- FIX FLOATING LANGUAGE BUTTON ON MOBILE --- */
.lang-floating-btn {
  position: fixed;
  top: 15px;     /* moved below navbar */
  right: 15px;
  z-index: 9999;
}

@media (max-width: 575px) {
  .lang-floating-btn {
    top: 10px;   /* mobile height */
    right: 10px;
    transform: scale(0.95);
  }
}
#lang-switch { border-radius: 999px; padding: 6px 10px; font-weight:600; }
@media (max-width:991px){ #lang-switch{margin-left:12px;} }
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Service Card Styling ***/
.service-item {
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    background: #ffffff;
}

/* Hover Animation */
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

/*** FIXED SERVICE ICON DARK MODE PROBLEM ***/
/* Always force icon background to remain bright */
.service-item .bg-icon {
    width: 100px;
    height: 100px;
    position: relative;
    
    /* fix darkness caused by dark-mode browsers */
    background: none !important;
    filter: none !important;
    mix-blend-mode: normal !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;

    /* force no dark-mode dimming */
    filter: none !important;
    mix-blend-mode: normal !important;
}

.bg-icon i {
    transition: all 0.3s ease;
}

.service-item:hover .bg-icon i {
    transform: scale(1.25) rotate(5deg);
}
html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

/*** REMOVE ONLY THE DARK-MODE OVERRIDES THAT BROKE YOUR ICONS ***/
@media (prefers-color-scheme: dark) {
    .service-item {
        background: #ffffff !important;
        border-color: #ddd !important;
    }
    .bg-icon {
        background: none !important;
    }
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.fixed-top {
    display: none;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    padding: 20px 15px;
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}
.navbar-brand h1 {
    font-size: 40px; /* adjust to your preferred size */
    line-height: 1;
}

/*** Header ***/
#home {
    margin-bottom: 6rem;
    background: url(../img/bg-header.png) left top no-repeat;
}

.typed-cursor {
    font-size: 30px;
    color: var(--dark);
}

/*** About ***/
#about .years .display-1 {
    font-size: 10rem;
    line-height: 9rem;
}

#about .years h5 {
    letter-spacing: 30px;
    margin-right: -30px;
}

/*** Skills ***/
#skill .progress {
    height: 5px;
    border-radius: 5px;
}

#skill .progress .progress-bar {
    width: 0px;
    border-radius: 5px;
    transition: 3s;
}

#skill .nav-pills .nav-link {
    color: var(--dark);
}

#skill .nav-pills .nav-link.active {
    color: #FFFFFF;
}

#skill .tab-content hr {
    width: 30px;
}

/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}

/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 60px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    right: 30px;
    opacity: 1;
}

.team-item .team-text div {
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 30px;
}
/* FIX: Prevent header text from going under the mobile navbar */
@media (max-width: 768px) {
    #home {
        padding-top: 50px !important;   /* adjust until perfect */
    }
}
