/*
 * Portfolio Necromancer - Landing Page Styles
 * Copyright (c) 2025 Portfolio Necromancer Team
 * Licensed under MIT License - see LICENSE file for details
 */

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

:root {
    /* Portfolio Necromancer Theme - Gothic Minimalism */
    --bone-white: #f8f7f4;
    --soft-black: #1a1a1a;
    --ghost-gray: #b8b8b8;
    --ethereal-purple: #a78bfa;
    --muted-emerald: #6ee7b7;
    
    --primary-color: #a78bfa;
    --primary-dark: #8b5cf6;
    --secondary-color: #8b5cf6;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --bg-light: #f8f7f4;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #6ee7b7;
    --shadow-sm: 0 2px 4px 0 rgba(167, 139, 250, 0.1);
    --shadow-md: 0 4px 12px -1px rgba(167, 139, 250, 0.15);
    --shadow-lg: 0 10px 25px -3px rgba(167, 139, 250, 0.2);
    --shadow-xl: 0 20px 35px -5px rgba(167, 139, 250, 0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    /* Subtle texture for ethereal vibe */
    background-image: radial-gradient(circle at 1px 1px, rgba(167, 139, 250, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

h1, h2, h3 {
    /* Serif headers with arcane feel */
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Georgia', serif;
    letter-spacing: -0.02em;
}

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

/* Navigation - Ethereal styling */
.navbar {
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Georgia', serif;
}

.logo {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(167, 139, 250, 0.3));
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--ethereal-purple), var(--muted-emerald));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--ethereal-purple);
}

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

.btn-nav {
    background: linear-gradient(135deg, var(--ethereal-purple), var(--secondary-color));
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
}

.btn-nav::after {
    display: none;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(167, 139, 250, 0.4);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ethereal-purple), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.125rem;
}

/* Hero Section - Ethereal Goth Vibes */
.hero {
    background: linear-gradient(135deg, var(--soft-black) 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.1), transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--ethereal-purple), var(--muted-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--ghost-gray);
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Problem Section */
.problem {
    background: var(--bg-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(167, 139, 250, 0.25);
    border-color: var(--ethereal-purple);
}

.problem-card .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
}

/* Solution Section */
.solution-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    text-align: center;
    border: 1px solid rgba(167, 139, 250, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(167, 139, 250, 0.25);
    border-color: var(--ethereal-purple);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ethereal-purple), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.step-arrow {
    font-size: 2rem;
    color: var(--ethereal-purple);
    font-weight: 700;
    opacity: 0.5;
}

/* Features Section */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(167, 139, 250, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(167, 139, 250, 0.25);
    border-color: var(--ethereal-purple);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.feature-card code {
    background: var(--bg-light);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

/* Demo Section */
.demo {
    background: var(--bg-light);
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.demo-code {
    background: #1f2937;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: #374151;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #4b5563;
}

.code-title {
    color: #9ca3af;
    font-size: 0.875rem;
}

.demo-code pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.demo-code code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.demo-features {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.demo-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.demo-features ul {
    list-style: none;
}

.demo-features li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.demo-features li:last-child {
    border-bottom: none;
}

.demo-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.demo-note strong {
    color: var(--primary-dark);
}

.demo-note a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.demo-note a:hover {
    text-decoration: underline;
}

/* Getting Started Section */
.steps-detailed {
    max-width: 800px;
    margin: 3rem auto;
}

.detail-step {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

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

.step-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.detail-step h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.step-content pre {
    background: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.step-content code {
    color: #e5e7eb;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.step-note {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.link-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.link-icon {
    font-size: 2rem;
}

.link-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.link-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Integrations Section */
.integrations {
    background: var(--bg-light);
}

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

.integration-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.integration-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.integration-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.integration-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.integration-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.integration-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.integration-link:hover {
    color: var(--primary-dark);
}

.integration-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    color: var(--text-light);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-desc {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Documentation Section */
.documentation {
    background: var(--bg-light);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.doc-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.doc-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--soft-black) 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.15), transparent 70%);
    pointer-events: none;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--ethereal-purple), var(--muted-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--ghost-gray);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
.footer {
    background: var(--soft-black);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

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

.footer-links a {
    color: var(--ghost-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--ethereal-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--ghost-gray);
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .demo-content {
        grid-template-columns: 1fr;
    }
    
    .solution-steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}
