:root {
    --bg-color: #0b0b0b;
    --container-bg: rgba(20, 20, 20, 0.8);
    --accent-color: #e082b2; /* Pastel Magenta */
    --accent-hover: #c46a9a;
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --font-family: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg-horizontal.jpeg');
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

/* Background for mobile/vertical screens */
@media (max-aspect-ratio: 13/19), (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/bg-vertical.jpeg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(224, 130, 178, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(224, 130, 178, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 130, 178, 0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Cascade Delays */
.profile-section.animate-in { animation-delay: 0.05s; }
.links-container .link-card:nth-child(1) { animation-delay: 0.1s; }
.links-container .link-card:nth-child(2) { animation-delay: 0.15s; }
.links-container .link-card:nth-child(3) { animation-delay: 0.2s; }
.links-container .link-card:nth-child(4) { animation-delay: 0.25s; }

/* Blur State */
.blurred {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
    opacity: 0.1; /* Added opacity to hide content better while blurred */
}

/* Age Confirmation State */
.age-confirmed #age-gate {
    display: none !important;
}

.age-confirmed #main-content {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    user-select: auto !important;
}

/* Age Gate Modal */
#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Slightly darker */
    backdrop-filter: blur(15px); /* Stronger blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.modal-content {
    background: #151515;
    border: 1px solid var(--accent-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    box-shadow: 0 10px 50px rgba(224, 130, 178, 0.2);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-gate {
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dim);
    border: 1px solid #333;
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-dim);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Main Content */
#main-content {
    width: 100%;
    max-width: 500px;
    padding: 60px 20px;
    text-align: center;
    transition: filter 0.8s ease, opacity 0.8s ease;
}

.profile-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(224, 130, 178, 0.3);
    transition: var(--transition);
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(224, 130, 178, 0.2);
}

.bio {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.4;
}

/* Links List */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.link-card {
    background-color: var(--container-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-decoration: none;
    padding: 18px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.link-card i:first-child {
    position: absolute;
    left: 20px;
    font-size: 1.3rem;
    opacity: 0.9;
}

.link-card .fa-chevron-right {
    position: absolute;
    right: 20px;
    font-size: 0.8rem;
    opacity: 0.4;
    transition: var(--transition);
}

.link-card:hover {
    border-color: var(--accent-color);
    transform: scale(1.02) translateY(-2px);
    background-color: rgba(224, 130, 178, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.link-card:hover .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

/* Featured Link */
.link-featured {
    border: 1px solid var(--accent-color);
}

.link-featured.animate-in {
    animation-name: fadeInUp;
    animation-duration: 0.5s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

/* Add pulse separately after link appears and age is confirmed */
#main-content:not(.blurred) .link-featured {
    animation: fadeInUp 0.5s ease forwards, pulse 2s infinite 1.5s;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(224, 130, 178, 0.15), transparent);
    transition: 0.5s;
}

.link-card:hover::before {
    left: 100%;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 40px 20px;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 480px) {
    .title { font-size: 2rem; }
    .profile-pic { width: 115px; height: 110px; }
    .modal-content { padding: 30px 20px; }
    .link-card { padding: 16px 20px; }
}
