/* ========================================
   ENHANCED UI/UX - Premium Design
   Using modern CSS with advanced effects
======================================== */

/* ========================================
   CSS Variables & Root Styles
======================================== */
:root {
    /* Premium Color Palette */
    --primary: #ff6b9d;
    --primary-light: #ff8fb3;
    --primary-dark: #e74c7c;
    --primary-glow: rgba(255, 107, 157, 0.5);

    --secondary: #a855f7;
    --secondary-light: #c084fc;
    --secondary-glow: rgba(168, 85, 247, 0.5);

    --accent: #fbbf24;
    --accent-glow: rgba(251, 191, 36, 0.5);

    --success: #10b981;
    --success-light: #34d399;
    --success-glow: rgba(16, 185, 129, 0.5);

    /* Dark Theme */
    --dark-900: #0a0a0f;
    --dark-800: #12121a;
    --dark-700: #1a1a2e;
    --dark-600: #252540;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--dark-900);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    overflow-wrap: break-word;
    /* Global fix for text overflow */
    word-wrap: break-word;
    hyphens: auto;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 107, 157, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-900) 0%, var(--dark-700) 100%);
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg);
    }

    50% {
        filter: hue-rotate(20deg);
    }
}

/* Animated Stars/Particles Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200px 200px;
    z-index: -1;
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ========================================
   Floating Hearts Background
======================================== */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatUp 10s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    text-shadow: 0 0 20px var(--primary-glow);
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.3);
        opacity: 0;
    }

    5% {
        opacity: 0.8;
    }

    95% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* ========================================
   Screen Container
======================================== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Premium Glass Card Component
======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem 3rem;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: visible;
    transition: var(--transition-normal);
    animation: cardEntrance 0.8s ease-out;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow:
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
    border-color: var(--glass-border-hover);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Shimmer Effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 4s ease-in-out infinite;
    border-radius: 32px;
}

@keyframes shimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 100%;
    }
}

/* Glowing Border Effect */
.glass-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 34px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(15px);
}

.glass-card:hover::after {
    opacity: 0.3;
}

/* ========================================
   Typography
======================================== */
.title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 50%, var(--secondary-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    animation: gradientText 5s ease infinite;
    text-shadow: 0 0 40px var(--primary-glow);
}

@keyframes gradientText {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.question {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Sparkle Animation
======================================== */
.sparkle-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.sparkle {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.sparkle:nth-child(1) {
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    animation-delay: 0.2s;
}

.sparkle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
        filter: drop-shadow(0 0 10px var(--accent-glow));
    }

    50% {
        transform: scale(1.4) rotate(180deg);
        opacity: 0.8;
        filter: drop-shadow(0 0 20px var(--accent-glow));
    }
}

/* ========================================
   Premium Button Styles
======================================== */
.button-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 400px;
    height: 400px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow:
        0 4px 15px var(--primary-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 30px var(--primary-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Ghost Button */
.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Next Button */
.btn-next {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    box-shadow:
        0 4px 20px var(--secondary-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-next:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 35px var(--secondary-glow);
}

/* Yes Button */
.btn-yes {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 3.5rem;
    box-shadow:
        0 4px 20px var(--success-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    animation: pulseYes 2s ease-in-out infinite;
}

@keyframes pulseYes {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px var(--success-glow);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 35px var(--success-glow);
    }
}

.btn-yes:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 10px 40px var(--success-glow);
}

/* No Button */
.btn-no {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
    padding: 1rem 2.5rem;
    backdrop-filter: blur(10px);
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Video Screen Styles
======================================== */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.video-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
}

.glitch-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: white;
    position: relative;
    animation: glitch 0.3s ease-in-out infinite alternate;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
        transform: skew(-0.5deg);
    }

    100% {
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
        transform: skew(0.5deg);
    }
}

.tagline {
    color: rgba(255, 255, 255, 0.6);
    margin: 1.5rem 0 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Confession Screen Styles
======================================== */
.confession-container {
    width: 100%;
    max-width: 500px;
}

.confession-card {
    position: relative;
}

.confession-card.hidden {
    display: none;
}

.confession-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 2rem;
    animation: emojiFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--secondary-glow));
}

@keyframes emojiFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.confession-text {
    font-size: 1.5rem;
    line-height: 1.7;
    color: white;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ========================================
   Proposal Screen Styles
======================================== */
.proposal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    max-width: 550px;
    width: 100%;
}

.image-frame {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 24px;
    overflow: visible;
}

.proposal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.image-frame:hover .proposal-image {
    transform: scale(1.02);
}

