:root {
    /* Warm & Inclusive Palette - Sunset Vibes */
    --bg: #fffbf7;
    --text: #4a4a4a;
    --text-light: #6b6b6b;
    --text-dim: #999;

    /* Warm Coral & Amber Tones */
    --coral: #FF8C61;
    --coral-light: #FFB085;
    --amber: #FFB85C;
    --peach: #FFAD7A;
    --orange: #FF9F66;
    --teal: #6FCDCD;

    /* Accent Colors */
    --gold: #FFC857;
    --white: #ffffff;

    /* Theme Accents */
    --primary: var(--coral);
    --secondary: var(--amber);

    /* Warm Gradients - Sunset Theme */
    --gradient-bg: radial-gradient(circle at top right, #fff5ed, #fffbf7, #ffffff);
    --gradient-primary: linear-gradient(135deg, #FF8C61 0%, #FFB85C 100%);
    --gradient-secondary: linear-gradient(135deg, #FFB85C 0%, #FFC857 100%);
    --gradient-accent: linear-gradient(135deg, #FF9F66 0%, #FF8C61 100%);

    /* Soft Shadows - Warm Tinted */
    --shadow-card: 0 20px 40px rgba(255, 140, 97, 0.12);
    --shadow-hover: 0 30px 60px rgba(255, 140, 97, 0.18);
    --shadow-sm: 0 8px 20px rgba(255, 140, 97, 0.08);

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 100px;

    /* Spacing Variables */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Transitions - Longer, smoother */
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--coral);
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Logo Header */
.logo-header {
    text-align: center;
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 10;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.twinkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px 4px var(--gold);
    animation: twinkle 4s infinite ease-in-out;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(255, 140, 97, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 140, 97, 0.4);
    animation: heartbeat 0.8s ease-in-out;
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 2px solid var(--amber);
}

.btn-secondary:hover {
    background: var(--gradient-secondary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--amber);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 184, 92, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* Landing Page */
#landing-page {
    text-align: center;
    padding-top: 2rem;
}

.hero {
    padding: 3rem 0 5rem;
}

.hero-subtitle {
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    animation: float 3s infinite ease-in-out;
}

/* Create Page */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.create-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.create-form-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.create-preview-section {
    position: sticky;
    top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--coral);
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 140, 97, 0.2);
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 184, 92, 0.1);
}

/* Theme Selection */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.theme-option {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.theme-option:hover {
    transform: translateY(-3px);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.theme-option.selected {
    border-color: var(--coral);
    background: rgba(255, 140, 97, 0.1);
}

.theme-emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.theme-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--amber);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 184, 92, 0.05);
    transition: var(--transition);
    position: relative;
}

.upload-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(255, 184, 92, 0.1);
    border-color: var(--coral);
}

.upload-area.dragover {
    background: rgba(255, 140, 97, 0.1);
    border-color: var(--coral);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.video-preview-container {
    margin-top: 2rem;
}

.video-preview-container.hidden {
    display: none;
}

/* View Page (Card Style) */
.view-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
}

.video-display-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    position: relative;
}

.video-container {
    width: 100%;
    background: #000;
    position: relative;
}

.video-container video {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.message-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.emoji-reactions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.emoji-btn {
    font-size: 2.5rem;
    background: var(--white);
    border: 2px solid rgba(255, 140, 97, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-btn:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-hover);
    animation: heartbeat 0.8s ease-in-out;
    border-color: var(--coral);
}

.emoji-btn.reacted {
    background: rgba(255, 140, 97, 0.1);
    transform: scale(1.2);
    border-color: var(--coral);
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.gestlies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gestly-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gestly-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.gestly-theme {
    font-size: 2.5rem;
}

.gestly-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gestly-date {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.gestly-reactions {
    margin: 1rem 0;
    min-height: 2rem;
}

.reaction-display {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.gestly-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
}

.engagement-prompt {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-top: 3rem;
}

.heart-decoration,
.sparkle-decoration {
    display: inline-block;
    animation: heartbeat 2s infinite;
}

/* QR Modal */
.qr-card-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.qr-card-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-modal:hover {
    background: rgba(255, 140, 97, 0.1);
}

#qr-card-preview {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    color: white;
    margin-bottom: 2rem;
}

#qrcode {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 1.5rem 0;
}

.card-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    animation: slideIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .create-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .create-preview-section {
        position: relative;
        top: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gestlies-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .logo-text {
        font-size: 2rem;
    }
}