/*Font*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/*  variaves  */
:root {
    --bg: #0b0f14;
    --panel: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.06);
    --text: #e6eef8;
    --muted: #9aa8bb;
    --accent1: #8a5cff;
    --accent2: #00d2ff;
    --neon: 0 6px 28px rgba(138, 92, 255, 0.14), 0 1px 0 rgba(0, 0, 0, 0.6);
    --glass-blur: 10px;
    --header-height: 72px;
    --transition-fast: 200ms;
    --transition-med: 350ms;
    --radius: 12px;
    --font-mont: 'Montserrat', sans-serif;
    --font-rale: 'Raleway', sans-serif;
}

/*Light theme*/
[data-theme="light"] {
    --bg: linear-gradient(180deg, #f7f8fb, #eef2fb);
    --panel: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(10, 12, 20, 0.06);
    --text: #09121a;
    --muted: #4b5965;
    --neon: 0 6px 28px rgba(138, 92, 255, 0.06);
}

/*Dark theme*/
[data-theme="dark"] {
    --bg: linear-gradient(180deg, #0b0f17, #121622);
    --panel: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #f5f7ff;
    --muted: #b7c0ce;
    --neon: 0 6px 28px rgba(138, 92, 255, 0.25);
}

/* Basic layout helpers */
* {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    transition: background var(--transition-med), color var(--transition-med);
}


/* Container */
.container {
    margin: 0 auto;
}


/* Hero */
.hero {
    font-family: var(--font-mont);
    background: radial-gradient(circle at 20% 30%, #8F57FF 0%, transparent 60%), radial-gradient(circle at 80% 70%, #00D8FF 0%, transparent 60%), linear-gradient(135deg, #121826, #0D1117);
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0 10%;
}

.hero h1 {
    font-size: 57px;
    width: 100%;
    font-family: var(--font-rale);
    font-weight: 400;
}

.hero p {
    color: #fff;
    font-size: 26px;
    font-family: var(--font-rale);
}

.hero button {
    font-family: var(--font-mont);
    color: #fff;
    padding: 14px 34px;
    font-size: 1.1rem;
    font-weight: 400;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #8F57FF, #00D8FF);
    box-shadow: 0 0 15px rgba(143, 87, 255, 0.5), 0 0 30px rgba(0, 216, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.hero button a {
    text-decoration: none;
}

.hero button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(143, 87, 255, 0.7), 0 0 40px rgba(0, 216, 255, 0.45);
    filter: brightness(1.1);
}

.hero button {
    position: relative;
    overflow: hidden;
}

.hero button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.hero button:hover::after {
    left: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

/* Tiny neon accent on hero title */
.hero-title span {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 20px rgba(138, 92, 255, 0.06);
}

/* Footer spacing to ensure sticky header doesn't overlap content */
body> :not(.header):first-child {
    margin-top: 6px;
}

/* Focus & reduced motion improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(138, 92, 255, 0.07);
    border-radius: 8px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* ABOUT */
#about {
    width: 100%;
    padding: 1%;
    line-height: 1.7;
    font-family: var(--font-mont);
}

#about .sobre-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: justify;
}

#about h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    text-align: center;
}

#about .sobre-subtitle {
    font-size: 1.1rem;
    opacity: 0.75;
    max-width: 650px;
    margin: 0 auto 50px;
}

/* Neon decorative line */

#about .sobre-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    margin-top: 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8F57FF, #00D8FF);
    box-shadow: 0 0 10px rgba(143, 87, 255, 0.5);
}

#about p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    opacity: 0.9;
}

#about strong {
    color: #8F57FF;
    font-weight: 700;
}

/* GRID DE CARDS */
.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 70px;
}

.sobre-card {
    position: relative;
    z-index: 1;
    padding: 30px;
    border-radius: 20px;
    border: var(--accent1) solid 1px;
    box-shadow: 0 4px 12px #0000000f;
}

.sobre-card:hover {
    transition-duration: 1s !important;
    transform: translateY(-6px) scale(1.01) !important;
    box-shadow: 0 14px 40px rgba(11, 13, 20, 0.25), 0 6px 22px rgba(143, 87, 255, 0.12);
}

.sobre-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.sobre-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.neon-svg {
    color: var(--primary);
    filter: drop-shadow(0 0 6px #8F57FF);
}

/* SECTION SKILLS */

.skills-section {
    text-align: center;
    font-family: var(--font-mont);
}

.skills-section h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 50px;
}

