/* ----------------------------------------------------------------------------------------
* Author: Thiago Matos
* Name: Personal Page - Styles
* Version: 2.0
* Description: Dark & Red Theme with Premium Feel
---------------------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,600&family=Roboto:wght@300;400;500;700&display=swap');

/* Download CV Button Header */
.btn-download-cv {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #fff;
    padding: 0 20px !important;
    border-radius: 30px;
    color: #fff !important;
    text-decoration: none;
    transition: 0.3s;
    height: 45px;
    /* Match social icons height */
    line-height: normal;
}

.btn-download-cv:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
}

.btn-download-cv i {
    font-size: 14px;
    margin-left: 8px;
    /* Improved spacing */
}

:root {
    --primary-color: #e60045;
    /* Vibrant Red/Pink */
    --hover-color: #ff3366;
    --dark-bg: #101010;
    --darker-bg: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #2d2d2d;
}

/* Hide Checkbox */
.toggle-input {
    display: none;
    visibility: hidden;
}

/* ----------------------------------------------------------------------------------------
*  General Reset & Typography
---------------------------------------------------------------------------------------- */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-main);
    background-color: var(--dark-bg);
}

p {
    font-family: 'Roboto', sans-serif;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 400;
}

a {
    transition: 0.3s ease-out;
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

h2 {
    font-size: 42px;
    color: #fff;
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 20px;
}

/* ----------------------------------------------------------------------------------------
*  Utilities
---------------------------------------------------------------------------------------- */
.section-padding {
    padding: 100px 0;
}

.section-padding-aboutme {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: 800;
}

.section-heading p {
    width: 60%;
    margin: 0 auto;
    font-size: 18px;
}

/* Scroll to Top */
.scroll-area {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    display: none;
}

.scroll-area i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(230, 0, 69, 0.4);
    transition: 0.3s;
}

.scroll-area i:hover {
    transform: translateY(-5px);
    background-color: #fff;
    color: var(--primary-color);
}


