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

:root {
    /* Light Mode Colors */
    --primary-color: #2563eb;
    --primary-rgb: 37, 99, 235;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-light: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.03);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 2.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Navbar Glassmorphism */
    --navbar-bg: rgba(255, 255, 255, 0.7);
    --navbar-border: rgba(255, 255, 255, 0.18);
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.75);
    --navbar-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-hover: #2563eb;
    --secondary-color: #94a3b8;
    --accent-color: #fbbf24;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-light: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    --border-color: #334155;
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.2);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    
    /* Navbar Dark Mode Glassmorphism */
    --navbar-bg: rgba(15, 23, 42, 0.6);
    --navbar-border: rgba(255, 255, 255, 0.125);
    --navbar-scrolled-bg: rgba(15, 23, 42, 0.65);
    --navbar-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Layout */
.container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

/* Navigation - Glassmorphism Dock Design */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    border-left: none;
    border-right: none;
    border-top: none;
    z-index: 1000;
    /* Smooth transitions for all properties with scale animation */
    transition: 
        background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        border 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--navbar-shadow);
    /* Glassmorphism effect */
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    /* Performance optimization */
    will-change: transform, margin, border-radius, width, backdrop-filter, scale;
    /* Initial scale */
    transform-origin: center top;
    scale: 1;
}

