/* 🍱 LinkBento — Open source personal links page */
/* https://github.com/vgeroutskis/linkbento */

/* =============== CSS VARIABLES =============== */
:root {
    --text-color: #ffffff;
    --link-bg: rgba(255, 255, 255, 0.05);
    --link-border: rgba(255, 255, 255, 0.15);
    --accent-color: #00d2ff;
    --secondary-accent: #9d50bb;
    --bg-primary: #0f0c29;
    --bg-gradient: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
}

/* =============== THEMES =============== */

/* Light Mode */
[data-theme="light"] {
    --text-color: #1a1a2e;
    --link-bg: rgba(0, 0, 0, 0.05);
    --link-border: rgba(0, 0, 0, 0.15);
    --bg-primary: #f5f5f5;
    --bg-gradient: linear-gradient(-45deg, #f5f5f5, #e0e0e0, #ffffff, #f0f0f0);
}

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
    --text-color: #00ff41;
    --link-bg: rgba(0, 255, 65, 0.05);
    --link-border: rgba(0, 255, 65, 0.3);
    --accent-color: #ff0080;
    --secondary-accent: #00ff41;
    --bg-primary: #0d0d0d;
    --bg-gradient: linear-gradient(-45deg, #0d0d0d, #1a0a1a, #0d1a0d, #0d0d1a);
}

/* Sunset Theme */
[data-theme="sunset"] {
    --text-color: #fff5e6;
    --link-bg: rgba(255, 107, 53, 0.1);
    --link-border: rgba(255, 107, 53, 0.3);
    --accent-color: #ff6b35;
    --secondary-accent: #f7c59f;
    --bg-primary: #2d1b2d;
    --bg-gradient: linear-gradient(-45deg, #2d1b2d, #4a1942, #6b2d3a, #8b4513);
}

/* Ocean Theme */
[data-theme="ocean"] {
    --text-color: #e0f7fa;
    --link-bg: rgba(0, 188, 212, 0.1);
    --link-border: rgba(0, 188, 212, 0.3);
    --accent-color: #00bcd4;
    --secondary-accent: #4dd0e1;
    --bg-primary: #004d5a;
    --bg-gradient: linear-gradient(-45deg, #004d5a, #006064, #00838f, #0097a7);
}

/* Forest Theme */
[data-theme="forest"] {
    --text-color: #e8f5e9;
    --link-bg: rgba(76, 175, 80, 0.1);
    --link-border: rgba(76, 175, 80, 0.3);
    --accent-color: #4caf50;
    --secondary-accent: #81c784;
    --bg-primary: #1b2e1b;
    --bg-gradient: linear-gradient(-45deg, #1b2e1b, #2e4a2e, #1a3a1a, #0d260d);
}

/* Neon Theme */
[data-theme="neon"] {
    --text-color: #ffffff;
    --link-bg: rgba(255, 0, 255, 0.1);
    --link-border: rgba(0, 255, 255, 0.3);
    --accent-color: #00ffff;
    --secondary-accent: #ff00ff;
    --bg-primary: #0a0a0a;
    --bg-gradient: linear-gradient(-45deg, #0a0a0a, #1a0a2e, #0a1a2e, #0a0a1a);
}

/* Midnight Theme */
[data-theme="midnight"] {
    --text-color: #c5cae9;
    --link-bg: rgba(63, 81, 181, 0.1);
    --link-border: rgba(63, 81, 181, 0.3);
    --accent-color: #3f51b5;
    --secondary-accent: #7986cb;
    --bg-primary: #0d1321;
    --bg-gradient: linear-gradient(-45deg, #0d1321, #1a237e, #121858, #0d1321);
}

/* Rose Theme */
[data-theme="rose"] {
    --text-color: #fce4ec;
    --link-bg: rgba(233, 30, 99, 0.1);
    --link-border: rgba(233, 30, 99, 0.3);
    --accent-color: #e91e63;
    --secondary-accent: #f48fb1;
    --bg-primary: #2d1b2d;
    --bg-gradient: linear-gradient(-45deg, #2d1b2d, #4a1a3d, #3d1a3d, #2d1026);
}

/* Aurora Theme */
[data-theme="aurora"] {
    --text-color: #e8f5e9;
    --link-bg: rgba(156, 39, 176, 0.1);
    --link-border: rgba(0, 230, 118, 0.3);
    --accent-color: #00e676;
    --secondary-accent: #aa00ff;
    --bg-primary: #0d1b2a;
    --bg-gradient: linear-gradient(-45deg, #0d1b2a, #1b2838, #0d2818, #1a0d2a);
}

/* =============== LOADING SCREEN =============== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--link-border);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============== BASE STYLES =============== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: #0f0c29;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* =============== THEME TOGGLE =============== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--link-border);
    background: var(--link-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* Theme Picker Panel */
.theme-picker {
    position: fixed;
    top: 75px;
    right: 20px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.theme-picker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-picker-title {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.theme-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: scale(1.2);
}

.theme-option.active {
    border-color: var(--accent-color);
}

.theme-option.dark { background: linear-gradient(135deg, #0f0c29, #302b63); }
.theme-option.light { background: linear-gradient(135deg, #f5f5f5, #e0e0e0); }
.theme-option.cyberpunk { background: linear-gradient(135deg, #0d0d0d, #ff0080); }
.theme-option.sunset { background: linear-gradient(135deg, #2d1b2d, #ff6b35); }
.theme-option.ocean { background: linear-gradient(135deg, #004d5a, #00bcd4); }
.theme-option.forest { background: linear-gradient(135deg, #1b2e1b, #4caf50); }
.theme-option.neon { background: linear-gradient(135deg, #0a0a0a, #00ffff, #ff00ff); }
.theme-option.midnight { background: linear-gradient(135deg, #0d1321, #3f51b5); }
.theme-option.rose { background: linear-gradient(135deg, #2d1b2d, #e91e63); }
.theme-option.aurora { background: linear-gradient(135deg, #0d1b2a, #00e676, #aa00ff); }

/* =============== LANGUAGE TOGGLE =============== */
.lang-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 5px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 25px;
    padding: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.lang-btn.active {
    background: var(--accent-color);
    color: #000;
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

/* =============== STATUS BADGE =============== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid rgba(0, 255, 100, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    margin-top: 15px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff64;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 100, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 255, 100, 0.1); }
}

/* =============== TIMEZONE =============== */
.timezone {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.timezone i {
    font-size: 0.9rem;
}

/* =============== CURSOR TRAIL =============== */
.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: transform 0.1s ease;
}

/* =============== CONTACT MODAL =============== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background: var(--bg-primary);
    border: 1px solid var(--link-border);
    border-radius: 25px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .contact-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid var(--link-border);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff4444;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--link-border);
    border-radius: 12px;
    background: var(--link-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

/* Keyboard focus styles */
.link-btn:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.3);
}

.link-btn.focused {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* =============== EASTER EGG =============== */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.easter-egg-active {
    animation: rainbow 2s linear infinite;
}

.easter-egg-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 30px var(--accent-color);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.easter-egg-text.active {
    opacity: 1;
    visibility: visible;
    animation: easterFadeIn 0.5s ease;
}

@keyframes easterFadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =============== PROFILE SECTION =============== */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInBlur 1.2s ease-out;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--link-border);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
    margin-bottom: 15px;
    animation: floating 6s ease-in-out infinite;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.profile-img:hover {
    box-shadow: 0 0 60px rgba(0, 210, 255, 0.5), 0 0 100px rgba(157, 80, 187, 0.3);
    transform: translateY(-5px) scale(1.05);
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

h1 { 
    font-size: 1.7rem; 
    font-weight: 600; 
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme-specific h1 gradients */
[data-theme="light"] h1 {
    background: linear-gradient(to right, #1a1a2e, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="cyberpunk"] h1 {
    background: linear-gradient(to right, #00ff41, #ff0080);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="sunset"] h1 {
    background: linear-gradient(to right, #fff5e6, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="ocean"] h1 {
    background: linear-gradient(to right, #e0f7fa, #00bcd4);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="forest"] h1 {
    background: linear-gradient(to right, #e8f5e9, #4caf50);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="neon"] h1 {
    background: linear-gradient(to right, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="midnight"] h1 {
    background: linear-gradient(to right, #c5cae9, #3f51b5);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="rose"] h1 {
    background: linear-gradient(to right, #fce4ec, #e91e63);
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="aurora"] h1 {
    background: linear-gradient(to right, #00e676, #aa00ff);
    -webkit-background-clip: text;
    background-clip: text;
}

.bio {
    font-size: 0.95rem;
    opacity: 0.7;
    margin: 5px 0 0 0;
    letter-spacing: 0.5px;
}

/* =============== LINK BUTTONS =============== */
.links-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: slideInBlur 0.6s ease forwards;
    overflow: hidden;
}

/* Shine Effect Overlay */
.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

/* Staggered Entrance */
.link-btn:nth-child(1) { animation-delay: 0.2s; }
.link-btn:nth-child(2) { animation-delay: 0.3s; }
.link-btn:nth-child(3) { animation-delay: 0.4s; }
.link-btn:nth-child(4) { animation-delay: 0.5s; }
.link-btn:nth-child(5) { animation-delay: 0.6s; }

.link-btn i {
    position: absolute;
    left: 20px;
    font-size: 1.4rem;
    color: var(--accent-color);
}

.link-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.link-btn:active {
    transform: scale(0.95);
}

/* Platform-specific hover colors */
.link-btn.instagram:hover {
    border-color: #E1306C;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.3);
}
.link-btn.instagram:hover i { color: #E1306C; }

.link-btn.linkedin:hover {
    border-color: #0A66C2;
    box-shadow: 0 10px 30px rgba(10, 102, 194, 0.3);
}
.link-btn.linkedin:hover i { color: #0A66C2; }

.link-btn.github:hover {
    border-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}
.link-btn.github:hover i { color: #fff; }

.link-btn.website:hover {
    border-color: #00d2ff;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.link-btn.email:hover {
    border-color: #9d50bb;
    box-shadow: 0 10px 30px rgba(157, 80, 187, 0.3);
}
.link-btn.email:hover i { color: #9d50bb; }

.link-btn.calendly:hover {
    border-color: #006bff;
    box-shadow: 0 10px 30px rgba(0, 107, 255, 0.3);
}
.link-btn.calendly:hover i { color: #006bff; }

/* Tooltips */
.link-btn .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    z-index: 10;
}

.link-btn .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.link-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInBlur {
    from { opacity: 0; filter: blur(10px); transform: translateY(-20px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes slideInBlur {
    from { opacity: 0; filter: blur(5px); transform: translateX(-30px); }
    to { opacity: 1; filter: blur(0); transform: translateX(0); }
}

/* =============== FOOTER =============== */
footer {
    margin-top: auto;
    padding-top: 40px;
    font-size: 0.8rem;
    opacity: 0.4;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-align: center;
}

footer .timezone {
    opacity: 1;
}

.profile-section, .links-container {
    position: relative;
    z-index: 1;
}

/* =============== ACCESSIBILITY =============== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    z-index: 10001;
    transition: top 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* =============== ACTION BUTTONS =============== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--link-border);
    background: var(--link-bg);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn .action-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    pointer-events: none;
}

.action-btn:hover .action-tooltip {
    opacity: 1;
    visibility: visible;
}

.action-btn.copied {
    border-color: #00ff64;
    color: #00ff64;
}

/* =============== QR CODE MODAL =============== */
#qrModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#qrModal.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--link-border);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#qrModal.active .qr-modal-content {
    transform: scale(1);
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.qr-code img, .qr-code canvas {
    border-radius: 10px;
    background: white;
    padding: 10px;
}

/* =============== SHARE MODAL =============== */
#shareModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#shareModal.active {
    opacity: 1;
    visibility: visible;
}

.share-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--link-border);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    min-width: 280px;
}

#shareModal.active .share-modal-content {
    transform: scale(1);
}

.share-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.share-options a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    width: 70px;
    background: var(--link-bg);
    border: 1px solid var(--link-border);
}

.share-options a:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.share-options a i {
    font-size: 1.5rem;
}

/* =============== COOKIE BANNER =============== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--link-border);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.cookie-btn.accept:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.cookie-btn.decline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--link-border);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* =============== MISC =============== */
#qrcode {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
}

#qrcode canvas {
    display: block;
}

.qr-close {
    margin-top: 20px;
    padding: 10px 25px;
    border: 1px solid var(--link-border);
    background: transparent;
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.qr-close:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Typewriter cursor */
.typewriter-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 3D Tilt Effect */
.link-btn.tilt-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Gradient border animation */
.link-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-accent), var(--accent-color));
    background-size: 200% 200%;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.link-btn:hover::after {
    opacity: 1;
    animation: gradientRotate 2s linear infinite;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* GitHub Stats */
.github-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.github-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.github-stat i {
    color: var(--accent-color);
}

/* Pull to refresh indicator */
.pull-indicator {
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: top 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.pull-indicator.visible {
    top: 20px;
}

.pull-indicator i {
    animation: spin 1s linear infinite;
}

/* Enhanced focus indicators */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* =============== GREETING =============== */
.greeting {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== SKILLS SECTION =============== */
.skills-section {
    margin: 20px 0;
    text-align: center;
    max-width: 500px;
}

.skills-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-badge {
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
}

.skill-badge:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* =============== PORTFOLIO SECTION =============== */
.portfolio-section {
    margin: 30px 0;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.portfolio-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.portfolio-card {
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.portfolio-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 15px;
}

.portfolio-info h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: var(--text-color);
}

.portfolio-info p {
    margin: 0 0 12px 0;
    font-size: 0.8rem;
    opacity: 0.7;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.portfolio-link:hover {
    gap: 10px;
}

/* Portfolio Header (for GitHub repos) */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--link-border);
}

.portfolio-header > i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.portfolio-stats {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.portfolio-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.portfolio-stats i {
    font-size: 0.7rem;
}

.portfolio-meta {
    margin-bottom: 10px;
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Skill badge with icon */
.skill-badge i {
    margin-right: 4px;
    font-size: 0.9rem;
}

/* =============== LINKS SECTION =============== */
.links-section {
    margin: 30px 0;
    text-align: center;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.links-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== SCROLL REVEAL (for links) =============== */
.link-btn {
    animation: fadeInUp 0.5s ease forwards;
}

.link-btn:nth-child(1) { animation-delay: 0.1s; }
.link-btn:nth-child(2) { animation-delay: 0.2s; }
.link-btn:nth-child(3) { animation-delay: 0.3s; }
.link-btn:nth-child(4) { animation-delay: 0.4s; }
.link-btn:nth-child(5) { animation-delay: 0.5s; }
.link-btn:nth-child(6) { animation-delay: 0.6s; }

/* =============== POPULAR BADGE =============== */
.popular-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff6b35, #ff4444);
    color: white;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    animation: pulse 2s infinite;
    z-index: 10;
}

.popular-badge i {
    font-size: 0.6rem;
}

/* =============== CHANGELOG MODAL =============== */
#changelogModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

#changelogModal.active {
    opacity: 1;
    visibility: visible;
}

.changelog-modal-content {
    background: var(--link-bg);
    border: 1px solid var(--link-border);
    border-radius: 20px;
    padding: 25px;
    width: 90%;
    max-width: 450px;
    max-height: 75vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
}

.changelog-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--link-border);
}

.changelog-item:last-child {
    border-bottom: none;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.changelog-version {
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.changelog-date {
    font-size: 0.75rem;
    opacity: 0.6;
}

.changelog-changes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.changelog-change {
    font-size: 0.82rem;
    opacity: 0.8;
    line-height: 1.5;
    padding-left: 4px;
}

.changelog-change i {
    font-size: 0.65rem;
    margin-right: 6px;
    opacity: 0.7;
}

.changelog-change i.fa-plus-circle {
    color: #4caf50;
    opacity: 1;
}

.changelog-change i.fa-pen-circle {
    color: #ff9800;
    opacity: 1;
}

.changelog-change i.fa-bug {
    color: #f44336;
    opacity: 1;
}

.changelog-change i.fa-trash {
    color: #9e9e9e;
    opacity: 1;
}

.changelog-loading {
    text-align: center;
    padding: 30px;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* =============== AUTO THEME OPTION =============== */
.theme-option.auto {
    background: linear-gradient(135deg, #1a1a2e 50%, #f5f5f5 50%);
    position: relative;
}

.theme-option.auto::after {
    content: 'A';
    position: absolute;
    font-size: 10px;
    font-weight: bold;
    color: var(--accent-color);
}

/* =============== PRINT STYLES =============== */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding: 20px;
    }
    
    .loader-wrapper,
    .theme-toggle,
    .theme-picker,
    .lang-toggle,
    .cursor-trail,
    #particles-canvas,
    .action-buttons,
    .cookie-banner,
    .modal-overlay,
    #qrModal,
    #shareModal,
    #changelogModal,
    .skip-link,
    .pull-indicator {
        display: none !important;
    }
    
    .link-btn {
        background: white !important;
        border: 1px solid #333 !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    .link-btn::before,
    .link-btn::after {
        display: none !important;
    }
    
    .profile-section {
        margin-bottom: 20px;
    }
    
    .profile-img {
        width: 80px;
        height: 80px;
        border: 2px solid #333;
    }
    
    footer {
        margin-top: 30px;
        border-top: 1px solid #333;
        padding-top: 15px;
    }
    
    .github-stats {
        color: black !important;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
    
    .link-btn::after {
        content: " (" attr(href) ")";
        font-size: 0.7rem;
        opacity: 0.6;
    }
}

/* =============== CUSTOM CURSOR =============== */
@media (hover: hover) {
    body {
        cursor: default;
    }
    
    a, button, .link-btn, .theme-option, .action-btn {
        cursor: pointer;
    }
}

/* Theme-specific cursor colors handled by CSS variables */
.cursor-trail {
    background: var(--accent-color);
}
