:root {
    --primary: #8dc6ff;
    --secondary: #ffffff;
    --accent: #5d9cec;
    --text: #003366;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--secondary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('./assets/background_hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
}

.hero-content {
    color: var(--secondary);
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
    animation: fadeIn 2s ease-in-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    animation: slideInUp 2s ease-in-out;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--secondary);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid var(--accent);
    animation: scaleIn 2s ease-in-out;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-5px);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Sections General */
section {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: var(--accent);
}

/* Featured Products */
.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
    max-width: 350px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.product-info p {
    margin-bottom: 1rem;
    color: var(--text);
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-top: 1rem;
}

.product-info .btn {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

/* About Section */
.about {
    background-color: var(--primary);
    color: var(--secondary);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 4rem 5%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-logo span {
    color: var(--accent);
}

.footer-links h3, .contact-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: var(--accent);
    border-radius: 50%;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-links a:hover {
    background-color: var(--accent);
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--secondary);
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-img {
    height: 400px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.modal-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.modal-info .price {
    font-size: 1.5rem;
}

.modal-info p {
    margin: 1rem 0;
}

.modal-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btns .btn {
    flex: 1;
    text-align: center;
}

/* Estilos para o botão de alternância de tema */
#theme-toggle {
    background-color: transparent;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

#theme-toggle:hover {
    color: var(--accent);
}

/* Modo Escuro */
body.dark-mode {
    --primary: #b1b1b1;  /* Fundo preto-acinzentado escuro */
    --secondary: #2c2c2c; /* Fundo de card mais escuro */
    --accent: #66b3ff;   /* Azul mais claro e brilhante */
    --text: #f0f0f0;    /* Branco-sujo, mais suave */
}

body.dark-mode .product-card,
body.dark-mode .modal-content,
body.dark-mode .navbar {
    background-color: var(--secondary);
}

body.dark-mode .nav-links a,
body.dark-mode .logo span {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        margin-bottom: 1.5rem;
    }

    .nav-links a {
        color: var(--secondary);
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-info h3 {
        font-size: 1.5rem;
    }
}

.dev-credit {
    font-size: 1rem;
}

.dev-name {
    font-size: 1.2rem; /* Aumenta o tamanho apenas do nome */
    font-weight: bold; /* Deixa o nome em negrito */
    color: #66edf7; /* Escolha uma cor vibrante que combine com o logo (vermelho/laranja) */
    text-decoration: none; /* Remove o sublinhado padrão do link */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Adiciona um efeito de transição suave */
    display: inline-block; /* Permite que o link tenha uma transformação */
}

.dev-name:hover {
    color: #66edf7;  /* Mudar a cor ao passar o mouse para um tom mais escuro */
    transform: scale(1.05); /* Faz o nome "crescer" um pouco */
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}