
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: rgba(5, 6, 11, 0.9);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(20px);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
:root[data-theme="light"] .admin-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}
.admin-sidebar.open,
.admin-sidebar.open {
    transform: translateX(0);
}
@media (min-width: 768px) {
    .admin-sidebar {
        transform: translateX(0);
    }
}
.admin-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    gap: 1.5rem;
}
.admin-profile-card {
    display: none;
}
.admin-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(var(--accent-cyan-rgb), 0.4);
}
.admin-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-primary);
}
.admin-profile-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}
.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.admin-nav-item:hover {
    color: var(--text-primary);
    border-color: rgba(var(--accent-cyan-rgb), 0.2);
    background: rgba(var(--accent-cyan-rgb), 0.08);
}
.admin-nav-item.active {
    color: var(--accent-cyan);
    border-color: rgba(var(--accent-cyan-rgb), 0.5);
    background: rgba(var(--accent-cyan-rgb), 0.15);
    box-shadow: 0 12px 30px rgba(var(--accent-cyan-rgb), 0.15);
}
.admin-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.admin-nav-item.active .admin-nav-icon {
    border-color: rgba(var(--accent-cyan-rgb), 0.6);
    color: var(--accent-cyan);
}
.admin-nav-text {
    font-weight: 600;
    font-size: 0.95rem;
}
.admin-nav-badge {
    margin-left: auto;
    background: rgba(244, 114, 182, 0.15);
    color: #f472b6;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-theme-toggle,
.admin-logout,
.admin-view-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.85rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.05);
    transition: all 0.2s ease;
}
.admin-theme-toggle:hover,
.admin-logout:hover,
.admin-view-site:hover {
    color: var(--text-primary);
    border-color: rgba(var(--accent-cyan-rgb), 0.3);
    background: rgba(var(--accent-cyan-rgb), 0.08);
}
.admin-logout {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
}
.admin-logout:hover {
    background: rgba(248, 113, 113, 0.15);
}
.admin-mobile-bar {
    display: none;
}
.admin-mobile-trigger {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-primary);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 55;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.admin-menu-open .admin-mobile-trigger {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Show on mobile only */
@media (max-width: 767px) {
    .admin-mobile-trigger {
        display: flex;
    }
}
.admin-mobile-title {
    font-weight: 600;
    color: var(--text-secondary);
}
.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 40;
    display: none; /* Hidden by default */
}

/* Public Site Mobile Menu */
.site-mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    background: rgba(5, 6, 11, 0.95);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
}
:root[data-theme="light"] .site-mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    border-right-color: rgba(148, 163, 184, 0.3);
}
.site-mobile-menu.open {
    transform: translateX(0);
}
.site-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}
.site-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.site-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.site-mobile-close:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}
:root[data-theme="light"] .site-mobile-close {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
}
.site-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.site-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}
.site-mobile-link i {
    color: var(--accent-cyan);
}
.site-mobile-link:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.1);
}
.site-mobile-link.active {
    background: rgba(16, 255, 255, 0.12);
    color: var(--accent-cyan);
}
:root[data-theme="light"] .site-mobile-link.active {
    background: rgba(59, 130, 246, 0.18);
    color: #2563eb;
}
.site-mobile-link .theme-icon {
    color: var(--accent-pink);
}
.site-mobile-link .theme-label {
    flex: 1;
    text-align: left;
}
.site-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
    cursor: default;
}
.site-mobile-overlay.show {
    opacity: 1;
    pointer-events: all;
    cursor: default;
}
body.mobile-menu-open {
    overflow: hidden;
}
body.mobile-menu-open #mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}
body.mobile-menu-open .wa-widget-container {
    z-index: 30;
    opacity: 0.3;
    pointer-events: none;
}
.admin-sidebar-overlay.show {
    opacity: 1;
    pointer-events: all;
}
/* Show overlay on mobile only */
@media (max-width: 767px) {
    .admin-sidebar-overlay {
        display: block;
    }
}
.admin-main {
    min-height: 100vh;
    padding-left: 0;
    padding-top: 0;
    transition: padding-left 0.3s ease;
}
/* Admin dock menu spacing - desktop only */
@media (min-width: 768px) {
    body.admin-panel .max-w-7xl {
        margin-left: 6rem; /* Space for 2-column dock menu on left */
    }
}
/* Custom Styles - Sıradışı Tasarım */

