/* ============================================
   BRENALDMEDIA.COM - PROFESSIONAL BLACK THEME
   INSPIRED BY BLOG DESIGN - NO GLOW EFFECTS
   Last Updated: March 2025
   ============================================ */

/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --bg-dark: #111827;
    --bg-darker: #1f2937;
    --bg-card: #374151;
    --card-bg: #374151;
    --text-light: #f9fafb;
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-gray: #9ca3af;
    --border: #4b5563;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --code-bg: #1e293b;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Battery Level Colors */
    --battery-critical: #ef4444;
    --battery-low: #f59e0b;
    --battery-medium: #fbbf24;
    --battery-high: #10b981;
    --battery-full: #10b981;
    
    /* Network Colors */
    --network-2g: #ef4444;
    --network-3g: #f59e0b;
    --network-4g: #10b981;
    --network-5g: #3b82f6;
    --network-wifi: #3b82f6;
    
    /* Z-index layers */
    --z-background: -5;
    --z-behind: -1;
    --z-normal: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
    --z-notification: 900;
}

/* Light Mode Variables */
body.light-mode {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #3b82f6;
    --accent: #8b5cf6;
    --bg-dark: #f9fafb;
    --bg-darker: #f3f4f6;
    --bg-card: #ffffff;
    --card-bg: #ffffff;
    --text-light: #1f2937;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    min-height: 100vh;
}

/* ==================== CUSTOM CURSOR ==================== */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.custom-cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* ==================== PROGRESS BAR ==================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary);
    z-index: 1001;
    transition: width 0.3s;
}

/* ==================== NEW BACKGROUND CANVASES ==================== */
#bgCanvas,
#matrixCanvas,
#waveCanvas,
#neuralCanvas,
#particleSystemCanvas,
#voronoiCanvas,
#sphereCanvas,
#ouroborosCanvas,
#gridCanvas,
#quantumCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-behind);
}

#bgCanvas { opacity: 0.3; z-index: -5; }
#matrixCanvas { opacity: 0.15; z-index: -4; }
#waveCanvas { bottom: 0; top: auto; height: 150px; z-index: -3; }
#neuralCanvas { opacity: 0.1; z-index: -5; }
#particleSystemCanvas { opacity: 0.2; z-index: -2; }
#voronoiCanvas { opacity: 0.1; z-index: -5; }
#sphereCanvas { 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 400px; 
    height: 400px; 
    z-index: -4; 
}
#ouroborosCanvas { 
    bottom: 0; 
    right: 0; 
    top: auto; 
    left: auto; 
    width: 300px; 
    height: 300px; 
    z-index: -3; 
}
#gridCanvas { opacity: 0.1; z-index: -5; }
#quantumCanvas { opacity: 0.15; z-index: -5; }

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

/* ==================== VISITOR COUNTER ==================== */
.visitor-counter {
    position: fixed;
    top: 120px;
    left: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: var(--z-dropdown);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.visitor-counter.fade-away {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.visitor-counter i {
    color: var(--secondary);
    animation: pulse 2s infinite;
}

#visitorCount {
    font-weight: 700;
    color: var(--primary);
}

/* ==================== POPOUT NOTIFICATION ==================== */
.popout-notification {
    position: fixed;
    top: 120px;
    right: 20px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: var(--shadow);
    z-index: var(--z-notification);
    animation: slideInRight 0.3s ease;
    max-width: 300px;
    border-left: 3px solid var(--secondary);
    font-size: 0.9rem;
}

.popout-notification.slide-away {
    animation: slideOutRight 0.3s ease forwards;
}

.popout-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popout-content i {
    font-size: 0.9rem;
    color: var(--secondary);
}

.popout-message {
    font-size: 0.85rem;
    font-weight: 500;
}

.popout-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 2px 5px;
}

.popout-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    position: fixed;
    top: 120px;
    right: 20px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: var(--z-toast);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }
.toast.warning { border-left-color: var(--warning); }

.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.info i { color: var(--info); }
.toast.warning i { color: var(--warning); }

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0 5px;
    margin-left: auto;
    font-size: 1rem;
}

.toast-close:hover {
    color: var(--text-light);
}

/* ==================== PROJECT REQUEST BUTTON ==================== */
.project-request-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    transition: var(--transition);
    z-index: var(--z-fixed);
    border: none;
    font-size: 1rem;
}

