:root {
    --primary-red: #cd1d28;
    /* Official Color */
    --hover-red: #a51720;
    --bg-color: #F8F9FA;
    --white: #FFFFFF;
    --text-color: #333333;
    --gray-text: #666666;
    --dark-gray: #4a4a4a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-image:
        radial-gradient(circle at 100% 0%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.03) 15%, transparent 15%, transparent 100%),
        radial-gradient(circle at 0% 100%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.03) 10%, transparent 10%, transparent 100%),
        radial-gradient(circle at 0% 0%, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.02) 35%, transparent 35%, transparent 100%);
}

.container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Background Curve Effect */
.bg-curve {
    position: absolute;
    top: 180px;
    left: -50%;
    width: 200%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
}

.bg-curve-2 {
    position: absolute;
    bottom: 0%;
    right: -50%;
    width: 150%;
    height: 80%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 0;
    pointer-events: none;
}

/* Header & Banner */
.header {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
    z-index: 1;
}

.banner {
    height: 180px;
    width: 100%;
    background: url('assets/banner.png');
    background-size: cover;
    background-position: center;
    position: relative;
}



/* Top profile container overlap */
.profile-section {
    margin-top: -95px;
    /* Pull up */
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.logo-container {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    padding: 0px;
    border: 6px solid #5a5a5a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    /* Official Red */
    margin-bottom: 0rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Social Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.social-icon {
    color: var(--primary-red);
    font-size: 2rem;
    /* Larger icons */
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

/* Links Buttons */
.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 0 2rem 0.5rem;
    /* flex-grow removed to avoid huge gap */
    position: relative;
    z-index: 2;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 90%;
    max-width: 340px;
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.link-btn .icon {
    flex-shrink: 0;
}

.link-btn img.icon {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

/* Footer */
.footer {
    padding: 0.5rem 0 0.2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.footer-pill {
    background-color: #4a4a4a;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: var(--shadow);
}

/* Mobile Optimizations */
@media (max-width: 380px) {
    .title {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.8rem;
    }

    .link-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        gap: 8px;
    }

    .link-btn img.icon {
        height: 20px;
        width: 20px;
    }

    .social-icon {
        font-size: 1.6rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .links-container {
        padding: 0 1rem 1rem;
    }

    .footer-pill {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }


}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .link-btn:active {
        transform: scale(0.98);
        background-color: #f5f5f5;
    }

    .social-icon:active {
        transform: scale(0.9);
    }
}

/* Safe area for notch devices (iPhone X+) */
@supports (padding: max(0px)) {
    .container {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .links-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}