@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #fbbf24;
    --primary-dark: #d97706;
    --primary-light: #fef3c7;
    --bg-main: #020617;
    --bg-card: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #eab308;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(251, 191, 36, 0.1);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --dark-gradient: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}



[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #020617;
    --text-muted: #475569;
    --primary: #d97706;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --dark-gradient: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="light"] .mesh-gradient {
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, transparent 100%);
}

[data-theme="light"] .hero h1 {
    color: #0f172a;
}

[data-theme="light"] .btn-outline {
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .btn-outline:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

[data-theme="light"] .service-card h3 {
    color: #0f172a;
}

[data-theme="light"] .section-header h2 {
    color: #0f172a;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: normal;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(234, 179, 8, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 1) 0%, transparent 100%);
    z-index: -1;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 6, 23, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-premium {
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.4);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    background: var(--glass-border);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-outline {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="light"] .hero-tag {
    background: rgba(251, 191, 36, 0.2);
}

[data-theme="light"] .service-card {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .service-card:hover {
    background: rgba(255, 255, 255, 1);
}

[data-theme="light"] input,
[data-theme="light"] select {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .overlay-panel {
    background: #ffffff;
}

[data-theme="light"] .split-file {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .close-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

[data-theme="light"] .close-btn:hover {
    color: #fff;
}

[data-theme="light"] .preview-item {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

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

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    background: var(--gold-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.hero-illustration {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(251, 191, 36, 0.15);
    border: 1px solid var(--glass-border);
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--card-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: all 0.5s;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
    background: var(--primary);
    color: #000;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Service Form Overlay */
.service-form {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Overlay Results */
.overlay-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: 600px;
    background: #020617;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -40px 0 80px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.overlay-panel.active {
    transform: translateX(0);
}

.overlay-header {
    padding: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 2.5rem;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #ef4444;
}

.overlay-panel.wide {
    width: 90vw;
    max-width: 1600px;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: 100%;
}

.split-file {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.split-data {
    height: 100%;
    overflow-y: auto;
}

/* Markdown Rendering */
.prose {
    font-size: 1rem;
    line-height: 1.8;
}

.prose h1,
.prose h2,
.prose h3 {
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.prose th {
    background: var(--primary);
    color: #000;
    padding: 1rem;
    text-align: left;
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overlay-panel {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }
}

/* File Preview */
.preview-box {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.preview-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    animation: fadeInDown 0.3s ease-out;
}

.preview-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.preview-item iframe {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: none;
    background: #fff;
    margin-bottom: 0.5rem;
}

.preview-file-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}