@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Space Grotesk';
    src: url('fonts/SpaceGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-main: #020205;
    --text-primary: #ffffff;
    --text-secondary: #8e90a6;
    --accent-purple: #9d00ff;
    --accent-cyan: #00e5ff;
    --accent-blue: #3366ff;
    --glass-bg: rgba(6, 6, 12, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
    --neon-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    --transition-speed: 0.3s;
}

/* ==================================
   Fonts Setup
   ================================== */
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 13.5px;
}

html, body {
    margin: 0; 
    padding: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #020205;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    border: 2px solid #020205;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00f3ff, #d900ff);
}

/* Firefox scrollbar support */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-purple) #020205;
}

/* Language-specific Typography */
[dir="rtl"] {
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
}
[dir="rtl"] * {
    font-family: 'Estedad', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif !important;
}
/* Keep brand logo always in Space Grotesk regardless of language */
[dir="rtl"] .brand-word-part,
[dir="rtl"] .cyber-logo-text,
[dir="rtl"] .dev-logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
}
[dir="ltr"] {
    font-family: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
}


/* ==================================
   3D Canvas Background
   ================================== */
#canvas-container {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100vw; 
    height: 100vh;
    z-index: 0;
    pointer-events: auto;
}

/* ==================================
   Site Wrapper & Layout (Editorial Grid)
   ================================== */
.site-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    pointer-events: none; /* Let clicks pass to 3D background */
}

/* Grid Lines Removed */

/* ==================================
   Top Header & Navigation (Transparent Grid)
   ================================== */
.main-header {
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    background: rgba(2, 2, 5, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    pointer-events: auto;
    box-sizing: border-box;
    transition: all var(--transition-speed);
}

[dir="rtl"] .main-header {
    left: auto;
    right: 0;
}

.cyber-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.cyber-logo-wrapper:hover {
    transform: scale(1.03);
}
.cyber-logo-wrapper:hover .logo-icon-path {
    stroke-dasharray: 100;
    animation: drawHexagon 2.5s linear infinite;
}
.cyber-logo-svg {
    overflow: visible;
}
.cyber-logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f3ff, #d900ff, #3366ff, #00f3ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s linear infinite;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    transition: text-shadow 0.4s ease;
}

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

.gyro-logo-wrapper:hover .cyber-logo-text,
.gyro-hero-logo:hover .dev-logo {
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.45), 0 0 25px rgba(217, 0, 255, 0.3);
}
@keyframes drawHexagon {
    0% { stroke-dashoffset: 200; }
    100% { stroke-dashoffset: 0; }
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.main-nav {
    display: flex;
    flex-direction: row;
    gap: 35px;
    margin: 0;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color var(--transition-speed);
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--text-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    transition: width var(--transition-speed);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

/* Glassmorphic Buttons with Rotating Liquid Glow */
.lang-btn, .contact-btn {
    position: relative;
    background: rgba(3, 3, 10, 0.8);
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Space Grotesk', 'Estedad', sans-serif;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Cut-corner cyber shape */
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lang-btn {
    font-size: 13px;
    font-weight: 700;
}

.contact-btn {
    font-size: 13px;
    font-weight: 700;
}

/* Cyber outer border line */
.lang-btn::before, .contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(217, 0, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: all 0.4s ease;
    z-index: -1;
}

/* Cyber background sweep & fill */
.lang-btn::after, .contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -2;
}

.lang-btn:hover, .contact-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    letter-spacing: 2.5px;
}

.lang-btn:hover::before {
    background: linear-gradient(135deg, #00f3ff, #3366ff);
}

.contact-btn:hover::before {
    background: linear-gradient(135deg, #d900ff, #3366ff);
}

.lang-btn:hover::after, .contact-btn:hover::after {
    left: 100%;
}

.lang-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.35), 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.08);
}

.contact-btn:hover {
    box-shadow: 0 10px 25px rgba(217, 0, 255, 0.35), 0 0 15px rgba(217, 0, 255, 0.2);
    background: rgba(217, 0, 255, 0.08);
}

/* ==================================
   Content Area & Sections
   ================================== */
.content-area {
    flex: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
}

/* ==================================
   Hero Section
   ================================== */
.hero-section {
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    pointer-events: auto;
}

[dir="rtl"] .hero-section {
    grid-template-columns: 45% 55%; /* Keep columns matching vertical line */
}

/* ==================================
   Minimal Developer Home Layout
   ================================== */
.developer-home {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    pointer-events: auto;
}

.dev-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.cyber-hero-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
    transition: all 0.4s ease;
}
.cyber-hero-logo:hover {
    transform: translateY(-4px);
}
.hero-logo-svg {
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25));
}
.hero-logo-path {
    stroke-dasharray: 150;
    animation: drawHexagonSlow 4s linear infinite;
}
@keyframes drawHexagonSlow {
    0% { stroke-dashoffset: 300; }
    100% { stroke-dashoffset: 0; }
}

[dir="rtl"] .dev-header {
    align-items: flex-start;
}

.dev-logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f3ff, #d900ff, #3366ff, #00f3ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s linear infinite;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    transition: text-shadow 0.4s ease;
}

.logo-accent {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.dev-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
}

[dir="rtl"] .dev-meta {
    letter-spacing: 0;
}

.meta-separator {
    color: var(--accent-purple);
    font-weight: bold;
}

.dev-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 10px 0 0 0;
}

/* ==================================
   Gyroscopic SVG Logo
   ================================== */
.gyro-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.gyro-logo-wrapper:hover {
    transform: scale(1.02);
}

.gyro-logo-svg, .hero-gyro-svg {
    overflow: visible;
}

