/* =====================================================
   WHY SEMSOTAI PAGE STYLES - Clean & Optimized
   ===================================================== */

/* CSS Variables for Consistent Design System */
:root {
    --space-xs: 1rem;
    --space-sm: 1.5rem;
    --space-md: 2.5rem;
    --space-lg: 4rem;
    --font-base: 1.1rem;
    --font-lg: 1.2rem;
    --font-xl: 2.5rem;
    --leading-base: 1.7;
    --leading-heading: 1.3;
    --max-width: 900px;
}

/* Hero Section */
.why-hero {
    background: #1f2937; /* Dark fallback background */
    text-align: center;
    padding: 6rem 1rem;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background-image 0.3s ease-in-out;
}

.why-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.why-hero .why-hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Immersive Sections */
.immersive-section {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #1f2937; /* Fallback dark background to prevent flash */
    transition: background-image 0.3s ease-in-out;
}

.immersive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.immersive-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: var(--space-lg) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.immersive-text-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.immersive-section.is-visible .immersive-text-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state to prevent background flash */
.immersive-section.loading {
    background-image: none !important;
    background-color: #1f2937;
}

.immersive-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    z-index: 3;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typography */
.immersive-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.immersive-content h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    line-height: var(--leading-heading);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: #ffffff;
    max-width: var(--max-width);
    margin: 0 auto var(--space-sm) auto;
    text-align: center;
}

.main-description,
.immersive-content p {
    font-size: var(--font-lg);
    line-height: var(--leading-base);
    color: #e5e7eb;
    max-width: var(--max-width);
    margin: 0 auto var(--space-sm) auto;
    text-align: center;
}

/* Feature Lists */
.features-container {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: left;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-xs);
    text-align: left;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.advantage-features li {
    text-align: left;
    padding-left: 25px;
    position: relative;
    font-size: var(--font-base);
    line-height: var(--leading-base);
    color: #e5e7eb;
    margin-bottom: 1rem;
}

.advantage-features li::before {
    content: '•';
    font-family: inherit;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3rem;
}

.advantage-features li strong {
    color: #ffffff;
    font-weight: 600;
}

/* Highlight Boxes */
.advantage-highlight {
    max-width: var(--max-width);
    margin: var(--space-sm) auto 0 auto;
    text-align: left;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #ffffff;
    font-size: var(--font-base);
    line-height: var(--leading-base);
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}

.advantage-highlight strong {
    color: #ffffff;
    font-weight: 600;
}

/* Single highlight as list item style */
.immersive-section .advantage-highlight {
    background: none;
    border: none;
    padding: 0;
    margin-top: 1.5rem;
    padding-left: 25px;
    position: relative;
}

.immersive-section .advantage-highlight::before {
    content: '•';
    font-family: inherit;
    font-weight: bold;
    color: #ffffff;
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
}

/* Button Styles */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn-primary {
    background-color: rgba(33, 124, 118, 1);
    color: white;
}

.btn-primary:hover {
    background-color: rgba(33, 124, 118, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 124, 118, 0.3);
}

/* CTA Section */
.why-cta {
    background-color: #111827;
    color: #ffffff;
    text-align: center;
    padding: 5rem 1rem;
}

.why-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-cta p {
    font-size: 1.15rem;
    color: #d1d5db;
    margin-bottom: 2rem;
}

.why-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Animation Classes */
.animate-on-scroll,
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate,
.animate-fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --font-xl: 2.2rem;
        --font-lg: 1.1rem;
        --font-base: 1rem;
        --max-width: 90%;
    }
    
    .immersive-section {
        background-attachment: scroll;
    }
    
    .why-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --font-xl: 2rem;
        --space-lg: 3rem;
        --space-md: 2rem;
        --space-sm: 1.2rem;
    }
    
    .why-hero {
        padding: 4rem 1rem;
    }
    
    .immersive-section {
        min-height: 70vh;
    }
    
    .immersive-content {
        min-height: 60vh;
        padding: var(--space-md) var(--space-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --font-xl: 1.8rem;
        --max-width: 95%;
    }
    
    .why-hero h1 {
        font-size: 2rem;
    }
    
    .why-hero .why-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Performance: Disable parallax on mobile and for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce), (max-width: 1024px) {
    .immersive-section {
        background-attachment: scroll;
    }
}