.project-request-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.project-request-btn i {
    font-size: 1.2rem;
}

/* ==================== PROJECT REQUEST PAPER MODAL ==================== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: var(--z-modal);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.project-modal.active {
    display: flex;
}

.paper-modal {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: paperOpen 0.5s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

@keyframes paperOpen {
    0% { transform: scale(0.3) rotate(-5deg); opacity: 0; }
    50% { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.paper-modal h2 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.8rem;
    text-align: center;
}

.paper-modal h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.paper-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s;
    z-index: 10;
}

.paper-close:hover {
    color: var(--primary);
}

.paper-form {
    margin-top: 20px;
}

.paper-form .form-group {
    margin-bottom: 20px;
}

.paper-form input,
.paper-form textarea,
.paper-form select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.paper-form input:focus,
.paper-form textarea:focus,
.paper-form select:focus {
    border-color: var(--secondary);
    outline: none;
}

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

.paper-submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.paper-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== ADMIN MODAL ==================== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-modal);
    backdrop-filter: blur(5px);
}

.admin-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    position: relative;
    animation: modalPop 0.3s ease;
    box-shadow: var(--shadow-xl);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.admin-modal-content h2 {
    color: var(--secondary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.admin-modal-content h2 i {
    color: var(--primary);
    margin-right: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.admin-login-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Voice Assistant Button - REMOVED (not useful) */

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-fixed);
    transition: var(--transition);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.big-b {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    transition: var(--transition);
}

.logo:hover .big-b {
    transform: rotate(360deg);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: rotate(360deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: calc(var(--z-fixed) + 1);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* Admin Trigger (hidden) */
.admin-trigger {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    z-index: var(--z-fixed);
    cursor: pointer;
    opacity: 0;
}

/* ==================== FADE UP ANIMATION ==================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: var(--z-normal);
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 20px 0;
}

.typed-text {
    color: var(--secondary);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--secondary);
    animation: blink 1s infinite;
}

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

/* Simple Explanation */
.simple-explanation {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: var(--shadow);
}

.simple-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.simple-text i {
    color: var(--primary);
    font-size: 1.5rem;
}

.simple-text span {
    color: var(--text-light);
}

body.light-mode .simple-text span {
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

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

.btn.secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

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

.btn.outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Live Stats */
.live-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-bubble:hover {
    transform: translateY(-3px);
}

.stat-bubble i {
    font-size: 1.5rem;
    color: var(--secondary);
}

.stat-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== 3D CUBE ==================== */
.hero-3d {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interactive-cube-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.floating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: grab;
    margin: 20px auto;
}

.floating-cube:active {
    cursor: grabbing;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.2);
    border: 2px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

body.light-mode .cube-face {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.cube-face:hover {
    background: rgba(37, 99, 235, 0.4);
    border-color: var(--primary);
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 80px 20px;
    background: var(--bg-darker);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: badgePulse 2s infinite;
    box-shadow: var(--shadow-lg);
}

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

.experience-badge .years {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.experience-badge .text {
    font-size: 0.8rem;
    color: white;
    opacity: 0.9;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==================== INTERACTIVE ZONE ==================== */
.interactive-zone {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
}

.interactive-zone h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interactive-zone h4 i {
    color: var(--primary);
}

.zone-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.zone-tab {
    padding: 10px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-gray);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.zone-tab.active,
.zone-tab:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

.zone-content {
    display: none;
    animation: slideIn 0.5s ease;
}

.zone-content.active {
    display: block;
}

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

/* ==================== DEVICE DETECTIVE ==================== */
.device-stats {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.device-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.device-row:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
}

.device-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-weight: 500;
}

.device-label i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--secondary);
    transition: var(--transition);
}

/* Battery Level Colors */
.battery-critical { color: var(--battery-critical) !important; }
.battery-low { color: var(--battery-low) !important; }
.battery-medium { color: var(--battery-medium) !important; }
.battery-high { color: var(--battery-high) !important; }
.battery-full { color: var(--battery-full) !important; }

/* Network Type Colors */
.network-5g { color: var(--network-5g) !important; }
.network-4g { color: var(--network-4g) !important; }
.network-3g { color: var(--network-3g) !important; }
.network-2g { color: var(--network-2g) !important; }
.network-wifi { color: var(--network-wifi) !important; }

/* Device Value Animation */
.device-value {
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
}

.pulse-value {
    animation: valuePulse 0.5s ease;
}

@keyframes valuePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--primary); }
}

