/* Base Styles */
:root {
    --primary-color: #0ff;
    --secondary-color: #f0f;
    --accent-color: #0f0;
    --yellow-color: #f9f900;
    --dark-bg: #000100;
    --darker-bg: #000000;
    --text-color: #e0e0e0;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Rajdhani', sans-serif;
    --glow-intensity: 0.7;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cyberpunk Background */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 10, 18, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 10, 18, 0.9) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background-color: var(--primary-color);
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background-color: var(--secondary-color);
    bottom: -200px;
    left: -200px;
}

.circle-3 {
    width: 400px;
    height: 400px;
    background-color: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cyber-heading {
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.cyber-subheading {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Navigation */
.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80px;
    background-color: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(0, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 100;
    transition: width var(--transition-speed) ease;
}

.side-nav:hover {
    width: 200px;
}

.nav-logo {
    position: relative;
    margin-bottom: 3rem;
}

.nav-logo span {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-color);
}

.logo-glow {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.nav-links {
    list-style: none;
    width: 100%;
    flex-grow: 1;
}

.nav-links li {
    width: 100%;
    margin-bottom: 0.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.nav-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-speed) ease;
}

.nav-links a:hover:before,
.nav-links a.active:before {
    transform: scaleY(1);
}

.nav-links a i {
    font-size: 1.2rem;
    min-width: 30px;
    transition: all var(--transition-speed) ease;
}

.nav-links a span {
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-speed) ease;
}

.side-nav:hover .nav-links a span {
    opacity: 1;
    transform: translateX(0);
}

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

.nav-links a:hover i,
.nav-links a.active i {
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.nav-footer a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all var(--transition-speed) ease;
}

.nav-footer a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    margin-left: 80px;
    padding: 0;
    min-height: 100vh;
}

.section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.neon-separator {
    height: 2px;
    width: 100px;
    background-color: var(--primary-color);
    margin: 1rem auto;
    position: relative;
    box-shadow: 0 0 10px var(--primary-color);
}

.neon-separator:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    filter: blur(5px);
    opacity: 0.7;
}

/* Home Section */
#home {
    text-align: center;
    justify-content: center;
    align-items: center;
}

.glitch-container {
    position: relative;
    margin-bottom: 2rem;
}

.glitch-text {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--yellow-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
}

/* Add styles for the highlighted letters */
.highlight-letter {
    color: var(--yellow-color);
    text-shadow: 0 0 10px rgba(249, 249, 0, 0.7);
    display: inline-block;
}

.regular-letter {
    color: var(--text-color);
    display: inline-block;
}

/* Make sure the data-text attribute matches the styling */
.glitch-text:before,
.glitch-text:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* Ensure the highlighted letters also appear in the glitch effect */
.glitch-text:before .highlight-letter,
.glitch-text:after .highlight-letter {
    color: var(--yellow-color);
}

/* Bio Section */
.bio-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.bio-text p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.mission-statement {
    background-color: transparent;
    border: none;
    padding: 0;
}

