/* Oparun Soft - Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Sora:wght@400;600;800&display=swap');

:root {
    --color-primary: #D32F2F;
    /* Vermelho Intenso */
    --color-dark: #0a0a0a;
    /* Preto Profundo */
    --color-light: #ffffff;
    /* Branco */
    --color-grey: #f4f4f4;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-container: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-primary {
    color: var(--color-primary);
}

.text-light {
    color: var(--color-light);
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn-outline:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased gap */
    margin-left: -10px;
    /* Pull slightly left */
}

.logo img {
    height: 50px;
    /* Increased significantly (~55% bigger than original 32px) */
    width: auto;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 3px solid var(--color-primary);
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
}

.nav-links li:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    padding: 12px 20px;
    text-transform: none;
    /* More readable for sub-items */
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    padding-left: 25px;
    /* Subtle movement */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Modal - Premium Design */
.modal-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.85);
    /* Deep dark overlay */
    backdrop-filter: blur(12px);
    /* Strong blur for focus */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop effect */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ccc;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Modal Branding */
.modal-icon-wrapper {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.modal-logo-icon {
    height: 60px;
    width: auto;
    animation: pulseRed 2s infinite ease-in-out;
}

.modal-body h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.modal-body p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-btn-close {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.modal-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
}

@keyframes pulseRed {
    0% {
        filter: drop-shadow(0 0 0 rgba(220, 20, 60, 0));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.4));
        transform: scale(1.05);
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(220, 20, 60, 0));
        transform: scale(1);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        z-index: 1000;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 15px 20px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        background: transparent;
        padding: 0;
        min-width: auto;
    }

    .nav-links li:hover .dropdown-content {
        display: none;
    }

    .nav-links li.dropdown.active .dropdown-content {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .btn-outline {
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

    50% {
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.4));
        transform: scale(1.05);
    }

    100% {
        filter: drop-shadow(0 0 0 rgba(220, 20, 60, 0));
        transform: scale(1);
    }
}

/* Intro Screen */
.intro-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/intro-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-light);
    border-bottom: 4px solid var(--color-primary);
}

.intro-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.intro-logo img {
    max-width: 400px;
    /* Big Impact */
    /* mix-blend-mode and filter removed since we now have a transparent PNG */
}

.intro-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.intro-text p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 800;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@media (max-width: 768px) {
    .intro-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .intro-logo img {
        max-width: 250px;
    }

    .intro-text h2 {
        font-size: 2.5rem;
    }
}

/* Hero Section (Adjusted) */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.png');
    background-size: 110%;
    /* Zoom in to crop watermark at edges */
    background-position: center;
    color: var(--color-light);
    /* Switch text to white */
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    color: var(--color-light);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Shadow for readability */
}

.hero span.text-primary {
    color: #ff5252;
    /* Lighter red for dark background contrast */
}

.hero p {
    font-size: 1.35rem;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
}

.hero-accent {
    display: none;
    /* Remove abstract accent, using image now */
}

/* Update Outline Button for Dark Bg */
.hero .btn-outline {
    border-color: var(--color-light);
    color: var(--color-light);
}

.hero .btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* Sections */
section {
    padding: var(--spacing-container) 0;
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.bg-grey {
    background-color: var(--color-grey);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    margin-top: 10px;
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.philosophy-card {
    padding: 30px;
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Product (Oparun Sys) */
.product-showcase {
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-item {
    padding: 40px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: block;
}

/* Contact */
#contact {
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('../img/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for "Premium" feel */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info ul {
    list-style: none;
    margin-top: 30px;
}

.contact-info li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: var(--color-primary);
}

/* Footer */
footer {
    background: var(--color-dark);
    color: #888;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified for MVP */
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}