/* Logo */
.logo a img {
    width: 50px;
    height: auto;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.logo a img:hover {
    border-color: var(--primary-color);
    transform: rotate(360deg);
}

.header-top {
    padding: 15px 0;
    position: absolute;
    z-index: 999;
    width: 100%;
}

.header-area {
    background: var(--card-bg);
}

/* Restoring banner text and social icon styles */
.banner-text h4 {
    font-size: 20px !important;
    /* Welcome text size */
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ddd;
    margin-bottom: 15px;
    /* Reduced margin */
    margin-top: 0;
}

/* Removed conflicting h1 rule */

/* Specific styling for desktop elements */
/* Specific styling for desktop elements */
.banner-text .static-greeting,
.banner-text .static-greeting span {
    font-size: 80px !important;
    /* Reduced from 60px for hierarchy */
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
    /* Center for matching other components */
}

.cd-headline .cd-words-wrapper {
    font-size: 110px !important;
    /* Largest element */
    font-weight: 900;
    color: var(--primary-color);
    text-align: center;
    /* Center for matching other components */
}

/* Adjust top spacing to avoid overlap */
.banner-text {
    padding-top: 200px;
    /* Adjusted visually */
    text-align: center;
    /* Center for matching other components */
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.cd-headline span b {
    color: var(--primary-color);
    font-weight: 900;
    padding-left: 0;
}

.header-social {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Flex container for horizontal alignment */
.header-social ul {
    display: flex;
    gap: 15px;
    padding-left: 0;
    align-items: center;
    justify-content: center;
}

/* Social Icons (Exclude the Resume Button) */
.header-social ul li a:not(.btn-download-cv) {
    width: 45px;
    height: 45px;
    line-height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    background: transparent;
    display: flex;
    /* Centering icon */
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}


/* Fix for animated text layout */
/* Fix for animated text layout */
.cd-headline.clip span {
    padding: 0;
    display: inline-block;
    white-space: nowrap;
    /* Required for clip animation */
}

.cd-headline.clip .cd-words-wrapper {
    overflow: hidden;
    vertical-align: bottom;
    margin-left: 0;
    line-height: 1.2;
    display: inline-block;
}

/* Ensure branding colors are correct */
.cd-words-wrapper b {
    color: var(--primary-color) !important;
    font-weight: 900 !important;
}

/* ----------------------------------------------------------------------------------------
*  About Me
---------------------------------------------------------------------------------------- */
.service-area {
    background-color: var(--dark-bg);
}

.service-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* De-emphasize functionality can be done via filter or size */
    filter: grayscale(80%);
    transition: 0.5s;
}

.service-img img:hover {
    filter: grayscale(0%);
}

.service-text-aboutme h2 {
    font-size: 40px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.service-text-aboutme h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.about-contact h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
}

.ft-link ul {
    display: flex;
    gap: 15px;
}

.ft-link ul li a {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 5px;
    color: var(--text-muted);
    font-size: 18px;
    transition: 0.3s;
}

.ft-link ul li a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ----------------------------------------------------------------------------------------
*  Skills & Technologies Boxes
---------------------------------------------------------------------------------------- */
.Awesome-area2 {
    background: var(--darker-bg);
}

.serviceBox3 {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: 0.4s;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.serviceBox3:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.serviceBox3 .service-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.serviceBox3 .title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
}

.serviceBox3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s;
}

.serviceBox3:hover::before {
    transform: scaleX(1);
}

/* ----------------------------------------------------------------------------------------
*  Resume / Experience
---------------------------------------------------------------------------------------- */
.experience-area {
    background: var(--dark-bg);
}

.experience-tab .nav-tabs {
    border-bottom: none;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.experience-tab .nav-tabs li a {
    background: var(--card-bg);
    color: var(--text-muted);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.experience-tab .nav-tabs li.active a,
.experience-tab .nav-tabs li a:hover {
    background: var(--primary-color);
    color: #fff;
}

.timeline_content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 30px;
    transition: 0.3s;
}

.timeline_content:hover {
    transform: translateX(10px);
    background: #1f1f1f;
}

.timeline_content span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.timeline_content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.progress-single h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.progressbar-title {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.progress {
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: visible;
}

.progress .progress-bar {
    background: var(--primary-color);
    border-radius: 4px;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 10px rgba(230, 0, 69, 0.5);
}

/* ----------------------------------------------------------------------------------------
*  Modals (Technology Grid - formerly Carousel)
---------------------------------------------------------------------------------------- */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
}

.modal-header {
    border-bottom: 1px solid #333;
}

/* Grid Layout for Technologies */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.project-grid .box {
    text-align: center;
    background: #252525;
    padding: 30px 20px;
    border-radius: 10px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
}

.project-grid .box:hover {
    background: #2a2a2a;
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-grid .box img {
    max-height: 60px;
    /* Slightly smaller for grid balance */
    width: auto !important;
    margin-bottom: 15px;
    display: block;
}

.project-grid .box .title {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* ----------------------------------------------------------------------------------------
*  Footer
---------------------------------------------------------------------------------------- */
.footer-area {
    background: #000;
    position: relative;
    padding-top: 80px;
}

.footer-left {
    background: linear-gradient(135deg, var(--primary-color), #b30036);
    padding: 60px;
    border-radius: 10px 10px 0 0;
    color: #fff;
}

.button-2:hover {
    background: transparent;
    color: #fff;
}

.footer-right {
    padding: 60px;
}

.footer-link h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-link h4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 50px;
    width: 100%;
}

/* ----------------------------------------------------------------------------------------
*  Language Toggle
---------------------------------------------------------------------------------------- */
.language-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.toggle-label {
    width: 70px;
    height: 34px;
    background: #333;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
}

.toggle-ball {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 3px;
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.toggle-input:checked+.toggle-label .toggle-ball {
    transform: translateX(36px);
}

.flag {
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: 0.3s;
}

.flag-br {
    left: 8px;
}

.flag-us {
    right: 4px;
}

.toggle-input:not(:checked)+.toggle-label .flag-br {
    opacity: 1;
}

.toggle-input:checked+.toggle-label .flag-us {
    opacity: 1;
}

/* Ensure no overflow */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* ----------------------------------------------------------------------------------------
*  Tablet/Notebook Styles (min-width: 768px and max-width: 1199px)
---------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .banner-text h4 {
        font-size: 14px !important;
    }

    .banner-text .static-greeting,
    .banner-text .static-greeting span {
        font-size: 40px !important;
    }

    .cd-headline .cd-words-wrapper {
        font-size: 60px !important;
    }
}

/* ----------------------------------------------------------------------------------------
*  Mobile Styles (max-width: 767px)
---------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .banner-text {
        padding-top: 280px;
        text-align: center;
    }

    .banner-text h4 {
        margin-top: 20px;
        margin-bottom: 15px;
        /* Added spacing */
        font-size: 12px !important;
        /* Welcome */
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #ddd;
    }

    .banner-text h1 {
        font-size: 28px;
    }

    /* Hi, I'm Thiago */
    .banner-text .static-greeting,
    .banner-text .static-greeting span {
        font-size: 28px !important;
        /* Greeting */
        line-height: 1.2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Animation */
    .cd-headline .cd-words-wrapper {
        font-size: 32px !important;
        /* Animation */
        text-align: left;
    }

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

    .cd-headline span {
        font-size: 32px !important;
        white-space: nowrap !important;
        display: inline-block;
    }

    /* Center alignment for cards on mobile */
    .serviceBox3 {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-left {
        padding: 40px;
        margin-bottom: 30px;
    }

    .tabs .tab-2 {
        width: 100%;
    }

    .timeline_content {
        text-align: left !important;
        float: none !important;
        width: 100% !important;
        margin-left: 10px;
    }

    .timeline-content .timeline-list li::before {
        left: 0;
    }

    .timeline-content .timeline-list::before {
        left: 9px;
    }

    .header-social ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ----------------------------------------------------------------------------------------
*  Mobile Styles (max-width: 767px)
---------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .banner-text {
        padding-top: 280px;
        text-align: center;
    }

    .banner-text h4 {
        margin-top: 20px;
        margin-bottom: 15px;
        /* Added spacing */
        font-size: 12px !important;
        /* Welcome */
        font-weight: 400;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #ddd;
    }

    .banner-text h1 {
        font-size: 28px;
    }

    /* Hi, I'm Thiago */
    .static-greeting,
    .static-greeting span {
        font-size: 28px !important;
        /* Greeting */
        line-height: 1.2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Animation */
    .cd-words-wrapper {
        font-size: 32px !important;
        /* Animation */
        text-align: left;
    }

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

    .cd-headline span {
        font-size: 32px !important;
        white-space: nowrap !important;
        display: inline-block;
    }

    /* Center alignment for cards on mobile */
    .serviceBox3 {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-left {
        padding: 40px;
        margin-bottom: 30px;
    }

    .tabs .tab-2 {
        width: 100%;
    }

    .timeline_content {
        text-align: left !important;
        float: none !important;
        width: 100% !important;
        margin-left: 10px;
    }

    .timeline-content .timeline-list li::before {
        left: 0;
    }

    .timeline-content .timeline-list::before {
        left: 9px;
    }

    .header-social ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hi, I'm Thiago */
.static-greeting,
.static-greeting span {
    font-size: 28px !important;
    /* Greeting */
    line-height: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Animation */
.cd-words-wrapper {
    font-size: 32px !important;
    /* Animation */
    text-align: left;
}

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

.cd-headline span {
    font-size: 32px !important;
    white-space: nowrap !important;
    display: inline-block;
}

/* Center alignment for cards on mobile */
.serviceBox3 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-left {
    padding: 40px;
    margin-bottom: 30px;
}

.tabs .tab-2 {
    width: 100%;
}

.timeline_content {
    text-align: left !important;
    float: none !important;
    width: 100% !important;
    margin-left: 10px;
}

.timeline-content .timeline-list li::before {
    left: 0;
}

.timeline-content .timeline-list::before {
    left: 9px;
}

.header-social ul {
    flex-wrap: wrap;
    justify-content: center;
}
}