/* 
   MRX Dev Portfolio - Core Styles
   Theme: Cyber-Professional (Dark, Neon, Glass)
*/

:root {
    /* Colors */
    --bg-dark: #0a192f;
    --bg-darker: #020c1b;
    --nav-bg: rgba(10, 25, 47, 0.85);

    --text-main: #ccd6f6;
    --text-heading: #e6f1ff;
    --text-secondary: #8892b0;

    --primary: #64ffda;
    /* Neon Cyan */
    --secondary: #bd34fe;
    /* Neon Purple */
    --accent: #ff0a78;
    /* Hot Pink */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    --gradient-glass: linear-gradient(112.1deg, rgba(255, 255, 255, 0.05) 11.4%, rgba(255, 255, 255, 0.00) 70.2%);

    /* Fonts */
    --font-main: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 50px 0;
    /* Reduced from 100px */
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-dark: #f5f7fa;
    --bg-darker: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.98);

    --text-main: #2d3748;
    --text-heading: #1a202c;
    --text-secondary: #718096;

    --primary: #00b894;
    --secondary: #6c5ce7;
    --accent: #fd79a8;

    --gradient-glass: linear-gradient(112.1deg, rgba(0, 0, 0, 0.05) 11.4%, rgba(0, 0, 0, 0.00) 70.2%);
}

/* Light Mode Specific Styles */
[data-theme="light"] .glass-card,
[data-theme="light"] .service-card,
[data-theme="light"] .tech-card,
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.theme-toggle-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(-50%) scale(1.05);
}

.theme-toggle-btn i {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .theme-toggle-btn {
    border-color: rgba(0, 184, 148, 0.3);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 184, 148, 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed nav */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation & Sidebar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    background: rgba(10, 25, 47, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.4rem;
}

.btn-text {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary);
}

/* Mobile Navigation Buttons */
.mobile-nav-buttons {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-projects-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-projects-btn:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: scale(1.05);
}

/* Hamburger */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
}

