:root {
    --background-color: #ffffff;
    --text-color: #1d1d1f;
    --subtle-text-color: #6e6e73;
    --border-color: #eeeeee;
    --header-background: rgba(255, 255, 255, 0.5);
    --header-sticky-background: rgba(255, 255, 255, 0.8);
    --pill-nav-background: #ffffff;
    --pill-active-background: #f0f2f5;
    --social-icon-color: #555;
    --shadow-color: rgba(0, 0, 0, 0.07);
    --card-background: #f8f8f8;
    --tag-background: #eeeeef;
    --transition-speed: 0.3s;
    --footer-background: #f8f8f891;
    --widget-card-bg: rgba(255, 112, 67, 0.1);
    --wall-card-bg: rgba(38, 198, 218, 0.1);
    --headline-card-bg: rgba(76, 175, 80, 0.1);
}

body.dark-mode {
    --background-color: #121212;
    --text-color: #f5f5f7;
    --subtle-text-color: #a1a1a6;
    --border-color: #282828;
    --header-background: rgba(28, 28, 30, 0.6);
    --header-sticky-background: rgba(28, 28, 30, 0.85);
    --pill-nav-background: #1c1c1e;
    --pill-active-background: #2c2c2e;
    --social-icon-color: #a1a1a6;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-background: #1c1c1e;
    --tag-background: #2c2c2e;
    --footer-background: #1c1c1e;
    --widget-card-bg: #3730a3;
    --wall-card-bg: #065f46;
    --widget-card-bg: rgba(255, 112, 67, 0.1);
    --wall-card-bg: rgba(38, 198, 218, 0.1);
    --headline-card-bg: rgba(76, 175, 80, 0.1);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Inter", sans-serif;
    margin: 0;
    padding-top: 88px;
    transition:
        background-color var(--transition-speed) ease,
        color var(--transition-speed) ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

.main-header {
    width: 100%;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--header-background);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition:
        background-color 0.4s ease,
        box-shadow 0.4s ease;
}

.main-header.sticky {
    background-color: var(--header-sticky-background);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}

.logo a {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.logo img {
    height: 44px;
    width: auto;
    display: none;
    transition: opacity 0.3s ease;
}

.logo .logo-light-theme {
    display: block;
}

body.dark-mode .logo .logo-light-theme {
    display: none;
}

body.dark-mode .logo .logo-dark-theme {
    display: block;
}

.main-nav {
    background-color: var(--pill-nav-background);
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition:
        background-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--subtle-text-color);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}

.main-nav a:hover {
    color: var(--text-color);
}

.main-nav a.active {
    background-color: var(--pill-active-background);
    color: var(--text-color);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links a,
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-icon-color);
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--text-color);
}

.social-links svg {
    width: 22px;
    height: 22px;
}

#theme-toggle-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--social-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease-in-out;
}

#theme-toggle-btn:hover {
    color: var(--text-color);
}

#theme-toggle-btn .theme-icon {
    width: 22px;
    height: 22px;
    transition: all 0.4s ease;
}

#theme-toggle-btn .sun-and-moon {
    fill: currentColor;
    transition: transform 0.4s ease;
}

body.dark-mode #theme-toggle-btn .theme-icon {
    transform: rotate(90deg);
}

body.dark-mode #theme-toggle-btn .sun-and-moon {
    transform-origin: center center;
    transform: scale(0.6);
}

.hero-section {
    padding: 70px 0 60px 0;
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.hero-section p {
    font-size: 18px;
    color: var(--subtle-text-color);
    margin: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    position: relative;
    background-color: var(--card-background);
    border-radius: 26px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    transition:
        transform 0.1s linear,
        background-color var(--transition-speed) ease;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card h2 {
    font-size: 16px;
    margin: 10px 0 4px 0;
}

.card p {
    font-size: 14px;
    color: var(--subtle-text-color);
    margin: 0;
    max-width: 80%;
}

.arrow-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--pill-active-background);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    color: var(--text-color);
    transform: rotate(-45deg);
    transition: all 0.3s;
}