/* Theme Variables */
:root {
    color-scheme: dark;
    --surface-body: #05060b;
    --surface-panel: rgba(15, 17, 25, 0.94);
    --surface-panel-muted: rgba(18, 21, 32, 0.78);
    --surface-card-solid: #0d1220;
    --surface-highlight: rgba(255, 255, 255, 0.04);
    --border-muted: rgba(31, 41, 55, 0.8);
    --border-strong: rgba(55, 65, 81, 0.9);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5f5;
    --text-muted: #94a3b8;
    --navbar-bg: rgba(10, 10, 10, 0.95);
    --shadow-soft: rgba(16, 255, 255, 0.15);
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb-start: #ff10f0;
    --scrollbar-thumb-end: #10ffff;
    --accent-cyan: #10ffff;
    --accent-pink: #ff10f0;
    --accent-purple: #a855f7;
    --accent-green: #10ff88;
    --accent-cyan-rgb: 16, 255, 255;
    --accent-pink-rgb: 255, 16, 240;
    --accent-purple-rgb: 168, 85, 247;
    --accent-green-rgb: 16, 255, 136;
    --terminal-value: #f4d35e;
}

:root[data-theme="light"] {
    color-scheme: light;
    --surface-body: #f5f7ff;
    --surface-panel: rgba(255, 255, 255, 0.95);
    --surface-panel-muted: rgba(248, 250, 255, 0.95);
    --surface-card-solid: #ffffff;
    --surface-highlight: rgba(15, 23, 42, 0.06);
    --border-muted: rgba(203, 213, 225, 0.9);
    --border-strong: rgba(148, 163, 184, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --navbar-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: rgba(15, 23, 42, 0.08);
    --scrollbar-track: #e2e8f0;
    --scrollbar-thumb-start: #0ea5e9;
    --scrollbar-thumb-end: #8b5cf6;
    --accent-cyan: #0ea5e9;
    --accent-pink: #d946ef;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-cyan-rgb: 14, 165, 233;
    --accent-pink-rgb: 217, 70, 239;
    --accent-purple-rgb: 139, 92, 246;
    --accent-green-rgb: 16, 185, 129;
    --terminal-value: #b45309;
}

/* Reset margins and enforce bg to avoid top seam */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--surface-body) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Improve fixed element rendering to prevent 1px flicker */
#navbar {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-bottom: 1px solid var(--border-muted);
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 16, 240, 0.5);
    }
    100% {
        box-shadow: 0 0 40px rgba(16, 255, 255, 0.8), 0 0 60px rgba(255, 16, 240, 0.6);
    }
}

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

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

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-muted); /* keep consistent with base to avoid color flicker */
}

/* Glassmorphism Effect */
.glass {
    background: var(--surface-panel-muted);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-muted);
}

