/* Scrollbar styling */
html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.hamburger .line {
    transition: all 0.3s ease-in-out;
}
.hamburger.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .line2 {
    opacity: 0;
}
.hamburger.active .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateY(-100%);
    display: none;
}
#mobile-menu.active {
    transform: translateY(0);
    display: block;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Simplified styles for certificates */
.certificate-container {
    width: 100%;
    max-width: 29.7cm; /* A4 width in landscape */
    height: 21cm; /* A4 height in landscape */
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.certificate-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drag-drop-area {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    text-align: center;
}

.dropzone {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dz-message {
    font-size: 1.2em;
    color: #666;
}

/* ========================================
   EVENT PAGES — PROFESSIONAL REDESIGN
   ======================================== */

/* Fade-in-up entrance animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.25); }
    50% { box-shadow: 0 0 20px rgba(99,102,241,0.45); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Staggered delays for cards */
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.40s; }
.delay-6 { animation-delay: 0.48s; }
.delay-7 { animation-delay: 0.56s; }
.delay-8 { animation-delay: 0.64s; }
.delay-9 { animation-delay: 0.72s; }

/* Glassmorphism event card */
.event-card {
    background: linear-gradient(135deg, rgba(30,27,75,0.55) 0%, rgba(17,24,39,0.70) 100%);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1),
                box-shadow 0.35s cubic-bezier(.4,0,.2,1),
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}
.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #6366f1);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0.7;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px -12px rgba(99,102,241,0.30),
                0 0 0 1px rgba(99,102,241,0.30);
    border-color: rgba(99,102,241,0.45);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #818cf8, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.status-badge.open {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.30);
}
.status-badge.closed {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.30);
}
.status-badge.full {
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.30);
}
.status-badge.completed {
    background: rgba(148,163,184,0.15);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,0.30);
}
.status-badge.joined {
    background: rgba(34,197,94,0.2);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.35);
}

/* Info chips */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    color: #c7d2fe;
    transition: all 0.25s ease;
}
.info-chip:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.30);
}
.info-chip svg,
.info-chip i {
    width: 0.9rem;
    height: 0.9rem;
    opacity: 0.75;
}

/* CTA button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                box-shadow 0.3s ease;
    text-decoration: none;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(99,102,241,0.50);
}
.cta-button:active {
    transform: translateY(-1px);
}
.cta-button.secondary {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    border: 1px solid rgba(99,102,241,0.30);
}
.cta-button.secondary:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.25));
    box-shadow: 0 8px 24px -8px rgba(99,102,241,0.30);
}
.cta-button.success {
    background: linear-gradient(135deg, #059669, #10b981);
}
.cta-button.success:hover {
    box-shadow: 0 12px 32px -8px rgba(16,185,129,0.50);
}
.cta-button.warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}
.cta-button.warning:hover {
    box-shadow: 0 12px 32px -8px rgba(245,158,11,0.50);
}

/* Info card (detail page) */
.info-card {
    background: rgba(17,24,39,0.60);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 4px 20px -6px rgba(99,102,241,0.15);
}

/* Form field styling */
.form-field {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(17,24,39,0.6);
    border: 1px solid rgba(75,85,99,0.4);
    border-radius: 0.625rem;
    color: #f3f4f6;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-field:focus {
    outline: none;
    border-color: rgba(99,102,241,0.7);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-field::placeholder {
    color: rgba(156,163,175,0.6);
}

/* Speaker card hover zoom */
.speaker-img-wrap {
    overflow: hidden;
    border-radius: 0.75rem;
}
.speaker-img-wrap img {
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.speaker-img-wrap:hover img {
    transform: scale(1.08);
}

/* Section divider line */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.30), transparent);
    margin: 1.5rem 0;
}

/* Announcement highlight block */
.announcement-block {
    background: rgba(251,191,36,0.06);
    border-left: 3px solid #f59e0b;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.25rem 1.5rem;
}

/* Admin panel */
.admin-panel {
    background: rgba(17,24,39,0.5);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 0.875rem;
    padding: 1.25rem;
}

/* Page hero header */
.page-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: #94a3b8;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 36rem;
    margin: 0 auto;
}

/* Empty state illustration area */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(17,24,39,0.4);
    border: 1px dashed rgba(99,102,241,0.25);
    border-radius: 1rem;
}

/* Responsive grid for event cards */
.events-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Team member section numbering */
.member-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
