:root {
    --primary-color: #2a4365;
    --secondary-color: #48bb78;
    --text-color: #2d3748;
    --background-color: #f7fafc;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.hero {
    position: relative;
    height: 100vh;
    color: white;
    padding: 2rem;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 67, 101, 0.7);
}

nav {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-image {
    max-height: 50px;
    width: auto;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hero-content {
    max-width: 800px;
    margin: 8rem auto 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-card {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

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

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    color: var(--primary-color);
    font-weight: 600;
}

.join-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.contact-form input {
    padding: 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    font-size: 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

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

.service-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    min-height: 650px; /* Adding fixed minimum height */
    display: flex;
    flex-direction: column;
}

.service-info-card > *:not(.service-image) {
    padding: 0 1.5rem;
}

.service-info-card > *:last-child {
    padding-bottom: 1.5rem;
}

/* Adjusting margins and paddings for inner elements */
.service-websites {
    margin: 1rem 0;
    padding: 0 1.5rem;
}

.feature-list {
    margin: 1rem 0;
    padding: 0 1.5rem;
}

.service-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-info-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}

.service-info-card p {
    padding: 0 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-websites {
    margin: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.website-link {
    background: var(--background-color);
    padding: 0.8rem;
    border-radius: 6px;
}

.website-link p {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    padding: 0;
}

.website-link a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
    word-break: break-all;
}

.website-link a:hover {
    opacity: 0.8;
}

/* Modal and Slider Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.swiper {
    width: 80%;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.swiper.active {
    opacity: 1;
    transform: translateY(0);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
    align-items: center;
}

.mission-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.mission-image:hover .mission-main-image {
    transform: scale(1.05);
}

.mission-content {
    padding: 2rem;
}

.mission-subtitle {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-features {
    list-style: none;
    margin-top: 1.5rem;
    padding: 0;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-features li:last-child {
    border-bottom: none;
}

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

.service-info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.service-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-info-card p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.service-info-card a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.service-info-card a:hover {
    opacity: 0.8;
}

.service-info-card .cta-button {
    margin-top: 1.5rem;
    width: 100%;
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    padding: 0.5rem;
}

.telegram-section {
    margin-top: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.telegram-section h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.telegram-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.telegram-support, .telegram-channel {
    text-align: center;
}

.telegram-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.telegram-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.telegram-section a:hover {
    opacity: 0.8;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-box h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-box p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-box p:last-child {
    margin-bottom: 0;
}

.service-image {
    width: 100%;
    padding-top: 100%; /* This creates a 1:1 aspect ratio */
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-image[data-has-slider="true"] {
    cursor: pointer;
}

.service-image[data-has-slider="true"]::before {
    content: '🔍 View more images';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
}

.service-image[data-has-slider="true"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-image[data-has-slider="true"]:hover::before,
.service-image[data-has-slider="true"]:hover::after {
    opacity: 1;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Keeping the hover effect */
.service-info-card:hover .service-image img {
    transform: scale(1.1);
}

.feature-list {
    list-style: none;
    margin: 1.5rem;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-button {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.2rem;
        color: white;
    }

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

    .contact-form input,
    .contact-form button {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .swiper {
        width: 95%;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-content {
        padding: 1rem 0;
    }

    .service-info-card {
        padding: 1.5rem;
    }
    
    .service-info-card .cta-button {
        padding: 0.8rem 1.5rem;
    }

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

    .telegram-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .website-link {
        padding: 0.6rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-box {
        padding: 1.5rem;
    }
}

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

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .service-image {
        padding-top: 100%; /* Maintain square aspect ratio on mobile */
    }
}
