﻿:root {
    --gold: #f2a365;
    --dark: #111;
    --light: #fff;
    --text-dark: #222;
    --accent: #747fc1;
    --transition: 0.3s ease;
}

/* Prevent horizontal scrolling, allow vertical */
html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text-dark);
}

/* Scroll-Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gold);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Footer styling */
footer, .footer, .site-footer {
    background: #000 !important;
    color: #fff !important;
    padding: 2rem 1rem;
    text-align: center;
}

    footer a, .footer a {
        color: #fff !important;
        opacity: 0.8;
        transition: opacity var(--transition);
    }

        footer a:hover, .footer a:hover {
            opacity: 1;
        }

/* Hero Section */
.services-hero {
    position: relative;
    overflow: hidden;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

    .hero-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

.services-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 1;
    backdrop-filter: blur(4px);
}

#particle-canvas, .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 0 1rem;
    animation: fadeInDown 1s var(--transition) both;
}

.services-hero h1 {
    font-size: 4rem;
    letter-spacing: 4px;
    margin-bottom: .5rem;
    color: var(--light);
    animation: pulse 2s infinite;
}

.services-hero .hero-typewriter {
    font-size: 1.25rem;
    color: var(--light);
    min-height: 1.5em;
}

#what-is {
    /* space around the section */
    padding: 4rem 1.5rem;
    background: var(--light);
    color: var(--text-dark);
    text-align: center;
}

    #what-is h2 {
        /* reuse your section-title look */
        font-size: 2.5rem;
        margin-bottom: 1rem;
        position: relative;
        color: var(--text-dark);
    }

        #what-is h2::after {
            content: "";
            display: block;
            width: 60px;
            height: 4px;
            background: var(--gold);
            margin: 10px auto 0;
        }

    #what-is p {
        /* constrain the paragraph width & improve readability */
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.6;
        font-size: 1rem;
        color: var(--text-dark);
    }

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
}

    .section-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 4px;
        background: var(--gold);
        margin: 10px auto 0;
    }

/* Summary Cards */
.summary-grid.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.summary-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

    .summary-card i {
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }

    .summary-card h2 {
        font-size: 1.5rem;
        margin-bottom: .75rem;
        color: var(--text-dark);
    }

    .summary-card p {
        font-size: 1rem;
        line-height: 1.5;
        color: var(--text-dark);
    }

/* Glint on links */
.card-link {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
}

    .card-link::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg,transparent,rgba(255,255,255,0.6),transparent);
        transform: skewX(-25deg);
    }

    .card-link:hover::after {
        animation: glint 1s forwards;
    }

/* Detailed Sections */
.detailed-section {
    padding: 4rem 1.5rem;
    border-top: 2px solid #eee;
    text-align: center;
}

.container-detailed {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.detail-card {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    padding: 3rem 2rem 5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeInUp 1s ease-out forwards;
}

.detail-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: .75rem;
    color: var(--text-dark);
}

.detail-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.detail-button {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--gold);
    color: var(--light);
    padding: .75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    overflow: hidden;
    transition: transform var(--transition);
    transform-origin: center center;
}

    .detail-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(120deg,transparent,rgba(255,255,255,0.6),transparent);
        transform: skewX(-25deg);
    }

    .detail-button:hover,
    .detail-button:focus,
    .detail-button:active {
        transform: scale(1.05);
    }

        .detail-button:hover::after,
        .detail-button:focus::after,
        .detail-button:active::after {
            animation: glint 1s forwards;
        }

/* Experience Section */
.experience-section {
    padding: 4rem 1.5rem;
}

.experience-grid.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.experience-card {
    flex: 1 1 calc(33.333% - 20px);
    background: #fff;
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

    .experience-card i {
        font-size: 2rem;
        color: var(--accent);
        margin-bottom: 1rem;
    }

    .experience-card h3 {
        font-size: 1.25rem;
        margin-bottom: .75rem;
        color: var(--text-dark);
    }

    .experience-card p {
        font-size: 1rem;
        line-height: 1.5;
        color: var(--text-dark);
    }

/* CTA Section */
.cta-section {
    background: none;
}

    .cta-section .container-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .cta-section .detail-button {
        display: inline-block;
        position: relative;
        padding: 1rem 2rem;
        font-size: 1.125rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #111;
        background: linear-gradient(135deg, #f2a365, #ffb56b);
        background-size: 200% 200%;
        border-radius: 50px;
        box-shadow: 0 8px 20px rgba(242,163,101,0.4);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        animation: gradientShift 6s ease infinite;
        transform-origin: center center;
        overflow: hidden;
        white-space: nowrap;
    }

        .cta-section .detail-button:hover,
        .cta-section .detail-button:focus,
        .cta-section .detail-button:active {
            transform: scale(1.05);
        }

/* Mobile & Tablet */
@media (max-width: 768px) {
    .summary-card,
    .experience-card {
        flex: 1 1 100%;
    }

    .services-hero h1 {
        font-size: 2.5rem;
    }

    .services-hero .hero-typewriter {
        font-size: 1rem;
    }

    .detail-card {
        max-width: 90%;
        padding-bottom: 6rem;
    }

    .experience-grid.container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .experience-card {
        flex: none;
        width: 100%;
        border-top: 4px solid var(--accent);
        border-radius: 12px;
        padding: 1.5rem;
        text-align: left;
        box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    }

        .experience-card h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .experience-card p {
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 0;
        }

    .detailed-section .detail-button {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin: 1.5rem auto 0 !important;
        display: inline-block !important;
        transform: none !important;
    }
}

/* Mobile tweaks for CTA beyond tablet */
@media (max-width: 480px) {
    .cta-section .container-cta {
        padding: 0 5%;
    }

    .cta-section .detail-button {
        width: auto;
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
        border-radius: 40px;
        box-shadow: 0 6px 18px rgba(242,163,101,0.4);
    }

        .cta-section .detail-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px rgba(242,163,101,0.6);
        }
}

/* Keyframes */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,100% {
        text-shadow: 0 0 10px rgba(242,163,101,0.7);
    }

    50% {
        text-shadow: 0 0 20px rgba(242,163,101,1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glint {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

/* AOS Reset */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}

    [data-aos].aos-animate {
        opacity: 1;
        transform: translateY(0);
    }
