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

:root {
    /* Brand Colors */
    --brand-cyan: #06b6d4;
    --brand-blue: #3b82f6;
    --brand-purple: #8b5cf6;
    --brand-gradient: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    --brand-gradient-text: linear-gradient(135deg, #22d3ee, #60a5fa, #a78bfa);
    /* Lighter for text on dark */

    /* Transitions */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Theme: Dark */
body.dark {
    --bg-color: #030712;
    --text-color: #f3f4f6;
    --text-muted: #d1d5db;
    --nav-bg: rgba(3, 7, 18, 0.7);
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(6, 182, 212, 0.15);
}

/* Theme: Light */
body.light {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.05);
    --glow-color: rgba(59, 130, 246, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Background Wrapper */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Subtle blend */
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--glow-color);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-color);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--card-border);
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.nav-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 16px;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--brand-cyan);
    transform: rotate(15deg);
}

.lang-switch {
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    margin-left: 24px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.lang-switch:hover {
    color: var(--brand-cyan);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Services */
.service-card {
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
    font-size: 1.25rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
}

/* Projects */
.project-card {
    overflow: hidden;
}

.project-img {
    height: 200px;
    background: var(--card-border);
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--brand-gradient);
    opacity: 0.1;
}

.project-content {
    padding: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--card-border);
    color: var(--text-muted);
    font-weight: 600;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-card {
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 1px solid var(--brand-blue);
    box-shadow: 0 0 30px var(--glow-color);
}

.plan-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-cyan);
    margin-bottom: 16px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    text-align: left;
    margin-bottom: 40px;
    flex: 1;
}

.plan-features li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    color: var(--text-muted);
}

.check-icon {
    color: var(--brand-cyan);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 80px 0 40px;
    background: var(--nav-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--brand-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ Accordion overrides */
.faq-container {
    padding: 0;
    overflow: hidden;
}
.faq-item {
    border-bottom: 1px solid var(--card-border);
    padding: 0;
    margin: 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--brand-cyan);
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-question.active i {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}
.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 500px;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1.1rem;
}

.form-message {
    margin-top: 24px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    display: block;
}

/* Custom Styles Added based on checklist */

/* 1. Ghost button for secondary */
.btn-secondary.ghost {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}
.btn-secondary.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}
body.light .btn-secondary.ghost {
    border-color: rgba(0, 0, 0, 0.2);
}
body.light .btn-secondary.ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.4);
}

/* Hero Proof points & microcopy */
.hero-proof-points {
    margin-bottom: 40px;
}
.hero-proof-points li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.text-cyan {
    color: var(--brand-cyan);
}
.hero-microcopy {
    margin-top: 24px !important;
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

/* Services */
.service-output {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}
.service-features {
    margin-bottom: 24px;
}
.service-features li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-muted);
}
.service-features li i {
    color: var(--brand-cyan);
    margin-top: 4px;
}
.mini-cta {
    font-weight: 600;
    color: var(--brand-cyan);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}
.mini-cta:hover {
    color: var(--brand-blue);
    transform: translateX(4px);
}
.service-card:hover .service-icon {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px var(--glow-color);
}
.service-icon {
    transition: var(--transition);
}

/* Projects */
.project-card {
    display: flex;
    flex-direction: column;
}
.project-img {
    transition: transform 0.5s ease;
}
.project-card:hover .project-img {
    transform: scale(1.05);
}
.project-card:hover .btn-secondary.ghost {
    background: var(--brand-cyan);
    color: white;
    border-color: var(--brand-cyan);
}
.project-features {
    margin: 16px 0;
}
.project-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    gap: 8px;
}
.project-features li i {
    color: var(--brand-cyan);
}
.mt-3 {
    margin-top: auto;
}
.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.nda-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

/* Mockups */
.mockup-bg-1 { background: linear-gradient(135deg, #1e293b, #0f172a); }
.mockup-bg-2 { background: linear-gradient(45deg, #334155, #1e293b); }
.mockup-bg-3 { background: linear-gradient(180deg, #0f172a, #020617); }
body.light .mockup-bg-1 { background: linear-gradient(135deg, #cbd5e1, #f1f5f9); }
body.light .mockup-bg-2 { background: linear-gradient(45deg, #94a3b8, #cbd5e1); }
body.light .mockup-bg-3 { background: linear-gradient(180deg, #e2e8f0, #f8fafc); }

/* Cooperation */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-steps { grid-template-columns: 1fr; } }
.step-card {
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}
.step-number {
    position: absolute;
    top: -16px;
    left: 24px;
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 12px var(--glow-color);
}
.step-card h3 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex: 1;
}
.step-outcome {
    font-size: 0.85rem;
    color: var(--brand-cyan);
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Pricing Alignment & Badge */
.pricing-grid {
    align-items: stretch;
}
.pricing-card {
    position: relative;
    padding-top: 48px;
    display: flex;
    flex-direction: column;
}
.featured-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px var(--glow-color);
}
.plan-target {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 40px;
}
.plan-delivery {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-btn {
    margin-top: auto;
}

/* Trust */
.trust-grid {
    align-items: stretch;
}
.trust-card {
    padding: 32px;
    text-align: center;
}
.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--brand-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.trust-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}
.trust-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Updates */
.contact-panel {
    padding: 40px;
}
.contact-microcopy {
    text-align: center;
    margin-bottom: 32px;
    color: var(--text-muted);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
body.light select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}
.contact-footer-copy {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}