/* Custom Font */
@font-face {
    font-family: 'NeuePower';
    src: url('../fonts/NeuePower-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --primary-color: #065f46;
    --secondary-color: #10b981;
    --accent-color: #34d399;
    --dark-color: #1e293b;
    --darker-color: #0f172a;
    --light-color: #f1f5f9;
    --lighter-color: #f8fafc;
    --text-color: #475569;
    --text-dark: #1e293b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --gradient-start: #059669;
    --gradient-end: #10b981;

    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition-slow);
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-start) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px 0 rgba(16, 185, 129, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

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

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

.nav a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--secondary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--darker-color);
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.95;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('../../images/hero-team.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 600px;
}

.hero-features {
    display: grid;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 600px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 60px;
    margin-top: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* About Section */
.about {
    background-color: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    z-index: -1;
}

.about-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    position: relative;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-text p:first-of-type {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-slow);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 100%;
    height: 400px;
    margin-bottom: 28px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 95, 70, 0.6) 100%);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition-slow);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 18px;
}

/* Approach Section */
.approach {
    background: linear-gradient(180deg, var(--white) 0%, var(--lighter-color) 100%);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.approach-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.approach-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: var(--transition-slow);
}

.approach-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--secondary-color);
}

.approach-item:hover::after {
    height: 4px;
}

.approach-number {
    font-family: 'NeuePower', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    display: inline-block;
}

.approach-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.approach-item p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Legal Section */
.legal-content {
    max-width: 900px;
    margin: 40px auto 0;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 30px;
}

.legal-highlight {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    margin-top: 30px;
}

.legal-highlight p {
    margin-bottom: 10px;
}

/* Contacts Section */
.contacts {
    background-color: var(--lighter-color);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
    align-items: stretch;
}

.contact-info {
    background-color: var(--white);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.contact-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
    height: 100%;
}

.contact-map::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    pointer-events: none;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--white);
    color: var(--text-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-map-icon {
    display: flex;
    align-items: center;
}

.footer-map-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-map-icon a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copy {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 0.9rem;
    text-align: right;
}

/* Privacy Page */
.privacy-page {
    padding-top: 120px;
    min-height: 100vh;
}

.privacy-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 40px;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 40px 0 20px;
    text-align: left;
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 20px;
    line-height: 1.8;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 30px;
}

.contact-box {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.back-to-home {
    text-align: center;
    margin-top: 50px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 48px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: left;
    letter-spacing: -0.02em;
}

.modal-content h2::after {
    display: none;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group .required {
    color: #ef4444;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.contact-form .btn {
    margin-top: 12px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero::before,
    .hero::after {
        width: 100%;
        clip-path: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image::before {
        top: -15px;
        left: -15px;
        right: 15px;
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
    }

    .nav.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 span {
        font-size: 1.8rem;
    }

    .hero-lead {
        font-size: 1.15rem;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

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

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        padding: 32px;
    }

    .service-icon {
        height: 200px;
    }

    /* Approach */
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .approach-item {
        padding: 32px;
    }

    /* Contacts */
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h1 span {
        font-size: 1.5rem;
    }

    .hero-lead {
        font-size: 1.05rem;
    }

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

    .section h2::after {
        width: 40px;
        height: 3px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .service-card,
    .approach-item {
        padding: 24px;
    }

    .about-image::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }
}
