/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5649c0;
    --primary-light: #8a7eea;
    --secondary-color: #00b894;
    --text-color: #f5f5f5;
    --light-text: #cccccc;
    --very-light-text: #aaaaaa;
    --background-color: #121212;
    --light-background: #1e1e1e;
    --dark-background: #0a0a0a;
    --border-color: #333333;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --error-color: #ff7675;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--text-color);
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 30px;
    color: var(--text-color);
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-color);
}

h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--light-text);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-background);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    outline: none;
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--dark-background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--light-background);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.text-center {
    text-align: center;
}

/* Header Section */
header {
    background-color: var(--dark-background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: var(--transition);
    transition: var(--transition);
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 150px 0;
    color: var(--text-color);
    position: relative;
}

.hero h2 {
    font-size: 3rem;
    color: #ffffff;
}

.hero h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    background-color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Story Generator Section */
.story-generator {
    background-color: var(--background-color);
}

.generator-form {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--dark-background);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.form-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.story-output {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.loading-message {
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 15px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.story-result {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--dark-background);
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-right: 15px;
}

.story-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* About Section */
.about-box {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: var(--box-shadow);
}

.about p {
    color: var(--light-text);
    line-height: 1.8;
}

/* Features Section */
.features h2 {
    text-align: center;
}

.features h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    color: var(--primary-color);
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* FAQ Section */
.faq h2 {
    text-align: center;
}

.faq h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.accordion {
    margin-top: 40px;
}

.accordion-item {
    background-color: var(--light-background);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.accordion-icon {
    color: var(--primary-color);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Ad Section */
.ad-section {
    background-color: var(--background-color);
}

.ad-container {
    width: 100%;
    max-width: 728px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--light-background);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

/* Footer Section */
footer {
    background-color: var(--dark-background);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links h4 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-text);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--very-light-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 3s steps(40, end);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Page Title Section */
.page-title {
    background-image: linear-gradient(rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.9)), url('../images/page-title-bg.svg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 50px;
}

.page-title h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

/* About Content Styles */
.about-content {
    background-color: var(--background-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-icon i {
    font-size: 35px;
    color: white;
}

.about-card h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
}

.about-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.mission-box, .commitment-box {
    background-color: var(--light-background);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
}

/* Uses Section Styles */
.uses-section {
    margin: 50px 0;
}

.uses-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.uses-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-card {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.use-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.use-icon {
    background-color: var(--primary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 24px;
}

/* Call to Action Section */
.cta-section {
    background-image: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.7)), url('../images/cta-bg.svg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
    color: var(--text-color);
    border-radius: 0;
}

.cta-section h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.cta-section p {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background-color: #ffffff;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Features Content Styles */
.features-content {
    background-color: var(--background-color);
}

.feature-detail {
    margin-bottom: 70px;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-detail-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* FAQ Content Styles */
.faq-content {
    background-color: var(--background-color);
}

.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.faq-category {
    background-color: var(--light-background);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-category:hover, .faq-category.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Contact Page Styles */
.contact-content {
    background-color: var(--background-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-info {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form .btn-primary {
    width: 100%;
}

/* Legal Page Styles */
.legal-content {
    background-color: var(--background-color);
}

.legal-box {
    background-color: var(--light-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.legal-box h2 {
    color: var(--text-color);
    margin-top: 30px;
}

.legal-box h2:first-child {
    margin-top: 0;
}

.legal-box p, .legal-box ul {
    color: var(--light-text);
}

.legal-box ul {
    margin-bottom: 20px;
}

.legal-box ul li {
    margin-bottom: 10px;
} 