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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #222831;
    padding-top: 110px;
    overflow-x: hidden;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #222831;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-logo {
    width: 60px;
    height: 60px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar-track {
    width: 160px;
    height: 4px;
    background-color: rgba(0, 173, 181, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #00ADB5;
    border-radius: 4px;
    animation: loaderFill 1.5s ease-in-out forwards;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.7; }
}

@keyframes loaderFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.container {
    margin: 0 auto;
    padding-top: 20px;
    max-width: 1200px;
}

.navbar {
    width: 100%;
    padding-bottom: 20px;
    position: fixed;
    top: 0;
    transition: top 0.3s;
    background-color: rgba(34, 40, 49, 0.96);
    z-index: 1000;
}

.home:target {
    scroll-margin-top: 110px;
}   

.navbar-brand img {
    max-width: 60%;
    height: auto;
}

/* HEADER */

.header-menu a {
    color: #FFFFFF;
}

.navbar-nav .nav-link, .navbar-nav-footer .nav-link {
    color: #FFFFFF;
    border-bottom: 2px solid transparent;
    transition: 0.5s;
}

.navbar-nav .nav-link:hover, .navbar-nav-footer .nav-link:hover {
    color: #00ADB5;
    border-bottom: 2px solid #00ADB5;
}

.navbar-nav .nav-item {
    margin-left: 20px;
}

.lang-toggle-item {
    display: flex;
    align-items: center;
}

.btn-lang {
    background: transparent;
    border: 2px solid #00ADB5;
    color: #00ADB5;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-left: 20px;
    letter-spacing: 0.5px;
}

.btn-lang:hover {
    background-color: #00ADB5;
    color: #FFFFFF;
}

.btn {
    background-color: #00ADB5;
    color: #FFFFFF;
}

.btn:hover {
    background-color: #077b81;
    color: #FFFFFF;
}

/*SECTION HOME*/

.circle {
    transition: transform 0.6s ease;
}
.circle:hover {
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.circle img {
    width: 480px;
    height: auto;
}

.social-media-buttons .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    font-size: 1.4rem;
    background-color: transparent;
    border: none;
    margin: 0 -100px;
    margin-right: 106px;
}

.social-media-buttons-footer .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    font-size: 1.4rem;
    background-color: transparent;
    border: none;
    margin: 0 2px;
}

.btn-social:hover{
    border-radius: 100%;
    background: #FFFFFF;
    color: #00ADB5;
}

.intro {
    text-align: left;
}

.intro-name, .clr {
    color: #00ADB5;
}

.job-title {
    font-size: 80px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0;
    max-width: 569px;
    text-align: left;
}

.job-title .text-right {
    display: block;
    text-align: right;
}

.description, .abtme-desc, .srvc-desc {
    color: #FFFFFF;
    line-height: 1.8;
    max-width: 569px;
    padding-top: 24px;
    text-align: justify; 
}

/* ABOUT ME */
.skills {
    list-style: none;
    width: 100%;
    margin-left: 4px;
    max-width: 594px;
    color: #FFFFFF;
    padding-top: 20px;
}

.container h1 {
    color: #FFFFFF;
    font-weight: 600;
}

.skill-name {
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 8px;
}

.skill {
    margin: 18px 0;
    padding: 2px;
    padding-top: 20px;
}

.skill-bar {
    height: 10px;
    background-color: #FFFFFF;
    border-radius: 10px;
}

@keyframes fillBars {
    from { width: 0%; }
    to { width: 100%; }
}

.skill-per {
    height: 10px;
    background: #00ADB5;
    border-radius: 10px;
    position: relative;
    animation: fillBars 3s 1;
}

.skill-per::before {
    content: attr(per);
    border-radius: 100%;
    position: absolute;
    padding: 10px 10px;
    background: #ffffff;
    border: 2px solid #00ADB5;
    top: -8px;
    right: 0;
    transform: translate(50%);
}

.skill-per:hover {
    box-shadow: 0 0 14px rgb(0, 173, 181);
}

/* SERVICES */
.services {
    padding-top: 26px;
}

.card {
    margin-top: -6px;
    justify-content: center;
    border-radius: 16px;
    transition: transform 0.6s ease;
    background-color: #2D333B;
}

.card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    transform: translateY(0);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #2d333b, #252a30);
}

.card:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 173, 181, 0.8);
}

.cards-work {
    opacity: 0;
    transform: translate(-40px, 30px) scale(0.96);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--card-delay, 0s);
    will-change: opacity, transform;
}