.image-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    animation: imageGlow 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes imageGlow {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Rotating Border */
.image-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 0deg,
            var(--primary),
            var(--secondary),
            var(--accent),
            var(--primary));
    border-radius: 28px;
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
    opacity: 0.8;
}

@keyframes rotateBorder {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

.proposal-content {
    width: 100%;
}

.proposal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.proposal-question {
    font-family: var(--font-display);
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px var(--primary-glow);
}

.proposal-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    min-height: 80px;
}

/* ========================================
   Success Screen Styles
======================================== */
.celebration-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    animation: confettiFall 4s ease-out forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(1080deg);
        opacity: 0;
    }
}

.success-content {
    position: relative;
    z-index: 1;
}

.success-title {
    font-family: var(--font-display);
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 50%, var(--secondary-light) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: successBounce 0.8s ease-out, gradientText 3s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-text {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.success-emoji {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: emojiFloat 2s ease-in-out infinite;
}

.success-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.heart-beat {
    font-size: 5rem;
    animation: heartBeat 1s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.2);
    }
}

/* ========================================
   Premium Footer Styles
======================================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 100;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.footer a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.heart-icon {
    color: var(--primary);
    animation: heartBeat 1.5s ease-in-out infinite;
    display: inline-block;
    font-size: 1.1rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .glass-card {
        padding: 2.5rem 1.75rem;
        margin: 1rem;
        border-radius: 24px;
    }

    .title {
        font-size: 2.2rem;
    }

    .question {
        font-size: 1.8rem;
    }

    .proposal-question {
        font-size: 2rem;
    }

    .btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }

    .image-frame {
        width: 220px;
        height: 220px;
    }

    .glitch-text {
        font-size: 1.8rem;
    }

    .success-title {
        font-size: 2.8rem;
    }

    .proposal-buttons {
        min-height: 120px;
    }

    .confession-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .screen {
        padding: 1rem;
    }

    .glass-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .image-frame {
        width: 180px;
        height: 180px;
    }

    .proposal-buttons {
        min-height: 150px;
    }

    .sparkle {
        font-size: 1.5rem;
    }
}

/* ========================================
   Utility Classes
======================================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-out {
    animation: fadeOut 0.6s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ========================================
   Custom Scrollbar
======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-800);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ========================================
   Selection Styling
======================================== */
::selection {
    background: var(--primary);
    color: white;
}

/* ========================================
   SCROLLABLE PROPOSAL PAGE STYLES
======================================== */

/* Proposal Page - Override fixed positioning */
.proposal-page {
    position: fixed;
    height: 100vh;
    padding: 0;
    overflow: hidden;
}

.proposal-scroll-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-bottom: 100px;
}

/* Section Common Styles */
.proposal-hero,
.stats-section,
.funfacts-section,
.reasons-section,
.question-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Hero Section
======================================== */
.proposal-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem 4rem;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 5s ease infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--primary);
    animation: scrollArrow 1.5s ease-in-out infinite;
}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.hero-image-frame {
    width: 350px;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 60px var(--primary-glow);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    border-radius: 34px;
    z-index: -1;
    animation: rotateBorder 4s linear infinite;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.floating-emoji {
    position: absolute;
    font-size: 2.5rem;
    animation: floatEmoji 4s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.emoji-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.emoji-2 {
    bottom: 20px;
    left: -30px;
    animation-delay: 0.5s;
}

.emoji-3 {
    top: 50%;
    right: -40px;
    animation-delay: 1s;
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* ========================================
   Stats Section
======================================== */
.stats-section {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.05) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}

.stat-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    animation: none;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.stat-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-left: 2px;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ========================================
   Fun Facts Section
======================================== */
.funfacts-section {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.funfacts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    width: 100%;
    align-items: center;
}

.funfact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    text-align: left;
    max-width: none;
    animation: none;
    transition: all var(--transition-normal);
}

.funfact-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.funfact-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
    flex-shrink: 0;
}

.funfact-content {
    flex: 1;
}

.funfact-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.funfact-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.funfact-emoji {
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* ========================================
   Reasons Section
======================================== */
.reasons-section {
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 157, 0.05) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}

.reason-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
}

.reason-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 107, 157, 0.2);
}

.reason-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.reason-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.reason-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ========================================
   The Big Question Section
======================================== */
/* ========================================
   The Big Question Section
======================================== */
.question-section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
}

.question-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(60px);
    animation: auraPulse 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes auraPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
}

.question-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.q-float {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.2;
    filter: blur(1px);
    animation: floatSlow 6s ease-in-out infinite;
}

.q-f-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.q-f-2 {
    top: 15%;
    right: 20%;
    animation-delay: 1.5s;
}

.q-f-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 3s;
}

