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

:root {
    /* Homer Bot inspired color palette */
    --primary: #1E3A8A;
    --secondary: #3B82F6;
    --accent: #60A5FA;
    --purple: #8B5CF6;
    --cyan: #06B6D4;
    --green: #10B981;
    --yellow: #FBBF24;
    
    /* Dark theme colors */
    --dark: #1a1d2e;
    --darker: #16192a;
    --darkest: #0f1118;
    --light: #F8FAFC;
    --gray: #94A3B8;
    --gray-dark: #64748B;
    
    /* Effects */
    --card-bg: rgba(30, 35, 52, 0.5);
    --card-border: rgba(59, 130, 246, 0.2);
    --glow: rgba(59, 130, 246, 0.3);
    
    --sidebar-width: 320px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #0f1118 0%, #1a1d2e 50%, #16192a 100%);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5%, -5%) rotate(120deg); }
    66% { transform: translate(-5%, 5%) rotate(240deg); }
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(26, 29, 46, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--card-border);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--glow);
    animation: float 3s ease-in-out infinite;
}

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

.sidebar-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu {
    list-style: none;
    padding: 2rem 0;
    flex: 1;
}

.sidebar-menu li {
    margin: 0.5rem 0;
}

.sidebar-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: var(--transition);
}

.sidebar-menu a:hover::before {
    transform: translateX(0);
}

.sidebar-menu a:hover {
    border-left-color: var(--secondary);
    color: var(--accent);
}

.sidebar-menu a.highlight {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.sidebar-footer a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.sidebar-footer a:hover {
    color: var(--accent);
}

/* ==================== SIDEBAR TOGGLE ==================== */
.sidebar-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--glow);
}

.sidebar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    min-height: 100vh;
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.main-content.sidebar-open {
    filter: blur(3px);
}

/* Dark overlay when sidebar is open */
.main-content.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--glow);
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #3B82F6 30%, #8B5CF6 60%, #06B6D4 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 0.8s ease-out;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
    line-height: 1.6;
}

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

/* ==================== BUTTONS ==================== */
.cta-button {
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light);
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    animation: slideInUp 0.8s ease-out 0.4s both;
    position: relative;
    overflow: hidden;
}

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

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

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.cta-button:active {
    transform: translateY(-2px);
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.section-logo {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--glow);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #3B82F6 40%, #8B5CF6 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.6s ease-out;
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3B82F6, #8B5CF6, #06B6D4, transparent);
    border-radius: 20px 20px 0 0;
}

.content-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* ==================== FEATURES GRID ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    box-shadow: 0 15px 40px var(--glow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    margin: 0;
}

/* ==================== DESIGNS GALLERY ==================== */
.designs-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.design-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.design-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #06B6D4);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.design-item:hover::before {
    opacity: 1;
}

.design-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px var(--glow);
}

.design-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #F8FAFC, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== TEAM GRID ==================== */
.team-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 20px 50px var(--glow);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--glow));
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.member-role {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ==================== DISCORD SECTION ==================== */
.discord-card {
    text-align: center;
}

.discord-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.discord-feature {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: var(--transition);
}

.discord-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--glow);
}

.discord-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--glow));
}

.discord-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.discord-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
    margin-top: 2rem;
}

.discord-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.6);
}

/* ==================== ORDER SECTION ==================== */
.order-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.discord-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.5);
    margin: 0 auto;
}

.discord-login-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(88, 101, 242, 0.7);
}

.order-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

/* ==================== USER INFO ==================== */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.user-details h3 {
    color: var(--light);
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--gray);
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== DESIGN FORM ==================== */
.design-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

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

.form-group label {
    color: var(--light);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem;
    background: rgba(30, 35, 52, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[type="color"] {
    height: 50px;
    cursor: pointer;
}

.form-group small {
    color: var(--gray);
    font-size: 0.875rem;
}

.submit-button {
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: var(--light);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== SUCCESS MESSAGE ==================== */
.success-message {
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 2rem;
    animation: scaleIn 0.5s ease-out;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.success-message p {
    margin-bottom: 2rem;
}

/* ==================== TECH GRID ==================== */
.tech-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #06B6D4);
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 15px 15px 0 0;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    box-shadow: 0 20px 50px var(--glow);
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #F8FAFC, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-card {
        padding: 2rem;
    }

    .sidebar {
        width: 85vw;
        max-width: 320px;
    }
    
    .features-grid,
    .designs-gallery,
    .team-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
}