.card:hover .arrow-link {
    background-color: var(--text-color);
    color: var(--background-color);
    transform: rotate(0deg);
}

.card-tags {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--tag-background);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.card-image {
    margin-top: 22px;
    width: 100%;
    height: 340px;
    border-radius: 22px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.category-section {
    margin-top: 80px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-card {
    display: block;
    text-decoration: none;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px 32px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.category-card h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.category-card p {
    font-size: 16px;
    color: var(--subtle-text-color);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.category-card-link {
    font-weight: 500;
    color: var(--text-color);
}

.category-card.card-widgets {
    background-color: var(--widget-card-bg);
}

.category-card.card-walls {
    background-color: var(--wall-card-bg);
}

.testimonials-section {
    margin-top: 80px;
}

.carousel-background {
    background-color: var(--card-background);
    border-radius: 30px;
    padding: 40px 0;
    overflow: visible;
}

.testimonials-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    overflow: visible;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.testimonial-card {
    background-color: var(--pill-nav-background);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 16px;
    color: var(--subtle-text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    border: none;
    flex-grow: 1;
}

.testimonial-author {
    margin-top: 24px;
    font-style: normal;
    font-weight: 500;
    color: var(--text-color);
}

.testimonials-carousel .swiper-pagination-bullet {
    background-color: var(--subtle-text-color);
}
.testimonials-carousel .swiper-pagination-bullet-active {
    background-color: var(--text-color);
}

.testimonials-carousel .swiper-button-prev,
.testimonials-carousel .swiper-button-next {
    width: 44px;
    height: 44px;
    background-color: var(--pill-active-background);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.testimonials-carousel .swiper-button-prev:hover,
.testimonials-carousel .swiper-button-next:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px var(--shadow-color);
}

.testimonials-carousel .swiper-button-prev::after,
.testimonials-carousel .swiper-button-next::after {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-color);
}

.testimonials-carousel .swiper-button-prev {
    left: -20px;
}
.testimonials-carousel .swiper-button-next {
    right: -20px;
}

.testimonials-carousel .swiper-slide {
    height: auto;
    display: flex;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    background-color: var(--footer-background);
    border-top: 0px solid var(--border-color);
    padding: 12px 0;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-copyright,
.footer-location {
    font-size: 12px;
    color: var(--subtle-text-color);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    color: var(--subtle-text-color);
    transition: color 0.2s ease-in-out;
}

.footer-socials a:hover {
    color: var(--text-color);
}

.footer-socials svg {
    width: 22px;
    height: 22px;
}

.about-hero-banner {
    width: 100%;
    max-width: 1200px;
    height: 300px;
    background-color: var(--card-background);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-top: 0 auto;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.about-story {
    margin: 40px 0 80px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    gap: 30px;
}

.story-text-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
}

.story-headline-card {
    background-color: var(--headline-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-headline-card h2 {
    font-size: 45px;
    line-height: 1.3;
    margin: 0;
}

.story-text-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--subtle-text-color);
    margin: 0 0 1.5em 0;
}

.story-text-card p:last-child {
    margin-bottom: 0;
}

.principles-section {
    margin-bottom: 80px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.principle-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
}

.principle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--pill-active-background);
    margin-bottom: 24px;
}

.principle-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
}

.principle-card h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
}

.principle-card p {
    color: var(--subtle-text-color);
    line-height: 1.6;
    margin: 0;
}

.contact-section {
    text-align: center;
    background-color: var(--card-background);
    padding: 60px 32px;
    border-radius: 30px;
    margin-bottom: 80px;
}

.contact-section h2 {
    font-size: 28px;
    margin: 0 0 8px 0;
}
.contact-section p {
    color: var(--subtle-text-color);
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ############################ */
/* #      RESPONSIVIDADE      # */
/* ############################ */

@media (max-width: 900px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 40px 0;
    }
    .about-hero-text h1 {
        font-size: 36px;
    }
    .about-hero-text p {
        font-size: 18px;
    }
    .about-hero-banner {
        height: 200px;
        margin-top: 30px;
    }
    .story-grid {
        grid-template-columns: 1fr;
    }
    .principles-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .testimonials-carousel .swiper-button-prev,
    .testimonials-carousel .swiper-button-next {
        display: none;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 0;
    }
    .container {
        padding: 0 16px;
    }
    .main-header {
        position: static;
    }
    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    .hero-section h1 {
        font-size: 36px;
    }
    .hero-section p {
        font-size: 18px;
    }
}

.project-detail-container {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.project-detail-container h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.project-tags {
    margin-bottom: 32px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-image-main {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
}

.project-image-main img {
    width: 100%;
    display: block;
}

.project-description p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--subtle-text-color);
}

.wallpaper-detail-container {
    padding: 60px 0;
    text-align: center;
}
.download-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 12px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 24px;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}
.download-button:hover {
    transform: scale(1.05);
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        z-index: 9999;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;

        background-color: var(
            --header-background
        );
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(30px);

        border-top: 1px solid var(--border-color);
        border-radius: 26px 26px 0 0;
        padding: 6px 0;
        box-shadow: 0 -10px 25px var(--shadow-color);

        transition: transform 0.5s ease-in-out;
    }

    .mobile-bottom-nav.is-hidden {
        transform: translateY(
            calc(100% + 24px)
        );
    }

    .mobile-bottom-nav ul {
        display: flex;
        justify-content: space-around;
        list-style: none;
        margin: 0;
        padding: 6px 0;
    }

    .mobile-bottom-nav a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px;
        font-size: 14px;
        text-decoration: none;
        color: var(--subtle-text-color);
        border-radius: 999px;
        transition: all 0.2s ease-in-out;
    }

    .mobile-bottom-nav a.active {
        background-color: var(--pill-active-background);
        color: var(--text-color);
    }

    .mobile-bottom-nav svg {
        width: 24px;
        height: 24px;
    }

    .header-content {
        justify-content: space-between;
    }

    body {
        padding-bottom: 80px;
    }
}

