/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Explicit button reset to remove all default browser styling */
button, .nav-icon, .theme-toggle {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

button:focus, .nav-icon:focus, .theme-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

:root {
    /* Dark Mode Variables (Default) */
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --navbar-bg: rgba(0, 0, 0, 0.95);
    --card-bg: #1a1a1a;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #ffffff;
    --accent-rgb: 255, 255, 255;
    --accent-bg: rgba(255, 255, 255, 0.1);
    --navbar-height: 60px; /* Added variable for navbar height */
}

/* Light Mode Variables - Clean Bright Design */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #2c2c2c;
    --text-secondary: #5a5a5a;
    --text-muted: #8a8a8a;
    --border-color: #e0e0e0;
    --navbar-bg: rgba(255, 255, 255, 0.98);
    --card-bg: #fafafa;
    --hover-bg: #f0f0f0;
    --glow-color: rgba(0, 0, 0, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.06);
    --accent-color: #000000;
    --accent-rgb: 0, 0, 0;
    --accent-bg: rgba(0, 0, 0, 0.05);
    --navbar-height: 60px; /* Added variable for navbar height */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px; /* Increased padding for taller navbar */
    border: 1px solid var(--border-color);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px var(--shadow-color); 
    max-width: 420px;
    width: auto;
}

/* --- Navbar: Perfect Center Expansion --- */
.navbar {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1000;
    padding: 6px 16px;
    /* Use transform for center positioning */
    transform: translateX(-50%);
    /* Set explicit dimensions for smooth transitions */
    width: 280px; /* Further reduced from 340px to make it more compact */
    height: 52px; /* Fixed height to prevent jumping */
    /* Smooth transition */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Collapsed navbar when scrolled */
.navbar.scrolled {
    /* Collapse to circular shape */
    width: 60px;
    height: 60px;
    padding: 16px;
    border-radius: 50%;
    overflow: hidden;
    /* Keep centered with transform */
    transform: translateX(-50%);
    /* Same smooth transition */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Expanded navbar on hover - expand from center */
.navbar.scrolled:hover {
    /* Expand to wider shape */
    width: 280px; /* Match the default navbar width */
    height: 52px; /* Same height as base navbar to prevent jumping */
    padding: 6px 16px;
    border-radius: 50px;
    /* Keep centered with transform */
    transform: translateX(-50%);
    /* Same smooth transition */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Prevent layout jump by reserving space for expanded navbar */
@media (min-width: 600px) {
  .navbar {
    min-width: 56px;
    min-height: 56px;
  }
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    height: 40px; /* Fixed height to prevent jumping */
}

/* Container bleibt flexibel für organische Animation */
.navbar.scrolled .nav-container {
    gap: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    align-items: center;
    height: 40px; /* Consistent height */
}

/* Container beim Hover expandieren */
.navbar.scrolled:hover .nav-container {
    gap: 16px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    height: 40px; /* Consistent height */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    justify-content: center;
    position: relative;
}

/* Nav links in collapsed state */
.navbar.scrolled .nav-links {
    gap: 8px; /* Reduzierter Gap für smoothere Animation */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    justify-content: center;
    position: relative;
}

/* Nav-Links im Hover-Zustand - match gap with default state */
.navbar.scrolled:hover .nav-links {
    gap: 12px; /* Match the gap of the default navbar */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 0; /* Remove circular styling */
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

.nav-icon.active-nav-link {
    opacity: 1;
    transform: scale(1.1);
    color: var(--accent-color);
    position: relative;
    /* Subtle glow effect instead of background */
    text-shadow: 0 0 5px var(--accent-color);
    background-color: transparent !important;
}

/* Light Mode Active Nav Link */
[data-theme="light"] .nav-icon.active-nav-link {
    color: #000000;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    background-color: transparent !important;
}

.nav-icon:hover {
    color: var(--text-primary);
    background: none !important; /* Remove background on hover */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transform: translateY(-2px); /* Subtle lift effect instead */
}

/* Remove old Creative Icon specific styles - now all icons are consistent */
/* Theme Toggle Button - Clean styling without borders */
.theme-toggle {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000;
    position: relative;
    border-radius: 0 !important; /* Match other icons */
    /* Remove box-shadow borders */
    box-shadow: none;
    transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Remove border styling for light mode */
[data-theme="light"] .theme-toggle {
    box-shadow: none;
}

.theme-toggle:hover {
    background: none !important; /* Keep consistent with other icons */
    transform: translateY(-2px); /* Match other icons hover effect */
    /* Remove box-shadow on hover */
    box-shadow: none;
}

[data-theme="light"] .theme-toggle:hover {
    box-shadow: none;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Dark theme: Show sun, hide moon */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none !important;
}

/* Light theme: Hide sun, show moon */
[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block !important;
}

/* Home Icon - larger and always centered */
.nav-home {
    width: 44px !important;
    height: 44px !important;
    z-index: 100;
    position: relative;
    /* Ensure consistent centering */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Smooth transition for all changes */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-home svg {
    width: 26px !important;
    height: 26px !important;
}

/* Left icons - fade out to the left with smooth transition */
.nav-left {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled .nav-left {
    opacity: 0;
    transform: translateX(-50px) scale(0.6);
    pointer-events: none;
}

/* Right icons - fade out to the right with smooth transition */
.nav-right {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled .nav-right {
    opacity: 0;
    transform: translateX(50px) scale(0.6);
    pointer-events: none;
}

/* Home icon gets glow effect when navbar collapsed */
.navbar.scrolled .nav-home {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    border: none; /* Remove border */
    box-shadow: 0 0 20px var(--glow-color);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1; /* Sicherstellen dass Home-Icon sichtbar bleibt */
    /* Remove transform override to prevent jumping */
    /* Center the home icon in collapsed state */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Move icon higher to true center */
    transform: translateY(-6px);
}

.navbar.scrolled .nav-home:hover {
    background-color: var(--hover-bg);
    transform: scale(1.05);
    transition: all 0.3s ease; /* Quick hover response */
}

/* Icons wieder anzeigen beim Hover */
.navbar.scrolled:hover .nav-left,
.navbar.scrolled:hover .nav-right {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Home Icon zurück zu normal beim Navbar Hover - without borders */
.navbar.scrolled:hover .nav-home {
    background-color: transparent;
    border: none; /* Remove border */
    box-shadow: none;
    color: var(--text-muted);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled:hover .nav-links a:first-child:hover {
    color: var(--text-primary);
    background-color: var(--hover-bg);
    transform: scale(1);
}

/* SVG Icon Styling */
.nav-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
    color: inherit;
    transition: all 0.3s ease;
}

.navbar.scrolled:hover .nav-links a:first-child svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Icon animation on hover of collapsed navbar */
.navbar.scrolled:hover .nav-links a:not(:first-child) {
    opacity: 1 !important;
    transform: scale(1) translateX(0) !important;
    pointer-events: auto !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main Content */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 140px 20px 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 120px;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-image {
    margin-bottom: 40px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: opacity 0.1s ease-out;
}

/* Light Mode General Text Fixes */
[data-theme="light"] .hero-title {
    color: var(--text-primary) !important;
}

.hero-subtitle {
    color: var(--text-muted);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

/* Light Mode General Text Fixes */
[data-theme="light"] .hero-description {
    color: var(--text-secondary) !important;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: #333333;
    color: white;
    border: 1px solid #555555;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #444444;
    border-color: #666666;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
}

/* Light Mode General Text Fixes */
[data-theme="light"] .section-title {
    color: var(--text-primary) !important;
}

.about-section {
    margin-bottom: 120px;
}

.about-intro {
    font-size: 1.3rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-highlight {
    font-size: 1.1rem;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #ffffff;
}

.about-text {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Light Mode General Text Fixes */
[data-theme="light"] .about-text {
    color: var(--text-secondary) !important;
}

/* Skills Section */
.skills-section {
    margin-bottom: 120px;
    text-align: center;
}

.skills-section .section-title {
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    display: inline-block;
    margin: 0 auto 40px auto;
    position: relative;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Light Mode General Text Fixes */
[data-theme="light"] .skill-category h3 {
    color: var(--text-primary) !important;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

/* Light Mode General Text Fixes */
[data-theme="light"] .skill-category li {
    color: var(--text-secondary) !important;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects-section {
    margin-bottom: 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.filter-btn:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
    border: 1px solid var(--text-secondary);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--accent-color) !important; /* Changed from 2px to 1px to match cards */
    box-shadow: 0 8px 20px var(--shadow-color) !important; /* Reduced shadow to match creative cards */
    transform: translateY(-2px) !important;
}


/* Loading Animation */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #cccccc;
}

.projects-loading.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Project Cards */
.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--border-color);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #111111 0%, #222222 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

/* Zoom-Effekt entfernt für weniger aufdringliche GitHub Open Graph Images */

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(34, 34, 34, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-stats {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 12px;
}

.project-stat {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-header h3 {
    margin: 0;
    transition: all 0.3s ease;
}

.project-header h3:hover {
    transform: translateX(2px);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
    flex: 1;
}

/* Light Mode Project Card Text Colors */
[data-theme="light"] .project-content h3 {
    color: #1a1a1a !important; /* Dark color for titles */
}

[data-theme="light"] .project-content p {
    color: #4a4a4a !important; /* Dark gray for descriptions */
}

[data-theme="light"] .project-tech .project-topic {
    background: rgba(0, 0, 0, 0.1);
    color: #2d2d2d !important; /* Dark color for tech tags */
}

/* Project language tags keep their custom colors in light mode */
[data-theme="light"] .project-tech .project-language {
    border-color: transparent !important;
    color: #ffffff !important; /* Ensure text is white for better contrast with colored backgrounds */
    font-weight: 700 !important; /* Make text slightly bolder in light mode for better visibility */
}

[data-theme="light"] .project-updated {
    color: #666666 !important; /* Medium gray for update text */
}

[data-theme="light"] .project-title-link {
    color: #1a1a1a !important; /* Dark color for title links */
}

[data-theme="light"] .project-title-link:hover {
    color: #000000 !important; /* Darker on hover */
}

.project-links {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
}

.project-title-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.project-title-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.project-title-link:visited {
    color: inherit;
}

.project-content p {
    color: #cccccc;
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.project-tech span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.project-tech .project-topic {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.project-tech .project-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-transform: uppercase;
}

.project-tech .project-language:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.project-tech .languages-loading {
    font-style: italic;
    opacity: 0.6;
    background: none;
    padding: 4px 0;
}

.project-updated {
    color: #888888;
    font-size: 12px;
    margin-top: 8px;
}

/* Error State */
.projects-error {
    text-align: center;
    padding: 60px 20px;
    color: #e53e3e;
}

.projects-error h3 {
    margin-bottom: 16px;
    color: #e53e3e;
}

.projects-error p {
    color: #a0aec0;
    margin-bottom: 20px;
}

.retry-btn {
    color: #fff;
    background: linear-gradient(90deg, #e53e3e 0%, #ff6b6b 100%);
    border: none;
    padding: 0.7em 1.6em;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.8em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(229, 62, 62, 0.25);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

body[data-theme="dark"] .retry-btn {
    color: #fff;
    background: linear-gradient(90deg, #e53e3e 0%, #ff6b6b 100%);
    border: none;
    box-shadow: 0 4px 24px rgba(229, 62, 62, 0.35);
}

body[data-theme="light"] .retry-btn {
    color: #fff;
    background: linear-gradient(90deg, #e53e3e 0%, #ff6b6b 100%);
    border: none;
    box-shadow: 0 4px 24px rgba(229, 62, 62, 0.18);
}

.retry-btn:hover {
    background: linear-gradient(90deg, #ff6b6b 0%, #e53e3e 100%);
    color: #fff;
    box-shadow: 0 8px 32px rgba(229, 62, 62, 0.45);
    transform: translateY(-2px) scale(1.07);
}

/* Project Card Animations */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInProject 0.6s ease-out forwards;
}

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

@keyframes fadeInProject {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframe Animations für die Navigation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideToCenter {
    from {
        transform: translateX(0);
        background-color: rgba(255, 255, 255, 0.1);
    }
    to {
        transform: translateX(calc(50vw - 50px - 20px));
        background-color: rgba(255, 255, 255, 0.2);
    }
}

@keyframes slideFromCenter {
    from {
        transform: translateX(calc(50vw - 50px - 20px));
        background-color: rgba(255, 255, 255, 0.2);
    }
    to {
        transform: translateX(0);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Contact Section */
.contact-section {
    margin-bottom: 120px;
    text-align: center;
}

/* Links Container */
.links-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 0;
}

.links-row {
    margin-bottom: 40px;
}

.links-row:last-child {
    margin-bottom: 0;
}

.links-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.links-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Base Link Icon Styles */
.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

/* Hover Shine Effect */
.link-icon::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: left 0.5s ease;
}

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

/* Hover State */
.link-icon:hover {
    background: var(--hover-bg);
    border-color: var(--glow-color);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* SVG Transitions and Color Inheritance */
.link-icon svg {
    transition: all 0.3s ease;
    color: var(--text-primary); /* Ensure all SVGs use primary text color */
}

/* Steam Icon Fix - Force color inheritance */
.link-icon svg path {
    stroke: currentColor;
    fill: none;
}

.link-icon:hover svg {
    color: var(--glow-color);
    transform: scale(1.1);
}

/* Entfernt - Steam Icon verwendet jetzt die Standard .link-icon Styles */

/* Creative Section */
.creative-section {
    padding: 80px 0;
    text-align: center;
}

.creative-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.creative-preview {
    max-width: 900px;
    margin: 0 auto;
}

.creative-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.creative-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.creative-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.creative-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.creative-item:hover .creative-icon {
    /* Background change removed */
    color: var(--accent-color);
    transform: scale(1.1);
}

.creative-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.creative-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Vinyl collection card arrow hover effect */
.vinyl-collection-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 16px;
    background: white;
    color: black;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.vinyl-collection-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    transform: translateY(-2px);
}

.vinyl-collection-btn svg {
    transition: transform 0.6s ease;
}

.creative-item:hover .vinyl-collection-btn svg {
    transform: translate(3px, -3px);
}

.creative-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-color);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.creative-gallery-btn:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.creative-gallery-btn svg {
    transition: transform 0.3s ease;
}

.creative-gallery-btn:hover svg {
    color: inherit;
    transform: translate(2px, -2px);
}

/* Responsive Design für Creative Section */
@media (max-width: 768px) {
    .creative-items {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .creative-item {
        padding: 25px 15px;
    }
    
    .creative-icon {
        width: 60px;
        height: 60px;
    }
    
    .creative-gallery-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 6px 14px;
    }
    
    .navbar.scrolled {
        padding: 5px 10px;
        transform: translateX(-50%) scale(0.85);
    }
    
    .nav-container {
        gap: 14px;
    }
    
    .navbar.scrolled .nav-container {
        gap: 6px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .navbar.scrolled .nav-links {
        gap: 4px;
    }
    
    .main-content {
        padding: 100px 20px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .links-container {
        padding: 0 20px;
    }
    
    .links-icons {
        gap: 20px;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
    }
    
    .links-row {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .navbar {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 52px !important;
        max-width: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    .navbar.scrolled {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) scale(0.9) !important;
        width: 52px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }
    
    .main-content {
        padding: 90px 15px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .links-icons {
        gap: 15px;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
    }
    
    .link-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .links-row {
        margin-bottom: 25px;
    }
    
    .links-subtitle {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.about-section,
.skills-section,
.projects-section,
.contact-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Light Mode specific adjustments */

/* Light Mode navbar adjustments */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar.scrolled .nav-home {
    background-color: #f5f5f5;
    color: var(--text-primary);
    border: 2px solid #e8e8e8;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.03);
}

/* Light Mode cards */
[data-theme="light"] .skill-category {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .project-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .project-card:hover {
    background: #f5f5f5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Light Mode Projekt-Image Gradient */
[data-theme="light"] .project-image {
    background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

/* Light Mode Filter Buttons */
[data-theme="light"] .filter-btn {
    background: #f8f8f8;
    color: var(--text-secondary);
    border: 1px solid #e8e8e8;
}

[data-theme="light"] .filter-btn.active {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--accent-color) !important; /* Changed from 2px to 1px to match cards */
    box-shadow: 0 8px 20px var(--shadow-color) !important; /* Reduced shadow to match creative cards */
    transform: translateY(-2px) !important;
}

[data-theme="light"] .filter-btn:hover {
    background: #f0f0f0;
    color: var(--text-primary);
    border: 1px solid #999999;
    transform: translateY(-1px);
}

/* Light Mode Contact Methods */
[data-theme="light"] .contact-method {
    background: #f8f8f8;
    border: 1px solid #e8e8e8;
}

[data-theme="light"] .contact-method:hover {
    background: #f0f0f0;
    border-color: #d8d8d8;
}

/* Light Mode Vinyl Collection Button */
[data-theme="light"] .vinyl-collection-btn {
    background: #333333;
    color: #ffffff;
    border: 1px solid #333333;
}

[data-theme="light"] .vinyl-collection-btn:hover {
    background: #222222;
    color: #ffffff;
}

/* Light Mode Icon Visibility Fix */
[data-theme="light"] .link-icon:hover svg {
    color: #000000;
    transform: scale(1.1);
}

[data-theme="light"] .creative-icon {
    color: #000000;
}

[data-theme="light"] .creative-item:hover .creative-icon {
    color: #000000;
    /* Background change removed */
    transform: scale(1.1);
}

/* Light Mode General Text Fixes */
[data-theme="light"] .hero-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .section-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .about-text {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .skill-category h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .skill-category li {
    color: var(--text-secondary) !important;
}

/* Scrolling Enhancements for Sections */
.creative-section, 
.projects-section, 
.contact-section {
    scroll-margin-top: var(--navbar-height, 60px);
    position: relative;
}

#hero {
    scroll-margin-top: 20px;
}

/* Ensures the same level of spacing appears visually after scrolling to each section */
.creative-section::before,
.projects-section::before,
.contact-section::before {
    content: '';
    display: block;
    height: 20px;
    margin-top: -20px;
    visibility: hidden;
}

/* When navbar is NOT scrolled (at top) - ensure all elements are in normal state */
.navbar:not(.scrolled) .nav-left,
.navbar:not(.scrolled) .nav-right {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar:not(.scrolled) .nav-home {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-muted);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar:not(.scrolled) .nav-container {
    gap: 16px;
    height: 40px; /* Consistent height to prevent jumping */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar:not(.scrolled) .nav-links {
    gap: 12px;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Invisible top anchor for home navigation */
#top {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}
/* Vinyl Collection Specific Styles */

/* Vinyl Main Container */
.vinyl-main {
    padding: 120px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.vinyl-hero {
    text-align: center;
    margin-bottom: 60px;
}

.vinyl-icon {
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Remove the continuous animation - only spin on hover */
.vinyl-icon svg {
    filter: drop-shadow(0 4px 12px var(--shadow-color));
}

@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-icon-link {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.5s ease;
    color: inherit;
    position: relative;
}

.vinyl-icon-link:hover {
    opacity: 0.95;
}

/* Enhanced spin effect for the vinyl disc */
.vinyl-disc {
    transform-origin: center;
    transition: transform 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.vinyl-icon-link:hover .vinyl-disc {
    transform: rotate(360deg);
}

.vinyl-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Collection Stats */
.collection-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--hover-bg);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Controls Section */
.vinyl-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.search-container svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#vinyl-search {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

#vinyl-search:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--glow-color);
}

#vinyl-search::placeholder {
    color: var(--text-muted);
}

.filter-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 12px 40px 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    min-width: 140px;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--glow-color);
}

.filter-controls select option {
    background: var(--card-bg);
    color: var(--text-primary);
}

/* Loading State */
.vinyl-loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.loading-vinyl {
    margin-bottom: 24px;
}

.loading-vinyl svg {
    animation: vinylSpin 2s linear infinite;
    color: var(--text-primary);
}

.loading-vinyl .vinyl-disc {
    transform-origin: center;
}

.vinyl-loading p {
    font-size: 1.1rem;
    margin: 0;
}

/* Error State */
.vinyl-error {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.error-icon {
    margin-bottom: 24px;
    color: #ef4444;
}

.vinyl-error h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.vinyl-error p {
    margin-bottom: 24px;
    font-size: 1rem;
}

.vinyl-error button {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vinyl-error button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Vinyl Grid */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 0 20px;
    margin-bottom: 60px;
}

.vinyl-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vinyl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-color);
    border-color: var(--text-primary);
}

.vinyl-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.vinyl-cover a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.vinyl-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.vinyl-info {
    padding: 20px;
}

.vinyl-artist {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.vinyl-artist:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.vinyl-title-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.vinyl-title-text:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.vinyl-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.vinyl-title a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.vinyl-title a:hover {
    color: var(--accent-color);
}

.vinyl-title a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.vinyl-year {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.vinyl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.vinyl-format {
    background: var(--hover-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.vinyl-genre {
    background: var(--hover-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    background-color: rgba(var(--accent-rgb), 0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    padding: 0 20px;
}

.pagination button {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Setup Instructions */
.setup-instructions {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.setup-instructions h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.setup-instructions ol {
    text-align: left;
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.setup-instructions li {
    margin-bottom: 12px;
}

.setup-instructions code {
    background: var(--hover-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.setup-instructions p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Add cursor styles to indicate clickable elements */
.vinyl-cover a:hover::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vinyl-main {
        padding: 100px 16px 40px;
    }
    
    .vinyl-title {
        font-size: 2.2rem;
    }
    
    .collection-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .stat-item {
        padding: 24px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .vinyl-controls {
        padding: 0;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-controls select {
        width: 100%;
        max-width: 300px;
    }
    
    .vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        padding: 0;
    }
    
    .setup-instructions {
        margin: 40px 0;
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .vinyl-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vinyl-controls {
        gap: 16px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination button {
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile Home Icon Centering Fix - Improved */
@media (max-width: 600px) {
  .nav-links {
    justify-content: center !important;
  }
  .nav-home {
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 0 !important;
  }
}
