/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.homepage-container {
    min-height: 100vh;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    animation: pulse 2s infinite;
}

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-text {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInFromLeft 1s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    animation: slideInFromLeft 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInFromLeft 1s ease-out 0.4s both;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #cccccc;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.quiz-preview {
    background: rgba(40, 40, 40, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.quiz-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.preview-dots .dot.active {
    background: #667eea;
    transform: scale(1.2);
}

.preview-title {
    font-weight: 600;
    color: #cccccc;
}

.preview-question h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.preview-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preview-option {
    padding: 0.75rem 1rem;
    background: rgba(60, 60, 60, 0.8);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.preview-option.correct {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.preview-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #cccccc;
}

/* Sections */
.features,
.instructions {
    padding: 5rem 2rem;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Instructions Section */
.instructions-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.instruction-prompt,
.format-example,
.important-notice {
    background: rgba(40, 40, 40, 0.6);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.3s ease;
}

.important-notice:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 152, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.15);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.notice-icon {
    font-size: 1.5rem;
    color: #ff9800;
    animation: pulse 2s infinite;
}

.notice-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff9800;
    margin: 0;
}

.notice-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 152, 0, 0.08);
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: rgba(255, 152, 0, 0.12);
    transform: translateX(4px);
}

.notice-item-icon {
    font-size: 1.2rem;
    color: #ff9800;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.notice-item-content {
    flex: 1;
}

.notice-item-content p {
    margin: 0;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 1rem;
}

.notice-item-content strong {
    color: #ff9800;
    font-weight: 600;
}

.prompt-header {
    margin-bottom: 1.5rem;
}

.prompt-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.prompt-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

.prompt-box,
.format-box {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    font-family: 'Monaco', 'Consolas', monospace;
}

.prompt-text,
.format-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Prompt Generator */
.prompt-generator {
    margin-bottom: 2rem;
}

.generator-inputs {
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

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

.input-group label {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
}

.topic-input,
.question-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.topic-input:focus,
.question-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.topic-input::placeholder {
    color: #aaaaaa;
}

.question-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.generate-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    white-space: nowrap;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

/* Responsive for generator inputs */
@media (max-width: 768px) {
    .generator-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .generate-btn {
        justify-self: stretch;
    }
}

/* Steps */
.steps {
    margin-top: 2rem;
}

.steps h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.step-content p {
    color: #cccccc;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.developer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.developer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.developers {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.developer:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.developer-icon {
    font-size: 1.2rem;
}

.developer-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.developer-separator {
    color: #667eea;
    font-weight: 700;
    font-size: 1.2rem;
}

.love-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.heart {
    font-size: 1rem;
    animation: heartbeat 2s infinite;
}

.message-text {
    color: #cccccc;
    font-style: italic;
    font-weight: 500;
}

.footer-year {
    color: #999999;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

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

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

/* Video Tutorials Section */
.video-tutorials {
    padding: 5rem 2rem;
    position: relative;
    background: rgba(20, 20, 40, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 400;
}

.video-selector {
    margin-bottom: 3rem;
}

.selector-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-selector-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 1rem 2rem;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    font-size: 1.1rem;
    font-weight: 600;
}

.ai-selector-btn:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(60, 60, 60, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.ai-selector-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ai-icon {
    font-size: 1.5rem;
}

.ai-name {
    font-weight: 600;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.video-wrapper {
    position: relative;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

#tutorial-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.video-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        padding: 6rem 1rem 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .features,
    .instructions {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .prompt-box,
    .format-box {
        padding: 1.5rem;
        font-size: 0.875rem;
    }
    
    .copy-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
    
    .video-tutorials {
        padding: 3rem 1rem;
    }
    
    .selector-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .ai-selector-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .youtube-embed iframe {
        height: 250px;
    }
}

/* YouTube Embed Styling */
.youtube-embed {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
}

.youtube-embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 15px;
    background: #000;
}

.video-info {
    text-align: center;
}

.video-info h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}
