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

:root {
    --primary-blue: #1e88e5;
    --secondary-blue: #42a5f5;
    --dark-blue: #0d47a1;
    --light-blue: #e3f2fd;
    --accent-blue: #64b5f6;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--white);
    color: var(--text-dark);
    padding: 1.2rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(30, 136, 229, 0.1);
}

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

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

.logo img {
    height: 70px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section h2 {
    color: var(--text-dark);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 2px;
}

.section h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
}

/* About Section */
#about {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

#about p {
    font-size: 1.25rem;
    text-align: center;
    max-width: 900px;
    margin: 3rem auto 0;
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro h3 {
    margin-top: 0;
}

.services-intro p {
    max-width: 900px;
    margin: 1rem auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-size: cover;
    background-position: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.8) 100%);
}

.service-card h4 {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Outsourcing Section */
#outsourcing {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

#outsourcing > .container > p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

#outsourcing h3 {
    text-align: center;
}

.reasons-list,
.tasks-list {
    max-width: 850px;
    margin: 2rem auto;
    padding-left: 2rem;
    list-style: none;
}

.reasons-list li,
.tasks-list li {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-light);
    position: relative;
    font-size: 1.05rem;
}

.reasons-list li::before,
.tasks-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contacts Section */
.contact-info {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--light-blue);
    border-radius: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-info strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-blue);
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30, 136, 229, 0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.1);
}

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

/* CAPTCHA */
.captcha-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.captcha-box {
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    padding: 1rem 1.8rem;
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 8px;
    color: var(--dark-blue);
    user-select: none;
    min-width: 160px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.refresh-captcha {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.refresh-captcha:hover {
    background: var(--dark-blue);
    transform: rotate(180deg);
}

.captcha-group input {
    flex: 1;
    min-width: 200px;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.privacy-notice {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.5;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: var(--white);
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.6s ease-out;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    nav a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    nav a::after {
        display: none;
    }

    /* Overlay */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    body.nav-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2.2rem;
    }

    .section h3 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-box {
        width: 100%;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }

    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .section h3 {
        font-size: 1.3rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    #about p,
    .services-intro p {
        font-size: 1rem;
    }
}