/* Neon Text Glow */
.neon-text {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

/* Accent Utility Normalization */
.text-neon-cyan {
    color: var(--accent-cyan) !important;
}
.text-neon-pink {
    color: var(--accent-pink) !important;
}
.text-neon-purple {
    color: var(--accent-purple) !important;
}
.text-neon-green {
    color: var(--accent-green) !important;
}
.terminal-value {
    color: var(--terminal-value) !important;
}

.terminal-window {
    border: 1px solid var(--border-muted);
    border-radius: 1.5rem;
    background-color: rgba(5, 6, 11, 0.92);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
:root[data-theme="light"] .terminal-window {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-muted);
    background: rgba(255, 255, 255, 0.02);
}
:root[data-theme="light"] .terminal-header {
    background: rgba(15, 23, 42, 0.05);
}
.terminal-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
    opacity: 0.9;
}
.terminal-dot.dot-red { background: #ff5f56; }
.terminal-dot.dot-yellow { background: #ffbd2e; }
.terminal-dot.dot-green { background: #27c93f; }
.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.terminal-body {
    padding: 2rem;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.08), transparent 55%);
}
.terminal-intro {
    margin-bottom: 2rem;
    border-left: 2px solid rgba(var(--accent-cyan-rgb), 0.3);
    padding-left: 1rem;
    padding-bottom: 1rem;
}
.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    word-break: break-word;
}
.terminal-line .prompt {
    color: var(--accent-cyan);
    margin-right: 0.5rem;
}
.terminal-line.success {
    color: var(--accent-green);
}
.terminal-line.fade {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.terminal-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.terminal-input {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: rgba(5, 6, 11, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-primary);
    transition: all 0.25s ease;
}
:root[data-theme="light"] .terminal-input {
    background: rgba(248, 250, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
}
.terminal-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(var(--accent-cyan-rgb), 0.25);
    outline: none;
}
.terminal-textarea {
    resize: none;
    min-height: 160px;
}
.terminal-footer {
    margin-top: 1.5rem;
}
.terminal-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.25rem;
    border-radius: 0.9rem;
    background: rgba(var(--accent-cyan-rgb), 0.12);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.4);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.terminal-btn:hover {
    transform: translateY(-2px);
    background: rgba(var(--accent-cyan-rgb), 0.2);
    box-shadow: 0 10px 30px rgba(var(--accent-cyan-rgb), 0.25);
}
.terminal-window.terminal-compact {
    border-radius: 1rem;
    margin: 0;
}
.terminal-window.terminal-compact .terminal-body {
    padding: 1.5rem;
    background: rgba(5, 6, 11, 0.9);
}
:root[data-theme="light"] .terminal-window.terminal-compact .terminal-body {
    background: rgba(248, 250, 255, 0.95);
}
.terminal-line.release-version,
.terminal-line.project-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.terminal-line.release-description,
.terminal-line.project-desc {
    color: var(--text-secondary);
}
.project-visual {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-muted);
}
.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-visual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 11, 0.85);
    color: rgba(255, 255, 255, 0.15);
    font-size: 3rem;
}
:root[data-theme="light"] .project-visual-placeholder {
    background: rgba(248, 250, 255, 0.9);
    color: rgba(15, 23, 42, 0.15);
}
.terminal-line.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    color: var(--text-muted);
}
.tech-chip {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.2);
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.terminal-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.5rem;
}
.project-btn {
    width: 100%;
    justify-content: center;
}
.login-page {
    background-color: var(--surface-body);
    color: var(--text-primary);
}
.login-background {
    pointer-events: none;
    z-index: 0;
}
.login-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #05060b, #0b1220);
    opacity: 0.95;
}
:root[data-theme="light"] .login-gradient {
    background: linear-gradient(135deg, #f5f7ff, #e2e8f0);
}
.login-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.25;
}
.login-glow.glow-one {
    top: 5rem;
    left: 2rem;
    width: 18rem;
    height: 18rem;
    background: var(--accent-pink, #ff10f0);
}
.login-glow.glow-two {
    bottom: 4rem;
    right: 2rem;
    width: 20rem;
    height: 20rem;
    background: var(--accent-cyan, #10ffff);
}
.login-terminal-wrapper {
    position: relative;
}
.login-terminal {
    background: rgba(5, 6, 11, 0.92);
    border-color: rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(20px);
}
:root[data-theme="light"] .login-terminal {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.45);
}
.login-terminal-header {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
}
:root[data-theme="light"] .login-terminal-header {
    background: rgba(226, 232, 240, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}
.login-terminal-body {
    padding: 1.75rem;
    background: linear-gradient(145deg, rgba(5, 6, 11, 0.9), rgba(15, 23, 42, 0.85));
}
@media (max-width: 768px) {
    .login-terminal-body {
        padding: 1rem;
    }
}
:root[data-theme="light"] .login-terminal-body {
    background: linear-gradient(145deg, rgba(248, 250, 255, 0.95), rgba(237, 242, 255, 0.9));
}
.login-welcome {
    color: var(--text-secondary);
}
.login-welcome .text-gray-500 {
    color: var(--text-muted);
}
.login-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(5, 6, 11, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
}
:root[data-theme="light"] .login-profile-card {
    background: rgba(248, 250, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.35);
}
.login-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 2px solid rgba(var(--accent-cyan-rgb), 0.4);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-avatar-placeholder {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}
:root[data-theme="light"] .login-avatar-placeholder {
    color: rgba(15, 23, 42, 0.35);
}
.login-profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.login-profile-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.login-input {
    background: rgba(5, 6, 11, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
    color: var(--text-primary);
}
:root[data-theme="light"] .login-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--text-primary);
}
.login-input::placeholder {
    color: var(--text-muted);
}
.login-submit {
    background: rgba(var(--accent-cyan-rgb), 0.12);
    border-color: rgba(var(--accent-cyan-rgb), 0.4);
    color: var(--accent-cyan);
    transition: all 0.2s ease;
}
.login-submit:hover {
    background: rgba(var(--accent-cyan-rgb), 0.2);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(var(--accent-cyan-rgb), 0.25);
}
/* Login Terminal Prompt - Light mode compatible */
.login-terminal-prompt {
    color: var(--accent-cyan) !important;
}
:root[data-theme="light"] .login-terminal-prompt {
    color: #0284c7 !important; /* Softer sky blue for light mode */
}

/* Login Terminal Input - Remove borders */
#login-terminal-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
#login-terminal-input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
#login-terminal-input:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Login Terminal Output - Fixed height with scroll */
#login-terminal-output {
    max-height: 400px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
@media (max-width: 768px) {
    #login-terminal-output {
        max-height: 250px !important;
    }
}

