/* Hero Section */
.hero {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(to right,
            var(--secondary),
            var(--shadow),
            var(--secondary));
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.divider {
    width: 128px;
    height: 4px;
    background: var(--accent);
    margin: 2rem auto;
}

.hero p {
    font-size: clamp(1rem, 2.5vh, 1.5rem);
    max-width: 960px;
    margin: 0 auto 0;
    line-height: 1.8;
    font-weight: 500;
    max-width: 62rem;
}

/* Services Section */
.section {
    padding: 3.5rem 1.5rem;
}

.section-dark {
    background: linear-gradient(to right,
            var(--secondary),
            var(--shadow),
            var(--secondary));
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 960px;
    margin: 0 auto 3rem;
}

.grid {
    display: grid;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

/* Service Cards */
.service-card {
    background: linear-gradient(to bottom right,
            #000000,
            var(--secondary),
            var(--gray));
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 800px;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.service-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 192px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.service-card:hover img {
    filter: grayscale(0%);
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.service-section {
    margin-bottom: 1.5rem;
}

.service-section h4 {
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.service-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-item span {
    font-size: 1rem;
    line-height: 1.6;
}

.service-card-footer {
    margin-top: auto;
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding-top: 1.5rem;
}

.service-card-footer .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(to bottom right,
            #000000,
            var(--primary),
            var(--secondary));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(to bottom right,
            var(--accent),
            var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    border-color: var(--white);
    transform: scale(1.1);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.feature-item h3 {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, #000000, var(--secondary), #000000);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-decoration: none;
    color: white;
    font-size: 1.125rem;
    transition: background-color 0.2s ease-in-out;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
    transition: transform 0.3s ease-in-out;
}

.contact-item span {
    font-weight: 500;
}

.contact-item:hover {
    background-color: #3b82f633;
    border-color: rgb(59, 130, 246);
    color: rgb(59, 130, 246);
}

.contact-item:hover svg {
    transform: scale(1.15);
    /* slightly increase size */
}

/* Responsive */
@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        line-height: 0.95;
        letter-spacing: 0.025rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Center last card if odd number */
    .grid-3>*:nth-child(7):last-child {
        grid-column: 2 / 3;
    }
}

@media (max-width: 764px) {

    .section-title {
        font-size: 1.5rem;
    }
    .hero h1 {
        line-height: 1.4;
    }
    .hero p {
        margin-bottom: 0;
    }

    .hero {
        padding: 1rem 1rem;
    }

    .mt-4.mti-4 {
        margin-bottom: 0;
    }

    .section {
        padding: 3rem 1rem;
    }

    .contact-item {
        font-size: 1rem;
        padding: 0.75rem 0.75rem;
    }

    .features-grid {
        gap: 2rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-section h4 {
        font-size: 1rem;
    }

    .feature-item h3 {
        font-size: 1.25rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 4rem;
}