.q-f-4 {
    bottom: 20%;
    right: 15%;
    animation-delay: 4.5s;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.question-wrapper {
    max-width: 600px;
    width: 100%;
    padding: 5rem 3rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.question-sparkles {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
}

.question-sparkles span {
    animation: sparkle 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.big-question-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.big-question {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

.question-subtext {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
    font-style: italic;
}

.proposal-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
}

.btn-yes {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }

    15% {
        transform: scale(1.1);
        box-shadow: 0 0 40px var(--primary-glow);
    }

    30% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }

    45% {
        transform: scale(1.15);
        box-shadow: 0 0 50px var(--primary-glow);
    }

    60% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }
}

.btn-no {
    opacity: 0.8;
    transition: all 0.2s ease;
}

@media (max-width: 480px) {
    .question-wrapper {
        padding: 4rem 1.5rem;
    }

    .big-question {
        font-size: 2.5rem;
    }

    .big-question-title {
        font-size: 2rem;
    }

    .proposal-buttons {
        gap: 1.5rem;
    }
}

/* ========================================
   Not Dedeb Screen - Enhanced UI
======================================== */
.video-overlay-polished {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    /* Optimized from 12px for better performance */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 99px;
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.divider {
    height: 1px;
    width: 60px;
    background: rgba(255, 255, 255, 0.2);
    margin: 1.5rem auto;
}

.tagline {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.sub-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
}

.btn-ghost-premium {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-ghost-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ========================================
   Responsive - Proposal Page
======================================== */
@media (max-width: 900px) {
    .proposal-hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        padding: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .scroll-indicator {
        align-items: center;
    }

    .hero-image-frame {
        width: 280px;
        height: 280px;
    }

    .stats-grid,
    .reasons-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .funfact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .big-question {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .hero-image-frame {
        width: 220px;
        height: 220px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .funfact-item {
        padding: 1.25rem;
    }

    .question-wrapper {
        padding: 2.5rem 1rem;
        width: 100%;
        border-radius: 20px;
    }

    .big-question {
        font-size: 1.8rem;
    }

    .countdown-section {
        padding: 1.25rem 0.75rem;
    }

    .time-unit {
        width: calc(50% - 0.5rem);
        min-width: 0;
    }

    .about-section,
    .stats-section,
    .funfacts-section,
    .timeline-section,
    .reasons-section {
        padding: 4rem 1rem;
    }
}

/* Small Device Polish (320px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .time-value {
        font-size: 1.4rem;
    }

    .big-question {
        font-size: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem 1rem;
    }
}

/* ========================================
   COUNTDOWN TIMER STYLES (Performance Optimized)
======================================== */
.countdown-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(6px);
    /* Lowered for performance */
    -webkit-backdrop-filter: blur(6px);
}

.countdown-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    min-width: 70px;
}

.time-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.time-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.countdown-date {
    font-size: 0.9rem;
    color: var(--primary-light);
    font-style: italic;
}

/* ========================================
   ABOUT SECTION STYLES
======================================== */
.about-section {
    min-height: auto;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 157, 0.03) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
}

.about-card {
    padding: 2rem;
    text-align: center;
    animation: none;
    transition: all var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.about-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.about-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========================================
   TIMELINE SECTION STYLES
======================================== */
.timeline-section {
    min-height: auto;
    padding: 6rem 2rem;
}

.timeline {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--dark-900);
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.timeline-content {
    padding: 1.5rem;
    animation: none;
    text-align: left;
    max-width: none;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.timeline-content.highlight-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: var(--primary);
}

/* ========================================
   Enhanced Smooth Scrolling & Animations (3D & Parallax)
======================================== */
.proposal-scroll-container {
    scroll-snap-type: y proximity;
    perspective: 1000px;
    /* Base perspective for 3D effects */
}

.proposal-hero,
.about-section,
.stats-section,
.funfacts-section,
.timeline-section,
.reasons-section,
.question-section {
    scroll-snap-align: start;
}

/* Scroll Reveal Base Classes */
.about-card,
.stat-card,
.funfact-item,
.timeline-item,
.reason-card,
.section-title {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
}

/* Specific Section 3D Styles */
.about-grid,
.stats-grid,
.funfacts-list {
    transform-style: preserve-3d;
}

/* 3D Card Hover - Parallax Effect */
.about-card,
.stat-card,
.funfact-item {
    cursor: default;
    overflow: hidden;
    /* Keep blur within bounds */
}

.about-card:hover,
.stat-card:hover {
    transform: translateY(-10px) rotateX(4deg) rotateY(4deg) scale(1.02);
    box-shadow:
        -5px 15px 30px rgba(0, 0, 0, 0.3),
        0 0 20px var(--primary-glow);
    border-color: var(--primary);
    z-index: 10;
}

.funfact-item:hover {
    transform: scale(1.02) translateZ(20px);
    background: rgba(255, 255, 255, 0.08);
    /* Lightly brighten */
    border-color: var(--accent);
}

/* Textbox Entry Animation */
@keyframes revealScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px) rotateX(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
    }
}

