/* ===== SERVICES PAGE STYLING ===== */

/* Services Section Container */
.section {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 6vw, 3rem);
    background: #000000;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 180, 180, 0.1);
}

.section:last-child {
    border-bottom: none;
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: clamp(150px, 20vw, 300px);
    height: 3px;
    background: linear-gradient(90deg, transparent, #00B4B4, transparent);
    margin: clamp(1rem, 2vw, 1.5rem) auto 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 40vw, 320px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 1400px;
    margin: 0 auto;
}

/* Card Link (removes default link styling) */
.cards-grid a {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

/* Individual Card */
.card {
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.05) 0%, rgba(0, 180, 180, 0.02) 100%);
    border: 2px solid rgba(0, 180, 180, 0.2);
    border-radius: clamp(12px, 2vw, 16px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.5rem);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Card Hover Effect */
.card:hover {
    background: linear-gradient(135deg, rgba(0, 180, 180, 0.15) 0%, rgba(0, 180, 180, 0.08) 100%);
    border-color: #00B4B4;
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 180, 180, 0.2);
}

/* Card Glow Effect on Hover */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 180, 180, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

/* Card Title */
.card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: #00B4B4;
}

/* Card Description */
.card p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #999999;
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.card:hover p {
    color: #cccccc;
}

/* Card Icon/Indicator (optional visual indicator) */
.card::after {
    content: '→';
    position: absolute;
    bottom: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    color: #00B4B4;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .section {
        padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 2.5rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    }

    .section-title::after {
        width: clamp(120px, 18vw, 250px);
        height: 2px;
        margin: clamp(0.75rem, 1.5vw, 1rem) auto 0;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 35vw, 280px), 1fr));
        gap: clamp(1.25rem, 2.5vw, 2rem);
    }

    .card {
        padding: clamp(1.25rem, 3vw, 2rem);
        gap: clamp(0.75rem, 1.5vw, 1.25rem);
    }

    .card h3 {
        font-size: clamp(1rem, 2.2vw, 1.3rem);
    }

    .card p {
        font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .section {
        padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2rem);
    }

    .section-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        margin-bottom: clamp(1.25rem, 3vw, 2rem);
    }

    .section-title::after {
        width: clamp(100px, 15vw, 200px);
        height: 2px;
        margin: clamp(0.5rem, 1vw, 0.75rem) auto 0;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 90vw, 280px), 1fr));
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    .card {
        padding: clamp(1rem, 2.5vw, 1.5rem);
        gap: clamp(0.5rem, 1vw, 1rem);
        border-radius: clamp(10px, 1.5vw, 12px);
    }

    .card h3 {
        font-size: clamp(0.95rem, 2vw, 1.2rem);
        letter-spacing: 0.03em;
    }

    .card p {
        font-size: clamp(0.8rem, 1.2vw, 0.9rem);
        line-height: 1.5;
    }

    .card:hover {
        transform: translateY(-5px);
    }

    .card::after {
        font-size: clamp(1rem, 1.8vw, 1.4rem);
        bottom: clamp(0.75rem, 1.5vw, 1rem);
        right: clamp(0.75rem, 1.5vw, 1rem);
    }
}

/* Small Mobile (600px and below) */
@media (max-width: 600px) {
    .section {
        padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
        border-bottom: 0.5px solid rgba(0, 180, 180, 0.05);
    }

    .section-title {
        font-size: clamp(1.4rem, 2.8vw, 1.8rem);
        margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    }

    .section-title::after {
        width: clamp(80px, 12vw, 150px);
        height: 1.5px;
        margin: clamp(0.4rem, 0.8vw, 0.6rem) auto 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: clamp(0.75rem, 1.5vw, 1.25rem);
    }

    .card {
        padding: clamp(1rem, 2.2vw, 1.25rem);
        gap: clamp(0.5rem, 0.8vw, 0.75rem);
        border-radius: 10px;
        border-width: 1.5px;
    }

    .card h3 {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
        letter-spacing: 0.02em;
    }

    .card p {
        font-size: clamp(0.75rem, 1vw, 0.85rem);
        line-height: 1.4;
    }

    .card:hover {
        transform: translateY(-4px);
    }

    .card::after {
        font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    }
}

/* Extra Small Mobile (Below 360px) */
@media (max-width: 360px) {
    .section {
        padding: 1.25rem 0.75rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .section-title::after {
        width: 70px;
        height: 1.5px;
        margin: 0.4rem auto 0;
    }

    .cards-grid {
        gap: 0.75rem;
    }

    .card {
        padding: 0.9rem;
        gap: 0.5rem;
    }

    .card h3 {
        font-size: 0.9rem;
    }

    .card p {
        font-size: 0.75rem;
    }
}

/* ===== ANIMATIONS ===== */

/* Stagger animation for cards on load */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.cards-grid a:nth-child(1) .card {
    animation-delay: 0.1s;
}

.cards-grid a:nth-child(2) .card {
    animation-delay: 0.2s;
}

.cards-grid a:nth-child(3) .card {
    animation-delay: 0.3s;
}

.cards-grid a:nth-child(4) .card {
    animation-delay: 0.4s;
}

/* ===== ACCESSIBILITY ===== */

/* Focus state for keyboard navigation */
.cards-grid a:focus {
    outline: none;
}

.cards-grid a:focus-visible .card {
    border-color: #00C8C8;
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.2);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .card,
    .card:hover {
        animation: none;
        transition: none;
    }
}