:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --accent-gold: #d4af37;
    --accent-rose: #ff4d6d;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-rose);
    box-shadow: 0 0 10px var(--accent-rose);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 77, 109, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 77, 109, 0.1);
    border-color: var(--accent-rose);
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a0b14 0%, #050505 100%);
    z-index: -2;
}

#magicCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    border-radius: 24px;
}

/* Login Screen */
#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    padding: 4rem 3rem;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(30px);
    opacity: 0;
}

.glowing-lock {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    animation: float 4s ease-in-out infinite;
}

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

.login-container h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

#password-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    font-family: var(--font-body);
    letter-spacing: 8px;
    text-align: center;
    outline: none;
    padding: 10px 0;
}

#password-input::placeholder {
    color: rgba(255,255,255,0.15);
    letter-spacing: 4px;
    font-size: 1.2rem;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transition: width 0.4s ease;
}

#password-input:focus ~ .input-line {
    width: 100%;
}

.magnetic-btn {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
    z-index: -1;
}

.magnetic-btn:hover {
    color: var(--bg-dark);
}

.magnetic-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.error-msg {
    color: var(--accent-rose);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    opacity: 0;
    font-style: italic;
    font-family: var(--font-heading);
}

/* Music Toggle */
#music-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

#music-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    perspective: 1000px;
}

.title {
    font-family: var(--font-script);
    font-size: 6rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.5);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* Video Section */
.video-section {
    padding: 10rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    transform-style: preserve-3d;
}

.video-container {
    padding: 1rem;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    transform: translateZ(50px); /* For 3D tilt effect */
}

.video-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #000;
}

#main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.8s ease;
    filter: saturate(0.8) contrast(1.2);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.play-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-text {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    letter-spacing: 2px;
    color: white;
}

.video-wrapper:hover .play-icon {
    transform: scale(1.1) translateZ(30px);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 2rem;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 6rem;
}

.polaroid-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1200px;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 40px 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
    width: 280px;
    opacity: 0;
}

.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid:nth-child(odd) { transform: rotate(-3deg); }

.polaroid:hover {
    transform: rotate(0deg) scale(1.05) translateZ(50px) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    z-index: 10;
}

.img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #111;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) sepia(10%);
    transition: filter 0.5s ease, transform 0.8s ease;
}

.polaroid:hover img {
    filter: grayscale(0%) sepia(0%);
    transform: scale(1.05);
}

.polaroid p {
    color: #333;
    font-family: var(--font-script);
    font-size: 1.8rem;
    text-align: center;
    margin-top: 15px;
}

/* Footer */
.footer {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.heart-container {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
}

.beating-heart {
    fill: var(--accent-rose);
    filter: drop-shadow(0 0 15px rgba(255, 77, 109, 0.6));
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.signature {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 4rem; }
    .section-title { font-size: 3rem; }
    .polaroid { width: 100%; max-width: 320px; }
    .cursor-dot, .cursor-outline { display: none; }
    * { cursor: auto; }
}