/* Custom styles for portfolio with theme support */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 16px;
}

html[data-theme="midnight"] {
    --bg-primary: #020617; /* Slate-950 for deeper depth */
    --bg-secondary: #0f172a; /* Slate-900 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Utility for Inter Font */
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* Premium Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

header {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(var(--glass-blur)) saturate(180%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

/* Hero Section with Background Image */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 4rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    filter: brightness(0.7) contrast(1.1);
    transition: filter 0.3s ease-in-out;
    will-change: transform;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}


/* Subtle animation on background */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

/* Overlay for better text readability with industrial theme matching */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(30, 41, 59, 0.75) 25%,
        rgba(51, 65, 85, 0.65) 45%,
        rgba(30, 41, 59, 0.70) 60%,
        rgba(15, 23, 42, 0.75) 75%,
        rgba(15, 23, 42, 0.80) 90%,
        rgba(15, 23, 42, 0.85) 100%
    );
    z-index: 2;
}

/* Theme-specific overlay adjustments */
html[data-theme="clean-office"] .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(249, 250, 251, 0.75) 25%,
        rgba(243, 244, 246, 0.65) 45%,
        rgba(249, 250, 251, 0.70) 60%,
        rgba(255, 255, 255, 0.75) 75%,
        rgba(255, 255, 255, 0.80) 90%,
        rgba(255, 255, 255, 0.85) 100%
    );
}

html[data-theme="clean-office"] .hero-background {
    filter: brightness(0.9) contrast(1.05);
}

/* Hero text styling for better contrast */
.hero-text {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7), 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 3;
}

html[data-theme="clean-office"] .hero-text {
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9), 0 4px 20px rgba(255, 255, 255, 0.6);
}

/* Enhanced blue accent for hero subtitle */
.hero-section .text-blue-400 {
    text-shadow: 0 2px 12px rgba(59, 130, 246, 0.5), 0 4px 20px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

html[data-theme="clean-office"] .hero-section .text-blue-400 {
    text-shadow: 0 2px 12px rgba(37, 99, 235, 0.4), 0 4px 20px rgba(255, 255, 255, 0.7);
}

/* Enhanced card styling within hero section for better readability */
.hero-section .bg-card {
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="clean-office"] .hero-section .bg-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Remove background boxes from Professional Summary items in hero section */
.hero-section .hero-text {
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Responsive adjustments for hero section */
@media (max-width: 1024px) {
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-section {
        min-height: 120vh;
        padding-bottom: 4rem;
    }
    
    .hero-background {
        background-position: center 20%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 110vh;
        padding: 3rem 1rem 6rem 1rem;
    }
    
    .hero-background {
        background-attachment: scroll;
        background-position: center 18%;
        filter: brightness(0.65) contrast(1.15);
    }
    
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.90) 0%,
            rgba(30, 41, 59, 0.80) 30%,
            rgba(51, 65, 85, 0.75) 50%,
            rgba(30, 41, 59, 0.80) 70%,
            rgba(15, 23, 42, 0.85) 90%,
            rgba(15, 23, 42, 0.88) 100%
        );
    }
}

/* Hide translated content until language is applied - prevents flash of wrong language */
html[lang="en"] [data-i18n]:not(.i18n-ready) {
    visibility: hidden !important;
    opacity: 0 !important;
    height: auto !important; /* Preserve layout */
}

html[lang="en"] [data-i18n].i18n-ready {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.15s ease-in-out;
}

/* For Greek (default), always show - no hiding needed */
html[lang="el"] [data-i18n] {
    visibility: visible;
    opacity: 1;
}

/* Smooth transitions for language switching */
[data-i18n] {
    transition: opacity 0.2s ease-in-out;
}

