/* ============================================================
   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: -20%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, transparent 70%);
    animation: orbDrift1 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.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(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.home-stat-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14,165,233,0.2);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.home-stat-number {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    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: box-shadow 0.4s ease, border-color 0.3s ease;
    will-change: transform;
    cursor: default;
}

.home-service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-card-hover);
}

.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;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-service-card:hover .home-service-icon {
    transform: rotate(15deg) scale(1.1);
}

.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);
}

/* Orb 2 — cyan, bottom-right */
.home-hero-orb2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    animation: orbDrift2 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

/* Orb 3 — subtle white, centre */
.home-hero-orb3 {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    animation: orbDrift3 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0); }
    33%       { transform: translate(60px, 40px); }
    66%       { transform: translate(-30px, 60px); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0); }
    40%       { transform: translate(-50px, -40px); }
    70%       { transform: translate(30px, -60px); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(-40px, 30px); }
}

/* Hero entrance cascade */
.home-hero-eyebrow {
    animation: fadeSlideUp 0.7s ease both;
    animation-delay: 0.1s;
}

.home-hero h1 {
    animation: fadeSlideUp 0.7s ease both;
    animation-delay: 0.25s;
    letter-spacing: -0.03em;
}

.home-hero-tagline {
    animation: fadeSlideUp 0.7s ease both;
    animation-delay: 0.4s;
}

.home-hero-actions {
    animation: fadeSlideUp 0.7s ease both;
    animation-delay: 0.55s;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal base state */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
    }
}