[data-theme="dark"] .navbar {
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.navbar.scrolled {
    background: var(--navbar-scrolled-bg);
    box-shadow: var(--navbar-shadow);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

/* Floating dock effect with smooth transitions - Desktop */
@media (min-width: 901px) {
    .navbar {
        /* Initial state - full width */
        margin: 0;
        border-radius: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        transform: translateX(0) scale(1);
        border-left: none;
        border-right: none;
        scale: 1;
    }
    
    .navbar.scrolled {
        /* Scrolled state - floating dock with subtle scale */
        margin: 1rem 1rem 0 1rem;
        border-radius: 24px;
        width: calc(100% - 2rem);
        max-width: 1240px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.98);
        scale: 0.98;
        border: 1px solid var(--navbar-border);
        border-top: 1px solid var(--navbar-border);
        border-left: 1px solid var(--navbar-border);
        border-right: 1px solid var(--navbar-border);
        animation: dockScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes dockScale {
        0% {
            transform: translateX(-50%) scale(1);
            scale: 1;
        }
        50% {
            transform: translateX(-50%) scale(0.96);
            scale: 0.96;
        }
        100% {
            transform: translateX(-50%) scale(0.98);
            scale: 0.98;
        }
    }
    
    [data-theme="dark"] .navbar.scrolled {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Floating dock effect for Mobile */
@media (max-width: 900px) {
    .navbar {
        /* Initial state - full width */
        margin: 0;
        border-radius: 0;
        width: 100%;
        left: 0;
        right: 0;
        transform: translateX(0) scale(1);
        border-left: none;
        border-right: none;
        scale: 1;
    }
    
    .navbar.scrolled {
        /* Scrolled state - floating dock for mobile with subtle scale */
        margin: 0.75rem 0.75rem 0 -0.25rem;
        border-radius: 20px;
        width: calc(100% - 1.5rem);
        left: 50%;
        right: auto;
        transform: translateX(-50%) scale(0.98);
        scale: 0.98;
        border: 1px solid var(--navbar-border);
        border-top: 1px solid var(--navbar-border);
        border-left: 1px solid var(--navbar-border);
        border-right: 1px solid var(--navbar-border);
        animation: dockScaleMobile 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes dockScaleMobile {
        0% {
            transform: translateX(-50%) scale(1);
            scale: 1;
        }
        50% {
            transform: translateX(-50%) scale(0.96);
            scale: 0.96;
        }
        100% {
            transform: translateX(-50%) scale(0.98);
            scale: 0.98;
        }
    }
    
    [data-theme="dark"] .navbar.scrolled {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

/* Logo Styles */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-img {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.nav-logo a:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.nav-logo a:hover .logo-text {
    color: #3b82f6;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    z-index: 0;
    /* Glassmorphism effect on links */
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.nav-link i {
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.nav-link .nav-text {
    position: relative;
    z-index: 1;
}

/* Rotating Gradient Blur Hover Effect */
.nav-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6, #8b5cf6, #3b82f6, #8b5cf6);
    background-size: 200% 200%;
    z-index: -1;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate-gradient 5s linear infinite;
    border-radius: 100vmax;
    width: 60px;
    height: 60px;
    pointer-events: none;
}

.nav-link:hover::after {
    opacity: 0.6;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-link::after {
    background: linear-gradient(45deg, #60a5fa, #a78bfa, #60a5fa, #a78bfa, #60a5fa, #a78bfa);
}

[data-theme="dark"] .nav-link:hover::after {
    opacity: 0.5;
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes rotate-gradient {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        background-position: 0% 50%;
    }
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Remove underline for glassmorphism style */
.nav-link.active::after {
    display: none;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem 0;
    overflow: hidden;
}

[data-theme="dark"] .nav-dropdown-menu {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown-link i {
    font-size: 0.875rem;
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
}

.nav-dropdown-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-dropdown-link:hover i {
    color: var(--primary-color);
}

.nav-dropdown-link.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-dropdown-link.active i {
    color: var(--primary-color);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Glassmorphism Navbar Styles */
.nav-link-user,
.nav-link-auth {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-link-user,
[data-theme="dark"] .nav-link-auth {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-user:hover,
.nav-link-auth:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .nav-link-user:hover,
[data-theme="dark"] .nav-link-auth:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.nav-link-user.active,
.nav-link-auth.active {
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .nav-link-user.active,
[data-theme="dark"] .nav-link-auth.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* Dropdown Header with User Info - Glassmorphism */
.nav-dropdown-header {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-dropdown-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.nav-dropdown-user-info i {
    font-size: 2rem;
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-dropdown-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.125rem;
}

.nav-dropdown-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
    font-weight: 500;
}

/* Primary Link (Login) */
.nav-dropdown-link-primary {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
    color: var(--primary-color);
}

.nav-dropdown-link-primary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: var(--primary-color);
}

.nav-dropdown-link-primary i {
    color: var(--primary-color);
}

/* Logout Link */
.nav-dropdown-link-logout {
    color: #dc2626;
}

.nav-dropdown-link-logout:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-left-color: #dc2626;
}

.nav-dropdown-link-logout i {
    color: #dc2626;
}

.nav-dropdown-link-logout:hover i {
    color: #dc2626;
}

/* Search Dropdown in Navbar - Simple & Responsive */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9375rem;
    padding: 0;
    margin: 0;
}

[data-theme="dark"] .nav-search-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-search-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-search-toggle.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 300px;
    min-width: 280px;
    max-width: calc(100vw - 1rem);
    background: var(--bg-primary);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

[data-theme="dark"] .nav-search-dropdown {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-search-wrapper.active .nav-search-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-search-form {
    width: 100%;
}

.nav-search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    transition: all 0.2s ease;
    gap: 0.625rem;
}

[data-theme="dark"] .nav-search-input-wrapper {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.nav-search-icon {
    color: var(--text-light);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.nav-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 0;
    min-width: 0;
}

.nav-search-input::placeholder {
    color: var(--text-light);
}

.nav-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    font-size: 0.75rem;
}

.nav-search-submit:hover {
    background: var(--primary-hover);
}

.nav-search-submit:active {
    transform: scale(0.95);
}

/* Responsive Search Dropdown */
@media (max-width: 900px) {
    .nav-search-wrapper {
        display: flex !important;
        align-items: center;
        order: -1;
        margin-right: 0.5rem;
    }
    
    .nav-search-dropdown {
        position: fixed;
        top: 70px;
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        min-width: auto;
        max-width: none;
        max-height: calc(100vh - 90px);
        overflow: visible;
        transform: translateY(-8px);
    }
    
    .nav-search-wrapper.active .nav-search-dropdown {
        transform: translateY(0);
    }
    
    .nav-search-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .nav-search-dropdown {
        top: 65px;
        right: 0.5rem;
        left: 0.5rem;
        padding: 0.625rem;
    }
    
    .nav-search-input-wrapper {
        padding: 0.5rem 0.625rem;
    }
    
    .nav-search-input {
        font-size: 0.8125rem;
    }
    
    .nav-search-submit {
        width: 26px;
        height: 26px;
        font-size: 0.6875rem;
    }
}

/* Theme Toggle Radio Button - Glassmorphism */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-radio {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-label:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--primary-color);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-radio:checked + .theme-label {
    background: var(--primary-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-radio:checked + .theme-label {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

/* Additional Glassmorphism Enhancements */
.nav-link i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

[data-theme="dark"] .nav-link i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.logo-icon {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth transitions for glassmorphism */
.navbar * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles for Cards and Buttons */
[data-theme="dark"] .card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn {
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-toggle.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .nav-toggle.active {
    background: rgba(59, 130, 246, 0.25);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p,
.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary) !important;
    max-width: 600px;
    margin: 0 auto 2rem;
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-xl);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .grid-2 {
        gap: 0.875rem;
    }
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .grid-3 {
        gap: 0.875rem;
    }
}

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

/* ========================================
   Project Cards - Modern Professional Design
   ======================================== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform, box-shadow;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: var(--bg-secondary);
    aspect-ratio: 16 / 10;
    min-height: 240px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

/* Modern Overlay with Glassmorphism */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.85) 0%, 
        rgba(59, 130, 246, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.project-links {
    display: flex;
    gap: 1rem;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-links {
    transform: translateY(0);
    opacity: 1;
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    font-size: 1.1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-links a:hover {
    transform: translateY(-3px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-hover);
}

.project-links a:active {
    transform: translateY(-1px) scale(1.02);
}

/* Card Body - Professional Typography */
.project-card .card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-card .card-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card .card-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.project-card .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-card .article-tags .tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-card .article-tags .tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Card Footer - Modern Button */
.project-card .card-footer {
    padding: 1.25rem 1.75rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.project-card .card-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
}

.project-card .card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .project-card {
        border-radius: 16px;
    }
    
    .project-image-container {
        border-radius: 16px 16px 0 0;
        min-height: 220px;
    }
    
    .project-card .card-body {
        padding: 1.5rem;
    }
    
    .project-card .card-body h3 {
        font-size: 1.25rem;
    }
    
    .project-card .card-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .project-card {
        border-radius: 14px;
    }
    
    .project-image-container {
        border-radius: 14px 14px 0 0;
        min-height: 200px;
    }
    
    .project-card .card-body {
        padding: 1.25rem;
        gap: 0.875rem;
    }
    
    .project-card .card-body h3 {
        font-size: 1.125rem;
    }
    
    .project-card .card-body p {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .project-card .article-tags .tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
    
    .project-card .card-footer {
        padding: 1rem 1.25rem 1.25rem;
    }
    
    .project-card .card-footer .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .project-links a {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .project-image-container {
        min-height: 180px;
    }
    
    .project-card .card-body {
        padding: 1rem;
    }
    
    .project-card .card-body h3 {
        font-size: 1rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .project-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

[data-theme="dark"] .project-card .card-footer {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-card .article-tags .tag {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-overlay {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.9) 0%, 
        rgba(59, 130, 246, 0.95) 100%);
}

[data-theme="dark"] .project-links a {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

[data-theme="dark"] .project-links a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ========================================
   Article Cards - Modern Professional Design
   ======================================== */
.article-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform, box-shadow;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

/* Article Card Image */
.article-card .project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.article-card:hover .project-image {
    transform: scale(1.05);
}

/* Article Card Body - Professional Layout */
.article-card .card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Article Meta - Modern Style */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.article-card .article-meta {
    margin: 0;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.article-meta i {
    font-size: 0.75rem;
    opacity: 0.7;
    color: var(--text-tertiary);
}

/* Article Title */
.article-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

/* Article Excerpt */
.article-card .card-body > p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    transition: color 0.3s ease;
}

/* Article Tags - Modern Style */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.article-card .article-tags {
    margin-top: 0.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    display: inline-block;
}

.article-card .article-tags .tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}

.tag:hover,
.article-card .article-tags .tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Article Card Footer */
.article-card .card-footer {
    padding: 1.25rem 1.75rem 1.75rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.article-card .card-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px;
}

.article-card .card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-card {
        border-radius: 16px;
    }
    
    .article-card .project-image {
        border-radius: 16px 16px 0 0;
        height: 200px;
    }
    
    .article-card .card-body {
        padding: 1.5rem;
    }
    
    .article-card h3 {
        font-size: 1.25rem;
    }
    
    .article-card .card-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .article-card .project-image {
        border-radius: 12px 12px 0 0;
        height: 140px;
        object-fit: cover;
    }
    
    .article-card .card-body {
        padding: 0.875rem;
        gap: 0.5rem;
    }
    
    .article-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .article-meta span {
        gap: 0.25rem;
    }
    
    .article-meta i {
        font-size: 0.65rem;
    }
    
    .article-card h3 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .article-card .card-body > p {
        font-size: 0.8rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }
    
    /* Hide tags on mobile for more space */
    .article-card .article-tags {
        display: none;
    }
    
    .article-card .card-footer {
        padding: 0.75rem 0.875rem;
        border-top: 1px solid var(--border-color);
    }
    
    .article-card .card-footer .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-width: 1px;
    }
}

@media (max-width: 640px) {
    .article-card {
        border-radius: 10px;
        margin-bottom: 0.875rem;
    }
    
    .article-card .project-image {
        height: 120px;
        border-radius: 10px 10px 0 0;
    }
    
    .article-card .card-body {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .article-meta {
        font-size: 0.65rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .article-card h3 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.375rem;
    }
    
    .article-card .card-body > p {
        font-size: 0.75rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .article-card .card-footer {
        padding: 0.625rem 0.75rem;
    }
    
    .article-card .card-footer .btn {
        padding: 0.45rem 0.875rem;
        font-size: 0.75rem;
    }
}

/* Compact grid for articles page on mobile */
@media (max-width: 768px) {
    #articles-grid.grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Reduce section padding on mobile */
    .section {
        padding: 2rem 0;
    }
    
    .section-sm {
        padding: 1.5rem 0;
    }
    
}

@media (max-width: 640px) {
    #articles-grid.grid-2 {
        gap: 0.875rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section-sm {
        padding: 1rem 0;
    }
    
    /* Make article card title clickable area better */
    .article-card h3 a {
        display: block;
    }
}

/* Utility classes for responsive visibility */
.desktop-only {
    display: block;
}

.mobile-hide {
    display: inline-flex;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-hide {
        display: none !important;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .article-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .article-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

[data-theme="dark"] .article-card .card-footer {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tag {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .article-card .article-tags .tag {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* Footer */
.footer {
    /* background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); */
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-logo .logo-text {
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Footer Links Section */
.footer-links {
    margin-left: auto;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-menu a i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-menu a:hover i {
    opacity: 1;
    color: #3b82f6;
}

/* Footer Social Section */
.footer-social {
    display: flex;
    flex-direction: column;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-links .social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.social-links .social-link[data-social="github"]:hover {
    background: #333;
    border-color: #333;
}

.social-links .social-link[data-social="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-links .social-link[data-social="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-links .social-link[data-social="email"]:hover {
    background: #ea4335;
    border-color: #ea4335;
}

/* Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-copyright i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1050px) {
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        margin-left: 0;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .footer-social {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

/* Homepage Section Styles - Modern, Elegant, Simple */
.section {
    padding: 5rem 0;
}

.section.bg-secondary {
    background: var(--bg-secondary);
}

/* Section Headers - Modern & Elegant */
.section .text-center {
    margin-bottom: 3.5rem;
}

.section .text-center h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section .text-center p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Container - Better Spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid Layout - Clean & Modern */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* CTA Section - Modern & Simple */
.section.bg-secondary .text-center h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section.bg-secondary .text-center p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.section.bg-secondary .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section.bg-secondary .hero-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.bg-secondary .hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 968px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section .text-center h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    
    .section .text-center {
        margin-bottom: 2.5rem;
    }
    
    .section .text-center h2 {
        font-size: 1.875rem;
    }
    
    .section .text-center p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section.bg-secondary .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .section.bg-secondary .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive Design */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }
    
    /* Ensure search icon stays visible in mobile */
    .nav-search-wrapper {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: calc(60px + 0.75rem);
        left: 50%;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(32px) saturate(180%);
        -webkit-backdrop-filter: blur(32px) saturate(180%);
        width: calc(100% - 1.5rem);
        max-width: 380px;
        text-align: left;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.4);
        padding: 1.25rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 24px;
        gap: 0.5rem;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
    
    .navbar.scrolled .nav-menu {
        top: calc(60px + 1.5rem + 0.75rem);
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(15, 23, 42, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.7);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    /* Overlay for mobile menu */
    .nav-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-menu-overlay.active {
        display: block;
        /* opacity: 1; */
    }
    
    [data-theme="dark"] .nav-menu-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    .nav-link {
        padding: 0.875rem 1rem;
        margin: 0;
        border-radius: 12px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: flex-start;
        background: rgba(255, 255, 255, 0);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    [data-theme="dark"] .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-text {
        display: inline;
    }
    
    .nav-link.active::after {
        display: none;
    }

    /* Mobile Dropdown */
    .nav-dropdown {
        width: 100%;
        margin: 0;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 0.5rem 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
        border: 1px solid rgba(255, 255, 255, 0.15);
        min-width: auto;
        visibility: visible;
    }
    
    [data-theme="dark"] .nav-dropdown-menu {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0) scale(1);
        margin-top: 0.5rem;
    }

    .nav-dropdown-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .nav-dropdown-link:first-child {
        border-radius: 16px 16px 0 0;
    }
    
    .nav-dropdown-link:last-child {
        border-radius: 0 0 16px 16px;
    }

    .nav-dropdown-divider {
        margin: 0.5rem 1rem;
        background: rgba(255, 255, 255, 0.15);
    }
    
    [data-theme="dark"] .nav-dropdown-divider {
        background: rgba(255, 255, 255, 0.08);
    }
    
    /* Theme Toggle Responsive */
    .theme-toggle-wrapper {
        margin: 0;
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .theme-label {
        flex: 1;
        max-width: 80px;
    }

    .nav-toggle {
        display: flex;
    }
    
    /* Ensure search icon stays visible and doesn't go into burger menu */
    .nav-search-wrapper {
        display: flex !important;
        align-items: center;
        order: -1;
        margin-right: 0.5rem;
    }
    
    .main-content {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 0;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .project-card:hover {
        transform: translateY(-4px);
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .card-body,
    .card-header {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Article Content - Ensure Always Visible - NO ANIMATIONS */
.article-content,
.article-body,
.section .article-content,
.section .article-body {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    /* CRITICAL: Disable ALL animations and transitions */
    animation: none !important;
    transition: none !important;
    transform: none !important;
    /* Override any inline styles that might hide content */
    will-change: auto !important;
}

/* Prevent IntersectionObserver from animating article content */
.article-content,
.article-body {
    pointer-events: auto !important;
}

/* Override any animations that might hide content */
.article-content *,
.article-body * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Ensure article content is never hidden */
.article-content.hidden,
.article-body.hidden,
.article-content.d-none,
.article-body.d-none,
.article-content.invisible,
.article-body.invisible,
.section .article-content.hidden,
.section .article-body.hidden {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Override IntersectionObserver styles */
.section:has(.article-content),
.section:has(.article-body) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Force article section to always be visible */
section.section:has(.article-content),
section.section:has(.article-body) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* ========================================
   Gallery Header Styles - Minimalist & Responsive
   ======================================== */
.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-header:hover {
    box-shadow: var(--shadow-md);
}

.gh-left {
    flex: 1;
    min-width: 0;
}

.gh-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.gh-subtitle {
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.gh-search {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.25rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.search-icon {
    color: var(--text-tertiary);
    margin-left: 0.875rem;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-group:focus-within .search-icon {
    color: var(--primary-color);
}

.search-input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0.75rem 0.875rem;
    min-width: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    font-family: inherit;
    transition: color 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

.search-button {
    background: var(--primary-color);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.search-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.search-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header {
        padding: 1.25rem;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .gh-title {
        font-size: 1.75rem;
    }
    
    .gh-subtitle {
        font-size: 0.9rem;
    }
    
    .gh-search {
        width: 100%;
        max-width: 100%;
    }
    
    .search-group {
        border-radius: 10px;
    }
    
    .search-input {
        padding: 0.65rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-icon {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .gallery-header {
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .gh-left {
        text-align: center;
    }
    
    .gh-title {
        font-size: 1.5rem;
    }
    
    .gh-subtitle {
        font-size: 0.875rem;
    }
    
    .gh-search {
        width: 100%;
    }
    
    .search-group {
        flex-direction: column;
        align-items: stretch;
        border-radius: 10px;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .search-icon {
        margin-left: 0;
        order: 1;
        align-self: flex-start;
        padding-left: 0.5rem;
    }
    
    .search-input {
        order: 2;
        padding: 0.75rem;
        border-radius: 8px;
        background: var(--bg-primary);
        border: 1px solid var(--border-color);
    }
    
    .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }
    
    .search-button {
        order: 3;
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .gallery-header {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-group {
    background: var(--bg-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .search-input {
    background: transparent;
}

[data-theme="dark"] .search-input:focus {
    background: var(--bg-secondary);
}

/* No images message */
.no-images-message {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem 1rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* ========================================
   Breadcrumb Navigation Styles
   ======================================== */
.breadcrumb-section {
    padding: 1.25rem 0 0.75rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    margin-bottom: 0;
    position: relative;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
}

[data-theme="dark"] .breadcrumb-section {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    border-bottom-color: rgba(51, 65, 85, 0.6);
}

.breadcrumb-nav,
.article-breadcrumb,
.project-breadcrumb {
    margin: 0;
    padding: 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.breadcrumb-link {
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}

.breadcrumb-link:hover {
    color: var(--primary-hover, #1d4ed8);
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.breadcrumb-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
}

.breadcrumb-link i {
    font-size: 0.8125rem;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.breadcrumb-link:hover i {
    opacity: 1;
}

/* Ensure icons don't break layout */
.breadcrumb-link i,
.breadcrumb-current i {
    min-width: 0.8125rem;
    text-align: center;
}

.breadcrumb-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-light, #94a3b8);
    font-size: 0.75rem;
    padding: 0 0.375rem;
    opacity: 0.5;
    user-select: none;
}

.breadcrumb-separator i {
    font-size: 0.625rem;
    opacity: 0.6;
}

.breadcrumb-current {
    color: var(--text-primary, #1e293b);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breadcrumb-current .breadcrumb-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .breadcrumb-current {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}

.breadcrumb-current i {
    font-size: 0.8125rem;
    opacity: 0.7;
    color: var(--primary-color, #3b82f6);
    flex-shrink: 0;
}

.breadcrumb-item.active .breadcrumb-current {
    color: var(--text-primary, #1e293b);
    font-weight: 600;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .breadcrumb-section {
        padding: 1rem 0 0.5rem;
    }
    
    .breadcrumb-list {
        gap: 0.375rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.4rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .breadcrumb-current {
        max-width: 350px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .breadcrumb-section {
        padding: 0.875rem 0 0.5rem;
        border-bottom-width: 1px;
    }
    
    .breadcrumb-list {
        font-size: 0.8125rem;
        gap: 0.25rem;
        line-height: 1.4;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 0.75rem;
    }
    
    .breadcrumb-current {
        max-width: 220px;
        font-weight: 600;
    }
    
    .breadcrumb-separator {
        padding: 0 0.25rem;
        font-size: 0.6875rem;
    }
    
    .breadcrumb-separator i {
        font-size: 0.5625rem;
    }
    
    /* Hide "Home" text on mobile, show only icon */
    .breadcrumb-link .fa-home + .breadcrumb-text {
        display: none;
    }
    
    /* Reduce spacing for mobile */
    .breadcrumb-item:first-child .breadcrumb-link {
        padding-left: 0.375rem;
    }
    
    /* Fallback for browsers that support :has() */
    @supports selector(:has(*)) {
        .breadcrumb-link:has(.fa-home) .breadcrumb-text {
            display: none;
        }
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .breadcrumb-section {
        padding: 0.75rem 0 0.5rem;
    }
    
    .breadcrumb-list {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .breadcrumb-link,
    .breadcrumb-current {
        padding: 0.3rem 0.45rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .breadcrumb-link i,
    .breadcrumb-current i {
        font-size: 0.6875rem;
    }
    
    .breadcrumb-current {
        max-width: 180px;
    }
    
    /* Hide icons on very small screens (except home icon) */
    .breadcrumb-link:not(:first-child) i:not(.fa-home),
    .breadcrumb-current i:not(.fa-home) {
        display: none;
    }
    
    .breadcrumb-link:not(:first-child),
    .breadcrumb-current {
        gap: 0;
    }
    
    /* Fallback for browsers that support :has() */
    @supports selector(:has(*)) {
        .breadcrumb-link:not(:has(.fa-home)) i,
        .breadcrumb-current:not(:has(.fa-home)) i {
            display: none;
        }
        
        .breadcrumb-link:not(:has(.fa-home)),
        .breadcrumb-current:not(:has(.fa-home)) {
            gap: 0;
        }
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .breadcrumb-section {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e2e8f0;
        background: transparent;
    }
    
    .breadcrumb-link {
        color: #1e293b;
        text-decoration: underline;
    }
    
    .breadcrumb-link:hover {
        background: transparent;
        transform: none;
        box-shadow: none;
    }
    
    .breadcrumb-current {
        background: transparent;
        border: none;
    }
}