/* Theme transitions */
* {
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Midnight Theme (Dark) - Default - Slate/Blue Industrial */
html[data-theme="midnight"],
html:not([data-theme]) {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --card-bg: #1e293b;
    --card-hover-shadow: rgba(59, 130, 246, 0.15);
}

/* Clean Office Theme (Light) */
html[data-theme="clean-office"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --card-bg: #ffffff;
    --card-hover-shadow: rgba(0, 0, 0, 0.1);
}

/* Apply theme colors */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-midnight,
html:not([data-theme]) {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.theme-clean-office {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Theme-aware utility classes */
.bg-card {
    background-color: var(--card-bg) !important;
}

.bg-nav {
    background-color: var(--bg-secondary) !important;
}

.bg-footer {
    background-color: var(--bg-secondary) !important;
}

.bg-tertiary {
    background-color: var(--bg-tertiary) !important;
}

.border-theme {
    border-color: var(--border-color) !important;
}

.text-theme-primary {
    color: var(--text-primary) !important;
}

.text-theme-secondary {
    color: var(--text-secondary) !important;
}

.text-theme-tertiary {
    color: var(--text-tertiary) !important;
}

/* Theme-aware text-white - becomes dark in light mode for better readability */
html[data-theme="midnight"] .text-white,
html:not([data-theme]) .text-white {
    color: #ffffff !important;
}

/* White text becomes primary text color in light mode for better contrast on light backgrounds */
html[data-theme="clean-office"] .text-white {
    color: var(--text-primary) !important;
}

/* Keep white text on accent-colored buttons (they have dark backgrounds) */
html[data-theme="clean-office"] .bg-blue-600.text-white,
html[data-theme="clean-office"] .bg-blue-600:hover.text-white {
    color: #ffffff !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

html[data-theme="midnight"] ::-webkit-scrollbar-track,
html:not([data-theme]) ::-webkit-scrollbar-track {
    background: #1e293b;
}

html[data-theme="clean-office"] ::-webkit-scrollbar-track {
    background: #f3f4f6;
}

html[data-theme="midnight"] ::-webkit-scrollbar-thumb,
html:not([data-theme]) ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 5px;
}

html[data-theme="clean-office"] ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

html[data-theme="clean-office"] ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Language switcher styling */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
}

.lang-switcher button,
.lang-switcher [data-lang] {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

html[data-theme="midnight"] .lang-switcher [data-lang="el"],
html[data-theme="midnight"] .lang-switcher [data-lang="en"],
html:not([data-theme]) .lang-switcher [data-lang="el"],
html:not([data-theme]) .lang-switcher [data-lang="en"] {
    background-color: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

html[data-theme="clean-office"] .lang-switcher [data-lang="el"],
html[data-theme="clean-office"] .lang-switcher [data-lang="en"] {
    background-color: rgba(243, 244, 246, 0.8);
    color: #4b5563;
}

.lang-switcher [data-lang].active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-hover);
}

.lang-switcher [data-lang]:hover:not(.active) {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Theme switcher styling */
.theme-switcher {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}

.theme-switcher button,
.theme-switcher [data-theme] {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

html[data-theme="midnight"] .theme-switcher [data-theme],
html:not([data-theme]) .theme-switcher [data-theme] {
    background-color: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
}

html[data-theme="clean-office"] .theme-switcher [data-theme] {
    background-color: rgba(243, 244, 246, 0.8);
    color: #4b5563;
}

.theme-switcher [data-theme].active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-hover);
}

.theme-switcher [data-theme]:hover:not(.active) {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Smooth page transitions */
* {
    scroll-behavior: smooth;
}

/* Fade in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Card hover effects */
.project-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: var(--card-bg);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-hover-shadow);
}

/* Navigation styling with theme support */
html[data-theme="midnight"] nav,
html:not([data-theme]) nav {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

html[data-theme="clean-office"] nav {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

/* Navigation links alignment - ensure all links are vertically aligned */
nav .nav-link,
nav a[data-nav-page] {
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    min-height: 1.75rem;
    transition: all 0.2s ease-in-out;
}

/* Ensure active nav links maintain center alignment with others */
nav .nav-link.text-xl,
nav a[data-nav-page].text-xl {
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
}

/* Ensure consistent center alignment for all nav links container */
nav > div > div:first-child {
    display: flex;
    align-items: center;
}

html[data-theme="midnight"] nav a,
html:not([data-theme]) nav a {
    color: var(--text-secondary);
}

html[data-theme="clean-office"] nav a {
    color: var(--text-secondary);
}

html[data-theme="midnight"] nav a:hover,
html:not([data-theme]) nav a:hover,
html[data-theme="clean-office"] nav a:hover {
    color: var(--accent-color);
}

/* Footer styling with theme support */
html[data-theme="midnight"] footer,
html:not([data-theme]) footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-color);
}

html[data-theme="clean-office"] footer {
    background-color: var(--bg-secondary);
    border-top-color: var(--border-color);
}

html[data-theme="midnight"] footer p,
html:not([data-theme]) footer p,
html[data-theme="clean-office"] footer p {
    color: var(--text-secondary);
}

/* Section text colors */
html[data-theme="midnight"] .text-gray-400,
html:not([data-theme]) .text-gray-400 {
    color: var(--text-secondary) !important;
}

html[data-theme="clean-office"] .text-gray-400 {
    color: var(--text-secondary) !important;
}

html[data-theme="midnight"] .text-gray-500,
html:not([data-theme]) .text-gray-500 {
    color: var(--text-tertiary) !important;
}

html[data-theme="clean-office"] .text-gray-500 {
    color: var(--text-tertiary) !important;
}

html[data-theme="midnight"] .text-gray-300,
html:not([data-theme]) .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-theme="clean-office"] .text-gray-300 {
    color: var(--text-secondary) !important;
}

