/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(1200px 600px at 50% -10%, rgba(20, 28, 44, 0.9), transparent 60%),
                linear-gradient(135deg, #05060a 0%, #0d1020 45%, #0b0f1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;

    overflow-y:scroll;
    transition: opacity 0.4s ease;
}

/* Vignette and subtle film grain for a mysterious vibe */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 600px at 50% 10%, transparent 40%, rgba(0,0,0,0.6) 100%);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140" viewBox="0 0 140 140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.4"/></svg>');
    mix-blend-mode: overlay;
}

/* Page fade transitions */
body.is-exiting {
    opacity: 0;
}

/* SPA password screen crossfade */
.header, .main-content { 
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease; 
}

body.is-password .header, 
body.is-password .main-content {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    filter: blur(2px);
    pointer-events: none;
}

.password-screen {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.is-password .password-screen {
    opacity: 1;
    visibility: visible;
}

/* Enhanced password screen effects */
.password-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(122, 88, 167, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    animation: password-bg-glow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes password-bg-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.1);
    }
}

/* Back button refinements for SPA password screen */
.password-screen .container { position: relative; }
.password-screen .back-button {
    position: absolute;
    top: 0.5rem;
    left: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
}
.password-screen .back-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateY(-2px);
}
.password-screen .password-card { margin-top: 3.5rem; }

/* Animated Background Stars */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    will-change: transform, filter;
    transform: translateZ(0);
}

.stars {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.4"/><circle cx="90" cy="10" r="0.5" fill="white" opacity="0.7"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.5"/></svg>') repeat;
    animation: move-stars 80s linear infinite;
}

.stars2 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="30" r="0.5" fill="white" opacity="0.3"/><circle cx="70" cy="70" r="1" fill="white" opacity="0.2"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.4"/></svg>') repeat;
    animation: move-stars 140s linear infinite;
}

.stars3 {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="60" cy="15" r="0.5" fill="white" opacity="0.6"/><circle cx="25" cy="60" r="1" fill="white" opacity="0.3"/><circle cx="85" cy="85" r="0.5" fill="white" opacity="0.4"/></svg>') repeat;
    animation: move-stars 110s linear infinite;
}

@keyframes move-stars {
    from { transform: translateY(0); }
    to { transform: translateY(-100vh); }
}

/* Warp intro speed-up and chill slow-down */
body.intro-warp .stars { animation-duration: 12s; filter: brightness(1.15) saturate(1.2) blur(0.3px); }
body.intro-warp .stars2 { animation-duration: 20s; filter: brightness(1.1) saturate(1.15) blur(0.25px); }
body.intro-warp .stars3 { animation-duration: 16s; filter: brightness(1.05) saturate(1.1) blur(0.2px); }

body.chill .stars { animation-duration: 100s; filter: none; }
body.chill .stars2 { animation-duration: 180s; filter: none; }
body.chill .stars3 { animation-duration: 140s; filter: none; }

/* Brief visual overlay for the warp intro */
.warp-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(60% 30% at 50% 50%, rgba(78,205,196,0.12), transparent 60%),
                conic-gradient(from 0deg, rgba(78,205,196,0.2), rgba(122,88,167,0.2), rgba(78,205,196,0.2));
    mix-blend-mode: screen;
    filter: blur(8px) saturate(140%);
    animation: warp-flash 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes warp-flash {
    0% { opacity: 0; transform: scale(1) rotate(0deg); }
    10% { opacity: 1; transform: scale(1.08) rotate(8deg); }
    30% { opacity: 0.9; transform: scale(1.2) rotate(-6deg); }
    60% { opacity: 0.5; transform: scale(1.35) rotate(3deg); }
    100% { opacity: 0; transform: scale(1.5) rotate(0deg); }
}

/* Lightweight comets for the intro burst */
.comet {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(78,205,196,0.35), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 0 6px rgba(78,205,196,0.8));
    animation: comet-travel 1.2s ease-out forwards;
}

