/* Add this at the top of index.css */

/* Adjust hero section for navbar */
.hero-section {
    padding-top: calc(70px + 3rem); /* navbar height + extra padding */
}

/* Ensure content doesn't overlap with fixed navbar */
body {
    padding-top: 0; /* navbar.js will handle this */
}

/* Your existing index.css content */
/* Refined Minimal Style Guide with Inter Font Only */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-black: #000000;
    --pure-white: #FFFFFF;
    --purple-deep: #7C3AED;
    --purple-light: #A855F7;
    --purple-subtle: #DDD6FE;
    --gray-light: #F3F4F6;
    --gray-medium: #9CA3AF;
    --purple-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    --subtle-gradient: linear-gradient(135deg, rgba(124, 58, 237, 0.03) 0%, rgba(168, 85, 247, 0.05) 100%);
    
    /* Font Family - Inter Only */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-primary);
    background: #000000;
    color: var(--pure-white);
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.6;
}

/* Subtle Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    pointer-events: none;
    z-index: -1;
}

/* Ensure modal styles work with existing styles */
body.modal-open {
    overflow: hidden !important;
}

/* Header Styles */
.header {
    display: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--pure-white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section - Make it more prominent */
.hero-section {
    background: #000000;
    padding: 5rem 0 6rem; /* Adjusted for sidebar instead of navbar */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    max-width: none;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-primary);
}

.main-text {
    color: var(--pure-white);
    display: block;
    margin-bottom: 0.5rem;
}

.accent-text {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
}

/* Elegant CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--purple-gradient);
    color: var(--pure-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-primary);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.hero-cta svg {
    width: 24px;
    height: 24px;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Info Sections */
.info-sections {
    padding: 8rem 0;
    position: relative;
    background: #000000;
}

.info-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.info-card {
    background: var(--subtle-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
}

.info-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.info-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--pure-white);
    font-family: var(--font-primary);
}

.info-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Final CTA Section */
.final-cta {
    padding: 8rem 0;
    text-align: center;
    background: var(--subtle-gradient);
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: #000000;
   /*background: var(--purple-gradient);*/
    opacity: 0.3;
}

.final-cta h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--pure-white);
    font-family: var(--font-primary);
}

.final-cta p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--purple-gradient);
    color: var(--pure-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    position: relative;
    z-index: 2;
}

.final-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.final-cta-button svg {
    width: 24px;
    height: 24px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

/* Modal specific overrides for this page */
#twinModal {
    font-family: 'Inter', sans-serif !important;
}

#twinModal .modal-content {
    background: #0a0a0a !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    padding: 2rem;
    position: relative;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

@keyframes step-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--pure-white);
    margin-bottom: 1rem;
    text-align: center;
}

.step-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    text-align: center;
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 400;
}

/* Trait Cards */
.trait-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trait-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pure-white);
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
}

.trait-card:hover, .trait-card.selected {
    border-color: var(--purple-deep);
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-2px);
}

.trait-emoji {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

/* Form Inputs */
.wizard-input, .wizard-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: 1rem;
    font-family: var(--font-primary);
    font-weight: 400;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.wizard-input:focus, .wizard-textarea:focus {
    outline: none;
    border-color: var(--purple-deep);
    background: rgba(255, 255, 255, 0.03);
}

.wizard-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-primary);
}

/* Wizard Buttons */
.wizard-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.5rem;
}

.btn-wizard {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-back {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-back:hover {
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-next {
    background: var(--purple-gradient);
    color: var(--pure-white);
    flex: 1;
    border: none;
}

.btn-next:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Loading Animation */
.loading-animation {
    text-align: center;
    padding: 3rem;
}

.neural-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--purple-deep);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Character Counter */
.char-counter {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container {
        max-width: 1200px;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 4rem; /* Adjusted for mobile sidebar */
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    .info-card {
        padding: 2.5rem;
    }
    
    .info-card h3 {
        font-size: 1.6rem;
    }
    
    .info-card p {
        font-size: 1.1rem;
    }
    
    .final-cta h2 {
        font-size: 2.5rem;
    }
    
    .final-cta p {
        font-size: 1.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trait-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta,
    .final-cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .info-card {
        padding: 2rem;
    }
    
    .info-icon {
        font-size: 3rem;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .trait-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }
}

/* Hamburger Menu Button */
.menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: rgba(40, 40, 40, 0.9);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    font-size: 2rem;
}

.menu-toggle:hover {
    background: rgba(60, 60, 60, 0.9);
}


/* Sidebar Styles - Character.AI inspired */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #1f1f1f;
    border-right: 1px solid #333;
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid #333;
}

.sidebar .nav-logo .logo-text {
    color: #ffffff;
    font-size: 1.5rem; /* Increased from 1.25rem */
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Sidebar Content */
.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 0;
}

.nav-section {
    padding: 0 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem; /* Increased padding */
    margin: 0.25rem 0;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-size: 1.1rem; /* Increased from 0.95rem */
    font-weight: 500; /* Increased font weight */
    font-family: var(--font-primary);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-item.active {
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
}

.nav-item svg {
    width: 22px; /* Increased from 20px */
    height: 22px; /* Increased from 20px */
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.create-btn {
    background: #2d2d2d !important;
    color: #fff !important;
    font-weight: 600; /* Increased font weight */
    font-size: 1.15rem; /* Slightly larger for create button */
}

.create-btn:hover {
    background: #3d3d3d !important;
}

/* Spacer */
.sidebar-spacer {
    flex: 1;
}

/* Upgrade Section */
.upgrade-section {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.upgrade-btn {
    width: 100%;
    padding: 1rem 1rem; /* Increased padding */
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem; /* Increased from 0.9rem */
    font-weight: 500; /* Added font weight */
    font-family: var(--font-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.upgrade-btn:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.02);
}

.upgrade-highlight {
    color: #a855f7;
    font-weight: 700; /* Increased font weight */
    font-size: 1.05rem; /* Slightly larger */
}

/* User Section */
.user-section {
    padding: 0 1rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem; /* Increased padding */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px; /* Increased from 32px */
    height: 36px; /* Increased from 32px */
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem; /* Increased from 0.875rem */
    flex-shrink: 0;
}

.username {
    color: #fff;
    font-size: 1rem; /* Increased from 0.9rem */
    font-weight: 600; /* Increased font weight */
    flex: 1;
}

.dropdown-icon {
    color: #888;
    flex-shrink: 0;
}

.dropdown-icon svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 260px;
        left: -260px;
    }
    
    .menu-toggle {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.4rem;
    }
    
    .hamburger-line {
        width: 16px;
    }

    .sidebar .nav-logo .logo-text {
        font-size: 1.4rem;
    }
    
    .nav-item {
        font-size: 1.05rem;
        padding: 0.9rem 1rem;
    }
    
    .create-btn {
        font-size: 1.1rem;
    }
    
    .upgrade-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }
    
    .username {
        font-size: 0.95rem;
    }
}

/* Content padding adjustment */
.hero-section {
    padding-top: 5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 4rem;
    }
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem; /* Increased padding */
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.close-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    width: 22px; /* Increased from 20px */
    height: 22px; /* Increased from 20px */
}