html[data-theme="midnight"] .text-slate-500,
html:not([data-theme]) .text-slate-500 {
    color: #64748b !important;
}

html[data-theme="clean-office"] .text-slate-500 {
    color: var(--text-tertiary) !important;
}

/* Accent colors */
html[data-theme="midnight"] .text-blue-400,
html:not([data-theme]) .text-blue-400 {
    color: var(--accent-color) !important;
}

html[data-theme="clean-office"] .text-blue-400 {
    color: var(--accent-color) !important;
}

html[data-theme="midnight"] .bg-blue-600,
html:not([data-theme]) .bg-blue-600 {
    background-color: var(--accent-color) !important;
}

html[data-theme="clean-office"] .bg-blue-600 {
    background-color: var(--accent-color) !important;
}

html[data-theme="midnight"] .bg-blue-600:hover,
html:not([data-theme]) .bg-blue-600:hover,
html[data-theme="clean-office"] .bg-blue-600:hover {
    background-color: var(--accent-hover) !important;
}

html[data-theme="midnight"] .bg-gray-800,
html:not([data-theme]) .bg-gray-800 {
    background-color: var(--card-bg) !important;
}

html[data-theme="clean-office"] .bg-gray-800 {
    background-color: var(--card-bg) !important;
}

/* GitHub Activity Graph Styling */
.github-activity-container {
    width: 100%;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

#github-activity-graph {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease-in-out;
}

.github-activity-container img {
    filter: brightness(1);
    transition: filter 0.3s ease-in-out;
}

html[data-theme="clean-office"] #github-activity-graph {
    filter: brightness(0.95);
}

/* GitHub Stats Cards */
.github-activity-container .bg-gray-700 {
    background-color: var(--bg-tertiary) !important;
    transition: background-color 0.3s ease-in-out;
}

html[data-theme="clean-office"] .github-activity-container .bg-gray-700 {
    background-color: var(--bg-tertiary) !important;
}

