:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-light: #a78bfa;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-phone {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
}

.header-phone:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 6rem 2rem;
    text-align: center;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-experience {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    margin-top: 1rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--gradient-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Benefits */
.benefits {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.25rem;
    color: var(--bg-white);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

.benefit-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    box-shadow: var(--shadow-sm);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 20px 0 0 20px;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.testimonial-work {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: var(--gradient-primary);
    color: var(--bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
            radial-gradient(circle at 30% 40%, rgba(167, 139, 250, 0.3) 0%, transparent 60%),
            radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--accent);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.btn-primary.submit-btn {
    color: #fff;
    background: var(--gradient-accent);
}


.btn-primary.submit-btn:hover {
    color: #fff;
    background: var(--gradient-accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    background: var(--gradient-accent);
    color: var(--bg-white);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Validation Error Styles */
.field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.checkbox-group .error-message {
    margin-top: 0.25rem;
}

/* Call Me Button */
.call-me-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.call-me-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.call-me-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6), 0 0 0 15px rgba(139, 92, 246, 0.1);
    }
}

.call-me-form {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    width: 320px;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.call-me-form.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

.call-me-form h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.call-me-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.call-me-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.call-me-form button {
    width: 100%;
    padding: 0.875rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-me-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.call-me-success {
    display: none;
    text-align: center;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.5rem;
}

.call-me-form .error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.form-success {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--bg-white);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-contact {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    font-weight: 600;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    font-weight: 700;
}

.modal-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-content p,
.modal-content ul {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.modal-content ul {
    padding-left: 2rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .call-me-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .call-me-form {
        width: calc(100vw - 2rem);
        right: -1rem;
        left: auto;
        transform-origin: bottom right;
    }

    .call-me-trigger {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}