* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    background-color: #162638;
    background-size: cover;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-section {
    padding: 8px;
}

.brand-title {
    float: left;
    padding: 8px;
    margin-left: 16px;
    margin-top: 8px;
}

.brand-title a {
    color: #ebebeb;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0px;
    text-decoration: none;
}

.header-section ul {
    float: right;
}

.header-section ul li {
    display: inline-block;
    float: left;
}

.header-section ul li:not(:first-child) {
    margin-left: 48px;
}

.header-section ul li:last-child {
    margin-right: 24px;
}

.header-section ul li a {
    display: inline-block;
    outline: none;
    color: #ebebeb;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1.2px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-section ul li a:hover {
    color: #3db2ff;
}

/* HERO LAYOUT */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 2rem 0rem;
    gap: 2rem;
    flex-wrap: wrap;
    color: #ebebeb;
    flex: 1;
}

.hero-text {
    flex: 1 1 400px;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #3db2ff;
}

.hero-text h2 {
    font-size: 2rem;
    color: #a5c9ff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-photo {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out;
    margin-top: -5rem;
}

.hero-photo img {
    max-width: 100%;
    height: auto;
    max-height: 620px;
    border-radius: 12px;
}

/* BUTTON */
.btn {
    background-color: #3db2ff;
    color: #0d1b2a;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: #2791e6;
}

/* Blue index bar (start) */
.blue-bar {
    width: 100%;
    background-color: #3db2ff;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0; /* space between hero/footer */
}

.blue-bar h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
/* Blue index bar (end) */

/* Skills Section (start) */
.skills-section {
    padding: 4rem 8rem;
    background-color: #f9fafb;
}