.gyro-ring {
    transform-origin: 22px 22px;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ring-outer {
    animation: rotateGyroCW 20s linear infinite;
}
.ring-middle {
    animation: rotateGyroCCW 15s linear infinite;
}
.ring-inner {
    animation: rotateGyroCW 10s linear infinite;
}

.gyro-logo-wrapper:hover .ring-outer,
.gyro-hero-logo:hover .ring-outer {
    animation: rotateGyroCW 3s linear infinite;
}

.gyro-logo-wrapper:hover .ring-middle,
.gyro-hero-logo:hover .ring-middle {
    animation: rotateGyroCCW 2.5s linear infinite;
}

.gyro-logo-wrapper:hover .ring-inner,
.gyro-hero-logo:hover .ring-inner {
    animation: rotateGyroCW 1.5s linear infinite;
}

.gyro-glyph {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: 22px 22px;
}

.gyro-logo-wrapper:hover .gyro-glyph,
.gyro-hero-logo:hover .gyro-glyph {
    transform: rotate(180deg);
}

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

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

.gyro-hero-logo {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.gyro-hero-logo:hover {
    transform: translateY(-4px);
}

/* ==================================
   Stacked Glass Panels (Deck Layout)
   ================================== */
.deck-container {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.deck-panel {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.panel-glass-content, .panel-minimal-content {
    width: 100%;
    max-width: 980px;
    background: rgba(3, 3, 8, 0.25);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 28px;
    padding: 50px 35px;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.8s ease,
                border-color 0.8s ease;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    margin: 0 auto;
}

.panel-glass-content:hover, .panel-minimal-content:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 50px 110px rgba(0, 0, 0, 0.85);
}

.panel-projects .panel-glass-content:hover, .panel-projects .panel-minimal-content:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 229, 255, 0.1), 0 50px 110px rgba(0, 0, 0, 0.85);
}

.panel-about .panel-glass-content:hover, .panel-about .panel-minimal-content:hover {
    border-color: rgba(217, 0, 255, 0.2);
    box-shadow: 0 30px 80px rgba(217, 0, 255, 0.1), 0 50px 110px rgba(0, 0, 0, 0.85);
}

.panel-contact .panel-glass-content:hover, .panel-contact .panel-minimal-content:hover {
    border-color: rgba(51, 102, 255, 0.2);
    box-shadow: 0 30px 80px rgba(51, 102, 255, 0.1), 0 50px 110px rgba(0, 0, 0, 0.85);
}

.panel-section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 40px 0;
    text-transform: uppercase;
    text-align: left;
}
[dir="rtl"] .panel-section-title {
    text-align: right;
}

/* Deprecated old flex list styles - styles consolidated at bottom */

.panel-action-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
    margin-top: 10px;
}
.panel-action-link:hover {
    color: var(--accent-cyan);
}
.panel-action-link .arrow-glyph {
    transition: transform 0.3s ease;
}
.panel-action-link:hover .arrow-glyph {
    transform: translateX(8px);
}
[dir="rtl"] .panel-action-link:hover .arrow-glyph {
    transform: translateX(-8px) scaleX(-1);
}

/* Scroll explore indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 60px;
    position: relative;
    user-select: none;
    z-index: 5;
    cursor: pointer;
}

.scroll-cyber-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px dashed rgba(0, 243, 255, 0.25);
    border-radius: 50%;
    top: -10px;
    animation: rotateCyberRing 20s linear infinite;
    pointer-events: none;
}

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

.scroll-mouse-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 2px solid rgba(0, 243, 255, 0.4);
    background: rgba(10, 25, 47, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15), inset 0 0 8px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
    animation: mouseFloat 3s ease-in-out infinite;
}

.scroll-mouse:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.35), inset 0 0 12px rgba(0, 243, 255, 0.2);
}

@keyframes mouseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.scroll-wheel {
    width: 4px;
    height: 9px;
    background: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: scrollWheelAnim 1.6s cubic-bezier(0.15, 0.41, 0.69, 0.94) infinite;
}

@keyframes scrollWheelAnim {
    0% { top: 8px; opacity: 0; transform: translateX(-50%) scaleY(0.5); }
    20% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    80% { opacity: 1; transform: translateX(-50%) scaleY(1); }
    100% { top: 24px; opacity: 0; transform: translateX(-50%) scaleY(0.5); }
}

.scroll-laser-line {
    width: 1px;
    height: 25px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    margin-top: 4px;
    position: relative;
    opacity: 0.6;
    animation: laserPulse 1.6s ease-in-out infinite;
}

@keyframes laserPulse {
    0%, 100% { height: 15px; opacity: 0.3; }
    50% { height: 30px; opacity: 0.8; }
}

.scroll-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: -5px;
}

.scroll-chevrons .chev {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 243, 255, 0.5);
    border-bottom: 2px solid rgba(0, 243, 255, 0.5);
    transform: rotate(45deg);
    opacity: 0;
    animation: chevPulse 1.6s infinite;
}

.scroll-chevrons .chev-1 {
    animation-delay: 0s;
}
.scroll-chevrons .chev-2 {
    animation-delay: 0.2s;
}
.scroll-chevrons .chev-3 {
    animation-delay: 0.4s;
}

@keyframes chevPulse {
    0% { opacity: 0; transform: rotate(45deg) translate(-2px, -2px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(2px, 2px); }
}

.scroll-text {
    font-family: monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    background: linear-gradient(90deg, var(--text-secondary), #fff, var(--text-secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 4s linear infinite;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    font-weight: 500;
}

@keyframes textShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Editorial Bio layout */
.editorial-bio-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

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

.bio-main {
    text-align: left;
}
[dir="rtl"] .bio-main {
    text-align: right;
}

.bio-lead {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 500;
}

.bio-para {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bio-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
[dir="rtl"] .stat-block {
    align-items: flex-end;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-purple);
    line-height: 1;
}

.stat-label {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* Contact layout */
.cinematic-contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 768px) {
    .cinematic-contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-details-col {
    text-align: left;
}
[dir="rtl"] .contact-details-col {
    text-align: right;
}

.contact-pitch {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.info-val {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-form-col {
    display: flex;
    flex-direction: column;
}

.borderless-input {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease;
}
.borderless-input:focus-within {
    border-color: var(--accent-cyan);
}

.form-input-clean {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 1.05rem;
    font-family: inherit;
}

.form-input-clean:disabled {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

/* Fix for browser autofill background */
.form-input-clean:-webkit-autofill,
.form-input-clean:-webkit-autofill:hover,
.form-input-clean:-webkit-autofill:focus,
.form-input-clean:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-clean-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    padding: 16px;
    color: #020205;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
    transition: all 0.4s ease;
    margin-top: 15px;
}
.btn-clean-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.35);
    color: #ffffff;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #020205;
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(157, 0, 255, 0.3) 50%, transparent 80%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    animation: rotateLiquid 8s linear infinite;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.4);
    color: #ffffff;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--accent-purple);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(157, 0, 255, 0.3);
}

/* ==================================
   Portfolio Page
   ================================== */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: auto;
}

.page-header {
    margin-bottom: 40px;
    text-align: center;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: white;
    border-color: transparent;
    box-shadow: var(--neon-shadow);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(145deg, rgba(10, 10, 25, 0.35), rgba(5, 5, 15, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02), 0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2), 0 0 30px rgba(157, 0, 255, 0.15), inset 0 0 15px rgba(0, 229, 255, 0.05);
}