/* Grid cards */

.skills-grid {
    display: grid;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
}

/* CARD (ROOT) */

.skill-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25;
    perspective: 1200px;

    /* Gradient Border Surround */
    padding: 3px;
    border-radius: 22px;
    background: radial-gradient(circle at 20% 30%, #8F57FF 0%, transparent 90%), radial-gradient(circle at 80% 70%, #00D8FF 0%, transparent 90%), linear-gradient(135deg, #121826, #0D1117);
}

/* Internal card (rotate) */

.card-inner {
    background: #0f0f0f60;
    border-radius: 19px;
    height: 100%;
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
    position: relative;
}

/* When hovering the mouse → rotates */
.skill-card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front card */

.card-front,
.card-back {
    position: absolute;
    inset: 0;
    padding: 25px 20px;
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
}

/* FRONTAL FACE  */
.card-front {
    align-items: center;
    gap: 15px;
    text-align: center;
}

.card-front h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.card-front p {
    font-size: 0.95rem;
    color: #d6d6d6;
    margin-top: 10px;
    line-height: 1.4rem;
}

/* Back face */
.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    text-align: center;
    background: #0f0f0f60;
}

.card-back p {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.45rem;
}

/* Icons*/

.skill-icon {
    width: 70px;
    height: 70px;
    padding: 14px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* Glow background */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-svg {
    width: 100%;
    height: 100%;
    color: #fff;
    transition: 0.3s ease;
}

/* Glow Neon Base */
.neon-svg {
    filter: drop-shadow(0 0 6px currentColor);
}

/* Glow individual por tecnologia */
.skill-html .skill-svg {
    color: #ff6b3d;
}

.skill-css .skill-svg {
    color: #4da6ff;
}

.skill-js .skill-svg {
    color: #f7e018;
}

.skill-react .skill-svg {
    color: #61dbfb;
}

.skill-node .skill-svg {
    color: #6cc24a;
}

.skill-uiux .skill-svg {
    color: #ff66f7;
}

/* Hover: Increases brightness */
.skill-card:hover .skill-svg {
    filter: drop-shadow(0 0 10px currentColor);
}

/*  individual colors per skill */
.skill-html .skill-svg {
    color: #e34f26;
}

.skill-css .skill-svg {
    color: #2965f1;
}

.skill-js .skill-svg {
    color: #f7df1e;
}

.skill-react .skill-svg {
    color: #61dafb;
}

.skill-node .skill-svg {
    color: #78a831;
}

.skill-uiux .skill-svg {
    color: var(--accent2);
}

/* Projects Section */

/*Carousel*/

.projects-carousel-section {
    padding: 80px 0;
    text-align: center;
    font-family: var(--font-mont);
}

.projects-carousel-section h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--title-color);
    animation: fade-in 0.8s ease;
}

/* Main Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* Track Wrapper */
.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    position: relative;
}


/* Slide */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}


/* Slide Project */
.carousel-item {
    width: 100%;
    flex: 0 0 100%;
    position: relative;
    display: block;
    cursor: pointer;
    border-radius: 20px;
}

.carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.6s ease, filter 0.6s ease;
}


/* zoom + brightness */
.carousel-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.15);
}


/* caption */
.carousel-caption {
    position: absolute;
    bottom: 16px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1.1rem;
    border-radius: 12px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fade-in-up 0.6s ease;
}

/* Side Navigation */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--title-color);
    font-size: 1.6rem;
    padding: 14px 16px;

    border-radius: 50%;
    cursor: pointer;
    z-index: 20;

    backdrop-filter: blur(6px);
    transition: 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* left and right */
.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* arrows hover */
.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 14px rgba(155, 77, 255, 0.4),
        0 0 22px rgba(0, 212, 255, 0.25);
}

/* indicators */

.carousel-indicators {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(150, 150, 150, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s ease;
}

.indicator:hover {
    transform: scale(1.2);
    background: var(--primary-color);
}

.indicator.active {
    background: linear-gradient(135deg, #9b4dff, #00d4ff);
    box-shadow: 0 0 10px rgba(155, 77, 255, 0.6),
        0 0 14px rgba(0, 212, 255, 0.4);
    transform: scale(1.25);
}

/*Services Section*/

.services {
    padding: 20px 0;
    font-family: var(--font-mont);
    text-align: center;
}

.section-title {
    font-weight: 400;
}

.services .section-title {
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 55px;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    padding: 0 20px;
}

/* CARD */
.service-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 26px 28px;
    text-align: left;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    overflow: hidden;
    position: relative;
    transition: 0.45s ease;
    cursor: pointer;
}

/* Title */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent1);
    margin-bottom: 12px;
}