/* Code block styling with theme support */
html[data-theme="midnight"] pre[class*="language-"],
html:not([data-theme]) pre[class*="language-"] {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

html[data-theme="clean-office"] pre[class*="language-"] {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

html[data-theme="midnight"] code[class*="language-"],
html:not([data-theme]) code[class*="language-"] {
    background-color: transparent;
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

html[data-theme="clean-office"] code[class*="language-"] {
    background-color: transparent;
    color: var(--text-primary);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Inline code */
html[data-theme="midnight"] :not(pre) > code[class*="language-"],
html:not([data-theme]) :not(pre) > code[class*="language-"] {
    background-color: #1e293b;
    color: #60a5fa;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

html[data-theme="clean-office"] :not(pre) > code[class*="language-"] {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Syntax highlighting colors for Prism */
.token.keyword {
    color: #60a5fa;
}

.token.string {
    color: #4ade80;
}

.token.comment {
    color: #64748b;
    font-style: italic;
}

.token.function {
    color: #a78bfa;
}

.token.number {
    color: #fbbf24;
}

/* Category card hover effects with blue glow */
.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease-in-out;
}

.category-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--card-hover-shadow);
    transform: translateY(-4px);
}

/* Optimized Image Styling */
.lazy-image {
    transition: opacity 0.3s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
}

.lazy-image[loading="lazy"] {
    opacity: 0;
    animation: fadeInImage 0.5s ease-in-out forwards;
}

@keyframes fadeInImage {
    to {
        opacity: 1;
    }
}

/* Responsive image container */
.aspect-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Video player styling */
.aspect-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #000;
}

.video-thumbnail {
    cursor: pointer;
}

.aspect-video.group:hover .absolute.inset-0 {
    transition: opacity 0.3s ease-in-out;
}

/* Image optimization for different themes */
html[data-theme="midnight"] .lazy-image,
html:not([data-theme]) .lazy-image {
    filter: brightness(1);
}

html[data-theme="clean-office"] .lazy-image {
    filter: brightness(1.05);
}

/* Blur-up effect for loading */
.lazy-image[data-src] {
    filter: blur(5px);
    transition: filter 0.3s;
}

.lazy-image[data-src].loaded {
    filter: blur(0);
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox-img {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
    cursor: grab;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.image-lightbox-img:active {
    cursor: grabbing;
}

.image-lightbox-img.dragging {
    transition: none;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.image-lightbox-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-lightbox-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none !important;
    gap: 10px;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.image-lightbox-zoom-btn {
    color: white;
    background-color: rgba(59, 130, 246, 0.8);
    border: none;
    padding: 10px 20px;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.image-lightbox-zoom-btn:hover {
    background-color: rgba(59, 130, 246, 1);
    transform: scale(1.05);
}

.image-lightbox-zoom-btn:active {
    transform: scale(0.95);
}

.image-lightbox-zoom-reset {
    background-color: rgba(107, 114, 128, 0.8);
}

.image-lightbox-zoom-reset:hover {
    background-color: rgba(107, 114, 128, 1);
}

/* Make images in project cards clickable */
.project-card img.lazy-image {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.project-card img.lazy-image:hover {
    transform: scale(1.02);
}

/* Zoom indicators */
.image-lightbox-zoom-level {
    position: absolute;
    top: 20px;
    left: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

/* Navigation Arrows - Fixed position to stay on screen edges */
.image-lightbox-nav-arrow {
    position: fixed !important;
    top: 50vh !important;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
    user-select: none;
}

.image-lightbox-nav-arrow:hover {
    background-color: rgba(59, 130, 246, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.image-lightbox-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.image-lightbox-nav-prev {
    left: 10px !important;
    right: auto !important;
}

.image-lightbox-nav-next {
    right: 10px !important;
    left: auto !important;
}

.image-lightbox-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Hide arrows on mobile when there's only one image */
@media (max-width: 768px) {
    .image-lightbox-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .image-lightbox-nav-prev {
        left: 5px !important;
        right: auto !important;
    }
    
    .image-lightbox-nav-next {
        right: 5px !important;
        left: auto !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CV Page Styles */

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--bg-tertiary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.75rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--accent-color);
    z-index: 1;
}

.timeline-content {
    background-color: transparent;
    transition: transform 0.2s ease-in-out;
}

.timeline-item:hover .timeline-content {
    transform: translateX(4px);
}

/* EKPA Badges */
.ekpa-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.ekpa-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Tech Project Cards (Feature Grid) */
.tech-project-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tech-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px var(--card-hover-shadow);
    background-color: var(--card-bg);
}

.tech-project-card h3 {
    flex-shrink: 0;
}

.tech-project-card p {
    flex-grow: 1;
}

/* Sidebar Styling */
aside {
    transition: all 0.3s ease-in-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Ensure sidebar content wraps properly */
#cv-sidebar,
#cv-sidebar * {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent text overflow in sidebar cards */
#cv-sidebar .bg-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
}

/* Ensure all text in sidebar wraps */
#cv-sidebar p,
#cv-sidebar span,
#cv-sidebar div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Handle long URLs and email addresses */
#cv-sidebar a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all; /* More aggressive for URLs */
    display: inline-block;
    max-width: 100%;
}

/* Ensure container doesn't overflow */
section.container {
    overflow-x: hidden;
    max-width: 100%;
}

/* Force proper CV layout structure */
section.container > div.flex {
    display: flex !important;
}

section.container > div.flex.flex-col {
    flex-direction: column !important;
}

@media (min-width: 1024px) {
    section.container > div.flex.lg\:flex-row {
        flex-direction: row !important;
    }
}

/* CV Layout - Prevent Overlap and Ensure Two-Column Layout */
#cv-main-content {
    min-width: 0 !important; /* Prevents flex item from overflowing */
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#cv-sidebar {
    min-width: 0 !important; /* Prevents flex item from overflowing */
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Ensure proper flex behavior for CV layout */
section.container > div.flex.flex-col.lg\:flex-row {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal overflow */
    max-width: 100%;
}

@media (min-width: 1024px) {
    section.container > div.flex.flex-col.lg\:flex-row {
        flex-direction: row !important;
        align-items: flex-start !important;
    }
    
    #cv-main-content {
        width: 66.666667% !important; /* 2/3 */
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    
    #cv-sidebar {
        width: 33.333333% !important; /* 1/3 */
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

.flex.flex-col.lg\:flex-row > * {
    box-sizing: border-box;
}

/* Responsive adjustments for CV */
@media (max-width: 1024px) {
    .timeline-container {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 1rem;
    }
    
    .timeline-container::before {
        left: 0.25rem;
    }
    
    .timeline-dot {
        left: -1.25rem;
        width: 0.75rem;
        height: 0.75rem;
    }
    
    .tech-project-card {
        margin-bottom: 1rem;
    }
    
    aside {
        margin-top: 2rem;
    }
}

/* Theme-specific adjustments for CV components */
html[data-theme="clean-office"] .timeline-container::before {
    background: linear-gradient(to bottom, var(--accent-color), #e5e7eb);
}

html[data-theme="clean-office"] .tech-project-card {
    background-color: var(--bg-secondary);
}

html[data-theme="clean-office"] .tech-project-card:hover {
    background-color: var(--card-bg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Print Media Queries - Fix PDF Layout */
@media print {
    /* 1. Εξαναγκασμός σε μονή στήλη για να μη βγαίνει εκτός ορίων */
    #cv-main-content, 
    #cv-sidebar {
        width: 100% !important;
        flex: none !important;
        max-width: 100% !important;
    }

    /* Μετατροπή flex-row σε block layout */
    .flex.flex-col.lg\:flex-row,
    div.flex.flex-col.lg\:flex-row {
        display: block !important;
        flex-direction: column !important;
    }

    /* 2. Απόκρυψη στοιχείων που δεν χρειάζονται στο PDF */
    nav, 
    footer, 
    #downloadCVBtn, 
    .theme-switcher,
    .lang-switcher,
    a[href="index.html"],
    .no-print {
        display: none !important;
    }

    /* 3. Διόρθωση περιθωρίων σελίδας */
    @page {
        margin: 1.5cm;
        size: A4;
    }

    body {
        background-color: white !important;
        color: black !important;
        font-size: 11pt;
    }

    /* 4. Διόρθωση cards για καλύτερη εκτύπωση */
    .bg-card {
        background-color: transparent !important;
        border: 1px solid #e2e8f0 !important;
        margin-bottom: 1rem;
        break-inside: avoid; /* Εμποδίζει το κόψιμο μιας κάρτας στη μέση της σελίδας */
        page-break-inside: avoid;
    }

    /* 5. Διόρθωση container width */
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 6. Διόρθωση sidebar positioning */
    aside#cv-sidebar {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin-top: 2rem;
    }

    /* 7. Διόρθωση timeline για εκτύπωση */
    .timeline-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .timeline-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ============================================
   ENHANCED HOVER EFFECTS & INTERACTIONS
   ============================================ */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 1. NEON GLOW EFFECTS FOR CARDS & BUTTONS */
.category-card,
.project-card {
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.category-card::before,
.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--accent-color), 
        var(--accent-hover), 
        var(--accent-color),
        var(--accent-hover));
    background-size: 400% 400%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease-in-out;
    animation: gradientShift 3s ease infinite;
}

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

.category-card:hover::before,
.project-card:hover::before {
    opacity: 0.8;
}

.category-card:hover,
.project-card:hover {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1),
        0 10px 25px var(--card-hover-shadow);
}

/* Theme-specific glow adjustments */
html[data-theme="clean-office"] .category-card:hover,
html[data-theme="clean-office"] .project-card:hover {
    box-shadow: 
        0 0 15px rgba(37, 99, 235, 0.3),
        0 0 30px rgba(37, 99, 235, 0.15),
        0 10px 25px var(--card-hover-shadow);
}

/* Enhanced button glow */
.bg-blue-600,
button.bg-blue-600,
a.bg-blue-600 {
    position: relative;
    overflow: hidden;
}

.bg-blue-600::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bg-blue-600:hover::before {
    width: 300px;
    height: 300px;
}

/* 2. ANIMATED GRADIENT BACKGROUNDS */
.tech-project-card,
.bg-tertiary {
    position: relative;
    background: var(--bg-tertiary);
    transition: background 0.5s ease-in-out;
}

.tech-project-card:hover,
.bg-tertiary:hover {
    background: linear-gradient(135deg, 
        var(--bg-tertiary) 0%, 
        var(--card-bg) 50%, 
        var(--bg-tertiary) 100%);
    background-size: 200% 200%;
    animation: gradientSlide 3s ease infinite;
}

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

/* 3. ICON ANIMATIONS */
/* Rotation effect for arrow icons on hover */
a:hover [data-lucide="arrow-right"],
button:hover [data-lucide="arrow-right"],
.category-card:hover [data-lucide="arrow-right"] {
    animation: arrowSlide 0.5s ease-in-out;
    transform: translateX(5px);
}

@keyframes arrowSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(8px); }
    100% { transform: translateX(5px); }
}

/* Pulse effect for icons */
.category-card:hover [data-lucide],
.project-card:hover [data-lucide],
.tech-project-card:hover [data-lucide] {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Rotation for specific icons */
.category-card:hover [data-lucide="code"],
.project-card:hover [data-lucide="code"] {
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Bounce for sparkles icon */
.category-card:hover [data-lucide="sparkles"],
.project-card:hover [data-lucide="sparkles"] {
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* Scale effect for all icons on parent hover */
a:hover [data-lucide],
button:hover [data-lucide],
.category-card:hover [data-lucide],
.project-card:hover [data-lucide] {
    transition: transform 0.3s ease-in-out;
}

/* 4. 3D TRANSFORM EFFECTS */
.project-card,
.category-card,
.tech-project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover,
.category-card:hover {
    /* Keep a subtle lift on hover but remove 3D tilt */
    transform: translateY(-5px);
}

/* For cards that will use JavaScript tilt effect */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-tilt-inner {
    transform: translateZ(20px);
}

/* 5. SMOOTH BORDER ANIMATIONS */
.category-card,
.project-card {
    position: relative;
}

.category-card::after,
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--accent-color), 
        transparent, 
        var(--accent-hover), 
        transparent,
        var(--accent-color));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    animation: borderRotate 3s linear infinite;
    z-index: -1;
}

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

.category-card:hover::after,
.project-card:hover::after {
    opacity: 1;
}

/* 6. TEXT REVEAL/GLOW EFFECTS */
h1, h2, h3 {
    transition: text-shadow 0.3s ease-in-out, letter-spacing 0.3s ease-in-out;
}

.text-blue-400:hover,
h1:hover,
h2:hover,
h3:hover {
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 30px rgba(59, 130, 246, 0.2);
}

.category-card h2:hover,
.project-card h3:hover {
    letter-spacing: 0.05em;
    transition: letter-spacing 0.3s ease-in-out;
}

/* Hero text enhanced glow */
.hero-text h1:hover,
.hero-text h2:hover {
    text-shadow: 
        0 0 20px rgba(59, 130, 246, 0.6),
        0 0 40px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.6);
}

html[data-theme="clean-office"] .hero-text h1:hover,
html[data-theme="clean-office"] .hero-text h2:hover {
    text-shadow: 
        0 0 15px rgba(37, 99, 235, 0.4),
        0 0 30px rgba(37, 99, 235, 0.2),
        0 4px 20px rgba(255, 255, 255, 0.7);
}

/* Navigation links enhanced hover */
nav a:hover,
.nav-link:hover {
    text-shadow: 
        0 0 8px rgba(59, 130, 246, 0.5),
        0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease-in-out;
}

/* 7. RIPPLE EFFECT (CSS base - JS will trigger) */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button ripple with theme-aware color */
button.ripple-effect .ripple,
a.ripple-effect .ripple {
    background: rgba(59, 130, 246, 0.4);
}

html[data-theme="clean-office"] button.ripple-effect .ripple,
html[data-theme="clean-office"] a.ripple-effect .ripple {
    background: rgba(37, 99, 235, 0.3);
}

/* 8. ENHANCED TIMELINE HOVER */
.timeline-item:hover {
    transform: translateX(8px);
    transition: transform 0.3s ease-in-out;
}

.timeline-item:hover .timeline-dot {
    box-shadow: 
        0 0 15px var(--accent-color),
        0 0 30px rgba(59, 130, 246, 0.5);
    transform: scale(1.2);
    transition: all 0.3s ease-in-out;
}

/* 9. SOFT SKILLS CARDS ENHANCEMENT */
.bg-tertiary.rounded-lg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 20px var(--card-hover-shadow),
        0 0 15px rgba(59, 130, 246, 0.2);
}

/* 10. SOCIAL LINKS ENHANCEMENT */
footer a:hover,
footer svg:hover {
    transform: translateY(-3px) scale(1.15);
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
    transition: all 0.3s ease-in-out;
}

/* 11. THEME SWITCHER & LANG SWITCHER ENHANCEMENT */
.theme-switcher button:hover:not(.active),
.lang-switcher button:hover:not(.active) {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.theme-switcher button.active,
.lang-switcher button.active {
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* 12. CV SECTION CARDS */
.bg-card.rounded-lg:hover {
    box-shadow: 
        0 10px 30px var(--card-hover-shadow),
        0 0 20px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* 13. CUSTOM CURSOR GLOW (DISABLED - using default cursor) */
/* Optimization: Removed disabled effect classes */

.cursor-glow {
    /* DISABLED - Custom cursor effect disabled */
    display: none !important;
    visibility: hidden !important;
}

/* cursor-glow.active removed as disabled */

/* 14. TOOLTIP STYLES (will be enhanced with JS) */
.tooltip {
    position: absolute;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--card-bg);
}

/* 15. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-color), 
        var(--accent-hover), 
        var(--accent-color));
    background-size: 200% 100%;
    animation: progressGlow 2s ease infinite;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

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

/* 17. ADDITIONAL THEME COMPATIBILITY FIXES */
html[data-theme="clean-office"] .category-card:hover::before,
html[data-theme="clean-office"] .project-card:hover::before {
    opacity: 0.6; /* Slightly less opacity in light theme */
}

html[data-theme="clean-office"] .tooltip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html[data-theme="clean-office"] .ripple {
    background: rgba(37, 99, 235, 0.3);
}

/* Theme-specific text glow adjustments */
html[data-theme="clean-office"] .text-blue-400:hover,
html[data-theme="clean-office"] h1:hover,
html[data-theme="clean-office"] h2:hover,
html[data-theme="clean-office"] h3:hover {
    text-shadow: 
        0 0 8px rgba(37, 99, 235, 0.4),
        0 0 15px rgba(37, 99, 235, 0.2);
}

html[data-theme="clean-office"] nav a:hover,
html[data-theme="clean-office"] .nav-link:hover {
    text-shadow: 
        0 0 6px rgba(37, 99, 235, 0.4),
        0 0 12px rgba(37, 99, 235, 0.2);
}

/* 18. DISABLE EFFECTS FOR ELEMENTS THAT SHOULDN'T HAVE THEM */
/* Removed empty rulesets for cleaner code */
.magnetic-disabled,
.tilt-disabled {
    pointer-events: auto;
}

/* 19. PERFORMANCE OPTIMIZATIONS */
.category-card,
.project-card,
.tech-project-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* 20. MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    /* Disable complex 3D transforms on mobile */
    .project-card:hover,
    .category-card:hover {
        transform: translateY(-3px) !important;
        rotate: none !important;
    }
    
    /* Reduce animation intensity */
    .category-card:hover::before,
    .project-card:hover::before {
        opacity: 0.4;
    }
    
    /* Simplify icon animations */
    .category-card:hover [data-lucide],
    .project-card:hover [data-lucide] {
        animation: none;
        transform: scale(1.05);
    }
    
    /* Hide cursor glow on mobile (always hidden now) */
    .cursor-glow {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Disable magnetic effect on mobile */
    .magnetic-hover-disabled {
        transform: none !important;
    }
    
    /* Disable tilt on mobile */
    .card-tilt {
        transform: none !important;
    }
}

/* ============================================
   MOBILE NAVIGATION MENU
   ============================================ */

/* Hamburger Menu Button (visible only on mobile) */
#mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease-in-out;
    width: 40px;
    height: 40px;
    border-radius: 0.375rem;
}

#mobile-menu-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.05);
}

#mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Desktop: Hide hamburger button */
@media (min-width: 768px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

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

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Mobile Menu Close Button */
#mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease-in-out;
}

#mobile-menu-close:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-left: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-links a:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    padding-left: 1.75rem;
}

.mobile-nav-links a.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    font-weight: 700;
}

/* Theme-specific adjustments for mobile menu */
html[data-theme="clean-office"] .mobile-menu-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

html[data-theme="clean-office"] .mobile-menu-panel {
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

html[data-theme="clean-office"] .mobile-nav-links a.active {
    background-color: rgba(37, 99, 235, 0.1);
}

/* Desktop: Hide mobile menu overlay */
@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .mobile-menu-panel {
        display: none !important;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Animation for menu items */
.mobile-nav-links a {
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInMenuItem 0.3s ease-out forwards;
}

.mobile-nav-links a:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-nav-links a:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-nav-links a:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-nav-links a:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-nav-links a:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes slideInMenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Header Spacing Adjustment */
@media (max-width: 767px) {
    .hero-section {
        padding-top: 5rem; /* Space for mobile nav */
    }
}

/* Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.fab-main {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: #3b82f6; /* Default blue if var fails */
    background: var(--accent-primary, #3b82f6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.fab-main:hover {
    transform: scale(1.1) rotate(15deg);
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.fab-container:hover .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.fab-item:hover {
    transform: scale(1.1);
}

.fab-whatsapp { background-color: #25d366; }
.fab-viber { background-color: #7360f2; }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #3b82f6;
    background: var(--accent-primary, #3b82f6);
    transform: translateY(-5px);
}

/* Mid-page CTA Section Enhancement */
.mid-page-cta {
    position: relative;
    padding: 3rem 1.5rem;
    margin: 4rem auto;
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 64rem; /* max-w-5xl equivalent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="clean-office"] .mid-page-cta {
    background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 0.9) 100%);
    border-color: rgba(0, 0, 0, 0.05);
}
