/* ==========================================================================
   AshishDarji.com — Modern Design System & CSS Stylesheet
   ========================================================================== */

/* 1. CSS Custom Properties & Themes */
:root {
    /* Color Palette — Dark Theme (Default) */
    --bg-base: #0a0d14;
    --bg-surface: rgba(18, 22, 34, 0.75);
    --bg-surface-hover: rgba(28, 35, 52, 0.85);
    --bg-card: rgba(15, 20, 32, 0.6);
    --bg-card-hover: rgba(24, 31, 48, 0.8);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #6366f1; /* Indigo */
    --accent-primary-hover: #4f46e5;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --accent-glow: rgba(99, 102, 241, 0.35);
    
    --success-color: #10b981;
    --success-glow: rgba(16, 185, 129, 0.3);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --backdrop-blur: blur(16px) saturate(180%);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-base: #f3f4f6;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-hover: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.5);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-glow: rgba(99, 102, 241, 0.2);
    --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

/* Cyber Neon Theme Option */
[data-theme="cyber"] {
    --bg-base: #050811;
    --bg-surface: rgba(10, 16, 32, 0.85);
    --accent-primary: #00f2fe;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #000000 100%);
    --accent-glow: rgba(0, 242, 254, 0.4);
    --border-color-hover: rgba(0, 242, 254, 0.6);
}

/* 2. Global Resets & Layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* 3. Ambient Canvas & Background Orbs */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -9s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* 4. App Container & Top Nav */
.app-container {
    width: 100%;
    max-width: 680px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-bounce);
}

.icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* 5. Main Content Card */
.main-card {
    background: var(--bg-surface);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

/* Profile Header */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 0;
    animation: spinRing 12s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.profile-avatar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-base);
    box-shadow: var(--shadow-lg);
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 2;
    width: 18px;
    height: 18px;
    background: var(--success-color);
    border: 3px solid var(--bg-base);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-glow);
}

.status-pulse {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--success-color);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.profile-name {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verified-badge {
    color: var(--accent-primary);
    font-size: 1.25rem;
    -webkit-text-fill-color: initial;
}

.profile-tagline {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.05rem;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    line-height: 1.6;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pill-badge i {
    color: var(--accent-primary);
}

.pill-badge.highlight {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    color: var(--success-color);
}

.pill-badge.highlight i {
    color: var(--success-color);
}

.primary-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 360px;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-bounce);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

/* 6. Controls Section (Search & Filter) */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 2.8rem 0.75rem 2.6rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: var(--transition-normal);
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: var(--bg-surface-hover);
}

.kbd-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem;
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

.filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.filter-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* 7. Social Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--card-color, var(--accent-primary));
    opacity: 0.8;
    transition: var(--transition-normal);
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.link-card:hover::before {
    width: 6px;
}

.link-main-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.link-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--card-color, var(--text-primary));
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.link-card:hover .link-icon-box {
    transform: rotate(-6deg) scale(1.1);
}

.link-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.link-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.link-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.link-right-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-link-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-normal);
}

.link-card:hover .copy-link-btn {
    opacity: 1;
}

.copy-link-btn:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

.arrow-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition-normal);
}

.link-card:hover .arrow-icon {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Featured Tag Ribbon on Link Card */
.featured-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--accent-gradient);
    color: #fff;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-full);
}

.no-results {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 8. Skills Section */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-normal);
}

.skill-tag i {
    color: var(--accent-primary);
}

.skill-tag:hover {
    color: var(--text-primary);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

/* 9. Footer */
.app-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.text-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.text-link-btn:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* 10. Modals */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: var(--transition-normal);
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(0);
    transition: var(--transition-bounce);
}

.modal-backdrop.hidden .modal-card {
    transform: translateY(20px) scale(0.95);
}

.modal-sm {
    max-width: 360px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-block {
    width: 100%;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

#qrcode-canvas-wrapper {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qr-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.qr-subtext {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* 11. Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--backdrop-blur);
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.toast i {
    color: var(--success-color);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.toast-out {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

.hidden {
    display: none !important;
}

/* 12. Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .main-card {
        padding: 1.5rem 1.25rem;
        gap: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.75rem;
    }
    
    .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .primary-actions {
        flex-direction: column;
        max-width: 100%;
    }
    
    .kbd-shortcut {
        display: none;
    }
}
