/* ============================================================
   KloudSync Pty Ltd — Home Page
   ============================================================ */

/* Hero */
.home-hero {
    margin-top: 80px;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.home-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.5rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.cta-button-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Stats strip */
.home-stats {
    padding: 60px 0;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.home-stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.home-stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.home-stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Services preview */
.home-services {
    padding: 100px 0;
    background: var(--darker-bg);
}

.home-services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.home-service-card {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.home-service-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

.home-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.home-service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.home-service-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.65;
}

.home-services-footer {
    text-align: center;
}

/* Why us */
.home-why {
    padding: 100px 0;
    background: var(--dark-bg);
}

.home-why .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.home-why-visual {
    border-radius: 16px;
    background: linear-gradient(135deg, #0f2a5a 0%, #0ea5e9 60%, #06b6d4 100%);
    aspect-ratio: 1;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.home-why-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.home-why-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-why-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.home-why-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
}

.home-why-item-text h4 {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.home-why-item-text p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* HOME-06: Real hero background photograph */
.home-hero {
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1600&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* HOME-06: Dark overlay so hero text remains readable over photo */
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(14, 165, 233, 0.12) 100%);
    z-index: 0;
}

/* HOME-06: Ensure content above photo overlay */
.home-hero .container {
    z-index: 2;
}

/* Force white text in hero — background is always a dark photo overlay */
[data-theme="light"] .home-hero h1,
[data-theme="light"] .home-hero-tagline,
[data-theme="light"] .home-hero-eyebrow {
    color: #F8FAFC;
}

[data-theme="light"] .cta-button-outline {
    color: #F8FAFC;
    border-color: rgba(248, 250, 252, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .home-stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-why .container {
        grid-template-columns: 1fr;
    }

    .home-why-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .home-hero h1 {
        font-size: 2.6rem;
    }

    .home-hero-tagline {
        font-size: 1rem;
    }

    .home-stats .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-services-grid {
        grid-template-columns: 1fr;
    }
}