/* Icon Animations */
.bounce-icon {
    animation: bounce 2s infinite;
}

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

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

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

.pulse-icon {
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--primary); }
}

/* ==================== TYPING ZONE ==================== */
.typing-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.typing-stats span {
    color: var(--text-gray);
    font-size: 1rem;
}

.typing-stats span span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 5px;
}

.typing-text {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 1.1rem;
    line-height: 1.8;
    border: 1px solid var(--border);
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    max-height: 150px;
    overflow-y: auto;
}

.typing-text .char {
    transition: color 0.2s;
}

.typing-text .char.correct {
    color: var(--success);
}

.typing-text .char.incorrect {
    color: var(--error);
}

#typingInput {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

#typingInput:focus {
    border-color: var(--secondary);
    outline: none;
}

#typingInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== COLOR CHALLENGE ==================== */
.color-box {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    margin: 20px 0;
    transition: var(--transition);
    border: 2px solid var(--border);
}

.color-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.color-option {
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-size: 0.9rem;
}

.color-option:hover {
    transform: translateY(-3px);
}

.color-option.wrong {
    animation: wrongShake 0.3s ease;
}

@keyframes wrongShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.color-score {
    font-size: 1.2rem;
    text-align: center;
    margin: 15px 0;
    color: var(--text-light);
}

.color-score span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.color-score span.pop {
    animation: numberPop 0.3s ease;
}

@keyframes numberPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); color: var(--primary); }
}

/* ==================== CODE PLAYGROUND ==================== */
.code-playground {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#liveCodeInput {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 150px;
}

#liveCodeInput:focus {
    border-color: var(--secondary);
    outline: none;
}

#runCodeBtn {
    align-self: flex-start;
}

.code-preview {
    background: white;
    border-radius: 10px;
    padding: 15px;
    min-height: 150px;
    border: 1px solid var(--border);
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
    transition: var(--transition);
}

.stat-number.animate {
    animation: numberPop 0.5s ease;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.skill-category {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary);
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.skill-item:hover {
    transform: translateX(10px);
    border-color: var(--secondary);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 1.5s ease;
    position: relative;
    overflow: hidden;
}

/* Skill Stats */
.skill-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-stat-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.skill-stat-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.skill-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.skill-stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ==================== WHAT I BUILD SECTION ==================== */
.what-i-build {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.build-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.build-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.build-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.build-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.build-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.build-features {
    list-style: none;
}

.build-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.build-features i {
    color: var(--success);
    font-size: 0.9rem;
}

.build-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid var(--border);
}

.build-cta h3 {
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.build-cta p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 100px 40px;
    background: var(--bg-dark);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

.pulse-on-view {
    animation: pulse 2s infinite;
}

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

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.service-stats span {
    padding: 3px 10px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    border: 1px solid var(--primary);
}

/* ==================== TECH COMPARISON ==================== */
.tech-comparison {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.comparison-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    text-align: center;
}

.comparison-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.comparison-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.comparison-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-card h4 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.tech-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--primary);
    flex-wrap: wrap;
}

.tech-icons i {
    transition: var(--transition);
}

.tech-icons i:hover {
    transform: scale(1.2);
    color: var(--secondary);
}

.tech-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.tech-features {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.tech-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-features i {
    color: var(--success);
    font-size: 0.9rem;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.project-filters {
    margin-bottom: 40px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

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

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

#projectSearch {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 1rem;
}

#projectSearch:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Projects Grid - Scrollable */
.projects-grid-wrapper {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.projects-grid-wrapper::-webkit-scrollbar {
    width: 8px;
}

.projects-grid-wrapper::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.projects-grid-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.projects-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    min-height: 200px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.project-card.hidden {
    display: none !important;
}

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

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

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

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
    max-height: 80px;
    overflow-y: auto;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    max-height: 60px;
    overflow-y: auto;
}

.tech-tag {
    padding: 5px 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary);
    color: white;
}

.project-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary);
    gap: 10px;
}

.project-link i {
    font-size: 0.9rem;
}

/* ==================== SHOWCASE 3D ==================== */
.showcase {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.showcase-container {
    position: relative;
    max-width: 500px;
    margin: 50px auto;
    perspective: 1000px;
}

.showcase-3d {
    width: 100%;
    padding-top: 100%;
    position: relative;
}

.showcase-cube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: grab;
}

