
/* ===================================================================
 * # BUTTONS
 *
 *
 * ------------------------------------------------------------------- */
.btn,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
    --btn-height            : var(--vspace-btn);
    display                 : inline-block;
    font-family             : var(--font-2);
    font-weight             : 400;
    font-size               : calc(var(--text-size) * 0.6667);
    text-transform          : uppercase;
    letter-spacing          : .3em;
    height                  : var(--btn-height);
    line-height             : calc(var(--btn-height) - 4px);
    padding                 : 0 3.6rem;
    margin                  : 0 0.4rem var(--vspace-0_5) 0;
    color                   : var(--color-btn-text);
    text-decoration         : none;
    text-align              : center;
    white-space             : nowrap;
    cursor                  : pointer;
    transition              : all .3s;
    background-color        : var(--color-btn);
    border                  : 2px solid var(--color-btn);
    -webkit-font-smoothing  : antialiased;
    -moz-osx-font-smoothing : grayscale;
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus,
.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
    background-color : var(--color-btn-hover);
    border-color     : var(--color-btn-hover);
    color            : var(--color-btn-hover-text);
    outline          : 0;
}

/* button primary
 */
.btn.btn--primary,
button.btn--primary,
input[type="submit"].btn--primary,
input[type="reset"].btn--primary,
input[type="button"].btn--primary {
    background   : var(--color-btn-primary);
    border-color : var(--color-btn-primary);
    color        : var(--color-btn-primary-text);
}

.btn.btn--primary:focus,
button.btn--primary:focus,
input[type="submit"].btn--primary:focus,
input[type="reset"].btn--primary:focus,
input[type="button"].btn--primary:focus,
.btn.btn--primary:hover,
button.btn--primary:hover,
input[type="submit"].btn--primary:hover,
input[type="reset"].btn--primary:hover,
input[type="button"].btn--primary:hover {
    background   : var(--color-btn-primary-hover);
    border-color : var(--color-btn-primary-hover);
    color        : var(--color-btn-primary-hover-text);
}

/* button modifiers
 */
.btn.u-fullwidth,
button.u-fullwidth {
    width        : 100%;
    margin-right : 0;
}

.btn--small,
button.btn--small {
    --btn-height : calc(var(--vspace-btn) - 1.6rem);
}

.btn--medium,
button.btn--medium {
    --btn-height : calc(var(--vspace-btn) + .8rem);
}

.btn--large,
button.btn--large {
    --btn-height : calc(var(--vspace-btn) + 1.6rem);
}

.btn--stroke,
button.btn--stroke {
    background  : transparent !important;
    font-weight : 400;
    border      : 2px solid var(--color-btn-stroke);
    color       : var(--color-btn-stroke-text);
}

.btn--stroke:focus,
button.btn--stroke:focus,
.btn--stroke:hover,
button.btn--stroke:hover {
    background : var(--color-btn-stroke-hover) !important;
    border     : 2px solid var(--color-btn-stroke-hover);
    color      : var(--color-btn-stroke-hover-text);
}

.btn--pill,
button.btn--pill {
    padding-left  : 3.2rem !important;
    padding-right : 3.2rem !important;
    border-radius : 1000px !important;
}

/* =================================================================== 
 * # PRELOADER
 * 
 * 
 * -------------------------------------------------------------------
 * - markup:
 *
 * <div id="preloader">
 *    <div id="loader"></div>
 * </div>
 *
 * ------------------------------------------------------------------- */
#preloader {
    position        : fixed;
    display         : flex;
    flex-flow       : row wrap;
    justify-content : center;
    align-items     : center;
    background      : var(--color-preloader-bg);
    z-index         : 500;
    height          : 100vh;
    width           : 100%;
    opacity         : 1;
}

.no-js #preloader {
    display : none;
}

#loader {
    width   : var(--vspace-1_5);
    height  : var(--vspace-1_5);
    padding : 0;
    opacity : 1;
}

#loader:before {
    content           : "";
    border-top        : 4px solid var(--color-loader-light);
    border-right      : 4px solid var(--color-loader-light);
    border-bottom     : 4px solid var(--color-loader-light);
    border-left       : 4px solid var(--color-loader);
    -webkit-animation : load 1.1s infinite linear;
    animation         : load 1.1s infinite linear;
    display           : block;
    border-radius     : 50%;
    width             : 100%;
    height            : 100%;
}

@-webkit-keyframes load {
    0% {
        -webkit-transform : rotate(0deg);
        transform         : rotate(0deg);
    }

    100% {
        -webkit-transform : rotate(360deg);
        transform         : rotate(360deg);
    }
}

