:root {
    --bg-gradient: linear-gradient(135deg, #050505 0%, #001133 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: 0 0 20px rgba(255, 215, 0, 0.5);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15), transparent 60%);
    z-index: -1;
    animation: pulse-bg 10s ease-in-out infinite alternate;
}

@keyframes pulse-bg {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 1; }
}

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

.glass-overlay {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.hero {
    text-align: center;
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #ffd700, #ffaa00);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 4px 12px rgba(0,0,0,0.2);
    letter-spacing: -2px;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 600px;
}

.glow-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-family: inherit;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--accent-glow);
    margin-top: 2rem;
}

.glow-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    padding: 1rem;
}

@media (min-width: 768px) {
    .gallery {
        flex-direction: row;
        justify-content: center;
    }
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    text-align: center;
}

.card-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.card-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.animate-pop {
    animation: pop 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
}

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    animation-delay: 0.3s;
}

.animate-pulse {
    animation: subtlePulse 2s infinite alternate;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease forwards;
    opacity: 0;
    transform: translateX(-50px);
    animation-delay: 0.6s;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease forwards;
    opacity: 0;
    transform: translateX(50px);
    animation-delay: 0.8s;
}

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}

/* Floating Elements for "birthday stuff everywhere" */
.floating-balloon {
    position: absolute;
    width: 60px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #fff, #ec4899);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3);
    animation: floatUp linear infinite;
    z-index: 10;
    opacity: 0.8;
}
.floating-balloon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid #ec4899;
}
.floating-balloon::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    width: 2px;
    height: 30px;
    background: rgba(255,255,255,0.4);
}

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-20vh) rotate(20deg); opacity: 0; }
}

/* Carousel specific styles */
.carousel-wrapper {
  overflow: hidden;
  display: flex;
  background: transparent;
  perspective: 1000px;
  transform-style: preserve-3d;
  min-height: 800px;
  width: 100%;
  padding: 2rem 0;
}

#drag-container,
#spin-container {
  position: relative;
  display: flex;
  margin: auto;
  transform-style: preserve-3d;
  transform: rotateX(-10deg);
}

#drag-container img,
#drag-container video {
  transform-style: preserve-3d;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  line-height: 200px;
  font-size: 50px;
  text-align: center;
  box-shadow: 0 0 8px #fff;
  -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0005);
}

#drag-container img:hover,
#drag-container video:hover {
  box-shadow: 0 0 15px #ffd700;
  -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0007);
}

#drag-container p {
  font-family: Serif;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
  color: #fff;
  width: 100%;
  text-align: center;
}

#ground {
  width: 900px;
  height: 900px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
  background: radial-gradient(center center, farthest-side, #9993, transparent);
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes spinRevert {
  from { transform: rotateY(360deg); }
  to { transform: rotateY(0deg); }
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.gallery-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--glass-border);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ffd700;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background 0.3s, color 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 215, 0, 0.5);
    color: #000;
}

.left-nav {
    left: 5%;
}

.right-nav {
    right: 5%;
}