.showcase-cube:active {
    cursor: grabbing;
}

.showcase-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    backface-visibility: visible;
}

.showcase-face.front { transform: translateZ(200px); }
.showcase-face.back { transform: rotateY(180deg) translateZ(200px); }
.showcase-face.right { transform: rotateY(90deg) translateZ(200px); }
.showcase-face.left { transform: rotateY(-90deg) translateZ(200px); }
.showcase-face.top { transform: rotateX(90deg) translateZ(200px); }
.showcase-face.bottom { transform: rotateX(-90deg) translateZ(200px); }

.showcase-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.showcase-face:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h3 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 5px;
}

.showcase-overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
}

.showcase-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.showcase-prev,
.showcase-next {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.showcase-prev:hover,
.showcase-next:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.showcase-prev:active,
.showcase-next:active {
    transform: scale(0.95);
}

/* ==================== VIDEO TESTIMONIALS ==================== */
.video-testimonials {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.video-grid-wrapper {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.video-grid-wrapper::-webkit-scrollbar {
    width: 8px;
}

.video-grid-wrapper::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.video-grid-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.video-grid-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    min-height: 200px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    z-index: 2;
    opacity: 0.9;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail i {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 2;
}

.video-card h4 {
    padding: 15px 15px 5px;
    color: var(--secondary);
    font-size: 1.1rem;
}

.video-card p {
    padding: 0 15px 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
    max-height: 60px;
    overflow-y: auto;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: var(--error);
    transform: rotate(90deg);
}

#modalVideo {
    width: 100%;
    border-radius: 10px;
    background: black;
}

/* ==================== TESTIMONIALS SLIDER ==================== */
.testimonials {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.testimonials-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary);
    transition: var(--transition);
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.1);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    position: relative;
}

.testimonial-content i {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
}

.testimonial-content h4 {
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.testimonial-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.testimonial-typing-area {
    min-height: 100px;
    padding: 20px;
    margin: 20px 0;
    background: var(--bg-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.typing-text-display {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--secondary);
    font-weight: 500;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 24px;
    background: var(--secondary);
    margin-left: 5px;
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
}

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

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary);
    transform: scale(1.1);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ==================== PRICING SECTION ==================== */
.pricing {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    border-color: transparent;
    color: white;
}

.pricing-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    transition: var(--transition);
    text-align: center;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}

.pricing-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price span {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--secondary);
    font-size: 0.9rem;
}

.pricing-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

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

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px;
}

/* ==================== PROJECT TRACKER ==================== */
.project-tracker {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.tracker-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tracker-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
}

.tracker-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.project-status {
    padding: 4px 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.project-progress {
    position: relative;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.8rem;
    color: var(--secondary);
}

.project-deadline {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-deadline i {
    color: var(--primary);
}

/* ==================== LIVE CODE DEMO ==================== */
.live-code {
    padding: 100px 40px;
    background: var(--bg-dark);
}

.demo-player {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 50px;
}

.demo-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-darker);
    flex-wrap: wrap;
}

.demo-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.demo-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.demo-tab.active {
    color: var(--secondary);
}

.demo-tab.active::after {
    transform: scaleX(1);
}

.demo-tab:hover {
    color: var(--secondary);
}

.demo-screen {
    padding: 20px;
    min-height: 300px;
}

.demo-code,
.demo-edit,
.demo-design {
    display: none;
}

.demo-code.active,
.demo-edit.active,
.demo-design.active {
    display: block;
}

.editor-header {
    background: #1e1e1e;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.filename {
    margin-left: 10px;
    color: #abb2bf;
    font-size: 0.9rem;
}

.demo-code pre {
    margin: 0;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
}

.demo-code code {
    font-size: 0.9rem;
}

.edit-preview,
.design-preview {
    background: #1e1e1e;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.placeholder-preview {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
    border-radius: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.placeholder-preview i {
    font-size: 4rem;
    color: var(--secondary);
    animation: pulse 2s infinite;
}

.placeholder-preview h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
}

.placeholder-preview p {
    color: var(--text-gray);
    margin: 0;
}

