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

:root {
    --primary: #0f172a;      
    --secondary: #1e293b;    
    --accent: #2563eb;       
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --success: #059669;
    
    /* Softened but professional border radius */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Premium shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

body {
    background-color: var(--background);
    background-image: radial-gradient(at 50% 0%, rgba(37, 99, 235, 0.05) 0px, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent);
}

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

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

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

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

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--primary);
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #334155);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
    background: linear-gradient(135deg, #000000, var(--primary));
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary) !important;
    border: 1px solid var(--border-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero Section */
.hero {
    padding: 9rem 2rem 6rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

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

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* Section styling */
.section {
    padding: 6rem 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.section-light {
    background: var(--surface);
}

.section-dark {
    background: var(--primary);
    color: white;
}

.section-dark .section-header h2 {
    color: white;
}

.section-dark .section-header p {
    color: #94a3b8;
}

.section-dark .process-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(71, 85, 105, 0.4);
}

.section-dark .process-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--accent);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.section-dark .step-number {
    color: #60a5fa;
    border-color: rgba(71, 85, 105, 0.4);
}

.section-dark .process-card h3 {
    color: white;
}

.section-dark .process-card p {
    color: #cbd5e1;
}

.text-accent {
    color: var(--accent);
}

/* Ensure accent color is readable on dark backgrounds */
.section-dark .text-accent {
    color: #60a5fa;
}

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

.section-header {
    margin-bottom: 3rem;
    max-width: 800px;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

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

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: var(--border-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.process-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.service-card {
    background: var(--surface);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--text-main);
    margin-top: 0.2rem;
}

/* New Sections: Tech Stack, Cases, FAQ */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-badge {
    padding: 0.75rem 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    border-color: var(--accent);
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.case-card {
    background: var(--surface);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.case-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.case-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-meta span {
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    border-radius: 100px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Form Section */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.form-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.form-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.instruction-box {
    background: var(--background);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.instruction-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.instruction-box .example {
    margin-top: 1rem;
    background: var(--surface);
    padding: 1rem;
    border: 1px solid var(--border);
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
}

.order-form {
    background: var(--surface);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
}

#success-msg {
    display: none;
    background: var(--background);
    color: var(--success);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    text-align: center;
}

/* Contract formatting */
.contract-content {
    max-width: 800px;
    margin: 8rem auto 4rem;
    background: var(--surface);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.contract-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.contract-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contract-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--background);
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links, .nav-right {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--surface);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 0.5rem; /* Fixed massive vertical spacing */
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-links a {
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .nav-right.active {
        display: flex;
        padding-top: 0;
        border-bottom: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