.skills-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0d47a1;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); /*280*/
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.skill-icon {
    background: #2563eb; /* azul vivo */
    color: #fff;
    font-size: 1.5rem;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.skill-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.skill-info p {
    font-size: 0.95rem;
    color: #6b7280;
}
/* Skills Section (end) */

/* Featured Projects Section (start) */
.featured-projects {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.featured-projects .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0d47a1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0d47a1;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
}

.project-card .btn-small {
    display: inline-block;
    padding: 8px 16px;
    background: #0d47a1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-card .btn-small:hover {
    background: #1565c0;
}

.project-card:hover {
    transform: translateY(-5px);
}
/* Featured Projects Section (end) */

/* Index image carousel (start) */
.tools-carousel {
    width: 100%;
    overflow: hidden;
    background: #3db2ff;
    padding: 1.5rem 0;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.logos {
    overflow: hidden;
    padding: 60px 0;
    background: #a5c9ff;
    white-space: nowrap;
    position: relative;
}

.logos:before, .logos:after {
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    content: "";
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #a5c9ff);
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #a5c9ff);
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logos-slide img {
    height: 50px;
    margin: 0 40px;
}
/* Index image carousel (end) */

/* Mobile hamburger menu styles */
.hamburger-toggle {
    display: none;
}

.menu-overlay {
    display: block;
}

.sr-only {
    display: none;
}

/* Contact Page (start) */
.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 2rem;
    min-height: calc(100vh - 80px);
    gap: 2rem;
}

.contact-info {
    flex: 1;
    max-width: 400px;
}

.contact-item {
    margin: 10px 0;
    font-size: 1rem;
    padding-bottom: 40px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #3db2ff;
}

.contact-info strong {
    margin-bottom: 2rem;
    font-size: 1.7rem;
    line-height: 1.6;
    color: #ebebeb;
}

.contact-info a {
    color: #3db2ff;
    text-decoration: none;
    font-size: 1.2rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Balls (animation) */
.contact-animation {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ball {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transform: translateX(200%);
    animation: slideInRight 1.2s ease-out forwards;
}

/* Balls: different sizes and colors */
.ball1 {
    width: 460px;
    height: 460px;
    background: linear-gradient(135deg, #3db2ff, #007acc);
    bottom: 10px;
    right: 80px;
    animation-delay: 0.2s;
}

.ball2 {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #66d9ff, #1a8cff);
    top: 250px;
    right: 40px;
    animation-delay: 0.4s;
}

.ball3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #004080, #0073e6);
    bottom: 20px;
    right: 450px;
    animation-delay: 0.6s;
}

.ball4 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #99e6ff, #3399ff);
    top: -90px;
    right: 160px;
    animation-delay: 0.8s;
}

.tooltip {
    position: relative;
    color: #0077b6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

/*.tooltip:hover {
  color: #023e8a;
}*/

/* Tooltip Style */
.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: 200px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 130%;
    white-space: nowrap;
    box-shadow: 0 4px 10px #00000033;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
    z-index: 10;
}

/* Tooltip down arrow */
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0077b6 transparent transparent transparent;
}

/* Show Tooltip */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}
/* Contact Page (end) */

/* Footer (start) */
.footer-site {
    background-color: #0d1b2a;
    padding: 20px 0;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3db2ff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #9ca3af;
    font-weight: 300;
}

.footer-center {
    text-align: center;
}

.footer-title {
    font-size: 3.0rem;
    font-weight: 700;
    color: #ebebeb;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-contacts-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: #e5e7eb;
    margin-bottom: -10px;
}

.footer-email {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #3b82f6;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ebebeb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.github:hover {
    background: rgba(36, 41, 46, 0.9);
    border-color: #24292e;
}

.linkedin:hover {
    background: rgba(10, 102, 194, 0.9);
    border-color: #0a66c2;
}

.email:hover {
    background: rgba(234, 67, 53, 0.9);
    border-color: #ea4335;
}
/* Footer (end) */

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile layout */
@media screen and (max-width: 864px) {
    .brand-title {
        padding: 0;
        margin-left: 1rem;
        margin-top: 1rem;
    }

    .brand-title a {
        font-size: 16px;
    }

    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: #162638;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
    }

    .menu-overlay ul {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
    }

    .menu-overlay ul li {
        display: block;
        float: none;
        width: 100%;
        text-align: right;
        margin-bottom: 10px;
    }

    .menu-overlay ul li:nth-child(1) a {
        transition-delay: 0.2s;
    }

    .menu-overlay ul li:nth-child(2) a {
        transition-delay: 0.3s;
    }

    .menu-overlay ul li:nth-child(3) a {
        transition-delay: 0.4s;
    }

    .menu-overlay ul li:nth-child(4) a {
        transition-delay: 0.5s;
    }

    .menu-overlay ul li:not(:first-child) {
        margin-left: 0;
    }

    .menu-overlay ul li a {
        padding: 10px 24px;
        opacity: 0;
        color: #ebebeb;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1.2px;
        transform: translateX(-20px);
        transition: all 0.2s ease;
        pointer-events: none;
    }

    .hamburger-toggle {
        position: absolute;
        right: 1rem;
        top: .7rem;
        display: block;
        width: 48px;
        height: 48px;
        cursor: pointer;
        z-index: 9999;
        border-radius: 50%;
    }

    .hamburger-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #ebebeb;
        border-radius: 2px;
        margin-left: 14px;
    }

    .hamburger-toggle span:nth-child(1) {
        margin-top: 16px;
    }

    .hamburger-toggle span:nth-child(2) {
        margin-top: 4px;
        opacity: 1;
    }

    .hamburger-toggle span:nth-child(3) {
        margin-top: 4px;
    }

    /* Mobile "hero" section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem 0rem;
        min-height: calc(100vh - 80px);
        justify-content: center;
        gap: 2rem;
    }

    .hero-text {
        animation: none;
        flex: none;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-text h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-photo {
        animation: none;
        flex: none;
        margin-top: 0;
    }

    .hero-photo img {
        max-height: 360px;
        width: auto;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .skills-section {
        padding: 4rem 1.1rem;
        background-color: #f9fafb;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Contact Page (start) */
    .contact-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-animation {
        display: none;
        width: 100%;
        height: 250px;
    }

    /* Contact Page (end) */

    /* Footer (start) */
    .footer-site {
        padding-bottom: 50px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 24px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        align-items: center;
    }

    .footer-name {
        font-size: 1.8rem;
    }

    .footer-title {
        font-size: 2.5rem;
    }

    .social-icons {
        justify-content: center;
    }
    /* Footer (end) */
}

#mobile-menu:checked+.hamburger-toggle {
    transform: rotate(45deg);
}

#mobile-menu:checked+.hamburger-toggle span {
    background: #ebebeb;
    transition: transform 0.2s ease;
}

#mobile-menu:checked+.hamburger-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(180deg);
}

#mobile-menu:checked+.hamburger-toggle span:nth-child(2) {
    opacity: 0;
}

#mobile-menu:checked+.hamburger-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(90deg);
}

#mobile-menu:checked~.menu-overlay {
    z-index: 9990;
    opacity: 1;
    visibility: visible;
}

#mobile-menu:checked~.menu-overlay ul li a {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}