/* Description */
.service-card p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 18px;
}

/* LIST BASE (hidden initially) */
.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0;

    opacity: 0;
    transform: translateY(18px);
    transition: 0.45s ease;
    pointer-events: none;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* EXPAND ON HOVER */
.service-card.expandable:hover {
    padding-bottom: 42px;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(155, 77, 255, 0.25),
        0 0 30px rgba(0, 212, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.2);
}

/* REVEAL LIST */
.service-card.expandable:hover ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* GRADIENT BORDER ON HOVER */
.service-card.expandable:hover {
    border-image: linear-gradient(135deg, #9b4dff, #00d4ff) 1;
}

/*Benefits section*/

.benefits {
    font-family: var(--font-mont);
}

.benefits .section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 50px;
}

/* Transforming cards into feature lines */
.benefits-grid {
    max-width: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* Each card becomes an elegant line. */
.benefit-card {
    gap: 18px;
    padding: 20px 25px;
    border-left: 3px solid #bba3fc;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    transition: 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* hover efect */
.benefit-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--accent1);
    transform: translateX(6px);
}

/* Creating the icon via CSS (without altering the HTML) */
.benefit-card::before {
    content: "✔";
    font-size: 1rem;
    background: linear-gradient(135deg, #6b46ff, #9d7bff);
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(111, 72, 255, 0.5);
    margin-top: 3px;
}

/* text and title */
.benefit-card h4 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 4px;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/*Contact section*/

.contact {
    padding: 20px;
    background: radial-gradient(circle at 20% 30%, #8F57FF 0%, transparent 60%), radial-gradient(circle at 80% 70%, #00D8FF 0%, transparent 60%), linear-gradient(135deg, #121826, #0D1117);
    font-family: var(--font-mont);
    padding-bottom: 40px;
}

.contact-container {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

/* Title */
.contact .section-title {
    font-size: 2.7rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 14px;
}

/* Text */
.contact-text {
    font-size: 1.1rem;
    color: #cfcfcf;
    max-width: 520px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;

    background: rgba(255, 255, 255, 0.03);
    padding: 40px 35px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    box-shadow:
        0 0 22px rgba(155, 77, 255, 0.05),
        inset 0 0 18px rgba(255, 255, 255, 0.04);
    animation: fade-in 0.8s ease;
}

/* Inputs + Textarea */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-mont);

    transition: 0.3s ease;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bfbfbf;
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #9b4dff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 10px rgba(155, 77, 255, 0.4),
        0 0 14px rgba(0, 212, 255, 0.25);
}

/* BUTTON */
.sec-btn {
    margin-top: 10px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;

    border-radius: 14px;
    background: linear-gradient(135deg, #9b4dff, #00d4ff);
    color: #fff;
    border: none;
    cursor: pointer;

    transition: 0.3s ease;
    box-shadow:
        0 0 12px rgba(155, 77, 255, 0.35),
        0 0 20px rgba(0, 212, 255, 0.25);
}

/* Hover Glow */
.sec-btn:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 20px rgba(155, 77, 255, 0.6),
        0 0 28px rgba(0, 212, 255, 0.4),
        inset 0 0 14px rgba(255, 255, 255, 0.2);
}

/* Click Animation */
.sec-btn:active {
    transform: scale(0.97);
}

/*Keyframe for inputs*/
@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inputs */
.contact-form input,
.contact-form textarea,
.contact-form button {
    opacity: 0;
    animation: fade-slide-up 0.7s ease forwards;
}

/* Stepped delay */
.contact-form input:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-form input:nth-child(2) {
    animation-delay: 0.25s;
}

.contact-form input:nth-child(3) {
    animation-delay: 0.4s;
}

.contact-form textarea {
    animation-delay: 0.55s;
}

.contact-form button {
    animation-delay: 0.75s;
}

/*Success screen after submitting the form*/

.success-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: fadeIn 0.4s ease;
}

.success-box h2 {
    color: #2ecc71;
    margin-bottom: 10px;
}