.preview-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-stats span {
    padding: 5px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* ==================== SKILL GAME ==================== */
.skill-game {
    padding: 100px 40px;
    background: var(--bg-darker);
}

.game-container {
    max-width: 600px;
    margin: 50px auto 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.game-score,
.game-question-num {
    font-size: 1.1rem;
    color: var(--text-light);
}

.game-score span,
.game-question-num span {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.3rem;
}

.game-question {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
}

.game-options {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.game-option {
    padding: 15px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.game-option:hover:not(:disabled) {
    border-color: var(--secondary);
    transform: translateX(5px);
}

.game-option.correct {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

.game-option.wrong {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.game-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.game-feedback {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.game-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
    display: block;
}

.game-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
    display: block;
}

.game-complete {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary);
    padding: 30px;
}

#nextQuestion {
    width: 100%;
    margin-top: 20px;
}

/* ==================== LIVE COLLABORATOR SECTION ==================== */
.live-collaborator-section {
    padding: 100px 40px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.live-collaborator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Collaborator Explanation Card */
.collaborator-explanation {
    max-width: 800px;
    margin: 0 auto 40px;
}

.explanation-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.explanation-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.explanation-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: pulse 2s infinite;
}

.explanation-text h3 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.explanation-text p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 8px;
}

.explanation-text p:last-child {
    margin-bottom: 0;
}

.explanation-text strong {
    color: var(--primary);
}

/* Live Collaborator Demo Container */
.live-collaborator-demo {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

/* Collaborator Features */
.collaborator-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.feature-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.feature-item span {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== CHAT WIDGET ==================== */
.chat-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: var(--z-fixed);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: pulse 2s infinite;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.chat-box.active {
    display: flex;
}

.chat-header {
    padding: 15px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
}

.message-content {
    padding: 10px 15px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.user .message-content {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

#chatInput:focus {
    outline: none;
    border-color: var(--secondary);
}

#sendMessage {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

#sendMessage:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chat-quick-replies {
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}

.quick-reply {
    padding: 5px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-reply:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-darker);
    padding: 80px 40px 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.footer-col p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px) rotate(360deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
}

/* ==================== HIDE CUBE ARROWS ==================== */
.cube-controls {
    display: none !important;
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ==================== GLITCH ACTIVE ==================== */
.glitch-active {
    animation: glitchText 0.2s infinite;
}

@keyframes glitchText {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}

.dud {
    color: var(--primary);
}

/* ==================== RESPONSIVE DESIGN - COMPLETE MOBILE FIXES ==================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 30px;
    }
    
    .glitch-text {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .visitor-counter {
        left: 20px;
    }
    
    .hero-3d {
        height: 350px;
    }
    
    .simple-text {
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* Navigation Fixes */
    .nav-center {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-darker);
        padding: 100px 30px 40px;
        transition: left 0.3s ease;
        z-index: var(--z-fixed);
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-center.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .hamburger {
        display: flex;
        z-index: calc(var(--z-fixed) + 1);
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    body.no-scroll {
        overflow: hidden;
    }
    
    /* Hero Section Fixes - MAKE BUTTONS SMALLER ON MOBILE */
    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .simple-text {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    /* MAKE HERO BUTTONS SMALLER ON MOBILE */
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 20px;  /* SMALLER PADDING */
        font-size: 0.9rem;   /* SMALLER FONT */
    }
    
    .btn.small {
        padding: 6px 15px;   /* EVEN SMALLER FOR SMALL BUTTONS */
        font-size: 0.8rem;
    }
    
    .live-stats {
        flex-direction: column;
    }
    
    .stat-bubble {
        width: 100%;
    }
    
    .hero-3d {
        height: 300px;
    }
    
    .floating-cube {
        width: 150px;
        height: 150px;
    }
    
    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
    
    .cube-face.front { transform: translateZ(75px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(75px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* About Section */
    .about-image {
        margin-bottom: 40px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -10px;
        right: -10px;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
    
    .experience-badge .text {
        font-size: 0.7rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Interactive Zone */
    .zone-tabs {
        flex-direction: column;
    }
    
    .zone-tab {
        width: 100%;
        padding: 8px 15px;  /* SMALLER ON MOBILE */
        font-size: 0.85rem;
    }
    
    .device-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .device-label {
        width: 100%;
    }
    
    .device-value {
        width: 100%;
        text-align: left;
        padding-left: 30px;
    }
    
    .typing-stats {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .color-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Skills Section */
    .skills {
        padding: 60px 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    /* What I Build Section */
    .what-i-build {
        padding: 60px 20px;
    }
    
    .build-grid {
        grid-template-columns: 1fr;
    }
    
    .build-card {
        padding: 20px;
    }
    
    .build-cta {
        padding: 30px 20px;
    }
    
    .build-cta h3 {
        font-size: 1.5rem;
    }
    
    .build-cta p {
        font-size: 1rem;
    }
    
    /* Services Section */
    .services {
        padding: 60px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Tech Comparison */
    .tech-comparison {
        padding: 60px 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-card.featured {
        transform: scale(1);
    }
    
    /* Projects Section */
    .projects {
        padding: 60px 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid-wrapper {
        max-height: 500px;
    }
    
    /* Showcase Section */
    .showcase {
        padding: 60px 20px;
    }
    
    .showcase-container {
        max-width: 300px;
    }
    
    .showcase-face.front { transform: translateZ(150px); }
    .showcase-face.back { transform: rotateY(180deg) translateZ(150px); }
    .showcase-face.right { transform: rotateY(90deg) translateZ(150px); }
    .showcase-face.left { transform: rotateY(-90deg) translateZ(150px); }
    .showcase-face.top { transform: rotateX(90deg) translateZ(150px); }
    .showcase-face.bottom { transform: rotateX(-90deg) translateZ(150px); }
    
    .showcase-controls {
        margin-top: 20px;
    }
    
    .showcase-prev,
    .showcase-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Video Testimonials */
    .video-testimonials {
        padding: 60px 20px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid-wrapper {
        max-height: 400px;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 20px;
    }
    
    .testimonial-typing-area {
        min-height: 80px;
        padding: 15px;
    }
    
    .typing-text-display {
        font-size: 1rem;
    }
    
    .slider-controls {
        gap: 15px;
    }
    
    /* Pricing Section */
    .pricing {
        padding: 60px 20px;
    }
    
    .pricing-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        padding: 10px 20px;  /* SMALLER ON MOBILE */
        font-size: 0.9rem;
    }
    
    .pricing-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    /* FAQ Section */
    .faq {
        padding: 60px 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    /* Project Tracker */
    .project-tracker {
        padding: 60px 20px;
    }
    
    .tracker-item {
        padding: 15px;
    }
    
    .project-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Live Code Demo */
    .live-code {
        padding: 60px 20px;
    }
    
    .demo-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .placeholder-preview {
        padding: 30px 15px;
    }
    
    .placeholder-preview i {
        font-size: 3rem;
    }
    
    .preview-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Skill Game */
    .skill-game {
        padding: 60px 20px;
    }
    
    .game-container {
        padding: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .game-question {
        font-size: 1.1rem;
    }
    
    .game-option {
        padding: 12px 15px;
    }
    
    /* Live Collaborator Section */
    .live-collaborator-section {
        padding: 60px 20px;
    }
    
    .explanation-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .explanation-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 2rem;
    }
    
    .explanation-text h3 {
        font-size: 1.2rem;
    }
    
    .explanation-text p {
        font-size: 0.95rem;
    }
    
    .collaborator-features {
        gap: 15px;
    }
    
    .feature-item {
        padding: 8px 15px;
    }
    
    .feature-item i {
        font-size: 1rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
    
    /* Fixed collaborator demo on mobile */
    .live-collaborator-demo .collab-avatar img {
        width: 40px;
        height: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Fixed Elements Repositioning */
    .visitor-counter {
        top: 90px;
        left: 15px;
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    
    .back-to-top {
        bottom: 70px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-request-btn {
        bottom: 20px;
        left: 20px;
        padding: 8px 15px;  /* SMALLER ON MOBILE */
        font-size: 0.85rem;  /* SMALLER FONT */
    }
    
    .project-request-btn i {
        font-size: 1rem;  /* SMALLER ICON */
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chat-box {
        width: 300px;
        height: 450px;
        bottom: 70px;
    }
    
    .popout-notification {
        top: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
        border-radius: 30px;
    }
    
    /* Modal Fixes */
    .paper-modal {
        padding: 30px 20px;
        width: 95%;
        max-height: 85vh;
    }
    
    .admin-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    /* Background Canvas Fixes */
    #sphereCanvas {
        width: 300px;
        height: 300px;
    }
    
    #ouroborosCanvas {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    /* Even Smaller Screens */
    .glitch-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* MAKE BUTTONS EVEN SMALLER ON VERY SMALL SCREENS */
    .btn {
        padding: 8px 16px;  /* EVEN SMALLER */
        font-size: 0.85rem;
    }
    
    .btn.small {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .hero-3d {
        height: 250px;
    }
    
    .floating-cube {
        width: 120px;
        height: 120px;
    }
    
    .cube-face {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .cube-face.front { transform: translateZ(60px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(60px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(60px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(60px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(60px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); }
    
    .color-options {
        grid-template-columns: 1fr;
    }
    
    .skill-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-face.front { transform: translateZ(100px); }
    .showcase-face.back { transform: rotateY(180deg) translateZ(100px); }
    .showcase-face.right { transform: rotateY(90deg) translateZ(100px); }
    .showcase-face.left { transform: rotateY(-90deg) translateZ(100px); }
    .showcase-face.top { transform: rotateX(90deg) translateZ(100px); }
    .showcase-face.bottom { transform: rotateX(-90deg) translateZ(100px); }
    
    /* Make project request button very simple on mobile */
    .project-request-btn span:not(.fa-paper-plane) {
        display: none;
    }
    
    .project-request-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .project-request-btn i {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .chat-box {
        width: 280px;
        height: 400px;
    }
    
    .chat-quick-replies {
        padding: 8px;
    }
    
    .quick-reply {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .visitor-counter {
        top: 80px;
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .back-to-top {
        bottom: 80px;
    }
    
    .popout-message {
        font-size: 0.8rem;
    }
    
    .toast {
        min-width: auto;
        width: 90%;
        right: 5%;
        font-size: 0.8rem;
        padding: 10px 15px;
    }
}

/* ==================== LANDSCAPE MODE FIXES ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px;
    }
    
    .hero-3d {
        height: 200px;
    }
    
    .floating-cube {
        width: 100px;
        height: 100px;
    }
    
    .cube-face {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
    
    .cube-face.front { transform: translateZ(50px); }
    .cube-face.back { transform: rotateY(180deg) translateZ(50px); }
    .cube-face.right { transform: rotateY(90deg) translateZ(50px); }
    .cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
    .cube-face.top { transform: rotateX(90deg) translateZ(50px); }
    .cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }
    
    .project-modal .paper-modal {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-center {
        padding: 60px 30px 30px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .visitor-counter,
    .back-to-top,
    .chat-widget,
    .project-request-btn,
    .project-modal,
    .popout-notification,
    .toast,
    #bgCanvas,
    #matrixCanvas,
    #waveCanvas,
    #neuralCanvas,
    #particleSystemCanvas,
    #voronoiCanvas,
    #sphereCanvas,
    #ouroborosCanvas,
    #gridCanvas,
    #quantumCanvas,
    .hero-3d,
    .interactive-zone,
    .project-filters,
    .showcase-controls,
    .video-modal,
    .slider-controls,
    .pricing-btn,
    .btn,
    .cube-controls {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .hero-text h1,
    .hero-text p {
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
/* ==================== ADMIN LOGIN MODAL ==================== */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.admin-modal.show {
    display: flex;
}

.admin-modal-content {
    background: var(--bg-card, #1f2937);
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    border: 1px solid var(--border, #4b5563);
    position: relative;
    animation: modalPop 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.admin-modal-content h2 {
    color: var(--secondary, #3b82f6);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

.admin-modal-content h2 i {
    color: var(--primary, #2563eb);
    margin-right: 10px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-gray, #9ca3af);
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--error, #ef4444);
}

#adminLoginForm .form-group {
    margin-bottom: 20px;
}

#adminLoginForm .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light, #f9fafb);
    font-size: 0.9rem;
    font-weight: 500;
}

#adminLoginForm .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-dark, #111827);
    border: 1px solid var(--border, #4b5563);
    color: var(--text-light, #f9fafb);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

#adminLoginForm .form-group input:focus {
    border-color: var(--secondary, #3b82f6);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#adminLoginForm .form-group input::placeholder {
    color: var(--text-gray, #6b7280);
    opacity: 0.7;
}

.admin-login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-login-btn:hover {
    background: var(--primary-dark, #1d4ed8);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.admin-login-btn i {
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .admin-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .admin-modal-content h2 {
        font-size: 1.5rem;
    }
    
    #adminLoginForm .form-group input {
        padding: 10px 12px;
    }
    
    .admin-login-btn {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .admin-modal-content {
        padding: 25px 15px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}