/* --- RESET & VARIABLES --- */
:root {
    --primary-color: #0f172a;
    /* --accent-color: #2563eb; */
    /* --accent-hover: #1d4ed8; */
    --accent-color: #69bef0;
    --accent-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --container-width: 75vw;
    --header-height: 60px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        max-width: 90vw;
    }

    .stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .stat {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        width: 100%;
        max-width: 300px;
    }
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h3::after {
    content: '';
    display: block;
    max-width: 80%;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* --- HEADER --- */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
     background: linear-gradient(135deg, #3caff1 0%, #1e3a8a 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a:not(.btn-primary) {
    color: var(--text-light);
    font-weight: 500;
}

nav a:not(.btn-primary):hover {
    color: var(--accent-color);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    header .container {
        justify-content: center;
    }
}

/* --- HERO --- */
#hero {
    background: linear-gradient(135deg, #3caff1 0%, #1e3a8a 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

#hero h2 {
    color: #cbd5e1;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
}

#hero p {
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--white);
}

.stat span {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* --- ABOUT --- */
#about {
    background-color: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.strengths {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.strengths h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.strengths ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.strengths ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

    #hero h1 {
        font-size: 2rem;
    }
}

/* --- SERVICES --- */
#services {
    background-color: var(--bg-light);
}

.subtitle {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card p strong {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.card ul {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- APPROACH --- */
#approach {
    background-color: var(--white);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.step h4 {
    margin-bottom: 10px;
}

/* --- CONTACT --- */
#contact {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

#contact h3 {
    color: var(--white);
}

#contact h3::after {
    background-color: var(--white);
}

#contact p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-info {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-info p {
    margin: 5px auto;
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
}

.contact-info a:hover {
    border-bottom-color: var(--white);
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

/* --- FOOTER --- */
footer {
    background-color: #020617;
    color: #64748b;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
    color: #64748b;
}

footer a {
    color: #94a3b8;
}

footer a:hover {
    color: var(--white);
}

/* --- FORM STYLES --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.5rem;
    color: var(--text-light);
    margin-top: 4px;
    transition: all 0.3s ease;
}

/* Error State */
.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Success Message */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.success-message.visible {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Loading Overlay */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.form-overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}