.login-submit-row {
    border-color: rgba(148, 163, 184, 0.2) !important;
}
.terminal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 11, 0.92);
    border-radius: 1.5rem;
    z-index: 20;
}
:root[data-theme="light"] .terminal-loading {
    background: rgba(248, 250, 255, 0.95);
}
.loading-card {
    text-align: center;
    padding: 2rem;
    border-radius: 1.2rem;
    border: 1px solid var(--border-muted);
    background: rgba(5, 6, 11, 0.85);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
:root[data-theme="light"] .loading-card {
    background: rgba(255, 255, 255, 0.95);
}
.loading-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 3px solid rgba(var(--accent-cyan-rgb), 0.2);
    border-top-color: var(--accent-cyan);
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.error-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.error-label {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.error-code {
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 700;
    background: linear-gradient(120deg, #ff10f0, #10ffff, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-shift 6s ease infinite;
    margin: 0;
}
.error-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 32rem;
    margin: 0 auto;
}
.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    border-radius: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.error-btn.primary {
    background: rgba(var(--accent-cyan-rgb), 0.15);
    border: 1px solid rgba(var(--accent-cyan-rgb), 0.4);
    color: var(--accent-cyan);
}
.error-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(var(--accent-cyan-rgb), 0.25);
}
.error-btn.secondary {
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.1);
}
.error-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(148, 163, 184, 0.2);
}
.error-terminal {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
    background: rgba(5, 6, 11, 0.92);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}