@keyframes load {
    0% {
        transform : rotate(0deg);
    }

    100% {
        transform : rotate(360deg);
    }
}

/* ------------------------------------------------------------------- 
 * ## page loaded
 * ------------------------------------------------------------------- */
.ss-loaded #preloader {
    opacity    : 0;
    visibility : hidden;
    transition : all .6s .9s ease-in-out;
}

.ss-loaded #preloader #loader {
    opacity    : 0;
    transition : opacity .6s ease-in-out;
}

/* --------------------------------------------------------------------
 * ## lists
 * -------------------------------------------------------------------- */
ol {
    list-style : decimal;
}

ul {
    list-style : disc;
}

li {
    display : list-item;
}

ol,
ul {
    margin-left : 1.6rem;
}

ul li {
    padding-left : .4rem;
}

ul ul,
ul ol,
ol ol,
ol ul {
    margin : 1.6rem 0 1.6rem 1.6rem;
}

ul.disc li {
    display    : list-item;
    list-style : none;
    padding    : 0 0 0 .8rem;
    position   : relative;
}

ul.disc li::before {
    content        : "";
    display        : inline-block;
    width          : 8px;
    height         : 8px;
    border-radius  : 50%;
    background     : var(--color-1);
    position       : absolute;
    left           : -.9em;
    top            : 11px;
    vertical-align : middle;
}

dt {
    margin : 0;
    color  : var(--color-1);
}

dd {
    margin : 0 0 0 2rem;
}

/* definition list line style 
 */
.lining dt,
.lining dd {
    display : inline;
    margin  : 0;
}

.lining dt+dt:before,
.lining dd+dt:before {
    content     : "\A";
    white-space : pre;
}

.lining dd+dd:before {
    content : ", ";
}

.lining dd+dd:before {
    content : ", ";
}

.lining dd:before {
    content     : ": ";
    margin-left : -0.2em;
}

/* definition list dictionary style 
 */
.dictionary-style dt {
    display       : inline;
    counter-reset : definitions;
}

.dictionary-style dt+dt:before {
    content     : ", ";
    margin-left : -0.2em;
}

.dictionary-style dd {
    display           : block;
    counter-increment : definitions;
}

.dictionary-style dd:before {
    content : counter(definitions, decimal) ". ";
}

/* --------------------------------------------------------------------
 * ## spacing
 * -------------------------------------------------------------------- */
fieldset,
button,
.btn {
    margin-bottom : var(--vspace-0_5);
}

input,
textarea,
select,
pre,
blockquote,
figure,
figcaption,
table,
p,
ul,
ol,
dl,
form,
img,
.video-container,
.ss-custom-select {
    margin-bottom : var(--vspace-1);
}

/* --- CARD DE ESPECIALIDADES (ABOUT) --- */
.about-card {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 3.2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
    transform: translateY(30px);
}

.about-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--color-1);
    box-shadow: 0 15px 30px rgba(226, 81, 52, 0.15);
}

.about-card .card-icon {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--color-1);
}

.about-card .card-icon svg {
    width: 40px;
    height: 40px;
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #151c26;
}

.about-card p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 2.4rem;
}

/* --- BADGES (ETIQUETAS) --- */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.tech-badges span {
    font-family: var(--font-2);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #FFF0ED;
    color: var(--color-1);
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.about-card:hover .tech-badges span {
    background-color: var(--color-1);
    color: white;
}

/* --- BOTÃO VOLTAR AO TOPO (GO TOP) --- */
.ss-go-top {
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, 20px);
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: fixed;
    bottom: 4rem;
    right: 4rem;
}

.ss-go-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    background-color: rgba(21, 28, 38, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ss-go-top svg {
    height: 2.4rem;
    width: 2.4rem;
    stroke: var(--color-1);
    transition: all 0.3s ease;
}

.ss-go-top a:hover {
    background-color: var(--color-1);
    border-color: var(--color-1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(226, 81, 52, 0.4);
}

.ss-go-top a:hover svg {
    stroke: white;
    transform: translateY(-2px);
}

.ss-go-top.link-is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0);
}

/* --- ANIMAÇÕES GERAIS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.about-card.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- RESPONSIVIDADE DOS COMPONENTES --- */
@media screen and (max-width: 800px) {
    .about-card { padding: 2.4rem; }
    .about-card h3 { font-size: 1.9rem; }
    .about-card p { font-size: 1.5rem; }
    .about-card .card-icon svg { width: 32px; height: 32px; }

    .ss-go-top { right: 2rem; bottom: 2rem; }
    .ss-go-top a { height: 4.5rem; width: 4.5rem; }
    .ss-go-top svg { height: 2.2rem; width: 2.2rem; }
}