.reveal.about-card,
.reveal.stat-card {
    animation: revealScale 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered Reveal Delays */
.about-card:nth-child(2) {
    transition-delay: 0.1s;
}

.about-card:nth-child(3) {
    transition-delay: 0.2s;
}

.about-card:nth-child(4) {
    transition-delay: 0.3s;
}

.stat-card:nth-child(2) {
    transition-delay: 0.1s;
}

.stat-card:nth-child(3) {
    transition-delay: 0.2s;
}

.stat-card:nth-child(4) {
    transition-delay: 0.3s;
}

/* Timeline Reveal */
.timeline-item.reveal {
    animation: revealScale 0.6s ease-out forwards;
}

/* Section Title Reveal */
.section-title.reveal {
    animation: revealScale 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Additional Responsive Styles */
@media (max-width: 900px) {
    .countdown-timer {
        gap: 0.5rem;
    }

    .time-unit {
        padding: 0.75rem 1rem;
        min-width: 60px;
    }

    .time-value {
        font-size: 1.8rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 1.5rem 1rem;
    }

    .countdown-timer {
        flex-wrap: wrap;
    }

    .time-unit {
        min-width: 55px;
        padding: 0.5rem 0.75rem;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: -0.5rem;
    }

    .timeline-item::before {
        left: -2.5rem;
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   Interactive Cursor Particles
======================================== */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    user-select: none;
    animation: particleFade 1.2s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
    transform-origin: center;
    filter: drop-shadow(0 0 5px rgba(255, 107, 157, 0.3));
    will-change: transform, opacity;
}

@keyframes particleFade {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0);
    }

    15% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1.2);
    }

    100% {
        opacity: 0;
        transform:
            translate(var(--drift-x), var(--drift-y)) rotate(var(--rotation)) scale(0.5);
    }
}

/* ========================================
   Cinematic Title Reveal
======================================== */
.reveal-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.reveal-container .section-title {
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-container.reveal .section-title {
    opacity: 1;
    transform: translateY(0);
}

.reveal-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
}

.reveal-container.reveal::after {
    animation: titleRevealMask 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes titleRevealMask {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(101%);
    }
}

/* ========================================
   Glowing Border Trail Effect
======================================== */
.glass-card {
    position: relative;
    overflow: hidden;
}

.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.card-glow-border::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 20%,
            var(--primary) 25%,
            transparent 30%,
            transparent 70%,
            var(--accent) 75%,
            transparent 80%,
            transparent 100%);
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover .card-glow-border::before {
    opacity: 0.6;
}

@keyframes borderRotate {
    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Frosted Glass Shimmer Effect
======================================== */
.glass-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(135deg,
            transparent 0%,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%,
            transparent 100%);
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
    z-index: 2;
}

.glass-card:hover::after {
    animation: cardShimmer 1s cubic-bezier(0.1, 0.4, 0.2, 1) forwards;
}

@keyframes cardShimmer {
    0% {
        transform: translate(-30%, -30%) rotate(25deg);
    }

    100% {
        transform: translate(30%, 30%) rotate(25deg);
    }
}

/* ========================================
   Multi-Layered 3D Depth Accessories
======================================== */
.card-accessory {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    filter: blur(1px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.acc-1 {
    top: -10px;
    right: -10px;
}

.acc-2 {
    bottom: -10px;
    left: -10px;
}

.acc-3 {
    top: 20%;
    right: 10%;
}

.acc-4 {
    bottom: 20%;
    left: 10%;
}

.glass-card:hover .card-accessory {
    opacity: 0.4;
    /* Slightly more visible on hover */
}

.about-card:hover .acc-1 {
    transform: translateZ(40px) translate(10px, -10px) rotate(15deg);
}

.about-card:hover .acc-2 {
    transform: translateZ(50px) translate(-10px, 10px) rotate(-15deg);
}

.about-card:hover .acc-3 {
    transform: translateZ(30px) translate(5px, 5px) rotate(10deg);
}

.about-card:hover .acc-4 {
    transform: translateZ(60px) translate(-5px, -5px) rotate(-10deg);
}

/* Card Content Optimization for Z-index */
.glass-card>*:not(.card-glow-border):not(.card-accessory):not(::after) {
    position: relative;
    z-index: 3;
}

/* ========================================
   Animated Title Styling
======================================== */
.section-title {
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 3s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}