.mission-statement:before {
    display: none;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
    background-color: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.card-front {
    justify-content: space-between;
}

.card-back {
    transform: rotateY(180deg);
    justify-content: center;
    gap: 1.5rem;
}

.project-image {
    height: 60%;
    overflow: hidden;
    border-radius: 5px;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.project-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1rem;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-links {
    margin: 0.5rem 0;
    display: flex;
    gap: 0.5rem;
}

.project-links .cyber-button.small {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.tech-stack {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 4px;
}

/* Roblox Projects */
.roblox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.roblox-card {
    background-color: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(240, 0, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.roblox-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(240, 0, 255, 0.3);
}

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

.roblox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.roblox-info {
    padding: 1.5rem;
}

.roblox-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.roblox-description {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.roblox-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.roblox-features span {
    padding: 0.3rem 0.8rem;
    background-color: rgba(240, 0, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Donation Section */
.donation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.donation-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.donation-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.donation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    background-color: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.donation-button:hover {
    transform: translateY(-3px);
}

.donation-button i {
    font-size: 1.5rem;
}

.button-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.paypal:hover {
    color: #00457C;
    border-color: rgba(0, 69, 124, 0.5);
}

.paypal .button-glow {
    background: radial-gradient(circle at center, rgba(0, 69, 124, 0.5) 0%, transparent 70%);
}

.patreon:hover {
    color: #F96854;
    border-color: rgba(249, 104, 84, 0.5);
}

.patreon .button-glow {
    background: radial-gradient(circle at center, rgba(249, 104, 84, 0.5) 0%, transparent 70%);
}

.kofi:hover {
    color: #29ABE0;
    border-color: rgba(41, 171, 224, 0.5);
}

.kofi .button-glow {
    background: radial-gradient(circle at center, rgba(41, 171, 224, 0.5) 0%, transparent 70%);
}

.donation-button:hover .button-glow {
    opacity: 1;
}

/* Recruitment Section */
.recruitment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.recruitment-text {
    text-align: center;
}

.animated-headline {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.highlight-text {
    color: var(--accent-color);
    position: relative;
}

.highlight-text:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.positions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    list-style: none;
}

.position-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

.cyber-button {
    position: relative;
    padding: 0.8rem 2rem;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    outline: none;
}

.cyber-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cyber-button:hover:before {
    left: 100%;
}

.cyber-button:hover {
    background-color: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

.cyber-button.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.cyber-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--darker-bg);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Form Styles */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--heading-font);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    background-color: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--body-font);
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-nav {
        width: 60px;
    }
    
    .side-nav:hover {
        width: 180px;
    }
    
    .main-content {
        margin-left: 60px;
    }
    
    .glitch-text {
        font-size: 3rem;
    }
    
    .cyber-heading {
        font-size: 2rem;
    }
    
    .roblox-grid {
        grid-template-columns: 1fr;
    }
    
    .terminal-container {
        max-width: 95%;
    }
    
    .terminal-body {
        padding: 15px;
    }
    
    .terminal-typing {
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .side-nav {
        width: 100%;
        height: 60px;
        flex-direction: row;
        padding: 0 1rem;
        bottom: 0;
        top: auto;
        border-right: none;
        border-top: 1px solid rgba(0, 255, 255, 0.1);
    }
    
    .side-nav:hover {
        width: 100%;
    }
    
    .nav-logo {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .nav-links {
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
    }
    
    .nav-links li {
        margin-bottom: 0;
    }
    
    .nav-links a {
        padding: 0.5rem;
        justify-content: center;
    }
    
    .nav-links a span {
        display: none;
    }
    
    .nav-footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 60px;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .glitch-text {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .donation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Terminal Styles - Add to your styles.css file */
.terminal-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(16, 16, 32, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    position: relative;
    animation: terminalGlow 3s infinite alternate;
}

@keyframes terminalGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), 0 0 50px rgba(0, 255, 255, 0.2);
    }
}

.terminal-header {
    background-color: rgba(30, 30, 50, 0.9);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 25px 30px;
    font-family: 'Consolas', monospace;
    color: var(--text-color);
    line-height: 1.6;
    background-color: rgba(10, 10, 18, 0.95);
}

.terminal-line {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.terminal-prompt {
    color: var(--primary-color);
    margin-right: 10px;
    white-space: nowrap;
}

.terminal-command {
    color: var(--text-color);
}

.terminal-output {
    margin-bottom: 25px;
    width: 100%;
    overflow: visible;
    padding-right: 20px;
}

.terminal-typing {
    overflow: visible;
    white-space: pre-wrap;
    margin: 0;
    border-right: 2px solid var(--primary-color);
    display: block;
    width: auto !important;
    min-height: 1.5em;
    color: var(--text-color);
    opacity: 1 !important;
    padding: 5px 0;
    font-size: 1.05em;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 18px;
    background-color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-response {
    color: var(--yellow-color);
    margin: 10px 0;
    text-shadow: 0 0 5px rgba(249, 249, 0, 0.5);
}

/* Add yellow glow to the fourth circle in the background */
.glow-circle.circle-4 {
    width: 300px;
    height: 300px;
    background-color: var(--yellow-color);
    top: 70%;
    right: 10%;
    opacity: 0.1;
}

/* Add yellow highlights to project cards */
.project-card:nth-child(3n) .project-title {
    color: var(--yellow-color);
}

.project-card:nth-child(3n):hover .card-inner {
    box-shadow: 0 0 25px rgba(249, 249, 0, 0.3);
}

/* Add yellow to some tech stack badges */
.tech-stack span:nth-child(3n) {
    background-color: rgba(249, 249, 0, 0.1);
    color: var(--yellow-color);
}

/* Add yellow to some position badges */
.position-badge:nth-child(odd) {
    background-color: rgba(249, 249, 0, 0.1);
    color: var(--yellow-color);
    border: 1px solid rgba(249, 249, 0, 0.3);
}

/* Add yellow to the donation button */
.donation-button.kofi {
    background: linear-gradient(45deg, rgba(10, 10, 18, 0.8), rgba(249, 249, 0, 0.1));
    border: 1px solid rgba(249, 249, 0, 0.3);
}

.donation-button.kofi:hover {
    box-shadow: 0 0 15px rgba(249, 249, 0, 0.5);
}

.donation-button.kofi i {
    color: var(--yellow-color);
}

/* Add this to ensure the pseudo-elements display the yellow letters correctly */
.glitch-text:before,
.glitch-text:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Create a special rule to handle the yellow letters in pseudo-elements */
.glitch-container {
    position: relative;
}

/* Add a special class to handle the yellow G and C in the pseudo-elements */
.glitch-text:before span.highlight-letter,
.glitch-text:after span.highlight-letter {
    color: var(--yellow-color) !important;
}

/* Loading indicator for Live2D */
.loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

/* Enhanced Fallback Assistant */
.fallback-assistant {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}

.fallback-content {
    padding: 20px;
    max-width: 80%;
}

.fallback-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite alternate;
}

.fallback-assistant h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.fallback-assistant p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.fallback-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

@keyframes pulse {
    from { transform: scale(1); text-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    to { transform: scale(1.1); text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6); }
}

/* Project Card Improvements */
.project-card .card-back {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 100%;
}

.project-card .project-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ffff #1a1a1a;
}

/* Feature List Styling */
.feature-list {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    color: #00ffff;
}

/* Tech Stack Adjustments */
.tech-stack {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 4px;
}

/* Custom Scrollbar */
.project-description::-webkit-scrollbar {
    width: 6px;
}

.project-description::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.project-description::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

/* Web Apps Section */
.web-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.web-app-card .card-front,
.web-app-card .card-back {
    background: linear-gradient(145deg, rgba(10, 10, 18, 0.8), rgba(15, 15, 30, 0.9));
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.web-app-card:hover .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.web-app-card .project-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.web-app-card .project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0) 70%, rgba(0, 255, 255, 0.2));
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.web-app-card:hover .project-image::before {
    opacity: 0.6;
}

.web-app-card .project-title {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.web-app-card .project-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: width 0.3s ease;
}

.web-app-card:hover .project-title::after {
    width: 100%;
}

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

.project-tags span {
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.web-app-card:hover .project-tags span {
    background-color: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.web-app-card .card-back {
    display: flex;
    flex-direction: column;
}

.web-app-card .project-links {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.web-app-card .project-links .cyber-button.small {
    position: relative;
    overflow: hidden;
}

.web-app-card .project-links .cyber-button.small::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.web-app-card .project-links .cyber-button.small:hover::before {
    opacity: 1;
}

/* Different styling for the second web app card (Axolotl) */
.web-app-card:nth-child(2) .card-front,
.web-app-card:nth-child(2) .card-back {
    background: linear-gradient(145deg, rgba(10, 10, 28, 0.8), rgba(15, 15, 40, 0.9));
    border: 1px solid rgba(240, 0, 255, 0.2);
}

.web-app-card:nth-child(2):hover .card-inner {
    box-shadow: 0 0 25px rgba(240, 0, 255, 0.3);
}

.web-app-card:nth-child(2) .project-title {
    color: var(--secondary-color);
}

.web-app-card:nth-child(2) .project-title::after {
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
}

.web-app-card:nth-child(2) .project-tags span {
    background-color: rgba(240, 0, 255, 0.1);
    color: var(--secondary-color);
}

.web-app-card:nth-child(2):hover .project-tags span {
    background-color: rgba(240, 0, 255, 0.2);
    box-shadow: 0 0 8px rgba(240, 0, 255, 0.3);
}

.web-app-card:nth-child(2) .tech-stack span {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.web-app-card:nth-child(2) .project-links .cyber-button.small {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.web-app-card:nth-child(2) .project-links .cyber-button.small:hover {
    background-color: rgba(240, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(240, 0, 255, 0.3);
}

/* Responsive styles for Web Apps section */
@media (max-width: 768px) {
    .web-apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .web-app-card .project-title {
        font-size: 1.3rem;
    }
    
    .web-app-card .project-description {
        font-size: 0.85rem;
    }
    
    .project-tags span {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .tech-stack span {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .web-apps-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        height: 380px;
    }
    
    .web-app-card .project-image {
        height: 55%;
    }
} 