/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.header {
    margin-bottom: 3rem;
}

.nav-back {
    margin-bottom: 1rem;
}

.back-link {
    color: #006241;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #004d33;
    transform: translateX(-2px);
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

/* Card styles */
.card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    max-width: 320px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 98, 65, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 98, 65, 0.15);
    border-color: #006241;
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    width: 100%;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-arrow {
    font-size: 1.5rem;
    color: #006241;
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

.service-card:hover .card-arrow {
    transform: translateX(4px);
}

/* Service page styles */
.service-page {
    max-width: 800px;
}

.mission-section,
.contact-section,
.soumission-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 600px;
}

/* Contact section */
.contact-info {
    display: grid;
    gap: 1.5rem;
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item:hover {
    background: #f0f9f6;
    border-color: #006241;
    transform: translateX(4px);
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-link {
    color: #006241;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #004d33;
}

/* Soumission button */
.soumission-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.6rem;
    background-color: #006241;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.soumission-button:hover {
    background-color: #004d33;
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .main-title {
        font-size: 2rem;
    }

    .service-card {
        max-width: 100%;
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-info {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1rem;
    }

    .card-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .card-arrow {
        margin-left: 0;
        align-self: flex-end;
    }

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

    .mission-text {
        font-size: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #006241;
    }

    .contact-item {
        border: 1px solid #ccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-card:hover {
        transform: none;
    }

    .contact-item:hover {
        transform: none;
    }

    .soumission-button:hover {
        transform: none;
    }
}
