/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-red: #EE1E3B;
    --primary-blue: #32459D;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   Animated Gradient Background
   =========================== */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 350px;
    height: 350px;
    background: var(--primary-blue);
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ===========================
   Main Container
   =========================== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===========================
   Logo Section
   =========================== */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: scaleIn 0.6s ease-out 0.2s backwards;
}

.logo-wrapper:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.logo {
    width: 70%;
    height: 90%;
    object-fit: contain;
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
    letter-spacing: 2px;
    animation: fadeIn 0.8s ease-out 0.3s backwards;
}

.tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--dark-gray);
    opacity: 0.8;
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

/* ===========================
   Social Links
   =========================== */
.social-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out backwards;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.social-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.social-btn i {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Platform-specific colors */
.social-btn.instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
    color: var(--white);
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: var(--white);
}

.social-btn.tiktok:hover {
    background: #000000;
    color: var(--white);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    color: var(--white);
}

/* Animation delays for stagger effect */
.social-btn:nth-child(1) { animation-delay: 0.5s; }
.social-btn:nth-child(2) { animation-delay: 0.6s; }
.social-btn:nth-child(3) { animation-delay: 0.7s; }
.social-btn:nth-child(4) { animation-delay: 0.8s; }

/* ===========================
   Footer
   =========================== */
.footer {
    text-align: center;
    margin-top: auto;
    animation: fadeIn 1s ease-out 1s backwards;
}

.footer p {
    font-size: 12px;
    color: var(--dark-gray);
    opacity: 0.6;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablets */
@media (min-width: 768px) {
    .container {
        padding: 60px 40px;
    }

    .logo-wrapper {
        width: 140px;
        height: 140px;
    }

    .brand-name {
        font-size: 40px;
    }

    .tagline {
        font-size: 16px;
    }

    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .social-btn {
        padding: 20px 28px;
        font-size: 17px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 600px;
    }

    .logo-wrapper {
        width: 160px;
        height: 160px;
    }

    .brand-name {
        font-size: 48px;
    }

    .social-btn {
        padding: 22px 32px;
        font-size: 18px;
    }

    .sphere-1 {
        width: 500px;
        height: 500px;
    }

    .sphere-2 {
        width: 450px;
        height: 450px;
    }

    .sphere-3 {
        width: 400px;
        height: 400px;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .container {
        padding: 30px 16px;
    }

    .logo-wrapper {
        width: 100px;
        height: 100px;
    }

    .brand-name {
        font-size: 28px;
    }

    .social-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