.success-box p{
    color: black;
}

/*Whatsapp link*/
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    animation: blink 2.3s infinite ease-in-out;
}

/* Keyframe for whats link */
@keyframes blink {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* hover effect */
.whatsapp-float:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

/*Footer*/
.footer {
    background: #2e2e2e;
    padding: 40px 0;
    text-align: center;
    font-family: var(--font-mont);
    color: #bbb;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-text {
    font-size: 15px;
    opacity: 0.75;
}

.footer-follow {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
}

.footer-social-links {
    display: flex;
    gap: 20px;
}

.footer-social-links a {
    font-size: 24px;
    transition: 0.3s ease;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff15;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Oficial colors */
.footer-social-links a[aria-label="Facebook"] i {
    color: #1877F2;
}

.footer-social-links a[aria-label="Instagram"] i {
    color: #E4405F;
}

.footer-social-links a[aria-label="LinkedIn"] i {
    color: #0A66C2;
}

.footer-social-links a[aria-label="GitHub"] i {
    color: #ffffff;
}

/* Hover */
.footer-social-links a:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}


/*Keyframes*/
/*Fade-in*/
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/*Fade-in left*/
@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

/*Fade-on right*/
@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Fade-in-up */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal base (invisible before scroll) */
.reveal {
    opacity: 0 !important;
    transform: translateY(40px) !important;
    transition: opacity .8s ease, transform .8s ease;
    will-change: opacity, transform;
}

/* When enter the viewport */
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* RESPONSIVENESS */

/* 1024px */
@media (max-width: 1024px) {
    /*Hero Section */

    /* Reduce side padding to avoid overflow */
    .hero {
        padding: 0 6%;
    }

    /* Adjust heading size for medium screens */
    .hero h1 {
        font-size: 48px;
    }

    /* Subtitle slightly smaller */
    .hero p {
        font-size: 22px;
    }

    /* Button slightly reduced */
    .hero button {
        font-size: 1rem;
        padding: 12px 30px;
    }

    /* About Section */

    /* Reduce subtitle max width for better readability */
    #about .sobre-subtitle {
        max-width: 550px;
        /* smaller text block */
    }

    /* Slightly reduce card padding */
    .sobre-card {
        padding: 24px;
    }

    /* Skill Section */

    .skills-grid {
        /* Reduce to 2 columns */
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .skills-section h2 {
        font-size: 2.4rem;
        /* Slightly smaller title */
    }

    .card-front h3 {
        font-size: 1.3rem;
    }

    .card-front p,
    .card-back p {
        font-size: 0.9rem;
    }

    /* Projects Section */

    .carousel-item img {
        height: 360px;
    }

    .carousel-btn {
        font-size: 1.4rem;
        padding: 12px 14px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: 0px;
    }

    /*Services Section*/

    /* Slightly reduce title size */
    .services .section-title {
        font-size: 2.3rem;
        /* smaller title */
    }

    /* Reduce padding inside cards */
    .service-card {
        padding: 22px 25px;
        /* smaller spacing */
    }

    /* Adjust text sizes */
    .service-card h3 {
        font-size: 1.4rem;
        /* slightly smaller */
    }

    .service-card p,
    .service-card ul li {
        font-size: 0.95rem;
        /* smaller text */
    }

    /*Benefits Sction */

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 20px;
    }

    .benefit-card {
        padding: 18px 20px;
    }

    .benefit-card h4 {
        font-size: 1.2rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    /* Contact */

    .contact .section-title {
        font-size: 2.4rem;
    }

    .contact-text {
        font-size: 1.05rem;
    }

    .contact-form {
        padding: 35px 30px;
    }

    /* Footer */

    /* Reduce spacing for medium screens */
    .footer {
        padding: 35px 0;
    }

    .footer-social-links a {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
}


/* 768px */
@media (max-width: 768px) {

    /*Hero Section */

    /* More compact layout */
    .hero {
        padding: 0 5%;
        text-align: center;
        /* Center text on tablet */
    }

    /* Center content container */
    .hero-content {
        margin: 0 auto;
        max-width: 550px;
    }

    /* Responsive text scaling */
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 20px;
    }

    /* Button smaller on tablet */
    .hero button {
        padding: 12px 28px;
        font-size: 1rem;
    }

    /*About Section*/

    /* Center text for better layout on tablets */
    #about .sobre-container {
        text-align: center;
        /* centralizes long text */
    }

    /* Reduce heading size */
    #about h2 {
        font-size: 2.4rem;
        /* avoid oversized titles */
    }

    /* Reduce paragraph text */
    #about .sobre-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    /* Grid adapts to 2 columns comfortably */
    .sobre-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 20px;
        /* smaller gaps */
    }

    .sobre-card {
        padding: 22px;
    }

    .sobre-card h3 {
        font-size: 1.2rem;
    }

    /* Skill Section */

    .skills-grid {
        /* Keep 2 columns but with tighter spacing */
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 90%;
    }

    .skill-card {
        /* Reduce height ratio */
        aspect-ratio: 1 / 1.3;
    }

    /* Reduce icon size */
    .skill-icon {
        width: 60px;
        height: 60px;
        padding: 12px;
    }

    .skills-section h2 {
        font-size: 2.2rem;
    }

    /* Projects Section */

    .projects-carousel-section h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .carousel-item img {
        height: 300px;
    }

    .carousel-caption {
        font-size: 1rem;
        left: 14px;
        bottom: 12px;
        padding: 8px 16px;
    }

    .carousel-btn {
        font-size: 1.3rem;
        padding: 10px 12px;
        backdrop-filter: blur(4px);
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    /*Services Section*/

    /* Title */
    .services .section-title {
        font-size: 2.1rem;
        /* smaller title */
        margin-bottom: 45px;
    }

    /* Grid: bigger columns to avoid too many in row */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 22px;
        padding: 0 15px;
        /* reduce side padding */
    }

    /* Cards spacing */
    .service-card {
        padding: 22px 20px;
    }

    /* Improve readability */
    .service-card h3 {
        font-size: 1.3rem;
    }

    /* Benefits Section */

    .benefits .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 10px 5px;
    }

    .benefit-card {
        padding: 18px 18px;
        border-left-width: 3px;
    }

    .benefit-card::before {
        font-size: 0.95rem;
        width: 30px;
        height: 30px;
    }

    .benefit-card h4 {
        font-size: 1.15rem;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    /* Contact */

    .contact {
        padding: 50px 20px;
    }

    .contact-container {
        max-width: 90%;
    }

    .contact .section-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .contact-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-form {
        padding: 32px 26px;
        gap: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 14px 16px;
    }

    /* Footer */

    /* Slightly smaller text sizes */
    .footer-text {
        font-size: 14px;
    }

    .footer-follow {
        font-size: 16px;
    }

    /* Social buttons adjust slightly */
    .footer-social-links a {
        width: 42px;
        height: 42px;
        font-size: 21px;
        gap: 18px;
    }
}


