/* style.css - FUTURISTIC DARK THEME */
:root {
    /* Futuristic Color Palette */
    --primary: #00f0ff;           /* Electric Cyan */
    --primary-dark: #00b8c4;
    --primary-light: #66f7ff;
    --secondary: #0a0a14;         /* Deep Space */
    --accent: #ff0080;            /* Neon Pink */
    --accent-dark: #cc0066;
    --dark: #e8e8e8;              /* Light Text */
    --dark-light: #b0b0b0;
    --light: #121220;             /* Dark Background */
    --light-dark: #1a1a2e;
    --gray: #6c757d;
    --gray-light: #2d3748;
    --gray-dark: #a0a0a0;
    
    /* Success/Error States */
    --success: #00ff88;
    --error: #ff4444;
    --warning: #ffaa00;
    --info: #00a8ff;

    /* Glow Effects */
    --primary-glow: rgba(0, 240, 255, 0.4);
    --accent-glow: rgba(255, 0, 128, 0.4);
    --success-glow: rgba(0, 255, 136, 0.4);

    /* Modern Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* Futuristic Shadows with Glow */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 0 20px var(--primary-glow);
    
    /* Minimal Geometry */
    --radius: 6px;
    --radius-sm: 3px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-family-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
    
    /* Layout */
    --container-width: 1400px;
    --container-padding: 0 2rem;
    --header-height: 70px;
    --section-padding: 8rem 0;
}

/* Light Theme (Optional) */
[data-theme="light"] {
    --light: #ffffff;
    --light-dark: #f8f9fa;
    --secondary: #ffffff;
    --dark: #1a1a1a;
    --dark-light: #4a5568;
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 100%);
    color: var(--dark);
    line-height: 1.6;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition-slow);
    min-height: 100vh;
}

/* Futuristic Typography */
h1, h2, h3, h4 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-family-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { 
    font-size: 2.5rem;
    color: var(--primary);
}

h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-light);
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* Futuristic Header */
header {
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Hero Section - Futuristic */
.hero {
    background: linear-gradient(135deg, var(--light) 0%, var(--light-dark) 100%);
    color: var(--dark);
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--dark-light);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Futuristic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Social Auth Buttons */
.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    background: var(--secondary);
    color: var(--dark);
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-github {
    border-color: #333;
    background: #333;
    color: white;
}

.btn-github:hover {
    background: #24292e;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.btn-google {
    border-color: #4285f4;
    background: #4285f4;
    color: white;
}

.btn-google:hover {
    background: #357ae8;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.social-icon {
    font-size: 1.2rem;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.template-card {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 240, 255, 0.1);
    position: relative;
}

.template-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.template-img {
    height: 240px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--light-dark) 100%);
    position: relative;
    overflow: hidden;
}

.template-content {
    padding: 2rem;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--dark);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--dark-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    color: var(--dark-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-dark);
    border: 1px solid rgba(0, 240, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--error);
    transform: rotate(90deg);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none !important; }

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: var(--secondary);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-dark);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--dark);
        transition: var(--transition);
    }
}

