/* CSS Variables & Reset */
:root {
    /* Brand Colors based on Logo */
    --color-primary: #5BC0EB;
    /* Sky Blue approximation */
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-dark-grey: #333333;
    --color-light-grey: #F5F5F5;

    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    background-color: var(--color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo-casa {
    color: var(--color-black);
}

.logo-nova {
    color: var(--color-white);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-black);
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Custom Cursor */
.cursor {
    /* Hidden as requested, only the logo remains */
    display: none;
}

.cursor-follower {
    position: fixed;
    width: 120px;
    height: 120px;
    /* Use the transparency logo as the cursor */
    background-image: url('../assets/transparent-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease;
    opacity: 1;
}

.cursor-follower.active {
    /* Scale up and turn Blue (Brand Color approximation from Black) */
    transform: translate(-50%, -50%) scale(1.3);
    background-color: transparent;
    border: none;
    opacity: 1;
    /* Filter to turn black logo to roughly #5BC0EB (Sky Blue) */
    filter: invert(78%) sepia(26%) saturate(1113%) hue-rotate(186deg) brightness(96%) contrast(89%);
}

/* Footer Logo */
.footer-logo {
    width: 50px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.5;
    /* Subtle branding in footer */
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 1;
}

/* Hide default cursor only on desktop */
@media (min-width: 992px) {
    body {
        cursor: none;
    }

    a,
    button,
    .project-card,
    input,
    textarea {
        cursor: none;
    }
}

/* Hero Section */
.hero {
    height: 90vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Hero Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -100px;
    border-color: rgba(0, 0, 0, 0.05);
    animation-duration: 25s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    border-color: rgba(255, 255, 255, 0.1);
    animation-duration: 35s;
    animation-direction: reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    backdrop-filter: blur(5px);
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: rotate(45deg) translate(0, 0);
    }

    50% {
        transform: rotate(50deg) translate(20px, -20px);
    }

    100% {
        transform: rotate(45deg) translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    /* Center everything */
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 400px;
    /* Adjust size as needed */
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    display: block;
    /* Optional: verify if we need mix-blend-mode if the background connects well */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-dark-grey);
}

.diamond-img {
    width: 120px;
    /* Adjusted size for impact */
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* Ensure it blends if png is transparent, or looks like a block if not */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.text-black {
    color: var(--color-black);
}

.text-white {
    color: var(--color-white);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-dark-grey);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    /* Geometric feel */
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-black);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
}

.bg-light {
    background-color: var(--color-light-grey);
}

.bg-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.bg-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.video-placeholder {
    width: 100%;
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-video {
    width: 100%;
    height: 250px;
    /* Definindo altura fixa para uniformidade */
    object-fit: cover;
    /* Garante que o vídeo preencha o espaço sem distorcer */
    background-color: #000;
    display: block;
}

.video-placeholder::before {
    content: '▶';
    font-size: 2rem;
    color: #888;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin-bottom: 0.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--color-primary);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-bottom: 2px solid var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 2rem 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    margin: 3px auto;
    transition: var(--transition);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* WhatsApp Button */
.contact-alternatives {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: var(--color-white);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}