.bar {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(17, 34, 64, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.sidebar-links a {
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.sidebar-btn {
    border: 1px solid var(--primary);
    padding: 10px 30px;
    border-radius: 4px;
    color: var(--primary) !important;
}

.close-sidebar {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 3rem;
    cursor: pointer;
}

/* 3D Cyber Gateway Hero Effect */
.hero-gateway {
    position: absolute;
    top: 75%;
    /* Lowered more */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border: 2px solid rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGateway 4s infinite;
}

.hero-gateway::before,
.hero-gateway::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(189, 52, 254, 0.2);
}

.hero-gateway::before {
    width: 400px;
    height: 400px;
    animation: rotateGateway 10s linear infinite reverse;
    border-style: dashed;
}

.hero-gateway::after {
    width: 500px;
    height: 500px;
    animation: rotateGateway 15s linear infinite;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

@keyframes rotateGateway {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulseGateway {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.1);
    }

    70% {
        box-shadow: 0 0 50px 20px rgba(100, 255, 218, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Content above background */
    padding-top: 12vh;
    /* Push content down on desktop */
}

/* Desktop Menu Spacing */
.desktop-menu {
    gap: 50px !important;
    /* increased spacing */
    display: flex;
}

.widget-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.widget-tooltip {
    position: absolute;
    right: 60px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-weight: bold;
}

.widget-btn:hover .widget-tooltip {
    opacity: 1;
}

/* Social Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

/* Cyber Grid Background (Professional & Clean) */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(100, 255, 218, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

/* Animated Hero Gradient Overlay */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(100, 255, 218, 0.05) 0%,
            rgba(189, 52, 254, 0.05) 50%,
            rgba(255, 10, 120, 0.05) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Services Section (Matches Skills - 4 Columns Auto-fit) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.service-card:hover {
    background: rgba(17, 34, 64, 0.9);
    transform: translateY(-5px);
    border-left-color: var(--primary);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-heading);
    font-size: 1.1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* GitHub Stats / Activity */
.stats-container {
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    margin-top: 80px;
}

.contribution-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    opacity: 0.8;
}

.contribution-box {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.contribution-box.level-1 {
    background: #0e4429;
}

.contribution-box.level-2 {
    background: #006d32;
}

.contribution-box.level-3 {
    background: #26a641;
}

.contribution-box.level-4 {
    background: #39d353;
}

/* Social Icons Redesign */
.social-links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-box:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.social-icon-box i {
    width: 20px;
    height: 20px;
}

/* Interactive Floating Action Button (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fabPulse 2s ease-in-out infinite;
    will-change: transform;
    /* Performance optimization */
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.6);
    animation: none;
}

/* FAB Pulse Animation */
@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 10px 20px rgba(100, 255, 218, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 15px 35px rgba(100, 255, 218, 0.8);
        transform: scale(1.05);
    }
}

.fab-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* CSS handled by JS for click toggle */

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.fab-option:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
        padding-top: 80px !important;
        /* Reduced from 12vh for mobile */
    }

    /* Navigation - Transparent */
    .navbar {
        padding: 15px 20px !important;
        background: transparent !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .logo {
        font-size: 1.1rem !important;
    }

    /* Mobile Navigation */
    .desktop-menu {
        display: none !important;
    }

    .mobile-nav-buttons {
        display: flex !important;
    }

    .hamburger-menu {
        display: flex;
    }

    /* Hero */
    .hero-section {
        min-height: auto !important;
        padding: 80px 0 50px 0 !important;
    }

    .hero-container-grid {
        display: flex !important;
        flex-direction: column-reverse;
        /* Text on bottom, Image on top */
        gap: 30px !important;
        text-align: center;
        padding-top: 40px !important;
    }

    .holo-container {
        margin-bottom: 20px;
    }

    .holo-img {
        max-width: 200px !important;
        margin: 40px auto 0 auto;
        /* Lowered image */
    }

    .big-heading {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .subtitle {
        font-size: 0.9rem !important;
        padding: 0 10px;
    }

    #typing-text {
        font-size: 1rem !important;
    }

    /* Sections */
    .section {
        padding: 40px 0 !important;
    }

    /* Services & Tech */
    .tech-category-grid,
    .services-grid {
        grid-template-columns: 1fr;
        /* Single column */
        gap: 20px;
    }

    .service-card,
    .tech-card {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Projects */
    .glass-card {
        padding: 20px !important;
    }

    .glass-card h3 {
        font-size: 1.5rem !important;
    }

    /* Contact Section */
    .social-links-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    /* FAB - Move to Bottom Left for Better Accessibility */
    .fab-container {
        bottom: 20px !important;
        left: 20px !important;
        right: auto !important;
        z-index: 999;
    }

    .fab-main {
        width: 56px;
        height: 56px;
        animation: none !important;
        /* Disable animation for performance */
    }

    .fab-option {
        width: 46px;
        height: 46px;
    }

    /* Footer */
    footer {
        padding: 30px 0 !important;
        padding-bottom: 100px !important;
        /* Extra space for FAB */
    }

    /* Stats Container */
    .stats-container {
        padding: 20px !important;
        margin-top: 40px !important;
    }

    .contribution-grid {
        gap: 2px;
    }

    .contribution-box {
        width: 10px;
        height: 10px;
    }

    /* Disable Heavy Animations on Mobile for Performance */
    .hero-gateway,
    .bg-gradient {
        display: none !important;
    }

    .holo-img {
        animation: none !important;
    }

    /* Disable hover effects on mobile for performance */
    .glass-card:hover,
    .service-card:hover,
    .tech-card:hover {
        transform: none;
    }

    /* About Me Section - Mobile */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Hide all About Me text on mobile */
    .about-text {
        display: none !important;
    }

    /* Stats in horizontal row */
    .about-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-top: 0 !important;
    }

    .stat-card {
        padding: 20px 10px !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }

    .stat-card:hover {
        transform: none !important;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: var(--section-padding);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.1;
}

.mono-heading {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.big-heading {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
}

.subtitle {
    font-size: clamp(20px, 5vw, 30px);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Background Effects - Removed old gradient */

/* Glass Card */
.glass-card {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--primary);
    border-radius: 4px;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Holographic Logo Effect */
.holo-container {
    position: relative;
    perspective: 1000px;
}

.holo-card {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.holo-card:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.holo-img {
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.4));
    animation: holoPulse 4s infinite alternate;
    border-radius: 22%;
    /* App Icon Shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Depth */
}

@keyframes holoPulse {
    0% {
        filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(189, 52, 254, 0.6));
    }
}

/* About Me Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-description strong {
    color: var(--primary);
    font-weight: 600;
}

/* Hide mobile text on desktop */
.about-description-mobile {
    display: none;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-card {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(17, 34, 64, 0.9);
    transform: translateX(5px);
    border-left-color: var(--secondary);
    box-shadow: 0 10px 30px -15px rgba(100, 255, 218, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-content {
    position: relative;
    z-index: 2;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-link-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-heading);
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.project-link-icon i {
    width: 24px;
    height: 24px;
}

/* Tech Category Grid */
.tech-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    background: rgba(17, 34, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.tech-card:hover {
    background: rgba(17, 34, 64, 0.9);
    transform: translateY(-5px);
    border-left-color: var(--primary);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.tech-icon-wrapper {
    width: 40px;
    height: 40px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tech-tag:hover {
    color: var(--primary);
    background: rgba(100, 255, 218, 0.1);
}

/* Glitch Text Effect */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    color: var(--text-heading);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(30px, 9999px, 10px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(15px, 9999px, 85px, 0);
    }

    5% {
        clip: rect(65px, 9999px, 35px, 0);
    }

    10% {
        clip: rect(25px, 9999px, 75px, 0);
    }

    15% {
        clip: rect(85px, 9999px, 15px, 0);
    }

    20% {
        clip: rect(45px, 9999px, 55px, 0);
    }

    100% {
        clip: rect(15px, 9999px, 85px, 0);
    }
}