:root[data-theme="light"] .error-terminal {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}
.error-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.1);
}
:root[data-theme="light"] .error-terminal-header {
    background: rgba(226, 232, 240, 0.3);
}
.error-terminal-body {
    padding: 1.75rem;
    font-family: 'JetBrains Mono', monospace;
}
.error-terminal-body .terminal-line {
    color: var(--text-secondary);
}
.error-line {
    color: #f87171;
}
.error-terminal-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.wa-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.wa-scroll-top {
    display: none;
    width: 44px;
    height: 44px;
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #475569;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
:root[data-theme="light"] .wa-scroll-top {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5f5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.wa-scroll-top:hover {
    transform: translateY(-2px);
}
.wa-toggle {
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}
.wa-chat {
    display: none;
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #1e293b;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    border: 1px solid #475569;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}
:root[data-theme="light"] .wa-chat {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(15,23,42,0.15);
}
.wa-chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wa-chat-body {
    padding: 20px;
    background: #1e293b;
}
:root[data-theme="light"] .wa-chat-body {
    background: #f8fafc;
}
.wa-welcome {
    background: #334155;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #f1f5f9;
    border: 1px solid #475569;
}
:root[data-theme="light"] .wa-welcome {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5f5;
}
.wa-welcome-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.wa-welcome-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
}
.wa-welcome-title {
    font-weight: 600;
    color: #f1f5f9;
}
:root[data-theme="light"] .wa-welcome-title {
    color: #0f172a;
}
.wa-welcome-text {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
}
:root[data-theme="light"] .wa-welcome-text {
    color: #475569;
}
.wa-message {
    width: 100%;
    padding: 12px;
    border: 2px solid #475569;
    border-radius: 12px;
    resize: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #0f172a;
    color: #f1f5f9;
}
:root[data-theme="light"] .wa-message {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5f5;
}
.wa-message:focus {
    border-color: #25D366;
}
.wa-send-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-weight: 600;
    padding: 12px;
    border: none;
    border-radius: 12px;
    margin-top: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.wa-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Advanced Code Display Styles */
.hero-code-container {
    position: relative;
    background: linear-gradient(135deg, rgba(5, 6, 11, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(16, 255, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(16, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 16, 240, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    animation: containerFadeIn 0.5s ease-out forwards;
}

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

.hero-code-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(16, 255, 255, 0.03) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.code-grid-pattern {
    background-image: 
        linear-gradient(rgba(16, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

.hologram-scan {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(16, 255, 255, 0.1) 48%,
        rgba(16, 255, 255, 0.3) 50%,
        rgba(16, 255, 255, 0.1) 52%,
        transparent 100%
    );
    height: 2px;
    top: -2px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.glitch-overlay {
    opacity: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 16, 240, 0.1) 25%,
        rgba(16, 255, 255, 0.1) 50%,
        rgba(255, 16, 240, 0.1) 75%,
        transparent 100%
    );
    animation: glitch 0.3s infinite;
    pointer-events: none;
}

.glitch-active {
    animation: glitchText 0.3s;
}

.hero-code-container.glitch-active {
    animation: glitchContainer 0.3s;
}

@keyframes glitchContainer {
    0%, 100% { 
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    20% { 
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    40% { 
        transform: translateX(2px);
        filter: hue-rotate(-90deg);
    }
    60% { 
        transform: translateX(-1px);
        filter: hue-rotate(45deg);
    }
    80% { 
        transform: translateX(1px);
        filter: hue-rotate(-45deg);
    }
}

@keyframes glitch {
    0%, 100% { opacity: 0; transform: translateX(0); }
    25% { opacity: 0.3; transform: translateX(-2px); }
    50% { opacity: 0.5; transform: translateX(2px); }
    75% { opacity: 0.3; transform: translateX(-1px); }
}

@keyframes glitchText {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px) skewX(5deg); }
    40% { transform: translateX(2px) skewX(-5deg); }
    60% { transform: translateX(-1px) skewX(3deg); }
    80% { transform: translateX(1px) skewX(-3deg); }
}

.code-filename {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.code-filename::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 255, 255, 0.5), transparent);
    animation: filenameGlow 2s ease-in-out infinite;
}

@keyframes filenameGlow {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.hero-code-line {
    position: relative;
    opacity: 0;
    transform: none;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.hero-code-line.visible {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.hero-code-line .terminal-value {
    text-shadow: 
        0 0 8px rgba(16, 255, 255, 0.4),
        0 0 16px rgba(16, 255, 255, 0.2);
    animation: valuePulse 3s ease-in-out infinite;
}

@keyframes valuePulse {
    0%, 100% { 
        text-shadow: 
            0 0 8px rgba(16, 255, 255, 0.4),
            0 0 16px rgba(16, 255, 255, 0.2);
    }
    50% { 
        text-shadow: 
            0 0 12px rgba(16, 255, 255, 0.6),
            0 0 24px rgba(16, 255, 255, 0.3),
            0 0 32px rgba(255, 16, 240, 0.2);
    }
}

.code-char {
    display: inline-block;
    /* Removed charAppear animation - was causing shaking */
}

.hero-code-cursor .hero-cursor {
    display: inline-block;
    width: 10px;
    margin-left: 6px;
    color: var(--accent-cyan);
    animation: cursorBlink 1s steps(2) infinite, cursorGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(16, 255, 255, 0.8);
}

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

@keyframes cursorGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(16, 255, 255, 0.8);
    }
    50% { 
        text-shadow: 
            0 0 15px rgba(16, 255, 255, 1),
            0 0 25px rgba(16, 255, 255, 0.6);
    }
}

/* Light Mode Styles for Terminal Code Display */
:root[data-theme="light"] .hero-code-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.15),
        inset 0 0 30px rgba(236, 72, 153, 0.08);
}

:root[data-theme="light"] .code-grid-pattern {
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
}

:root[data-theme="light"] .hologram-scan {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(59, 130, 246, 0.15) 48%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0.15) 52%,
        transparent 100%
    );
}

:root[data-theme="light"] .code-filename {
    color: #475569 !important;
}

:root[data-theme="light"] .code-filename::after {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

:root[data-theme="light"] .code-content {
    color: #1e293b !important;
}

:root[data-theme="light"] .hero-code-line {
    color: #1e293b !important;
}

:root[data-theme="light"] .hero-code-line .text-white {
    color: #0f172a !important;
}

:root[data-theme="light"] .hero-code-line .text-neon-pink {
    color: #be185d !important;
}

:root[data-theme="light"] .hero-code-line .text-gray-300 {
    color: #475569 !important;
}

:root[data-theme="light"] .hero-code-line .terminal-value {
    color: #0284c7 !important;
    text-shadow: 
        0 0 8px rgba(59, 130, 246, 0.3),
        0 0 16px rgba(59, 130, 246, 0.15);
}

:root[data-theme="light"] .hero-code-cursor .hero-cursor {
    color: #0284c7 !important;
    text-shadow: 
        0 0 10px rgba(59, 130, 246, 0.5),
        0 0 20px rgba(59, 130, 246, 0.3);
}

:root[data-theme="light"] .code-char {
    color: inherit;
}

:root[data-theme="light"] #terminal-output {
    color: #64748b !important;
}

:root[data-theme="light"] #terminal-input {
    color: #1e293b !important;
    caret-color: #0284c7 !important;
}

:root[data-theme="light"] .terminal-cursor {
    color: #0284c7 !important;
}

:root[data-theme="light"] .hero-code-container .border-gray-800 {
    border-color: rgba(203, 213, 225, 0.5) !important;
}

/* Disable all animations on mobile for better performance */
@media (max-width: 768px) {
    /* Terminal animations */
    .hero-code-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .hero-code-cursor .hero-cursor {
        animation: none !important;
        opacity: 1 !important;
    }
    .terminal-cursor {
        animation: none !important;
        opacity: 1 !important;
    }
    
    /* Advanced Code Display Animations - Disable on mobile */
    .hero-code-container::before {
        animation: none !important;
    }
    .code-grid-pattern {
        animation: none !important;
    }
    .hologram-scan {
        display: none !important;
    }
    .glitch-overlay {
        display: none !important;
    }
    .glitch-active {
        animation: none !important;
    }
    .hero-code-container.glitch-active {
        animation: none !important;
    }
    .code-filename::after {
        animation: none !important;
    }
    .hero-code-line .terminal-value {
        animation: none !important;
        text-shadow: 0 0 8px rgba(16, 255, 255, 0.4) !important;
    }
    .code-char {
        animation: none !important;
    }
    .hero-code-cursor .hero-cursor {
        animation: cursorBlink 1s steps(2) infinite !important;
        text-shadow: 0 0 10px rgba(16, 255, 255, 0.8) !important;
    }
    
    /* Floating orbs and glow effects */
    .animate-float {
        animation: none !important;
        transform: none !important;
    }
    .animate-glow {
        animation: none !important;
    }
    
    /* Name flicker animation */
    .name-flicker {
        animation: none !important;
        opacity: 1 !important;
    }
}

.toast-stack {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

/* Admin panel toast - sağ altta */
body.admin-panel .toast-stack {
    left: auto;
    right: 1.5rem;
}
.terminal-toast {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.2rem;
    max-width: 22rem;
    width: fit-content;
    border-radius: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background: rgba(5, 6, 11, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-primary);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
:root[data-theme="light"] .terminal-toast {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
}
.terminal-toast .prompt {
    font-weight: 600;
    font-size: 0.85rem;
}
.terminal-toast.success .prompt {
    color: var(--accent-cyan);
}
.terminal-toast.error .prompt {
    color: #f87171;
}
.terminal-toast .toast-text {
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-word;
}
.terminal-toast.error .toast-text {
    color: #fca5a5;
}
.terminal-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.terminal-toast.hide {
    opacity: 0;
    transform: translateY(10px);
}
.bg-neon-cyan {
    background-color: var(--accent-cyan) !important;
}
.bg-neon-pink {
    background-color: var(--accent-pink) !important;
}
.bg-neon-purple {
    background-color: var(--accent-purple) !important;
}
.bg-neon-green {
    background-color: var(--accent-green) !important;
}
.bg-neon-cyan\/20 {
    background-color: rgba(var(--accent-cyan-rgb), 0.18) !important;
}
.bg-neon-pink\/20 {
    background-color: rgba(var(--accent-pink-rgb), 0.18) !important;
}
.bg-neon-purple\/20 {
    background-color: rgba(var(--accent-purple-rgb), 0.18) !important;
}
.bg-neon-green\/20 {
    background-color: rgba(var(--accent-green-rgb), 0.18) !important;
}
.border-neon-cyan {
    border-color: var(--accent-cyan) !important;
}
.border-neon-pink {
    border-color: var(--accent-pink) !important;
}
.border-neon-purple {
    border-color: var(--accent-purple) !important;
}
.border-neon-green {
    border-color: var(--accent-green) !important;
}

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

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--scrollbar-thumb-start), var(--scrollbar-thumb-end));
    border-radius: 6px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #10ffff, #a855f7);
}