@keyframes comet-travel {
    0% { transform: translate3d(0,0,0) scale(1); opacity: 1; }
    80% { opacity: 0.9; }
    100% { transform: translate(var(--dx, 60vw), var(--dy, -80vh)) scale(0.4); opacity: 0; }
}

/* Header Styles */
.header {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    z-index: 2;
}

.profile-header-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.profile-header-image-container {
    position: relative;
    margin-bottom: 2rem;
}

.profile-header-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    transition: all 0.8s ease;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(78, 205, 196, 0.3);
}

.profile-header-image:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #4ecdc4;
    box-shadow: 0 0 80px rgba(78, 205, 196, 0.6);
}

.profile-header-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #2b9aa5, #7a58a7, #2b9aa5);
    z-index: -1;
    animation: rotate 10s linear infinite;
    opacity: 0.7;
}

.header-overlay {
    position: static;
    text-align: center;
    z-index: 3;
}

.title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    background: linear-gradient(45deg, #8ec5c3, #4ecdc4, #7a58a7, #2a6b6e);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite, title-glow 2s ease-in-out infinite alternate;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 6px 40px rgba(120, 200, 220, 0.25);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0.85;
    animation: fade-in-up 1s ease 0.5s both;
    letter-spacing: 2px;
}

/* Small header socials under subtitle */
.header-socials {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

}

.header-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.header-socials a:hover {
    transform: translateY(-2px);
    background: rgba(78, 205, 196, 0.18);
    border-color: #4ecdc4;
}

.header-socials img {
    width: 50px;
    height: 50px;
    display: block;
}

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

@keyframes title-glow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 107, 107, 0.3); }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fade-in-up 1s ease 0.8s both;
    transition: all 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.profile-image-container {
    position: relative;
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: #4ecdc4;
    box-shadow: 0 0 30px rgba(78, 205, 196, 0.5);
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ff6b6b);
    z-index: -1;
    animation: rotate 4s linear infinite;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}



.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 300;
}

/* Action Buttons Section */
.action-buttons-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.riddle-button, .password-check-button {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    animation: fade-in-up 1s ease both;
    text-align: center;
    color: white;
    text-decoration: none;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin:auto;
}

.riddle-button {
    animation-delay: 1s;
}

.password-check-button {
    animation-delay: 1.2s;
}

.riddle-button:hover, .password-check-button:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ecdc4;
    text-decoration: none;
}

.button-content {
    text-align: center;
}

.button-icon {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.button-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: gradient-shift 4s ease-in-out infinite, title-glow 2s ease-in-out infinite alternate;

}

.button-content p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Social Section */
.social-section {
    margin-bottom: 3rem;
}

.social-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: fade-in-up 1s ease 1.4s both;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.social-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    font-size: 2rem;
    color: #4ecdc4;
    animation: pulse 2s ease-in-out infinite;
}

.social-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.social-link-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-link-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Card Styles */
.prize-section {
    margin-bottom: 3rem;
}

.riddle-card, .password-card, .prize-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    animation: fade-in-up 1s ease both;
}

.riddle-card {
    animation-delay: 1s;
}




@keyframes pulse-glow {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

.prize-card {
    animation-delay: 1.4s;
}

.riddle-card:hover, .password-card:hover, .prize-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* Card Headers */
.riddle-header, .password-header, .prize-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.riddle-icon, .password-icon, .prize-icon {
    font-size: 2rem;
    color: #4ecdc4;
    animation: pulse 2s ease-in-out infinite;
}

.riddle-header h3, .password-header h3, .prize-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Enhanced Password Header Styling */
.password-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    position: relative;
}

.password-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4ecdc4, transparent);
    border-radius: 2px;
}

.password-header h3 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #7a58a7);
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
    letter-spacing: 2px;
    position: relative;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Riddle Text */
.riddle-text {
    padding: 2rem 0;
}

.riddle-line {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: riddle-appear 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    font-style: italic;
    color: #e0e0e0;
    position: relative;
}

