/* 
    CSS for index.html 
*/

/* HERO SECTION */

.hero {
    position: relative;
    padding: 160px 0 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-top: -80px;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.hero-content {
    position: relative;
    z-index: 10;
    display: block; /* Remove grid for full background layout */
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);

    padding: 8px 16px;
    border-radius: 999px;

    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.badge i {
    color: var(--primary);
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -1px;
    font-weight: 700;
}

.hero-text p {
    color: var(--text-muted);

    margin-bottom: 30px;
    max-width: 600px;

    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* HERO VIDEO BACKGROUND */

.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;

    /* Fade to left transparent mask */
    mask-image: linear-gradient(to right, transparent 0%, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Dimmed for legibility */
}

/* Services selection */

.services-section {
    padding: 90px 0;
}

/* REFINED SERVICE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Better responsiveness */
    gap: 32px;
}

.service-card {
    background: var(--card-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid var(--border);
    border-top: 2px solid var(--border);
    border-radius: 28px;
    padding: 40px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom, var(--radial-1), transparent 60%);
    opacity: 0;
    transition: 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--radial-2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--shadow);
}

.service-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--radial-1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 14px;
    text-align: center;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-card a {
    background: var(--card);
    color: var(--primary);

    padding: 10px 16px;
    border-radius: 12px;

    text-decoration: none;

    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    transition: 0.3s ease;
}

.service-card a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.service-specs {
    margin: 20px 0;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 20px;

    color: var(--text-muted);
    font-size: 0.8rem;
}

.service-specs span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ABOUT */

.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px; /* Matches service cards */
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-card:hover {
    background: var(--card-light);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px var(--shadow);
}

.about-card .service-icon {
    margin: 0 0 10px 0; /* Align icon to the left for a professional look */
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--text);
}

.about-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.about-mini,
.faq {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.about-card,
.faq-item {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 20px;

    transition: 0.3s ease;
}

.about-card:hover,
.faq-item:hover {
    transform: translateY(-4px);

    border-color: var(--primary);
}

.about-card h3,
.faq-item h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.about-card p,
.faq-item p {
    color: var(--text-muted);
}

/* FAQ */

.faq-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .video-background {
        /* On mobile, use a top-to-bottom fade to keep text clear at the top/center */
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 50%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 1) 50%);
    }

    .video-background video {
        opacity: 0.4; /* Slightly darker on mobile for better text contrast */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .about-card,
    .faq-item {
        padding: 22px;
    }

    .faq-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {
    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