@media screen and (max-width: 400px) {
    .about-card { padding: 2rem; }
    .tech-badges span { font-size: 1rem; padding: 4px 10px; }
    
    .ss-go-top { right: 1.5rem; bottom: 1.5rem; }
    .ss-go-top a { height: 4rem; width: 4rem; }
    .ss-go-top svg { height: 2rem; width: 2rem; }
}

/* ===================================================================
 * # ESTILOS DO MODAL E BOTÕES DO PORTFÓLIO
 * ------------------------------------------------------------------- */

.modal-popup__buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem; 
    flex-wrap: wrap;
}

.btn-modal {
    display: inline-block;
    font-family: var(--font-1);
    font-weight: 500;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-git {
    color: #151c26;
    border-color: #151c26;
    background: transparent;
}

.btn-git:hover {
    background: #151c26;
    color: white;
}

.btn-live {
    background: var(--color-1);
    color: white;
    border-color: var(--color-1);
}

.btn-live:hover {
    background: var(--color-1);
    border-color: var(--color-1);
}

.modal-popup__details {
    display: none;
}

.portfolio-cta {
    margin-top: 6rem;
    text-align: center;
}

.portfolio-cta .btn {
    margin-top: 0;
}

/* ===================================================================
 * # ANIMAÇÕES DO PORTFÓLIO
 * ------------------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.bricks-wrapper .brick {
    opacity: 0;
    animation-fill-mode: forwards;
}

.bricks-wrapper .brick.animate {
    animation: fadeInUp 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.bricks-wrapper .brick:nth-child(1) { animation-delay: 0.1s; }
.bricks-wrapper .brick:nth-child(2) { animation-delay: 0.2s; }
.bricks-wrapper .brick:nth-child(3) { animation-delay: 0.3s; }
.bricks-wrapper .brick:nth-child(4) { animation-delay: 0.4s; }
.bricks-wrapper .brick:nth-child(5) { animation-delay: 0.5s; }
.bricks-wrapper .brick:nth-child(6) { animation-delay: 0.6s; }

/* ===================================================================
 * # TIMELINE (Histórico)
 * ------------------------------------------------------------------- */

.timeline-row {
    margin-top: 4rem;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    display: table;
    clear: both;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #d1d1d1; 
    margin-left: -1px;
    z-index: 1;
}

.timeline-block {
    position: relative;
    margin: 4rem 0;
    width: 50%;
    padding: 0 4rem;
    clear: both;
    opacity: 0;
    overflow: visible;
    z-index: 2;
}

.timeline-block:nth-child(odd) {
    float: left;
    text-align: right;
    transform: translateX(-30px);
}

.timeline-block:nth-child(even) {
    float: right;
    text-align: left;
    transform: translateX(30px);
}

.timeline-ico {
    position: absolute;
    top: 0;
    right: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 3px solid var(--color-1);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-block:nth-child(even) .timeline-ico {
    right: auto;
    left: -9px;
}

.timeline-header .timeline-date {
    display: block;
    font-family: var(--font-2);
    font-weight: 700;
    color: var(--color-1);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.timeline-header h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #151c26;
}

.timeline-content p {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.8;
}

.timeline-block.animate {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease;
}

.timeline-block.animate .timeline-ico {
    transform: scale(1.2);
}

@media screen and (max-width: 900px) {
    
    .timeline::before {
        left: 20px;
    }

    .timeline-block {
        width: 100%;
        float: none;
        padding-left: 6rem;
        padding-right: 0;
        text-align: left;
        margin-bottom: 4rem;
        transform: translateY(30px);
    }

    .timeline-block:nth-child(odd),
    .timeline-block:nth-child(even) {
        float: none;
        text-align: left;
    }

    .timeline-ico,
    .timeline-block:nth-child(even) .timeline-ico {
        left: 11px;
        right: auto;
    }
    
    .timeline-block.animate {
        transform: translateY(0);
    }
}

.timeline-top-dots {
    position: absolute;
    top: -15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d1d1; 
    z-index: 1;
    box-shadow: 
        0 -12px 0 #d1d1d1, 
        0 -24px 0 #d1d1d1;
}

@media screen and (max-width: 900px) {
    .timeline-top-dots {
        left: 20px;
        transform: translateX(-50%);
    }
}