/* Mobile Menu Animation */
@media (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Enhanced focus states for accessibility */
.btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Auth Modal Styles */
.auth-modal-content {
    max-width: 450px;
    width: 90%;
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-view {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-subtitle {
    color: var(--dark-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.auth-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
    color: var(--dark-light);
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-light);
    z-index: 1;
}

.auth-divider span {
    background: var(--secondary);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.auth-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal Backdrop Animation */
.modal {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced Social Buttons for Modal */
.auth-modal-content .btn-social {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Mobile Optimizations for Modal */
@media (max-width: 480px) {
    .auth-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .auth-modal-content h2 {
        font-size: 1.8rem;
    }
    
    .auth-modal-content .btn-social {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
    }
}

/* Smooth transitions for view switching */
.auth-view {
    transition: opacity 0.3s ease;
}

.auth-view.hidden {
    display: none;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Slimy Character Styles */
.slimy-character {
    position: fixed;
    width: 80px;
    height: 80px;
    z-index: 10000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    display: block;
}

.slimy-character[style*="display: none"] {
    pointer-events: none !important;
}

.slimy-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00f0ff, #00b8c4);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        inset 0 -10px 20px rgba(0, 184, 196, 0.3);
    animation: slimyPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes slimyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Emotion States */
.slimy-body.emotion-happy {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    animation: happyBounce 1s ease-in-out infinite;
}

.slimy-body.emotion-relaxed {
    background: linear-gradient(135deg, #ffaa00, #ff8800);
    animation: relaxedSway 2s ease-in-out infinite;
}

.slimy-body.emotion-excited {
    background: linear-gradient(135deg, #ff0080, #cc0066);
    animation: excitedPulse 0.5s ease-in-out infinite;
}

.slimy-body.emotion-angry {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    animation: angryShake 0.1s ease-in-out infinite;
    transform: scale(1.05);
}

.slimy-body.emotion-scared {
    background: linear-gradient(135deg, #f0f8ff, #a0c4ff);
    animation: scaredWiggle 0.5s ease-in-out infinite;
}

.slimy-body.emotion-sad {
    background: linear-gradient(135deg, #6666ff, #4444aa);
    animation: sadPulse 2s ease-in-out infinite;
}

@keyframes happyBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.1) translateY(-5px); }
}

@keyframes relaxedSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes excitedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes angryShake {
    0%, 100% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
}

@keyframes scaredWiggle {
    0%, 100% { transform: rotate(1deg); }
    50% { transform: rotate(-1deg); }
}

@keyframes sadPulse {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(0.95) translateY(2px); }
}

/* Petting Animations */
.slimy-character.being-petted {
    animation: pettingReaction 0.3s ease-in-out;
}

.slimy-character.pet-right {
    transform: rotate(5deg) translateY(3px);
}

.slimy-character.pet-left {
    transform: rotate(-5deg) translateY(3px);
}

@keyframes pettingReaction {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.slimy-eyes {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
}

.eye {
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    position: relative;
    transition: transform 0.2s ease, height 0.1s ease;
}

.eye.blinking {
    height: 2px;
    transform: translateY(2px);
}

.eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    transition: opacity 0.1s ease;
}

.eye.blinking::after {
    opacity: 0;
}

/* Emotion-specific eyes */
.emotion-angry .slimy-eyes .eye {
    width: 15px;
    height: 3px;
    transform: translateY(2px) rotate(15deg);
}

.emotion-angry .slimy-eyes .right-eye {
    transform: translateY(2px) rotate(-15deg);
}

.emotion-scared .slimy-eyes .eye {
    width: 15px;
    height: 15px;
    background: #1a1a2e;
    transform: scale(1.2);
    box-shadow: 0 0 5px #f0f8ff;
}

.eye.crying {
    background: #1a1a2e;
    overflow: hidden;
}

.eye.crying::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: rgba(0, 240, 255, 0.8);
    border-radius: 50%;
    animation: tearBuild 0.5s ease-out forwards;
}

.slimy-mouth {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mouth emotions */
.mouth-happy {
    width: 25px;
    height: 12px;
    border-radius: 0 0 12px 12px;
    background: #1a1a2e;
}

.mouth-relaxed {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #1a1a2e;
    bottom: 22px;
}

.mouth-excited {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1a1a2e;
    animation: mouthExcite 0.5s ease-in-out infinite;
}

.mouth-angry {
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background: #1a1a2e;
    bottom: 25px;
}

.mouth-scared {
    width: 10px;
    height: 15px;
    border-radius: 50%;
    background: #1a1a2e;
    bottom: 18px;
    animation: mouthScaredPulse 1s ease-in-out infinite;
}

.mouth-sad {
    width: 25px;
    height: 6px;
    border-radius: 10px 10px 0 0;
    background: #1a1a2e;
    bottom: 22px;
    animation: mouthQuiver 0.1s ease-in-out infinite;
}

@keyframes mouthExcite {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes mouthScaredPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

@keyframes mouthQuiver {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(-50%) translateY(1px); }
}

.slimy-antenna {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 15px;
    background: #00f0ff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.emotion-happy .slimy-antenna {
    background: #00ff88;
    animation: antennaHappy 1s ease-in-out infinite;
}

.emotion-relaxed .slimy-antenna {
    background: #ffaa00;
    animation: antennaRelaxed 2s ease-in-out infinite;
}

.emotion-excited .slimy-antenna {
    background: #ff0080;
    animation: antennaExcited 0.3s ease-in-out infinite;
}

.emotion-angry .slimy-antenna {
    background: #ff4444;
    animation: antennaAngry 0.15s ease-in-out infinite alternate;
}

.emotion-scared .slimy-antenna {
    background: #f0f8ff;
    animation: none;
    height: 5px;
    top: 5px;
    opacity: 0.5;
}

.emotion-sad .slimy-antenna {
    background: #6666ff;
    animation: antennaDroop 2s ease-in-out infinite;
}

.slimy-antenna::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ff0080;
    border-radius: 50%;
    animation: antennaGlow 2s ease-in-out infinite;
}

@keyframes antennaGlow {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

@keyframes antennaHappy {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
}

@keyframes antennaRelaxed {
    0%, 100% { transform: translateX(-50%) rotate(-5deg); }
    50% { transform: translateX(-50%) rotate(5deg); }
}

@keyframes antennaExcited {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.2); }
}

@keyframes antennaAngry {
    0%, 100% { transform: translateX(-50%) rotate(20deg); }
    50% { transform: translateX(-50%) rotate(-20deg); }
}

@keyframes antennaDroop {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(-10deg); }
}

.emotion-indicator {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.emotion-happy .emotion-indicator,
.emotion-relaxed .emotion-indicator,
.emotion-excited .emotion-indicator,
.emotion-angry .emotion-indicator, 
.emotion-scared .emotion-indicator,
.emotion-sad .emotion-indicator {
    opacity: 1;
    animation: emotionFloat 2s ease-in-out infinite;
}

@keyframes emotionFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Tears Animation */
.tear {
    position: absolute;
    width: 3px;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 240, 255, 0.8), transparent);
    border-radius: 50%;
    opacity: 0;
}

.left-tear {
    top: 35px;
    left: 25px;
}

.right-tear {
    top: 35px;
    right: 25px;
}

@keyframes tearFall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    80% {
        opacity: 0.8;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(40px) scale(0.5);
    }
}

@keyframes tearBuild {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: 4px;
        opacity: 1;
    }
}

/* Character Menu Styles */
.character-menu {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}

.character-menu.menu-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-40px) scale(1);
}

.menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--dark);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.menu-btn:hover {
    transform: scale(1.15);
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.disable-btn:hover {
    background: #ff4444;
    border-color: #ff4444;
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.chat-btn:hover {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    top: -40px;
    background: var(--dark);
    color: var(--light);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--dark);
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.disable-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
}

/* Re-enable Button */
.re-enable-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.re-enable-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px var(--primary-glow);
}

/* AI Chat Window Styles */
.ai-chat-window {
    position: fixed;
    width: 350px;
    height: 450px;
    background: var(--secondary);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.ai-chat-window.chat-open-animated {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.close-chat {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.5rem;
    max-width: 100%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #ff0080, #cc0066);
}

.message-content {
    background: var(--light-dark);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
}

.bot-message .message-content {
    border-bottom-left-radius: 5px;
    background: rgba(0, 240, 255, 0.1);
}

.user-message .message-content {
    border-bottom-right-radius: 5px;
    background: rgba(255, 0, 128, 0.1);
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.typing-indicator .message-content {
    background: transparent;
    padding: 0.5rem 1rem;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: typingBounce 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.chat-input-container {
    padding: 1rem;
    border-top: 1px solid var(--light-dark);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid var(--light-dark);
    border-radius: 25px;
    background: var(--light);
    color: var(--dark);
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary);
}

.send-btn {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

/* Character Chat Transformation */
.character-chat {
    border: 2px solid #00f0ff;
    background: var(--secondary);
    box-shadow: 
        0 0 30px rgba(0, 240, 255, 0.3),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.character-chat .chat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 13px 13px 0 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    min-height: 70px;
}

.character-face {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #00b8c4);
    position: relative;
    flex-shrink: 0;
}

.chat-eyes {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
}

.chat-eye {
    width: 8px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.chat-eye::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
}

.character-chat .chat-header h3 {
    margin: 0;
    color: var(--secondary);
    font-size: 1.1rem;
}

.character-chat .close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: auto;
}

.character-chat .close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.character-chat .chat-messages {
    background: var(--light);
    border-left: 2px solid #00f0ff;
    border-right: 2px solid #00f0ff;
}

.character-chat .chat-input-container {
    background: var(--secondary);
    border-top: 2px solid #00f0ff;
    border-radius: 0 0 13px 13px;
}

/* User Dropdown Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--primary-glow);
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--secondary);
    border: 1px solid var(--light-dark);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    box-shadow: var(--shadow-dark);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-left: 1px solid var(--light-dark);
    border-top: 1px solid var(--light-dark);
    transform: rotate(45deg);
}

.enable-friend-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.enable-friend-btn:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-icon {
    font-size: 1.1rem;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    background: transparent;
    border: 1px solid var(--error);
    border-radius: var(--radius);
    color: var(--error);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--error);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.friend-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .slimy-character {
        width: 60px;
        height: 60px;
    }
    
    .ai-chat-window {
        width: 90vw;
        height: 70vh;
        left: 5vw !important;
        top: 15vh !important;
    }
    
    .slimy-eyes {
        top: 18px;
    }
    
    .eye {
        width: 10px;
        height: 10px;
    }
    
    .slimy-mouth {
        bottom: 15px;
        width: 16px;
        height: 6px;
    }
}

/* Dashboard Header */
.dashboard-header {
    margin-bottom: 4rem;
}

/* Request Modal Specifics */
.request-modal-content {
    max-width: 600px;
    text-align: left;
}

.request-modal-content p {
    margin-bottom: 2rem;
    color: var(--dark-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    background-color: var(--light);
    color: var(--dark);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    resize: vertical;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

textarea {
    min-height: 150px;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-agreement label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--dark-light);
    font-size: 0.9rem;
    cursor: pointer;
}

.terms-agreement a {
    text-decoration: underline;
    font-weight: 600;
}

.btn-block {
    width: 100%;
    padding: 1rem;
}
/* Disabled Button State */
.btn-disabled {
    background: var(--gray-light) !important;
    color: var(--gray) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-disabled::before {
    display: none;
}

/* Request Status Container */
.request-status-container {
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border-left: 5px solid var(--info);
    background: rgba(10, 10, 20, 0.8);
}

.request-status-container h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.request-status-container p {
    margin-bottom: 0;
    color: var(--dark-light);
}

.status-pending {
    border-left-color: var(--warning);
}
.status-pending h4 {
    color: var(--warning);
}

.status-accepted {
    border-left-color: var(--success);
}
.status-accepted h4 {
    color: var(--success);
}

.status-denied {
    border-left-color: var(--error);
}
.status-denied h4 {
    color: var(--error);
}


/* Add this to the auth-message for consistency with modal messages */
.auth-message.success {
    background-color: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.auth-message.error {
    background-color: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}
/* FIX FOR MODAL DISPLAY */
#request-modal {
    display: none;
}

#request-modal[style*="display: flex"] {
    display: flex !important;
}

/* Ensure modal backdrop covers entire screen */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

/* Make sure modal content is visible */
.modal-content {
    position: relative;
    z-index: 10000;
    background: var(--secondary);
    margin: auto;
}

/* Test button styles */
.test-button {
    position: fixed;
    top: 100px;
    left: 20px;
    background: #ff4444;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10001;
}
/* Fix for continue button visibility */
#submit-request-btn.hidden {
    display: none !important;
}

#submit-request-btn:not(.hidden) {
    display: block !important;
}

/* Make sure the checkbox is clickable */
.terms-agreement {
    cursor: pointer;
}

.terms-agreement input[type="checkbox"] {
    cursor: pointer;
}

.terms-agreement label {
    cursor: pointer;
    user-select: none;
}

/* Highlight the checkbox when focused */
.terms-agreement input[type="checkbox"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
/* Enhanced Form Styles */
.form-group select {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    background-color: var(--light);
    color: var(--dark);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-group select option {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-weight: normal;
    color: var(--dark-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--dark);
}

/* Improve modal content spacing */
.request-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.request-modal-content .form-group {
    margin-bottom: 1.8rem;
}

/* Responsive form */
@media (max-width: 768px) {
    .request-modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .form-group select,
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}
/* Quick footer fix */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
}
/* ADD TO style.css (Near the end of the existing CSS, or in the Responsive Design section) */

/* Checkbox Group for Required Pages */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem; /* Gap between checklist items */
    padding: 0.5rem 0;
}

.checkbox-group .checkbox-label {
    margin-bottom: 0;
    flex-basis: calc(50% - 0.75rem); /* Two items per row on larger screens */
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .checkbox-group .checkbox-label {
        flex-basis: 100%; /* One item per row on mobile */
    }
}