/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #e74c3c;
    --dark-red: #c0392b;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f0f0f0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
}

/* ===== BACKGROUND ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d0000 100%);
    z-index: -2;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(231, 76, 60, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

/* ===== LOGO ===== */
.logo-container {
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(231, 76, 60, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    margin-bottom: 80px;
    animation: fadeIn 1.2s ease 0.3s both;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    line-height: 1.1;
}

.main-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== LOADING SECTION ===== */
.loading-section {
    margin-top: 40px;
}

.dots-loader {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dots-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-red);
    animation: dotBounce 1.4s infinite ease-in-out;
}

.dots-loader span:nth-child(1) {
    animation-delay: 0s;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ===== CONTACT BAR ===== */
.contact-bar {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 50px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: slideUp 0.8s ease 0.5s both;
    z-index: 100;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contact-link:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

.contact-link i {
    font-size: 1.3rem;
    color: var(--primary-red);
}

.divider {
    width: 1px;
    height: 30px;
    background: rgba(231, 76, 60, 0.3);
}

/* ===== FLOATING ICONS ===== */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.icon-float {
    position: absolute;
    font-size: 3rem;
    color: rgba(231, 76, 60, 0.1);
    animation: float 6s ease-in-out infinite;
}

.icon-float:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-float:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.icon-float:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.icon-float:nth-child(4) {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.2;
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-red);
    border-radius: 13px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 1px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-indicator p {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    z-index: 100;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--black);
    transform: scale(1.1) rotate(5deg);
}

.footer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-container {
        padding: 20px;
    }

    .logo-container {
        margin-bottom: 40px;
    }

    .logo {
        max-width: 150px;
    }

    .hero-section {
        margin-bottom: 60px;
    }

    .main-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .main-subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .contact-bar {
        bottom: 30px;
        padding: 15px 25px;
        gap: 20px;
        font-size: 0.85rem;
    }

    .divider {
        height: 25px;
    }

    .contact-link span {
        display: none;
    }

    .scroll-indicator {
        bottom: 120px;
    }

    .footer {
        top: 20px;
        right: 20px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 15px;
    }

    .logo-container {
        margin-bottom: 30px;
    }

    .logo {
        max-width: 120px;
    }

    .main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 1px;
    }

    .main-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
        margin-bottom: 25px;
    }

    .loading-section {
        margin-top: 25px;
    }

    .dots-loader {
        gap: 6px;
    }

    .dots-loader span {
        width: 10px;
        height: 10px;
    }

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

    .contact-bar {
        bottom: 20px;
        padding: 12px 20px;
        gap: 15px;
        border-radius: 40px;
    }

    .contact-link i {
        font-size: 1.1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .footer {
        top: 15px;
        right: 15px;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .icon-float {
        font-size: 2rem;
    }
}

/* ===== ANIMATIONS SMOOTH ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