.project-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(4, 4, 8, 0.8);
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.3);
}

[dir="rtl"] .project-category {
    left: auto;
    right: 15px;
}

.project-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech strong {
    color: var(--accent-cyan);
}

.project-link {
    display: inline-block;
    align-self: flex-start;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--accent-cyan);
    padding-bottom: 2px;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.project-link:hover {
    color: var(--accent-cyan);
    border-color: var(--text-primary);
}

/* ==================================
   About Page
   ================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.about-card {
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 40px;
    backdrop-filter: blur(15px);
}

.about-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    color: var(--accent-cyan);
}

.about-bio p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 25px;
}

.timeline-item {
    position: relative;
    padding-left: 25px;
    border-left: 2px solid var(--accent-purple);
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 25px;
    border-left: none;
    border-right: 2px solid var(--accent-purple);
}

.timeline-dot {
    position: absolute;
    top: 5px;
    left: -6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: -6px;
}

.timeline-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin: 5px 0 10px 0;
}

.timeline-desc {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Skills List */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-tag {
    display: inline-block;
    background: rgba(157, 0, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(157, 0, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all var(--transition-speed);
}

.skill-tag:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
}

/* ==================================
   Contact Page
   ================================== */
.contact-container {
    max-width: 650px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all var(--transition-speed);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

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

.alert-success {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.alert-danger {
    background: rgba(255, 0, 100, 0.1);
    color: #ff3366;
    border: 1px solid rgba(255, 0, 100, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

/* ==================================
   Responsive Styles
   ================================== */
@media (max-width: 992px) {
    .main-header {
        padding: 12px 24px;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: fixed !important;
        height: auto !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 16px !important;
        background: rgba(2, 2, 5, 0.88) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0, 243, 255, 0.06);
        gap: 0 !important;
    }
    .gyro-logo-wrapper {
        gap: 8px !important;
    }
    .cyber-logo-text {
        font-size: 18px !important;
        letter-spacing: 1.5px !important;
    }
    .gyro-logo-svg {
        width: 32px !important;
        height: 32px !important;
    }
    .header-right {
        display: flex !important;
        gap: 8px !important;
    }
    .header-right .contact-btn {
        display: none !important;
    }
    .lang-btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
}

/* ==================================
   Redesigned Ultra-Minimal & Decors
   ================================== */
.deco-badge {
    position: absolute;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
    text-transform: uppercase;
}

.deco-badge.top-left { top: 25px; left: 30px; }
.deco-badge.top-right { top: 25px; right: 30px; display: flex; align-items: center; gap: 8px; }
.deco-badge.bottom-left { bottom: 25px; left: 30px; }
.deco-badge.bottom-right { bottom: 25px; right: 30px; }

[dir="rtl"] .deco-badge.top-left { left: auto; right: 30px; }
[dir="rtl"] .deco-badge.top-right { right: auto; left: 30px; }
[dir="rtl"] .deco-badge.bottom-left { left: auto; right: 30px; }
[dir="rtl"] .deco-badge.bottom-right { right: auto; left: 30px; }

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--accent-cyan); }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.centered-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 480px;
    position: relative;
    z-index: 2;
}

.gyro-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.large-gyro {
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.4));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.large-gyro:hover {
    transform: scale(1.08) rotate(15deg);
}

.giant-logo {
    font-size: 5rem !important;
    font-weight: 800;
    letter-spacing: 6px !important;
    margin: 0;
    line-height: 1.1;
}

.section-header-minimal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.section-num {
    font-family: monospace;
    font-size: 1.3rem;
    color: var(--accent-purple);
    font-weight: bold;
}

.minimal-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding-bottom: 30px;
}

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

.cardless-hero {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 100px 0 0 0 !important;
    min-height: 100vh;
}

.brand-typography-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 25px;
    user-select: none;
    direction: ltr !important;
}

.brand-word-part {
    font-size: 6.5rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f3ff, #d900ff, #3366ff, #00f3ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 6s linear infinite;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1;
    text-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
}

.gyro-o-container {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 5px;
    bottom: -4px; /* Align slightly with text baseline */
}

.inline-gyro {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.45)) drop-shadow(0 0 45px rgba(217, 0, 255, 0.25));
}

.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

[dir="rtl"] .hero-grid-layout {
    grid-template-columns: 1.3fr 1fr;
}

.asymmetric-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

[dir="rtl"] .asymmetric-hero {
    align-items: flex-start;
    text-align: right;
}

.nav-squares-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.nav-square {
    position: relative;
    height: 144px;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
    padding: 20px;
    box-sizing: border-box;
    animation: idlePulse 4s infinite alternate ease-in-out;
}

@keyframes idlePulse {
    0% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform: translateY(0); }
    100% { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 15px 40px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1); transform: translateY(-3px); }
}

.nav-square.contact-sq {
    grid-column: span 2;
    height: 108px;
}

.square-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.nav-square:hover .square-glow {
    opacity: 1;
}

.square-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.nav-square.contact-sq .square-content {
    flex-direction: row;
    gap: 20px;
}

.square-icon {
    width: 34px;
    height: 34px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-square.contact-sq .square-icon {
    margin-bottom: 0;
}

.square-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.square-hint {
    font-family: monospace;
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-top: 6px;
    opacity: 0.45;
    transition: opacity 0.4s ease;
}

.nav-square.contact-sq .square-hint {
    margin-top: 0;
}

/* Hover Accent States */
.nav-square:hover {
    transform: translateY(-8px);
}

.project-sq:hover {
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.12),
                inset 0 0 15px rgba(0, 243, 255, 0.04);
}
.project-sq:hover .square-icon {
    color: var(--accent-cyan);
    transform: scale(1.1) rotate(6deg);
}

.about-sq:hover {
    border-color: rgba(217, 0, 255, 0.3);
    box-shadow: 0 20px 40px rgba(217, 0, 255, 0.12),
                inset 0 0 15px rgba(217, 0, 255, 0.04);
}
.about-sq:hover .square-icon {
    color: var(--accent-purple);
    transform: scale(1.1) translateY(-2px);
}

.contact-sq:hover {
    border-color: rgba(51, 102, 255, 0.35);
    box-shadow: 0 20px 40px rgba(51, 102, 255, 0.12),
                inset 0 0 15px rgba(51, 102, 255, 0.04);
}
.contact-sq:hover .square-icon {
    color: var(--accent-blue);
    transform: scale(1.1) translateX(3px);
}

