.services-container, .hiw-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-container, .hiw-container {
    text-align: center;
}

/* ========================================
                  DARK THEME
   ======================================== */

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('https://images.unsplash.com/photo-1542362567-b07e54358753?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-shadow: 0 0 12px var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-cta {
    background-color: var(--primary);
    color: var(--white-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--primary-hover);
}

/* --- Services Section --- */
#services {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 80px 0;
    text-align: center;
}

#services h2 {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

#services p.services-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-color);
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Inner Service Cards */
.service-card {
    background: var(--inner-card-bg);
    box-shadow: var(--shadow);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--primary);
}

.service-card i {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    opacity: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--secondary);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-color-muted);
    opacity: 1;
}

/* --- How It Works Section --- */
.hiw {
    padding: 80px 0;
}

.hiw h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.hiw-step {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hiw-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.hiw-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--primary);
}

.hiw-icon i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.trust-badges .badge {
    background: var(--bg-gradient);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    border-radius: 50px;
    padding: 8px 15px;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

#how-it-works h3 {
    color: var(--primary);
}

#how-it-works,
#testimonials {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.hiw-container, .testimonials-container {
    max-width: 100%;
    text-align: center;
}

/* ========================================
                 LIGHT THEME
   ======================================== */

/* --- Hero --- */
body.light .hero {
    background-image: linear-gradient(rgba(248, 250, 252, 0.85),
    rgba(240, 249, 255, 0.85)),
    url('https://images.unsplash.com/photo-1542362567-b07e54358753?q=80&w=2070&auto=format&fit=crop');
}

body.light .hero h1 {
    color: var(--text-color-dark);
    text-shadow: none;
}

body.light .hero p {
    color: var(--text-color-muted);
    opacity: 1;
}

body.light .hero-secondary-cta {
    border: 2px solid var(--primary);
    color: var(--inner-card-bg) !important;
    box-shadow: none;
}

body.light .hero-secondary-cta:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: var(--light-mode-hover-glow);
    transform: translateY(-2px) scale(1.02);
}

/* --- Services --- */
body.light #services h2 {
    color: var(--text-color-dark) !important;
    text-shadow: none !important;
}

body.light #services p.services-intro {
    color: var(--text-color-muted) !important;
    opacity: 1;
}

body.light .service-card::before {
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0.15;
    transition: opacity 0.3s ease, background 0.3s ease;
}

body.light .service-card:hover::before {
    opacity: 0.8;
    background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
    animation: serviceCardBorderGlow 1.5s infinite alternate;
}

/* --- How It Works --- */
body.light #how-it-works h3 {
    color: var(--text-color-dark);
}

body.light .hiw-step:hover {
    box-shadow: 0 10px 25px var(--shadow);
}

body.light .hiw h2 {
    color: var(--text-color-dark);
    text-shadow: none;
}

body.light .hiw-step:hover {
    box-shadow: var(--light-mode-hover-glow);
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 900px) {
    #how-it-works,
    #testimonials {
        padding: 1.5rem;
        margin: 1rem;
    }
}