/* ======================================
   ADVANCED EFFECTS CSS - CLEANED UP
   ====================================== */

/* ---- PARTICLE SYSTEM ---- */
.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ---- 3D MODEL CONTAINER ---- */
.model-container {
    width: 100%;
    height: 400px;
    position: relative;
    background: linear-gradient(to bottom, 
        rgba(2, 8, 15, 1.0),
        rgba(0, 0, 0, 1.8)
    );
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.4);
    box-shadow: 
        0 0 25px rgba(255, 0, 183, 0.15),
        inset 0 0 50px rgba(0, 255, 255, 0.05);
}

/* Enhance grid overlay */
.model-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(0deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px) 0 0 / 40px 40px;
    pointer-events: none;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

/* Enhanced scan line effect */
.model-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(0, 255, 255, 0.03) 1px,
        rgba(0, 255, 255, 0.03) 2px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 2;
    animation: scanLine 10s linear infinite;
}

/* Add glow at bottom */
.model-container .model-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    z-index: 1;
    opacity: 0.8;
    animation: glowPulse 4s ease-in-out infinite alternate;
}

.model-container canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
    position: relative;
    z-index: 3;
    opacity: 0.95; /* Slightly transparent to show grid */
}

/* Updated model controls for single reset button */
.model-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Enhanced reset button */
.reset-button {
    background: rgba(5, 15, 30, 0.85);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

/* Add cyberpunk border glow */
.reset-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.5), 
        rgba(255, 0, 255, 0.5), 
        rgba(0, 255, 255, 0.5)
    );
    margin: -2px;
    border-radius: 32px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

/* Add inner dark background */
.reset-button::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(5, 15, 30, 0.95);
    border-radius: 28px;
    z-index: -1;
}

.reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),
        0 0 40px rgba(0, 255, 255, 0.3);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.reset-button:active {
    transform: translateY(1px);
}

.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    z-index: 10;
    background: rgba(5, 10, 20, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* ---- ANIMATIONS ---- */
@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glowPulse {
    0% { opacity: 0.5; width: 60%; }
    100% { opacity: 0.9; width: 75%; }
}

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

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

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

/* ---- TERMINAL STYLING ---- */
.terminal-container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
    margin: 0 auto;
    max-width: 900px;
}

.terminal-header {
    background: rgba(20, 20, 30, 0.9);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 1rem;
}

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

.terminal-button.close { background: #ff5f56; }
.terminal-button.minimize { background: #ffbd2e; }
.terminal-button.maximize { background: #27c93f; }

.terminal-title {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Rajdhani', monospace;
}

.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #00ffff;
    opacity: 0.8;
}

.terminal-command {
    color: #ffff00;
}

.terminal-output {
    color: #e0e0e0;
    margin: 1rem 0 2rem;
    line-height: 1.6;
    padding-left: 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: normal;
    word-break: normal;
}

.terminal-output p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* ---- SECTION SPACING ---- */
.section {
    min-height: auto; /* Remove min-height: 100vh */
    padding: 3rem 2rem; /* Reduce padding */
}

/* Specific adjustment for About Me section */
#bio.section {
    padding-top: 2rem; /* Reduce top padding specifically for bio section */
}

/* Adjust AI Assistant container spacing */
.home-ai-container {
    min-height: auto;
  display: flex;
  flex-direction: column;
    gap: 0;
    padding-top: 1rem;
    margin-bottom: 2rem; /* Add space after AI Assistant */
}

/* Adjust the neon separator margin */
.neon-separator {
    margin: 0.5rem auto; /* Reduce margin of section headers */
}

/* Adjust section header spacing */
.section-header {
    margin-bottom: 2rem; /* Reduce bottom margin */
}

/* Bio section animations */
.bio-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bio-content.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced AI Assistant styling */
.ai-assistant.enhanced {
    opacity: 1;
    width: 100%;
    margin: 0;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #f9f900;
    box-shadow: 0 0 20px rgba(255, 234, 0, 0.963);
}

/* Fix header title responsiveness */
.glitch-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 2px;
    line-height: 1.2;
    white-space: normal;
    word-spacing: 0.2em;
}

/* Ensure the AI Assistant container is properly sized */
.assistant-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* ---- ROBLOX PROJECT CARDS ---- */
.roblox-projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.roblox-project-card {
    background: rgba(10, 15, 25, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    max-width: 500px;
    margin: 0 auto;
}

.roblox-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.25);
}

.card-hologram {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-hologram img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.card-hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 255, 255, 0.1) 100%
    );
    z-index: 1;
}

.card-hologram::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 255, 0.05) 0px,
        rgba(0, 255, 255, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 2;
    pointer-events: none;
    animation: scanLine 8s linear infinite;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.card-description {
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.follow-project {
    background: rgba(0, 20, 40, 0.8);
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: block;
}

.follow-project:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.follow-project .button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 255, 0.4) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: scale(0.5);
    pointer-events: none;
}

.follow-project.clicked .button-glow {
    opacity: 1;
    animation: pulseGlow 1.5s ease-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive adjustments for Roblox cards */
@media (max-width: 768px) {
    .roblox-projects-container {
        grid-template-columns: 1fr;
    }
    
    .card-hologram {
        height: 200px;
    }
}