/* Selection Color */
::selection {
    background-color: rgba(255, 16, 240, 0.3);
    color: #10ffff;
}

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

/* Mobile Menu Animation */
.mobile-menu-open {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* Button Hover Effects */
button, a[href^="#"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Glow Effect */
.project-item:hover,
.group:hover {
    position: relative;
}

/* Input Focus Glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 20px rgba(16, 255, 255, 0.3);
}

/* Filter Button Active State */
.filter-btn.active {
    background: linear-gradient(135deg, #ff10f0, #10ffff);
    color: white;
    box-shadow: 0 0 20px rgba(255, 16, 240, 0.5);
}

/* Project Item Animation */
.project-item {
    animation: fade-in-up 0.6s ease-out;
}

.project-item.hidden {
    display: none;
}

/* Timeline Animation */
@keyframes timeline-draw {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

/* Gradient Background Animation */
.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Loading Animation */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Text Gradient Animation */
.text-gradient-animated {
    background: linear-gradient(-45deg, #ff10f0, #10ffff, #a855f7, #10ff88);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
}

/* Border Glow Effect */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #ff10f0, #10ffff, #a855f7);
    -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.3s;
}

.border-glow:hover::before {
    opacity: 1;
}

/* Fade In on Scroll */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Image Hover Effect */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

img:hover {
    transform: scale(1.1) rotate(2deg);
}

/* Form Validation Styles */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

input:valid:not(:focus):not(:placeholder-shown),
textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10ff88;
    box-shadow: 0 0 10px rgba(16, 255, 136, 0.3);
}

/* Notification Styles */
.notification {
    animation: slide-in-right 0.3s ease-out;
}

/* Particle Effect Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #10ffff;
    border-radius: 50%;
    animation: float 10s infinite;
    opacity: 0.3;
}

/* Glitch Effect */
@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

/* Shine Effect */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shine {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    background-size: 200% 100%;
    animation: shine 3s infinite;
}

/* Layout modes */
body.sidebar-active {
    padding-left: 18rem; /* 72 * 0.25rem */
}
@media (max-width: 768px) {
    body.sidebar-active {
        padding-left: 0;
    }
}

/* Mobile dock spacing - prevent content from being hidden behind menu */
@media (max-width: 767px) {
    body {
        padding-bottom: 5rem; /* Space for bottom dock menu */
    }
}

/* Ensure dock menu doesn't overlap content on mobile */
#site-dock-mobile {
    max-width: calc(100vw - 2rem);
}

.hero-gradient {
    background: radial-gradient(circle at top left, rgba(255, 16, 240, 0.05), transparent 45%), 
                radial-gradient(circle at bottom right, rgba(16, 255, 255, 0.05), transparent 45%), 
                linear-gradient(135deg, #05060b, #0f1425 60%, #05060b);
}

:root[data-theme="light"] .hero-gradient {
    background: radial-gradient(circle at top left, rgba(255, 16, 240, 0.15), transparent 45%), 
                radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.15), transparent 45%), 
                linear-gradient(135deg, #f5f7ff, #eef2ff 60%, #f5f7ff);
}

.footer-gradient {
    background: linear-gradient(135deg, #05060b, #0b1120);
    opacity: 0.95;
}

:root[data-theme="light"] .footer-gradient {
    background: linear-gradient(135deg, #edf2ff, #f8fafc);
}

.footer-surface {
    background-color: transparent;
}
.footer-panel {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(24px);
}
:root[data-theme="light"] .footer-panel {
    border-color: rgba(148, 163, 184, 0.4);
}

/* Admin gradient overrides */
:root[data-theme="light"] .from-dark-900 {
    --tw-gradient-from: #f5f7ff !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(245, 247, 255, 0)) !important;
}
:root[data-theme="light"] .via-dark-800 {
    --tw-gradient-stops: var(--tw-gradient-from), #e2e8f0, var(--tw-gradient-to, rgba(226, 232, 240, 0)) !important;
}
:root[data-theme="light"] .to-dark-900 {
    --tw-gradient-to: #dbeafe !important;
}

/* Light Mode Adaptations */
:root[data-theme="light"] body {
    background-color: var(--surface-body) !important;
    color: var(--text-primary) !important;
}

:root[data-theme="light"] .bg-dark-900\/50,
:root[data-theme="light"] .bg-dark-900\/30,
:root[data-theme="light"] .bg-dark-800\/50,
:root[data-theme="light"] .bg-dark-800\/30,
:root[data-theme="light"] .bg-dark-800\/80 {
    background-color: var(--surface-panel) !important;
    border-color: var(--border-muted) !important;
}

:root[data-theme="light"] .bg-dark-900,
:root[data-theme="light"] .bg-dark-800,
:root[data-theme="light"] .bg-dark-700 {
    background-color: var(--surface-card-solid) !important;
}

:root[data-theme="light"] .text-gray-400 {
    color: var(--text-muted) !important;
}
:root[data-theme="light"] .text-gray-300 {
    color: var(--text-secondary) !important;
}
:root[data-theme="light"] [class*="bg-dark-"],
:root[data-theme="light"] [class*="bg-gray-9"],
:root[data-theme="light"] [class*="bg-gray-8"] {
    background-color: var(--surface-card-solid) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-muted) !important;
}

:root[data-theme="light"] [class*="bg-dark-"][class*="/"],
:root[data-theme="light"] [class*="bg-gray-9"][class*="/"],
:root[data-theme="light"] [class*="bg-gray-8"][class*="/"] {
    background-color: var(--surface-panel-muted) !important;
}

:root[data-theme="light"] .text-white,
:root[data-theme="light"] [class*="text-gray-1"],
:root[data-theme="light"] [class*="text-gray-2"] {
    color: var(--text-secondary) !important;
}

:root[data-theme="light"] [class*="text-gray-3"],
:root[data-theme="light"] [class*="text-gray-4"],
:root[data-theme="light"] [class*="text-gray-5"],
:root[data-theme="light"] [class*="text-gray-6"] {
    color: var(--text-muted) !important;
}

:root[data-theme="light"] [class*="border-gray-"],
:root[data-theme="light"] .border-gray-700,
:root[data-theme="light"] .border-gray-800 {
    border-color: var(--border-muted) !important;
}

:root[data-theme="light"] .backdrop-blur-xl,
:root[data-theme="light"] .bg-dark-900\/50,
:root[data-theme="light"] .bg-dark-800\/50,
:root[data-theme="light"] .bg-dark-800\/80,
:root[data-theme="light"] .bg-dark-900\/30 {
    background-color: var(--surface-panel) !important;
}

:root[data-theme="light"] .bg-black\/80 {
    background-color: rgba(15, 23, 42, 0.75) !important;
}

:root[data-theme="light"] .text-gray-400 a,
:root[data-theme="light"] .text-gray-500 a {
    color: #2563eb !important;
}

:root[data-theme="light"] .border {
    border-color: var(--border-muted) !important;
}

/* Terminal Cursor Blink Animation */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.terminal-cursor {
    animation: blink 1s infinite;
    color: #10ffff;
    font-weight: bold;
}

/* Terminal Input Focus */
#terminal-input:focus + .terminal-cursor {
    animation: none;
    opacity: 1;
}

#terminal-input:focus {
    caret-color: #10ffff;
}

/* Terminal Output */
#terminal-output {
    max-height: 150px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
}

/* Flicker/Blink Effect for Name - Preserves gradient */
@keyframes name-flicker {
    0%, 100% {
        opacity: 1;
    }
    25% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.95;
    }
    75% {
        opacity: 0.4;
    }
}

.name-flicker {
    animation: name-flicker 2.5s ease-in-out infinite;
    display: inline-block;
}


#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

#terminal-output::-webkit-scrollbar-thumb {
    background: #10ffff;
    border-radius: 3px;
}

/* Project Detail Image - Dark Mode Overlay */
.project-detail-image {
    transition: filter 0.3s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
:root[data-theme="dark"] .project-detail-image,
:root:not([data-theme="light"]) .project-detail-image {
    filter: brightness(0.75) contrast(1.1);
}
:root[data-theme="light"] .project-detail-image {
    filter: none;
}
/* Hover zoom effect - override general img:hover */
.project-detail-image:hover {
    transform: scale(1.1) rotate(2deg) !important;
}
:root[data-theme="dark"] .project-detail-image:hover,
:root:not([data-theme="light"]) .project-detail-image:hover {
    filter: brightness(0.85) contrast(1.15);
}
:root[data-theme="light"] .project-detail-image:hover {
    filter: brightness(1.05);
}
