/* ==================== */
/* CSS RESET & BASE     */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== */
/* ROOT VARIABLES       */
/* ==================== */
:root {
    --primary-red: #E63946;
    --dark-red: #D62828;
    --white: #FFFFFF;
    --text-dark: #1D1D1F;
    --text-light: #6E6E73;
    --border-light: #E5E5EA;
}

/* ==================== */
/* BODY & MAIN LAYOUT   */
/* ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    animation: fadeIn 0.8s ease-in-out;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(230, 57, 70, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== */
/* RED ACCENT TOP BAR   */
/* ==================== */
.top-accent {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--dark-red) 50%, var(--primary-red) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ==================== */
/* MAIN CONTAINER       */
/* ==================== */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }
}

/* ==================== */
/* LOGO SECTION         */
/* ==================== */
.logo {
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    border-radius: 2px;
}

.logo img {
    max-width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}

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

/* ==================== */
/* CONTENT SECTION      */
/* ==================== */
.content {
    animation: slideUp 0.8s ease-out;
}

/* Headline with subtle red glow */
.headline {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-dark) 0%, #4a4a4a 50%, var(--text-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.headline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Subtext */
.subtext {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== */
/* ANIMATED LOADER      */
/* ==================== */
.loader-wrapper {
    margin-bottom: 3rem;
    position: relative;
}

.loader {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.loader-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    border-radius: 50%;
    animation: pulse 1.4s infinite ease-in-out both;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* ==================== */
/* CONTACT SECTION      */
/* ==================== */
.contact {
    margin-bottom: 2rem;
}

.contact a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(230, 57, 70, 0.05), transparent);
    transition: left 0.5s ease;
}

.contact a:hover::before {
    left: 100%;
}

.contact a:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2);
}

.email-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.contact a:hover .email-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* ==================== */
/* SOCIAL MEDIA ICONS   */
/* ==================== */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}

.social-icon {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-links a:hover .social-icon {
    transform: scale(1.1);
}

/* ==================== */
/* FOOTER               */
/* ==================== */
.footer {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.footer p {
    position: relative;
    display: inline-block;
}

.footer p::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    transition: width 0.5s ease;
}

.footer:hover p::before {
    width: 100%;
}

/* ==================== */
/* ANIMATIONS           */
/* ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

/* ==================== */
/* RESPONSIVE DESIGN    */
/* ==================== */

/* Mobile devices */
@media (max-width: 640px) {
    .logo img {
        max-width: 140px;
    }

    .headline {
        font-size: 1.875rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .container::before {
        width: 300px;
        height: 300px;
    }

    .contact a {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tablet devices */
@media (min-width: 641px) and (max-width: 1024px) {
    .logo img {
        max-width: 160px;
    }

    .headline {
        font-size: 2.25rem;
    }

    .subtext {
        font-size: 1.0625rem;
    }
}

/* Large screens */
@media (min-width: 1025px) {
    .container {
        padding: 3rem 2rem;
    }

    .headline {
        font-size: 3rem;
    }

    .subtext {
        font-size: 1.25rem;
    }
}
