/* --- Global Styles & Variables (NEW PURPLE/BLUE THEME) --- */
:root {
    /* -- NEW: Dark slate-blue background -- */
    --primary-bg: #161824; 
    /* -- NEW: Glass effect to match the new background -- */
    --glass-bg: rgba(30, 33, 50, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    /* -- NEW: A vibrant blue accent -- */
    --accent-blue: #5865f2; 
    /* -- NEW: A lighter, vibrant purple accent -- */
    --accent-purple: #9f86ff;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    /* -- NEW: Glow color to match the new blue accent -- */
    --glow-color: rgba(88, 101, 242, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    background-image: linear-gradient(180deg, #1e2132 0%, #161824 50%);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

img {
    pointer-events: none;
}

/* --- Falling Stars Background --- */
@keyframes move-stars {
    from { background-position-y: 0; }
    to { background-position-y: -10000px; }
}

.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: transparent;
}

.stars {
    background-image: radial-gradient(2px 2px at 20px 30px, #eee, transparent), radial-gradient(2px 2px at 40px 70px, #fff, transparent), radial-gradient(2px 2px at 50px 160px, #ddd, transparent), radial-gradient(2px 2px at 90px 40px, #fff, transparent), radial-gradient(3px 3px at 130px 80px, #fff, transparent), radial-gradient(2px 2px at 160px 120px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: move-stars 200s linear infinite;
}

.stars2 {
    background-image: radial-gradient(2px 2px at 40px 20px, #fff, transparent), radial-gradient(2px 2px at 80px 80px, #ddd, transparent), radial-gradient(3px 3px at 120px 180px, #fff, transparent), radial-gradient(2px 2px at 160px 100px, #fff, transparent), radial-gradient(2px 2px at 190px 40px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: move-stars 400s linear infinite;
}

.stars3 {
    background-image: radial-gradient(3px 3px at 50px 50px, #ddd, transparent), radial-gradient(3px 3px at 100px 100px, #fff, transparent), radial-gradient(3px 3px at 150px 150px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: move-stars 600s linear infinite;
}

/* --- Main Content & Entrance Animations --- */
.container, .site-footer {
    padding: 2rem;
    text-align: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
}

.animation-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animation-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Profile Header --- */
.profile-header {
    margin-bottom: 2rem;
}

.pfp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    /* -- THEME: Border now uses the new blue accent -- */
    border: 3px solid var(--accent-blue);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px var(--glow-color), 0 0 40px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pfp:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px var(--glow-color), 0 0 50px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* --- Social Buttons --- */
.social-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    max-width: 800px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.7em 1.5em;
    border-radius: 50px;
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.social-icon {
    height: 1.2em;
    margin-right: 0.75em;
    z-index: 2;
}

.social-button span {
    z-index: 2;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    /* -- THEME: Hover glow now uses the new purple accent -- */
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 1;
    opacity: 0;
}

.social-button:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.2;
}

.social-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-color);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- About Me Section --- */
.about-me {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    /* -- THEME: Section titles now use the new purple accent -- */
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

#about-me-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

/* --- Subtitle --- */
.subtitle {
    margin-bottom: 2.5rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    /* -- THEME: Subtitles also use the new purple accent -- */
    color: var(--accent-purple);
}

/* --- Casino Cards --- */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    --card-accent-color: var(--accent-blue);
    --card-background-image: none;

    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 300px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 25px color-mix(in srgb, var(--card-accent-color) 30%, transparent), 0 15px 40px var(--shadow-color);
    border-color: color-mix(in srgb, var(--card-accent-color) 40%, transparent);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--card-background-image);
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.25;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card:hover::before {
    opacity: 0.4;
    transform: scale(1.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 80px;
    border-bottom: 1px solid var(--glass-border);
}

.casino-logo {
    max-height: 90%;
    max-width: 90%;
}

.card-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    gap: 1.5rem;
}

.card-cta {
    display: inline-block;
    text-decoration: none;
    color: var(--card-accent-color);
    background-color: transparent;
    border: 2px solid var(--card-accent-color);
    padding: 0.6em 1.8em;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-cta:hover {
    background-color: var(--card-accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 20px color-mix(in srgb, var(--card-accent-color) 50%, transparent);
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.contact-title {
    /* -- THEME: Contact title now uses the new blue accent -- */
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.contact-info a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-purple);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* --- Age Verification Overlay --- */
#age-verification-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 16, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.8s ease-out;
}

#age-verification-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.age-card {
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px var(--shadow-color);
    transform: scale(1);
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

#age-verification-overlay.hidden .age-card {
    transform: scale(0.9);
    opacity: 0;
}

.age-card-icon-wrapper {
    /* -- THEME: Icon wrapper now uses the new blue accent -- */
    background-color: rgba(88, 101, 242, 0.1);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    /* -- FIX: Added fixed width and height to prevent distortion into an oval -- */
    width: 60px;
    height: 60px;
}

.age-card-icon {
    width: 30px;
    height: 30px;
    color: var(--accent-blue);
    /* -- FIX: Added stroke-width to ensure consistent rendering of the SVG icon -- */
    stroke-width: 1.5;
}

.age-card-message {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.age-card-submessage {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

#age-confirm-button {
    width: 100%;
    padding: 0.8em;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    /* -- THEME: Button now uses the new blue accent -- */
    background-color: var(--accent-blue);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#age-confirm-button:hover {
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-2px);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .pfp { width: 80px; height: 80px; }
    .container { padding: 3rem 1rem 1rem; }
    .card-container { flex-direction: column; align-items: center; }
}

