/* ==========================================================================
   FinTeClub - Official Theme & Styling
   Colors: Obsidian Navy, Electric Cyan, Neon Blue, Ultra-Clean White
   ========================================================================== */

:root {
    --bg-dark: #06080E;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(26, 38, 66, 0.85);
    --border-color: rgba(0, 229, 255, 0.15);
    --border-glow: rgba(0, 229, 255, 0.4);
    
    --primary-cyan: #00E5FF;
    --primary-blue: #0072FF;
    --accent-glow: rgba(0, 229, 255, 0.25);
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 16px;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Layout Container */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Card */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 229, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
    border-color: var(--border-glow);
}

.logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 18px auto;
}

.logo-glow {
    position: absolute;
    inset: -6px;
    background: conic-gradient(from 0deg, var(--primary-cyan), var(--primary-blue), #00E5FF, var(--primary-cyan));
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.6;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.profile-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: #06080E;
    padding: 4px;
    border: 2px solid var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.club-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 30%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.university-tag {
    font-size: 0.85rem;
    color: var(--primary-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.club-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
}

.stat-icon {
    color: var(--primary-cyan);
}

.stat-divider {
    width: 4px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
}

/* Section Title */
.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin: 8px 4px 4px 4px;
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Link Card */
.link-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    overflow: hidden;
}

.link-card:hover {
    transform: translateY(-3px);
    background: var(--bg-card-hover);
    border-color: var(--primary-cyan);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15);
}

/* Primary CTA Card Style */
.cta-card {
    background: linear-gradient(135deg, rgba(0, 114, 255, 0.25), rgba(0, 229, 255, 0.15));
    border: 1.5px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.cta-card:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.card-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: 0.75s;
}

.cta-card:hover .card-glow {
    left: 200%;
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.form-icon {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #06080E;
}

.instagram-bg {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.linkedin-bg {
    background: #0A66C2;
    color: #fff;
}

.tiktok-bg {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: -2px -2px 0 #00f2fe, 2px 2px 0 #fe0979;
}

.email-bg {
    background: linear-gradient(135deg, #1E293B, #334155);
    color: var(--primary-cyan);
    border: 1px solid var(--border-color);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--primary-cyan);
    color: #06080E;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.card-arrow {
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--primary-cyan);
}

/* Email Card Extra Actions */
.email-card {
    cursor: default;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--primary-cyan);
    color: #06080E;
    border-color: var(--primary-cyan);
}

/* QR Code Section */
.qr-section {
    margin-top: 10px;
}

.qr-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-cyan);
    margin-bottom: 6px;
}

.qr-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.qr-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.qr-display-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-frame {
    position: relative;
    padding: 16px;
    background: #06080E;
    border: 2px solid var(--primary-cyan);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.25);
    display: inline-block;
}

#qrCanvas {
    display: block;
    border-radius: 8px;
}

.qr-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid var(--primary-cyan);
    background: #06080E;
    object-fit: contain;
    padding: 2px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #06080E;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2deg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-cyan);
    transform: translateY(-2deg);
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.site-footer .tagline {
    color: var(--primary-cyan);
    margin-top: 4px;
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary-cyan);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(0, 229, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast i {
    color: var(--primary-cyan);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    body {
        padding: 16px 12px;
    }

    .profile-card {
        padding: 24px 16px;
    }

    .club-title {
        font-size: 1.7rem;
    }

    .stats-bar {
        gap: 10px;
        padding: 8px 12px;
    }

    .stat-text {
        font-size: 0.75rem;
    }

    .qr-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