.project-carousel {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 32px;
}

.project-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-carousel .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--background-color) !important;
}

.swiper-pagination-bullet-active {
    background: var(--background-color) !important;
}

.project-download {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.play-store-button img {
    height: 50px;
    width: auto;
}

.play-store-dark {
    display: none;
}
.play-store-light {
    display: block;
}

.play-store-button .gphotos-light,
.play-store-button .gphotos-dark {
    height: 60px;
    width: auto;
}

.gphotos-dark {
    display: none;
}
.gphotos-light {
    display: block;
}

body.dark-mode .gphotos-dark {
    display: block;
}
body.dark-mode .gphotos-light {
    display: none;
}

.gumroad-dark {
    display: none;
}
.gumroad-light {
    display: block;
}

body.dark-mode .gumroad-dark {
    display: block;
}
body.dark-mode .gumroad-light {
    display: none;
}

.gphotos-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    background-color: var(
        --pill-active-background
    );
    color: var(--text-color);
}

.gphotos-button:hover {
    background-color: var(--card-background);
}

.gphotos-button svg {
    width: 20px;
    height: 20px;
}

body.dark-mode .play-store-dark {
    display: block;
}
body.dark-mode .play-store-light {
    display: none;
}

.cta-button {
    display: inline-block;
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-top: 24px;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.home-carousel {
    width: 100%;
    height: 760px;
    border-radius: 24px;
    overflow: hidden;
    margin-top: 40px;
}

.home-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-carousel .swiper-slide:hover img {
    transform: scale(1.05);
}

.carousel-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.carousel-card-info h3 {
    font-size: 22px;
    margin: 0 0 4px 0;
}

.carousel-card-info p {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

.home-carousel .swiper-button-next,
.home-carousel .swiper-button-prev {
    color: #fff !important;
}

.next-section-placeholder {
    min-height: 200px;
    margin-top: 60px;
}
