/* CSS Reset & Variables */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #6d8cff;
    --color-bg: #0d1117;
    --color-card: #161b22;
    --color-text: #f0f6fc;
    --color-text-muted: #8b949e;
    --color-border: #30363d;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.logo .highlight {
    color: var(--color-primary);
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-muted);
}

/* Cards */
.card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

/* Services Section */
.services h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.services p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Contact Section */
.contact h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #0d1117;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(109, 140, 255, 0.2);
}

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

/* Button */
.btn-primary {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #5a7aff;
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.form-message-success {
    background: rgba(46, 160, 67, 0.15);
    color: #3fb950;
    border: 1px solid rgba(46, 160, 67, 0.4);
}

.form-message-error {
    background: rgba(248, 81, 73, 0.15);
    color: #f85149;
    border: 1px solid rgba(248, 81, 73, 0.4);
}

/* Button disabled state */
.btn-primary:disabled {
    background: #484f58;
    cursor: not-allowed;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 1.5rem;
}

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

/* Mobile Responsive */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }

    .logo {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .services h2,
    .contact h2 {
        font-size: 1.25rem;
    }
}