/* Responsive Grid adjustments */
@media (max-width: 1024px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 40px;
    }
    .asymmetric-hero {
        align-items: center;
        text-align: center;
    }
}

/* Volumetric Smoke/Aurora Under-Glow */
.smoke-glow-wrapper {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    opacity: 0.92;
}

.smoke-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    width: 384px;
    height: 384px;
    filter: blur(80px);
    -webkit-filter: blur(80px);
    transition: transform 1s ease;
}

/* Scaled down blobs inside the smaller navigation squares */
.nav-square .smoke-glow-wrapper {
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
}
.nav-square .smoke-blob {
    width: 200px;
    height: 200px;
    filter: blur(35px);
    -webkit-filter: blur(35px);
}

.blob-cyan {
    background: radial-gradient(circle, rgba(0, 243, 255, 0.28) 0%, rgba(51, 102, 255, 0.12) 50%, transparent 80%);
    top: 8%;
    left: 8%;
    animation: floatSmoke1 18s ease-in-out infinite;
}

.blob-purple {
    background: radial-gradient(circle, rgba(217, 0, 255, 0.25) 0%, rgba(51, 102, 255, 0.1) 50%, transparent 80%);
    bottom: 8%;
    right: 8%;
    animation: floatSmoke2 22s ease-in-out infinite;
}

.blob-blue {
    background: radial-gradient(circle, rgba(51, 102, 255, 0.22) 0%, rgba(217, 0, 255, 0.1) 50%, transparent 80%);
    top: 25%;
    left: 20%;
    animation: floatSmoke3 15s ease-in-out infinite;
}

@keyframes floatSmoke1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, 6%) scale(1.06); }
    66% { transform: translate(-6%, 8%) scale(0.94); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatSmoke2 {
    0% { transform: translate(0, 0) scale(1.05); }
    33% { transform: translate(-8%, -5%) scale(0.95); }
    66% { transform: translate(6%, -8%) scale(1.05); }
    100% { transform: translate(0, 0) scale(1.05); }
}

@keyframes floatSmoke3 {
    0% { transform: translate(0, 0) scale(0.95); }
    50% { transform: translate(-6%, 8%) scale(1.06); }
    100% { transform: translate(0, 0) scale(0.95); }
}


#blazor-error-ui {
    display: none !important;
}

/* Ambient Viewport Side Glows */
.side-glow-left, .side-glow-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 480px;
    height: 90vh;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1; /* Above canvas (0), below site content (10) */
    filter: blur(100px);
    -webkit-filter: blur(100px);
    opacity: 0.65;
    will-change: transform, opacity;
}

.side-glow-left {
    left: -220px;
    background: radial-gradient(ellipse at center, rgba(0, 243, 255, 0.55) 0%, rgba(51, 102, 255, 0.2) 50%, transparent 80%);
    animation: sideGlowFloatLeft 22s ease-in-out infinite alternate;
}

.side-glow-right {
    right: -220px;
    background: radial-gradient(ellipse at center, rgba(217, 0, 255, 0.45) 0%, rgba(51, 102, 255, 0.15) 50%, transparent 80%);
    animation: sideGlowFloatRight 22s ease-in-out infinite alternate;
}

@keyframes sideGlowFloatLeft {
    0% { transform: translateY(-50%) translate(0, -10%) scale(0.95); opacity: 0.5; }
    50% { transform: translateY(-50%) translate(20px, 8%) scale(1.1); opacity: 0.65; }
    100% { transform: translateY(-50%) translate(-10px, -6%) scale(0.98); opacity: 0.5; }
}

@keyframes sideGlowFloatRight {
    0% { transform: translateY(-50%) translate(0, 12%) scale(0.95); opacity: 0.45; }
    50% { transform: translateY(-50%) translate(-30px, -8%) scale(1.12); opacity: 0.65; }
    100% { transform: translateY(-50%) translate(15px, 8%) scale(0.98); opacity: 0.45; }
}

/* ==========================================
   ADMIN MODE & CONTENT EDITING STYLES
   ========================================== */
.admin-login-viewport {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 15;
    padding: 20px;
    pointer-events: auto; /* Fix: Enable click and type interactions */
}

.login-card-glass {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 243, 255, 0.03);
    text-align: center;
}

.login-card-header {
    margin-bottom: 35px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
}

.auth-alert {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-bottom: 25px;
    text-align: left;
    letter-spacing: 1px;
}