.cards-work.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translate(-40px, 30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

.cards-work.visible {
    animation: cardAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cards-work.visible {
    animation: cardAppear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.card-img {
    margin-top: 60px;
    margin-left: 40px;
}

.container .card .card-text {
    color: #EEEEEE;
    text-align: justify;
    margin: 0px 6px;
    line-height: 1.6;
    font-weight: lighter;
}

.container .card-title {
    color: #EEEEEE;
    margin: 0px 6px;
    margin-top: 40px;
    font-weight: 600;
    font-size: 24px;
}

/* PROJECTS */
.filter-btn {
    border-radius: 24px;
    background-color: #2D333B;
    color: #EEEEEE;
    border: none;
    padding: 10px 32px;
    font-weight: 600;
    text-shadow: 0 4px 4px #16191d9b;
    margin-top: 26px;
}

.filter-btn:hover {
    background-color: #077b81;
}

.filter-btn.active {
    background-color: #00ADB5;
    color: #FFFFFF;
}

#load-more-projects {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

#load-more-projects .load-more-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

#load-more-projects .load-more-icon svg {
    vertical-align: text-bottom;
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00ADB5, #00e6de, #00ADB5);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.5);
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1e25;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ADB5, #077b81);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00e6de, #00ADB5);
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #00ADB5 #1a1e25;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.fade-up {
    transform: translateY(60px);
}

.animate-on-scroll.fade-left {
    transform: translateX(-60px);
}

.animate-on-scroll.fade-right {
    transform: translateX(60px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children inside revealed sections */
.animate-on-scroll.visible .stagger-child {
    animation: staggerFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.animate-on-scroll.visible .stagger-child:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll.visible .stagger-child:nth-child(2) { animation-delay: 0.22s; }
.animate-on-scroll.visible .stagger-child:nth-child(3) { animation-delay: 0.34s; }
.animate-on-scroll.visible .stagger-child:nth-child(4) { animation-delay: 0.46s; }
.animate-on-scroll.visible .stagger-child:nth-child(5) { animation-delay: 0.58s; }
.animate-on-scroll.visible .stagger-child:nth-child(6) { animation-delay: 0.7s; }

@keyframes staggerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-img-top {
    padding: 16px;
    border-radius: 24px;
}

.card-title-work {
    color: #EEEEEE;
}

.card-text-work {
    color: #EEEEEE;
    font-weight: lighter;
}

.email-field {
    border-radius: 5px; 
    width: 416px;
    height: 38px;
    border: none;
    padding-left: 16px;
    margin-right: 20px;
}

.email-container, .final-info-logo, .navbar-nav-footer, .cr-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav-footer .nav-item {
    list-style: none;
    margin: 20px;
}

.cr-footer {
    padding: 18px 0;
    background-color: #2D333B;
    color: #2D333B;
    width: 100%;
    text-align: center;
}

.inc-text {
    margin: 0;
}

.btn-coming-soon{
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1200px) {
    .container {
        margin-inline: 8%;
    }

    .container-main {
        margin-right: 14%;
        margin-top: -20px;
    }

    .navbar {
        width: 100%;
        padding-bottom: 20px;
    }

    .navbar-toggler {
        margin-left: auto;
        background-color: #2D333B;
        border: 2px solid #00ADB5;
        color: #00ADB5;
        border-radius: 8px;
        transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler.active {
        outline: none;
        box-shadow: none;
        border: 2px solid #00e6de; 
    }

    .navbar-toggler .bi-x {
        display: none; 
    }

    .navbar-toggler .bi-justify {
        display: inline-block;
    }

    .navbar-toggler.active .bi-x {
        display: inline-block;
    }

    .navbar-toggler.active .bi-justify {
        display: none;
    }

    .navbar-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding-top: 20px;
    }
      
    .navbar-nav .nav-item {
        margin: 8px;
    }
      
    .navbar-nav .nav-item .btn {
        margin-left: 0 !important;
    }

    .btn-lang {
        margin-top: 10px;
        margin-left: 0;
    }

    .header-menu {
        padding-bottom: 2px;
    }

    .intro {
        text-align: left;
    }

    .job-title {
        font-size: 40px;
        text-align: left;
    }

    .circle {
        padding: 4px;
    }

    .image-container {
        justify-content: center !important;
        padding-top: 32px;
    }

    .social-media-buttons .btn-social {
        font-size: 2.0rem;
        margin: 0px 2px;
        margin-right: 6px;
    }

    .skills {
        margin-bottom: -62px !important;
        margin-top: -20px;
    }

    .job-title {
        font-size: 50px;
    }

    .intro .intro-title,
    .intro .intro-name {
        font-size: 28px;
    }

    .description {
        font-size: 18px;
        padding-top: 22px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .home .intro {
        order: 1; 
    }

    .aboutme .image-container {
        order: 2; 
    }

    .srvc-desc {
        text-align: justify !important;
    }

    .card {
        max-width: 100% !important;
        display: flex;
        margin-bottom: 24px;
    }

    .container .card-title {
        color: #FFFFFF;
        margin: 0px 6px;
        margin-top: 12px;
        font-weight: 600;
        font-size: 22px;
    }

    .card-img {
        width: 68px !important;
        margin-top: 48px;
        margin-left: 28px;
    }

    #special-card-img .card-img {
        width: 48px !important;
        margin-left: 36px;
    }

    #services {
        padding-top: 10px; 
    }

    #services:target {
        scroll-margin-top: 40px;
    }   

    .filter-btn-group {
        align-items: center !important;
        justify-content: center !important;
    }

    .container h1 {
        text-align: center;
    }

    .footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .email-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .email-field {
        width: 100%;
        margin-bottom: 20px;
        padding-left: 10px;
        margin-right: 0;
    }

    .navbar-nav-footer {
        list-style-type: none ;
        display: flex;
        font-size: 0;
    }

    .navbar-nav-footer .nav-item {
        margin-left: 0;
    }

}

@media (min-width: 768px) and (max-width: 991.98px) {

    .container-main {
        margin-right: 14%;
        margin-top: -20px;
    }

    .job-title {
        font-size: 80px;
        font-weight: bold;
        line-height: 1.2;
        margin-bottom: 0;
        max-width: none;
        text-align: left;
    }

    .image-container {
        justify-content: center !important;
        align-items: center !important;
        padding-top: 32px;
    }

    .social-media-buttons {
        margin-right: 0 !important;  
    }

    .social-media-buttons .btn-social {
        font-size: 2.0rem;
        margin: 0px 2px;
        margin-right: 6px;
    }

    .percentual-sec {
        justify-content: center !important;
        align-items: center !important;
        padding-top: 32px;
    }

}

@media (max-width: 576px) {
  .social-media-buttons .btn-social,
  .social-media-buttons-footer .btn-social{
    font-size: 1.6rem;
  }
}


.btn-social {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;   
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;           
}