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

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #553C9A;
    --dark-purple: #4C1D95;
    --light-purple: #8B5CF6;
    --accent-purple: #7C3AED;
    --deep-purple: #2D1B69;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #1e293b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #2D1B69 0%, #4C1D95 50%, #6B46C1 100%);
    --gradient-secondary: linear-gradient(135deg, #553C9A 0%, #6B46C1 100%);
    --gradient-accent: linear-gradient(135deg, #1E1B4B 0%, #2D1B69 50%, #4C1D95 100%);
    --shadow-light: 0 4px 20px rgba(107, 70, 193, 0.15);
    --shadow-medium: 0 8px 40px rgba(107, 70, 193, 0.25);
    --shadow-heavy: 0 16px 60px rgba(107, 70, 193, 0.35);
    --shadow-glow: 0 0 30px rgba(107, 70, 193, 0.6);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--gradient-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(107, 70, 193, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(76, 29, 149, 0.4) 0%, transparent 60%);
    animation: subtleGradientShift 6s ease-in-out infinite;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

.logo-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    animation: logoBubbleEntrance 2.2s ease-out both, logoBubblePulse 4s ease-in-out infinite 2s;
    backdrop-filter: blur(20px);
    z-index: -1;
}

.logo-animation {
    width: 120px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: elegantLogoEntrance 2s ease-out both;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 16px rgba(107, 70, 193, 0.4));
    transition: all 0.3s ease;
}

.circular-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    z-index: 1;
    animation: loaderAppear 0.8s ease-out 1.5s both;
}

.loader-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotateLoader 2s linear infinite;
}

.loader-ring:nth-child(1) {
    width: 180px;
    height: 180px;
    border-top: 3px solid rgba(255, 255, 255, 0.8);
    border-right: 3px solid rgba(255, 255, 255, 0.4);
    animation-duration: 2s;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.loader-ring-2 {
    width: 160px;
    height: 160px;
    border-top: 3px solid rgba(107, 70, 193, 0.8);
    border-right: 3px solid rgba(107, 70, 193, 0.4);
    animation-duration: 1.5s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 15px rgba(107, 70, 193, 0.8));
}

.loader-ring-3 {
    width: 140px;
    height: 140px;
    border-top: 3px solid rgba(139, 92, 246, 0.9);
    border-right: 3px solid rgba(139, 92, 246, 0.5);
    animation-duration: 1s;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.9));
}

@keyframes subtleGradientShift {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.8;
    }
}

@keyframes elegantLogoEntrance {
    0% {
        transform: scale(0.3) translateY(30px);
        opacity: 0;
        filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0)) drop-shadow(0 4px 16px rgba(107, 70, 193, 0)) blur(10px);
    }
    60% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.9;
        filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.2)) drop-shadow(0 6px 20px rgba(107, 70, 193, 0.3)) blur(2px);
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 16px rgba(107, 70, 193, 0.4)) blur(0px);
    }
}

@keyframes logoBubbleEntrance {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes logoBubblePulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes loaderAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes rotateLoader {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.main-content.visible {
    opacity: 1;
}

.hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200"><path d="M0,100 Q250,150 500,100 T1000,100 V200 H0 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    background-position: bottom;
    animation: waveAnimation 6s ease-in-out infinite;
}

@keyframes waveAnimation {
    0%, 100% {
        transform: translateX(0) scaleY(1);
    }
    50% {
        transform: translateX(-50px) scaleY(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroSlideUp 1s ease-out;
}

/* Thank You Section */
.thank-you-section {
    margin-bottom: 40px;
    animation: sectionSlideIn 0.8s ease-out;
}

.thank-you-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.thank-you-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

.thank-you-card h2 {
    color: var(--primary-purple);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thank-you-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.aftermovie-info {
    background: rgba(107, 70, 193, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.aftermovie-info h3 {
    color: var(--secondary-purple);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.instagram-follow {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(107, 70, 193, 0.1);
}

.instagram-follow h4 {
    color: var(--primary-purple);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #1877F2 0%, #4267B2 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
    margin: 15px 0;
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.4);
    text-decoration: none;
    color: white;
}

.instagram-icon {
    font-size: 1.3rem;
}

.instagram-note {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 10px;
    font-style: italic;
}

.memories-section {
    background: rgba(16, 185, 129, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.memories-section h3 {
    color: var(--success);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.memories-section p {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 0;
}

@keyframes heroSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
    font-weight: 400;
    opacity: 0.95;
    animation: subtitleFadeIn 1.5s ease-out 0.5s both;
}

@keyframes subtitleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

@keyframes sectionSlideIn {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


.footer {
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .hero {
        min-height: 35vh;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Splash effects removed */

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(107, 70, 193, 0.6);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Interactive Elements Positioning */
button, .social-link {
    position: relative;
    overflow: hidden;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .particle {
        width: 6px;
        height: 6px;
    }
    
    .thank-you-card {
        padding: 25px 20px;
    }
    
    .thank-you-card h2 {
        font-size: 2rem;
    }
    
    .aftermovie-info {
        padding: 20px;
        margin: 20px 0;
    }
    
    .instagram-follow {
        padding: 20px;
    }
    
    .memories-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .thank-you-card h2 {
        font-size: 1.8rem;
    }
    
    .aftermovie-info h3 {
        font-size: 1.5rem;
    }
    
    .instagram-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}