/* Main CSS for OurDream AI */

/* ===== Base Styles ===== */
:root {
    --primary-color: #e11d48;
    --secondary-color: #f97316;
    --dark-bg: #000000;
    --dark-bg-secondary: #111111;
    --text-color: #ffffff;
    --text-color-secondary: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    --card-bg: rgba(20, 20, 20, 0.7);
    --sidebar-width: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

/* ===== Navigation Styles ===== */

/* Desktop Navigation */
.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.desktop-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-color);
}

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

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

.nav-actions {
    display: flex;
    gap: 15px;
}

.secondary-nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-nav-btn:hover {
    background-color: var(--dark-bg-secondary);
}

.primary-nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--gradient);
    border: none;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(225, 29, 72, 0.3);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.mobile-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.mobile-logo {
    font-size: 1.25rem;
    font-weight: bold;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-btn {
    padding: 8px 16px;
    background: var(--gradient);
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.3);
}

.menu-btn {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px 0;
}

.mobile-menu-content {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(225, 29, 72, 0.2);
    padding: 8px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    color: #d1d5db;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.mobile-menu-item:hover {
    background-color: rgba(225, 29, 72, 0.2);
    color: var(--primary-color);
}

.mobile-menu-item i {
    margin-right: 12px;
}

.join-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.join-btn:hover {
    opacity: 0.9;
}

/* ===== Main Content Styles ===== */
.main-content {
    padding-top: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(225, 29, 72, 0.2);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-color-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-btn {
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.primary-btn.large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.secondary-btn {
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
}

.companion-image {
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.3);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

/* Section Styles */
section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-color-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-color-secondary);
}

/* Characters Section */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.character-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.character-image {
    height: 300px;
    overflow: hidden;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.character-info {
    padding: 20px;
}

.character-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.age {
    font-size: 0.875rem;
    background-color: rgba(225, 29, 72, 0.2);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 8px;
}

.character-info p {
    color: var(--text-color-secondary);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.character-stats {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-color-secondary);
}

.character-stats span {
    display: flex;
    align-items: center;
}

.character-stats i {
    margin-right: 4px;
    color: var(--primary-color);
}

.characters-cta {
    text-align: center;
}

/* Customization Section */
.customization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.customization-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.customization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.customization-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
}

.customization-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.customization-card p {
    color: var(--text-color-secondary);
}

/* Technical Features Section */
.tech-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.tech-feature {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tech-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.tech-feature h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.tech-feature h3 i {
    margin-right: 12px;
    color: var(--primary-color);
}

.tech-feature p {
    color: var(--text-color-secondary);
}

/* Ethical & Legal Section */
.ethical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.ethical-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.ethical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(225, 29, 72, 0.3);
}

.ethical-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.ethical-card p {
    color: var(--text-color-secondary);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 16px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 16px;
}

.faq-answer p {
    color: var(--text-color-secondary);
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/ourdream-ai-hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.cta p {
    font-size: 1.125rem;
    color: var(--text-color-secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    background-color: var(--dark-bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-logo p {
    font-size: 0.875rem;
    color: var(--text-color-secondary);
    margin-top: 8px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-links-column h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-color);
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 8px;
}

.footer-links-column ul li a {
    color: var(--text-color-secondary);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
}

.footer-links-column ul li a.active {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-color-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}