.auth-success {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.auth-error {
    background: rgba(217, 0, 255, 0.08);
    border: 1px solid rgba(217, 0, 255, 0.3);
    color: #d900ff;
    text-shadow: 0 0 10px rgba(217, 0, 255, 0.4);
}

/* Edit and Plus Triggers */
.admin-editable-container {
    position: relative;
}

.admin-edit-trigger {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 99;
    background: rgba(2, 2, 5, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00f3ff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-edit-trigger:hover {
    transform: scale(1.1);
    background: #00f3ff;
    color: #020205;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    border-color: #00f3ff;
}

.admin-plus-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 243, 255, 0.4);
    border-radius: 16px;
    padding: 10px 20px;
    color: #00f3ff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.admin-plus-trigger:hover {
    background: rgba(0, 243, 255, 0.04);
    border-style: solid;
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Admin Modals */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 1, 3, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    pointer-events: auto; /* Fix: Enable interactions inside modals */
}

.admin-modal-box {
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 243, 255, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: modalAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalAppear {
    from { transform: scale(0.95) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.admin-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.admin-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.admin-modal-close:hover {
    color: #d900ff;
}

.admin-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.admin-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.modal-field-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.btn-modal-action {
    padding: 10px 24px;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.btn-modal-save {
    background: #00f3ff;
    border: 1px solid #00f3ff;
    color: #020205;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.btn-modal-save:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
    transform: translateY(-1px);
}

.btn-modal-delete {
    background: rgba(217, 0, 255, 0.05);
    border: 1px solid rgba(217, 0, 255, 0.3);
    color: #d900ff;
}

.btn-modal-delete:hover {
    background: #d900ff;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(217, 0, 255, 0.4);
}

/* ==========================================
   CINEMATIC SHOWCASE & PREMIUM PROJECT CARDS
   ========================================== */
.cyber-section-frame {
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 50px 35px;
    border: 1px solid rgba(0, 243, 255, 0.08);
    background: rgba(2, 2, 6, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(0, 243, 255, 0.02);
    overflow: visible;
    box-sizing: border-box;
}

.panel-projects {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}

.panel-projects .cyber-section-frame {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 40px !important;
}

.panel-projects .hud-corner-line,
.panel-projects .hud-marker {
    display: none !important;
}

/* HUD Markers */
.hud-marker {
    position: absolute;
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(0, 243, 255, 0.55);
    letter-spacing: 2px;
    user-select: none;
    pointer-events: none;
}

.top-left-marker {
    top: 15px;
    left: 25px;
}
[dir="rtl"] .top-left-marker {
    left: auto;
    right: 25px;
}

.top-right-marker {
    top: 15px;
    right: 25px;
}
[dir="rtl"] .top-right-marker {
    right: auto;
    left: 25px;
}

.bottom-left-marker {
    bottom: 15px;
    left: 25px;
}
[dir="rtl"] .bottom-left-marker {
    left: auto;
    right: 25px;
}

.bottom-right-marker {
    bottom: 15px;
    right: 25px;
}
[dir="rtl"] .bottom-right-marker {
    right: auto;
    left: 25px;
}

/* HUD Corners */
.hud-corner-line {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #00f3ff;
    border-style: solid;
    pointer-events: none;
}

.hud-corner-line.top-left {
    top: -1px; left: -1px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 24px;
}
.hud-corner-line.top-right {
    top: -1px; right: -1px;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 24px;
    border-color: #d900ff;
}
.hud-corner-line.bottom-left {
    bottom: -1px; left: -1px;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 24px;
    border-color: #d900ff;
}
.hud-corner-line.bottom-right {
    bottom: -1px; right: -1px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 24px;
}

/* ==========================================
   3D RING CAROUSEL PORTFOLIO LAYOUT
   ========================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 540px;
    margin: 40px auto 0 auto;
    perspective: 1500px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item-wrapper {
    position: absolute;
    width: 420px; /* Increased from 360px */
    height: 560px; /* Increased from 480px */
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                z-index 0.8s step-end;
    transform-style: preserve-3d;
}

.carousel-item-wrapper .showcase-item {
    height: 100%;
    width: 100%;
}

.carousel-item-wrapper .showcase-img-frame {
    height: 230px !important; /* Increased from 190px */
}

.carousel-item-wrapper .showcase-details {
    padding: 24px !important;
    justify-content: flex-start !important;
}

.carousel-item-wrapper .showcase-title {
    font-size: 1.3rem !important; /* Slightly larger title */
    margin-bottom: 10px !important;
}

.carousel-item-wrapper .showcase-desc {
    font-size: 0.85rem !important; /* Proportional text size */
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 64px; /* Adjusted height */
}

.carousel-item-wrapper .showcase-meta {
    margin-bottom: 15px !important;
    gap: 8px !important;
}

.carousel-item-wrapper .tech-pill {
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
}

/* 3D Ring Positions: 3 in Front (Center, Left, Right), Others orbiting in the back */
.carousel-item-wrapper.pos-front-center {
    transform: translate3d(0, 0, 160px) scale(1) rotateY(0deg);
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.carousel-item-wrapper.pos-front-left {
    transform: translate3d(-400px, 0, 60px) scale(0.85) rotateY(15deg);
    opacity: 0.85;
    z-index: 8;
    pointer-events: auto;
}

.carousel-item-wrapper.pos-front-right {
    transform: translate3d(400px, 0, 60px) scale(0.85) rotateY(-15deg);
    opacity: 0.85;
    z-index: 8;
    pointer-events: auto;
}

.carousel-item-wrapper.pos-back-left {
    transform: translate3d(-540px, -20px, -150px) scale(0.68) rotateY(30deg);
    opacity: 0.4;
    z-index: 5;
    pointer-events: none;
}

.carousel-item-wrapper.pos-back-right {
    transform: translate3d(540px, -20px, -150px) scale(0.68) rotateY(-30deg);
    opacity: 0.4;
    z-index: 5;
    pointer-events: none;
}

.carousel-item-wrapper.pos-far-back-left,
.carousel-item-wrapper.pos-far-back-right {
    transform: translate3d(0, -40px, -350px) scale(0.55);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
}

/* Control Buttons styling */
.carousel-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(3, 3, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #00f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 243, 255, 0.15);
    overflow: hidden;
}

.carousel-control-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(217, 0, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
}

.carousel-control-btn:hover {
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 243, 255, 0.4), 0 0 40px rgba(217, 0, 255, 0.2);
}

.carousel-control-btn:hover::before {
    background: linear-gradient(135deg, #00f3ff, #d900ff);
}

.carousel-control-btn.prev-btn {
    left: 20px;
}

.carousel-control-btn.prev-btn:hover {
    transform: translateY(-50%) scale(1.1) translateX(-3px);
}

.carousel-control-btn.next-btn {
    right: 20px;
}

.carousel-control-btn.next-btn:hover {
    transform: translateY(-50%) scale(1.1) translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel-container {
        height: 520px;
        perspective: 1000px;
    }
    .carousel-item-wrapper {
        width: 300px;
        height: 440px;
    }
    .carousel-item-wrapper.pos-front-center {
        transform: translate3d(0, 0, 120px) scale(1);
    }
    .carousel-item-wrapper.pos-front-left {
        transform: translate3d(-240px, 0, 40px) scale(0.85) rotateY(12deg);
    }
    .carousel-item-wrapper.pos-front-right {
        transform: translate3d(240px, 0, 40px) scale(0.85) rotateY(-12deg);
    }
    .carousel-item-wrapper.pos-back-left {
        transform: translate3d(-340px, -15px, -100px) scale(0.7) rotateY(25deg);
    }
    .carousel-item-wrapper.pos-back-right {
        transform: translate3d(340px, -15px, -100px) scale(0.7) rotateY(-25deg);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 500px;
    }
    .carousel-item-wrapper {
        width: 280px;
        height: 420px;
    }
    /* 1 Item show in front: pos-front-center */
    .carousel-item-wrapper.pos-front-center {
        transform: translate3d(0, 0, 100px) scale(1) rotateY(0deg);
        opacity: 1;
        z-index: 10;
        pointer-events: auto;
    }
    /* Front-left and Front-right push to back as orbiting side items */
    .carousel-item-wrapper.pos-front-left {
        transform: translate3d(-180px, -10px, -120px) scale(0.7) rotateY(25deg);
        opacity: 0.45;
        z-index: 5;
        pointer-events: none;
    }
    .carousel-item-wrapper.pos-front-right {
        transform: translate3d(180px, -10px, -120px) scale(0.7) rotateY(-25deg);
        opacity: 0.45;
        z-index: 5;
        pointer-events: none;
    }
    .carousel-item-wrapper.pos-back-left,
    .carousel-item-wrapper.pos-back-right,
    .carousel-item-wrapper.pos-far-back-left,
    .carousel-item-wrapper.pos-far-back-right {
        transform: translate3d(0, -25px, -220px) scale(0.55);
        opacity: 0.15;
        z-index: 2;
        pointer-events: none;
    }
    .carousel-control-btn.prev-btn {
        left: 10px;
    }
    .carousel-control-btn.next-btn {
        right: 10px;
    }
    
    /* Overall Mobile Responsiveness overrides */
    .brand-word-part {
        font-size: 3rem !important;
        letter-spacing: 1px !important;
    }
    .gyro-o-container {
        width: 40px !important;
        height: 40px !important;
        margin: 0 2px !important;
        bottom: -2px !important;
    }
    .deco-badge {
        font-size: 9px !important;
        padding: 4px 8px !important;
        letter-spacing: 1px !important;
    }
    .deco-badge.bottom-left, 
    .deco-badge.bottom-right {
        display: none !important;
    }
    .deck-panel {
        min-height: 100vh !important;
        height: auto !important;
        padding: 80px 16px 40px 16px !important;
        justify-content: center !important;
    }
    .cardless-hero {
        padding-top: 60px !important;
        min-height: auto !important;
    }
    .hero-grid-layout,
    [dir="rtl"] .hero-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 8px !important;
        max-width: 100% !important;
    }
    .asymmetric-hero,
    [dir="rtl"] .asymmetric-hero {
        align-items: center !important;
        text-align: center !important;
    }
    .dev-meta {
        justify-content: center !important;
    }
    .dev-intro {
        text-align: center !important;
        max-width: 100% !important;
    }
    .nav-squares-container {
        gap: 12px !important;
    }
    .nav-square {
        height: 110px !important;
    }
    .nav-square.contact-sq {
        height: 80px !important;
    }
    .panel-projects .cyber-section-frame {
        padding: 0 10px !important;
    }
    .section-header-minimal {
        margin-bottom: 25px !important;
    }
    .panel-section-title {
        font-size: 2rem !important;
    }
    .panel-minimal-content {
        padding: 30px 16px !important;
        border-radius: 18px !important;
    }
    .scroll-indicator {
        margin-top: 25px !important;
    }
}

@media (max-width: 480px) {
    .brand-word-part {
        font-size: 2.3rem !important;
        letter-spacing: 1px !important;
    }
    .gyro-o-container {
        width: 30px !important;
        height: 30px !important;
        bottom: -1px !important;
    }
    .carousel-item-wrapper {
        width: 260px;
        height: 440px;
    }
    .carousel-item-wrapper .showcase-img-frame {
        height: 220px !important;
    }
}

.showcase-item {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    padding: 1px; /* border thickness */
    clip-path: polygon(20px 0%, 100% 0%, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0% 100%, 0% 20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
    height: 100%;
    cursor: pointer;
    box-sizing: border-box;
}

.showcase-item:hover,
.pos-front-center .showcase-item {
    background: linear-gradient(135deg, #00f3ff 0%, #d900ff 100%);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 243, 255, 0.12), 
                0 0 50px rgba(217, 0, 255, 0.08);
}

.pos-front-center .showcase-item {
    cursor: default;
}

.showcase-item-inner {
    background: rgba(4, 4, 8, 0.95);
    clip-path: polygon(19.5px 0%, 100% 0%, 100% calc(100% - 19.5px), calc(100% - 19.5px) 100%, 0% 100%, 0% 19.5px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    align-items: stretch;
    transition: background 0.3s ease;
    box-sizing: border-box;
}

.showcase-card-smoke {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.85);
    overflow: visible;
}

.showcase-item:hover .showcase-card-smoke,
.pos-front-center .showcase-item .showcase-card-smoke {
    opacity: 0.75;
    transform: scale(1.1);
}

.cyber-corners {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.cyber-corners::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #00f3ff;
    border-left: 2px solid #00f3ff;
    border-top-left-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-corners::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    border-bottom: 2px solid #d900ff;
    border-right: 2px solid #d900ff;
    border-bottom-right-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover .cyber-corners::before,
.pos-front-center .showcase-item .cyber-corners::before {
    width: 25px;
    height: 25px;
    box-shadow: -2px -2px 10px rgba(0, 243, 255, 0.5);
}

.showcase-item:hover .cyber-corners::after,
.pos-front-center .showcase-item .cyber-corners::after {
    width: 25px;
    height: 25px;
    box-shadow: 2px 2px 10px rgba(217, 0, 255, 0.5);
}

.showcase-img-frame {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.showcase-img-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%);
    background-size: 100% 4px;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.showcase-item:hover .showcase-img-frame::after,
.pos-front-center .showcase-item .showcase-img-frame::after {
    opacity: 0.55;
}

.showcase-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.showcase-item:hover .showcase-img-frame img,
.pos-front-center .showcase-item .showcase-img-frame img {
    transform: scale(1.05) rotate(-0.5deg);
    filter: brightness(1.1) contrast(1.2);
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 243, 255, 0) 0%, rgba(0, 243, 255, 1) 50%, rgba(0, 243, 255, 0) 100%);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.8), 0 0 20px rgba(0, 243, 255, 0.4);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.showcase-item:hover .scan-line,
.pos-front-center .showcase-item .scan-line {
    opacity: 1;
    animation: cyber-scan 2.5s linear infinite;
}

@keyframes cyber-scan {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.showcase-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(4, 4, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #00f3ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.35);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 8px rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
    z-index: 6;
}

.showcase-item:hover .showcase-tag,
.pos-front-center .showcase-item .showcase-tag {
    border-color: #00f3ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 12px rgba(0, 243, 255, 0.4);
}

[dir="rtl"] .showcase-tag {
    left: auto;
    right: 15px;
}

.showcase-details {
    padding: 30px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: auto;
    justify-content: flex-start;
    box-sizing: border-box;
}

[dir="rtl"] .showcase-details {
    align-items: flex-end;
    text-align: right;
}

.project-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.project-serial {
    font-family: monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 1px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #39ff14;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

.status-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #39ff14;
    box-shadow: 0 0 8px #39ff14;
    animation: status-blink 1.5s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.showcase-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.showcase-item:hover .showcase-title,
.pos-front-center .showcase-item .showcase-title {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.showcase-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 24px;
}

.showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-pill {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.showcase-item:hover .tech-pill,
.pos-front-center .showcase-item .tech-pill {
    border-color: rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.1);
}

.tech-pill:hover {
    border-color: #d900ff !important;
    color: #d900ff !important;
    background: rgba(217, 0, 255, 0.05) !important;
    box-shadow: 0 0 8px rgba(217, 0, 255, 0.2) !important;
}

.showcase-footer-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.showcase-item:hover .showcase-footer-action,
.pos-front-center .showcase-item .showcase-footer-action {
    color: #00f3ff;
}

.action-arrow {
    transition: transform 0.3s ease;
}

.showcase-item:hover .action-arrow,
.pos-front-center .showcase-item .action-arrow {
    transform: translateX(6px);
}

@media (max-width: 992px) {
    .showcase-item {
        clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
        padding: 1px;
    }
    .showcase-item-inner, .showcase-item:nth-child(even) .showcase-item-inner {
        clip-path: polygon(14.5px 0%, 100% 0%, 100% calc(100% - 14.5px), calc(100% - 14.5px) 100%, 0% 100%, 0% 14.5px);
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    .showcase-img-frame {
        height: 220px;
    }
    .showcase-details {
        padding: 20px;
    }
    .cyber-section-frame {
        padding: 40px 20px !important;
    }
}

/* Floating Back to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(3, 3, 10, 0.85);
    border: none;
    color: #00f3ff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Outer HUD rotating border */
.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 243, 255, 0.4);
    animation: hud-spin-reverse 12s linear infinite;
    transition: all 0.4s ease;
}

/* Inner neon gradient border */
.scroll-to-top-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(217, 0, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.4s ease;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.scroll-to-top-btn:hover {
    color: #ffffff;
    transform: scale(1.1) translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(0, 243, 255, 0.5), 
                0 0 50px rgba(217, 0, 255, 0.3);
}

.scroll-to-top-btn:hover::before {
    inset: -7px;
    border-color: #d900ff;
    border-style: dotted;
    animation: hud-spin 4s linear infinite;
}

.scroll-to-top-btn:hover::after {
    background: linear-gradient(135deg, #00f3ff, #d900ff);
}

.scroll-to-top-btn svg {
    z-index: 2;
    transition: transform 0.3s ease;
}

.scroll-to-top-btn:hover svg {
    animation: bounceUp 1.2s infinite ease-in-out;
    filter: drop-shadow(0 0 5px #00f3ff);
}

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

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

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

@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ==================================
   Project Details Page & Image Slider
   ================================== */
.project-detail-viewport {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 80px 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: auto;
}

.detail-back-bar {
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    border-radius: 4px;
}

.back-link:hover {
    color: #00f3ff;
    border-color: rgba(0, 243, 255, 0.3);
    background: rgba(0, 243, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
    transform: translateX(-4px);
}

[dir="rtl"] .back-link:hover {
    transform: translateX(4px);
}

.detail-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 100px 0;
    color: #00f3ff;
    font-family: monospace;
    letter-spacing: 2px;
}

.glow-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 243, 255, 0.1);
    border-top: 2px solid #00f3ff;
    border-radius: 50%;
    animation: hud-spin 1s linear infinite;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.detail-card-container {
    padding: 40px !important;
    width: 100%;
    box-sizing: border-box;
}

.detail-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-admin-bar {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

/* Amazing Image Slider */
.detail-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(2, 2, 5, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.detail-slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
}

.detail-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.detail-slide.slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.05);
}

.detail-slider-btn {
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(3, 3, 10, 0.8);
}

.detail-slider-btn.prev-btn {
    left: 25px;
}

.detail-slider-btn.next-btn {
    right: 25px;
}

.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #00f3ff;
    transform: scale(1.2);
    box-shadow: 0 0 8px #00f3ff;
}

.slider-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Detail Content Section */
.detail-content-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 25px;
}

[dir="rtl"] .detail-content-section {
    align-items: flex-end;
    text-align: right;
}

.detail-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: monospace;
}

.detail-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #00f3ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.detail-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.15;
}

.detail-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 850px;
    margin: 0;
}

.detail-meta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.meta-label {
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    letter-spacing: 2px;
}

.detail-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-action-bar {
    margin-top: 15px;
    width: 100%;
}

.detail-visit-btn {
    text-decoration: none;
    font-size: 12px;
    gap: 8px;
}

.visit-arrow {
    transition: transform 0.3s ease;
}

.detail-visit-btn:hover .visit-arrow {
    transform: translateX(5px);
}

[dir="rtl"] .detail-visit-btn:hover .visit-arrow {
    transform: translateX(-5px) rotate(180deg);
}

/* Detail page visit button on project cards */
.showcase-action-wrapper {
    margin-top: 15px;
    width: 100%;
    display: flex;
}

[dir="rtl"] .showcase-action-wrapper {
    justify-content: flex-end;
}

.cyber-detail-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Space Grotesk', 'Estedad', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff !important;
    background: rgba(3, 3, 10, 0.85);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: none;
}

.cyber-detail-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.4), rgba(217, 0, 255, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.4s ease;
    z-index: -1;
}

.cyber-detail-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: all 0.5s ease;
    z-index: -2;
}

