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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    overflow-x: hidden;
}

.nav-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-logo {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.2);
}

.faq-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
    background: white;
}

.faq-answer.active {
    max-height: 500px;
    padding: 25px 30px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05em;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

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

.hero p {
    font-size: 1.5em;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

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

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s backwards;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.step {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    font-size: 5em;
    font-weight: bold;
    opacity: 0.3;
    min-width: 100px;
}

.step-content {
    flex: 1;
}

.step h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

.step p {
    font-size: 1.2em;
    line-height: 1.8;
}

.step-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Guide Section */
.guide {
    padding: 100px 20px;
    background: white;
}

.guide-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.guide-box h3 {
    color: #d63031;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
}

.guide-steps {
    list-style: none;
}

.guide-steps li {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guide-steps li::before {
    content: '✓';
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Analyzer Section */
.analyzer {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.upload-area:hover {
    border-color: #764ba2;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.upload-area.dragover {
    background: #e8eaf6;
    border-color: #5e35b1;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

input[type="file"] {
    display: none;
}

.file-label {
    font-size: 1.2em;
    color: #333;
    font-weight: bold;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.option-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.option-card.selected {
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.option-card:not(.selected) {
    background: linear-gradient(135deg, #999 0%, #666 100%);
    opacity: 0.5;
}

.option-card:not(.selected):hover {
    opacity: 0.7;
}

.option-card input[type="checkbox"] {
    display: none;
}

.option-card label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
}

.option-icon {
    font-size: 2em;
    margin-right: 15px;
}

.analyze-btn {
    width: 100%;
    padding: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.5);
}

.analyze-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Results */
.results {
    margin-top: 40px;
    animation: slideUp 0.5s ease;
}

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

.result-card {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.result-title {
    font-weight: bold;
    color: #d63031;
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.result-title::before {
    content: '🎯';
    margin-right: 10px;
    font-size: 1.5em;
}

.result-link {
    color: #0984e3;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.3s ease;
}

.result-link:hover {
    color: #74b9ff;
    text-decoration: underline;
}

.error {
    background: #ff7675;
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 1.2em;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.file-name {
    margin-top: 15px;
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: #2d3436;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .step {
        flex-direction: column !important;
    }

    .step-number {
        font-size: 3em;
    }

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