/* Custom Styling for Congratulations Graduation Portal */
:root {
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #d946ef 100%);
    --accent-gold: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.88);
    --card-dark: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 20px;
    --radius-md: 14px;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px -10px rgba(79, 70, 229, 0.15);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: radial-gradient(circle at top right, rgba(217, 70, 239, 0.12) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        #f8fafc;
    padding: 40px 0 80px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 50px;
}

.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* QR Code Showcase Card */
.qr-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
    border: 2px solid rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.qr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gold-gradient);
}

.qr-wrapper {
    position: relative;
    display: inline-block;
    padding: 16px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.qr-wrapper img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.qr-scan-line {
    position: absolute;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4f46e5, #d946ef, transparent);
    box-shadow: 0 0 12px #7c3aed;
    top: 16px;
    animation: scan 2.5s infinite alternate ease-in-out;
    border-radius: 2px;
}

@keyframes scan {
    0% {
        top: 16px;
        opacity: 0.3;
    }

    100% {
        top: calc(100% - 19px);
        opacity: 1;
    }
}

.btn-gemini {
    background: var(--primary-gradient);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-gemini:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    color: #ffffff;
}

.btn-copy {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-weight: 500;
    border-radius: 10px;
    padding: 8px 16px;
    transition: var(--transition);
}

.btn-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Step Wizard Section */
.step-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
}

.step-card:hover {
    border-color: #c7d2fe;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.12);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 28px;
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* Backdrop Showcase Section */
.backdrop-grid-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.backdrop-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.backdrop-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.backdrop-grid-item:hover .backdrop-img {
    transform: scale(1.06);
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}

.backdrop-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-action-preview,
.btn-action-download {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-action-preview {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-action-preview:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-action-download {
    background: var(--gold-gradient);
    color: #0f172a;
    border: none;
}

.btn-action-download:hover {
    filter: brightness(1.1);
    color: #0f172a;
}

/* Examples Gallery Section */
.example-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.example-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.example-card:hover .example-img {
    transform: scale(1.05);
}

.example-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.example-body {
    padding: 16px;
    background: #ffffff;
}

/* Toast */
.custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .backdrop-img {
        height: 200px;
    }

    .example-img {
        height: 260px;
    }
}