.cyber-detail-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02);
    letter-spacing: 3px;
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.35), 0 0 15px rgba(0, 243, 255, 0.2);
    background: rgba(0, 243, 255, 0.08);
}

.cyber-detail-btn:hover::before {
    background: linear-gradient(135deg, #00f3ff, #d900ff);
}

.cyber-detail-btn:hover::after {
    left: 100%;
}

/* Edit Form inside Details */
.edit-form-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.edit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .hud-marker {
        display: none !important;
    }
    .edit-form-row {
        grid-template-columns: 1fr;
    }
    .detail-slider-container {
        height: 300px;
    }
    .detail-title {
        font-size: 2rem;
    }
    .detail-card-container {
        padding: 24px 20px 44px 20px !important;
    }
}

/* Upload Center Styles */
.upload-center-container {
    background: rgba(3, 3, 10, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.upload-zone-wrapper {
    position: relative;
    width: 100%;
}

.cyber-upload-box {
    border: 1px dashed rgba(0, 243, 255, 0.4);
    background: rgba(0, 243, 255, 0.02);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-upload-box:hover {
    border-color: #00f3ff;
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.hidden-file-input {
    display: none;
}

.upload-box-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.upload-icon {
    color: #00f3ff;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.5));
    transition: transform 0.3s ease;
}

.cyber-upload-box:hover .upload-icon {
    transform: translateY(-3px);
}

.upload-text-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.upload-text-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.upload-progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, #00f3ff, #d900ff);
    animation: upload-loading 1.5s infinite ease-in-out;
}

@keyframes upload-loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: block;
    margin-top: 5px;
    font-size: 0.65rem;
    color: #00f3ff;
    font-family: monospace;
    text-align: center;
}

.upload-error-text {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #ff3366;
    font-family: monospace;
    text-align: center;
}

/* Preview Grid */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.preview-item-card {
    position: relative;
    height: 85px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.preview-item-card:hover {
    border-color: #00f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.2);
}

.preview-item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 51, 102, 0.85);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.preview-remove-btn:hover {
    background: #ff3366;
    transform: scale(1.1);
}

/* Quill Dark Theme Overrides */
.quill-editor-wrapper {
    width: 100%;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(3, 3, 10, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.15);
    transition: all 0.3s ease;
}

.quill-editor-wrapper:focus-within {
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

.ql-toolbar.ql-snow {
    background: rgba(3, 3, 10, 0.85) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15) !important;
    padding: 10px !important;
}

.ql-container.ql-snow {
    border: none !important;
    background: transparent !important;
    font-family: 'Space Grotesk', 'Estedad', sans-serif !important;
    font-size: 0.95rem !important;
}

.ql-editor {
    color: rgba(255, 255, 255, 0.85) !important;
    min-height: 150px;
    padding: 15px !important;
}

/* Toolbar controls styling */
.ql-snow .ql-stroke {
    stroke: rgba(255, 255, 255, 0.6) !important;
}

.ql-snow .ql-fill {
    fill: rgba(255, 255, 255, 0.6) !important;
}

.ql-snow .ql-picker {
    color: rgba(255, 255, 255, 0.6) !important;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: #00f3ff !important;
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: #00f3ff !important;
}

.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active {
    color: #00f3ff !important;
}

.ql-snow .ql-picker-options {
    background-color: #05050f !important;
    border: 1px solid rgba(0, 243, 255, 0.15) !important;
}

.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected {
    color: #00f3ff !important;
}

/* Global Quill Alignment Styles */
.ql-align-center {
    text-align: center !important;
}
.ql-align-right {
    text-align: right !important;
}
.ql-align-justify {
    text-align: justify !important;
}

/* Expandable Description */
.description-expandable-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.description-expandable-container.collapsed {
    max-height: 120px;
}

.description-expandable-container.expanded {
    max-height: 2000px;
}

.description-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(1, 1, 3, 0.95));
    pointer-events: none;
}