/* 480px */
@media (max-width: 480px) {

    /* Hero Section */

    /* Reduce padding to optimize screen usage */
    .hero {
        padding: 0 4%;
    }

    /* Increase line-height for readability */
    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
    }

    /* Button gets more compact */
    .hero button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    /* Limit maximum width */
    .hero-content {
        max-width: 90%;
    }

    /* About Section*/

    /* Increase padding around the section */
    #about {
        padding: 6% 4%;
    }

    #about h2 {
        font-size: 2rem;
    }

    #about .sobre-subtitle {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }

    /* Force 1 column layout */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sobre-card {
        padding: 20px;
        border-radius: 16px;
    }

    .sobre-card h3 {
        font-size: 1.15rem;
    }

    .sobre-card .icon {
        width: 36px;
        height: 36px;
    }

    /* Skill Section */

    .skills-grid {
        /* Switch to single column */
        grid-template-columns: 1fr;
        max-width: 380px;
        gap: 22px;
    }

    .skill-card {
        aspect-ratio: 1 / 1.25;
        padding: 2px;
    }

    .card-front h3 {
        font-size: 1.25rem;
    }

    .card-front p {
        font-size: 0.9rem;
    }

    .card-back p {
        font-size: 0.9rem;
        padding: 0 6px;
    }

    .skill-icon {
        width: 58px;
        height: 58px;
        padding: 10px;
    }

    /* Projects Section */

    .projects-carousel-section h2 {
        font-size: 1.75rem;
    }

    .carousel-item img {
        height: 200px;
    }

    .carousel-caption {
        font-size: 0.85rem;
        left: 10px;
        bottom: 10px;
    }

    .carousel-btn {
        padding: 7px 9px;
        font-size: 1.1rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /*Services Section */

    /* Title */
    .services .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }

    /* Force 1 column layout */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .service-card {
        padding: 20px 18px;
        border-radius: 18px;
    }

    /* Text sizes */
    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-card p,
    .service-card ul li {
        font-size: 0.9rem;
    }

    /* Benefits Services */

    .benefits .section-title {
        font-size: 1.7rem;
    }

    .benefits-grid {
        gap: 22px;
        padding: 5px;
    }

    .benefit-card {
        padding: 15px 16px;
        border-left-width: 3px;
    }

    .benefit-card::before {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .benefit-card h4 {
        font-size: 1.1rem;
    }

    .benefit-card p {
        font-size: 0.88rem;
    }

    /* Contact */

    .contact .section-title {
        font-size: 1.85rem;
    }

    .contact-text {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 26px;
    }

    .contact-form {
        padding: 26px 22px;
        border-radius: 14px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 13px;
        border-radius: 10px;
    }

    .sec-btn {
        font-size: 1rem;
        padding: 14px;
        border-radius: 12px;
    }

    /* Footer */

    /* Reduce spacing and tighten layout */
    .footer {
        padding: 30px 0;
    }

    .footer-container {
        gap: 14px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-follow {
        font-size: 15px;
    }

    .footer-social-links {
        gap: 16px;
        /* Reduce distance between icons */
    }

    .footer-social-links a {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}


/* 360px */
@media (max-width: 360px) {

    /* Hero Section */

    /* Very compact layout for tiny screens */
    .hero {
        padding: 0 3%;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Smallest button size */
    .hero button {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    /* Prevent title wrapping badly */
    .hero-title span {
        white-space: nowrap;
    }

    /* About Section */

    #about h2 {
        font-size: 1.8rem;
        /* prevent overflow */
    }

    #about .sobre-subtitle {
        font-size: 0.9rem;
    }

    /* Smaller padding for tiny screens */
    .sobre-card {
        padding: 18px;
    }

    .sobre-card h3 {
        font-size: 1.05rem;
    }

    /* Skill Section */

    .skills-section h2 {
        font-size: 1.9rem;
        /* Smaller title for tiny phones */
    }

    .skills-grid {
        gap: 18px;
        max-width: 300px;
    }

    .skill-card {
        aspect-ratio: 1 / 1.35;
        /* Slightly taller card */
    }

    .card-front h3 {
        font-size: 1.15rem;
    }

    .card-front p,
    .card-back p {
        font-size: 0.85rem;
        /* More compact text */
    }

    .skill-icon {
        width: 52px;
        height: 52px;
        padding: 9px;
    }

    /*Projects Section*/

    .projects-carousel-section h2 {
        font-size: 1.55rem;
    }

    .carousel-item img {
        height: 180px;
    }

    .carousel-caption {
        font-size: 0.8rem;
    }

    .carousel-btn {
        padding: 6px 8px;
    }

    /* Services Section */

    /* Title */
    .services .section-title {
        font-size: 1.75rem;
        margin-bottom: 35px;
    }

    /* Cards */
    .service-card {
        padding: 18px 15px;
    }

    /* Reduce titles further */
    .service-card h3 {
        font-size: 1.15rem;
    }

    /* Smaller descriptive text */
    .service-card p,
    .service-card ul li {
        font-size: 0.85rem;
    }

    /* Reduce list spacing */
    .service-card ul li {
        margin-bottom: 6px;
    }

    /* Benefits Section */

    .benefits .section-title {
        font-size: 1.5rem;
    }

    .benefits-grid {
        gap: 18px;
        padding: 0;
    }

    .benefit-card {
        padding: 14px 14px;
    }

    .benefit-card::before {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .benefit-card h4 {
        font-size: 1.05rem;
    }

    .benefit-card p {
        font-size: 0.85rem;
        line-height: 1.35;
    }

    /* Contact */

    .contact .section-title {
        font-size: 1.65rem;
    }

    .contact-text {
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 22px 18px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.85rem;
        padding: 12px;
    }

    .sec-btn {
        font-size: 0.95rem;
        padding: 13px;
    }

    /* Footer */

    /* Compact layout for very small screens */
    .footer {
        padding: 26px 0;
    }

    .footer-container {
        gap: 12px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-follow {
        font-size: 14px;
    }

    .footer-social-links {
        gap: 14px;
    }

    .footer-social-links a {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}