.riddle-line::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border-radius: 2px;
    animation: line-grow 0.3s ease forwards;
    animation-delay: inherit;
}

@keyframes riddle-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes line-grow {
    to {
        height: 20px;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in-up 0.8s ease forwards;
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Form */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.password-input {
    flex: 1;
    padding: 1.8rem 2rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(15px) saturate(120%);
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.password-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 
        0 0 30px rgba(78, 205, 196, 0.4),
        0 0 60px rgba(78, 205, 196, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 100%);
    transform: scale(1.02);
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    padding: 1.8rem 2.5rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1, #7a58a7);
    background-size: 200% 200%;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-width: 180px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 
        0 10px 30px rgba(78, 205, 196, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: button-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes button-glow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 
            0 10px 30px rgba(78, 205, 196, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 
            0 15px 40px rgba(78, 205, 196, 0.5),
            0 0 30px rgba(78, 205, 196, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(78, 205, 196, 0.6),
        0 0 50px rgba(78, 205, 196, 0.4);
    background-position: 100% 50%;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    opacity: 0.8;
    color: #4ecdc4;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    backdrop-filter: blur(10px);
    font-style: italic;
    letter-spacing: 0.5px;
}

.hint i {
    font-size: 1.3rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Prize Section */
.prize-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fade-in-up 0.6s ease 0.2s both;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-10px);
    opacity: 0;
    animation: slide-in-right 0.5s ease forwards;
}

.prize-item:nth-child(1) { animation-delay: 0.1s; }
.prize-item:nth-child(2) { animation-delay: 0.2s; }
.prize-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes slide-in-right {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.prize-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.prize-item i {
    font-size: 1.5rem;
    color: #ff6b6b;
    width: 30px;
}

/* Success Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(80% 60% at 50% 40%, rgba(6,8,14,0.95), rgba(6,8,14,0.8));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px) saturate(110%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                visibility 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                backdrop-filter 0.4s ease;
    will-change: opacity, visibility;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, rgba(38, 58, 80, 0.35), rgba(23, 34, 54, 0.35));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 2rem;
    border: 1px solid rgba(120, 200, 220, 0.25);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6), inset 0 0 80px rgba(78,205,196,0.05);
    backdrop-filter: blur(20px) saturate(120%);
    transform: scale(0.8) translateY(-40px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
    opacity: 0;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Enhanced modal animations */
@keyframes modal-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modal-disappear {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

.modal.hiding {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
                visibility 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.hiding .modal-content {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.success-icon {
    font-size: 4rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.success-message {
    font-weight: 600;
    color: #ff6b6b;
}

.close-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 0;
    transform: translateY(0);
    will-change: transform, box-shadow;
}

.close-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.close-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: #4ecdc4;
    transform: translateY(-3px);
    background: rgba(78, 205, 196, 0.2);
}

/* Password and Riddle Page Styles */
.password-page-header, .riddle-page-header {
    height: auto;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.password-page-header .container, .riddle-page-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
    transform: translateX(-5px);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.password-page-content, .riddle-page-content {
    padding: 4rem 0;
    min-height: 70vh;
}

.riddle-display, .riddle-display-large {
    margin-bottom: 3rem;
}

.riddle-display-large .riddle-card {
    padding: 4rem;
    text-align: center;
}

.riddle-display-large .riddle-text {
    padding: 3rem 0;
}

.riddle-display-large .riddle-line {
    font-size: 1.5rem;
    line-height: 2.5;
    margin-bottom: 1rem;
}

.riddle-actions {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 180px;
    justify-content: center;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.4);
    background: linear-gradient(45deg, #45b7d1, #4ecdc4);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .action-buttons-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .riddle-card, .password-card, .prize-card, .social-card {
        padding: 2rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .profile-header-image {
        width: 200px;
        height: 200px;
    }
    
    .back-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .riddle-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .action-button {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .riddle-line {
        font-size: 1.1rem;
    }
}