.btn-show-more-toggle {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    font-family: 'Space Grotesk', 'Estedad', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 243, 255, 0.05);
    text-transform: uppercase;
}

.btn-show-more-toggle:hover {
    background: rgba(0, 243, 255, 0.08);
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-1px);
}

/* Bulletproof RTL layout helper for Project Details content section */
.rtl-layout {
    direction: rtl !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.rtl-layout .detail-title, 
.rtl-layout .detail-description,
.rtl-layout .detail-header-meta,
.rtl-layout .detail-meta-group {
    text-align: right !important;
}

.rtl-layout .detail-header-meta {
    flex-direction: row-reverse !important;
}

/* ==================================
   CUSTOM BLAZOR RECONNECT UI
   ================================== */
#components-reconnect-modal {
    display: none !important;
}

#components-reconnect-modal.components-reconnect-show, 
#components-reconnect-modal.components-reconnect-failed, 
#components-reconnect-modal.components-reconnect-rejected {
    display: flex !important;
    position: fixed !important;
    bottom: 35px !important;
    right: 110px !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
    pointer-events: none;
}

.cyber-reconnect-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(3, 3, 10, 0.85);
    border: 1px solid rgba(0, 243, 255, 0.4);
    border-radius: 6px;
    padding: 10px 18px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15), inset 0 0 10px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cyber-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid #00f3ff;
    border-right: 2px solid #d900ff;
    border-radius: 50%;
    animation: cyberSpin 0.8s linear infinite;
}

.reconnect-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00f3ff;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    animation: pulseText 1.5s ease-in-out infinite;
}

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

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ================================== */
@media (max-width: 768px) {
    /* Extreme optimization: Completely hide huge blurred animated elements */
    .smoke-blob,
    .smoke-glow-wrapper,
    .side-glow-left,
    .side-glow-right,
    .showcase-card-smoke,
    .scan-line {
        display: none !important;
        animation: none !important;
    }

    /* Disable heavy backdrop-filters and box shadows on mobile to stop hanging/lag */
    .main-header, 
    .lang-btn, 
    .contact-btn, 
    .scroll-mouse, 
    .panel-glass-content, 
    .cyber-section-frame,
    .cyber-btn,
    .project-card,
    .detail-overlay,
    .admin-modal-box {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    /* Hardware acceleration for elements that move/animate */
    .scroll-cyber-ring,
    .scroll-mouse,
    .chevron,
    .cyber-logo-text,
    .particle-system {
        will-change: transform;
    }
    
    /* Stop heavy transition lag when clicking next/prev on carousel */
    .showcase-item {
        /* Remove 'all' transition to stop background gradient cross-fading lag */
        transition: transform 0.4s ease, opacity 0.4s ease !important;
    }
    
    .carousel-item-wrapper {
        /* Speed up carousel slide and only animate hardware-accelerated properties */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease !important;
        will-change: transform, opacity;
    }
}
/* ==========================================
   SCROLL SNAPPING & SECTION ALIGNMENT FIXES
   ========================================== */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.deck-panel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.cyber-section-frame, .panel-minimal-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 240px);
}

.section-header-minimal {
    flex-shrink: 0;
}

.carousel-container, 
.cinematic-contact-layout, 
.opportunities-tabs-container, 
.about-content {
    margin-top: auto;
    margin-bottom: auto;
}

/* ==========================================
   NEXT SECTION BUTTON FIX
   ========================================== */
.scroll-next-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 99999; /* ULTRA HIGH to ensure it is never covered */
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d900ff, #7b1fa2);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(217,0,255,0.4), 0 0 30px rgba(0,0,0,0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none !important;
}

.scroll-next-btn.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto !important;
}

.scroll-next-btn:hover {
    transform: translateY(6px) scale(1.1);
    background: linear-gradient(135deg, #ff00ff, #9d00ff);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(217, 0, 255, 0.6);
}

.scroll-next-btn svg {
    transition: transform 0.3s ease;
}

.scroll-next-btn:hover svg {
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .scroll-next-btn {
        bottom: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
    }
}
