/*
======================================================
BUILD MY APP IDEA SUBPAGE STYLES (Orange Theme)
Requires: global.css for variables and base typography
======================================================
*/

/* --- 0. ANIMATED BACKGROUND (Orange Tinted) --- */
body {
    /* Set a very light, soft background using global colors */
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 50%, rgba(249, 115, 22, 0.1) 100%);
    min-height: 100vh;
}

/* FIX: Added missing positioning for orbs */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute; 
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

/* FIX: Set orb positions */
.orb1 {
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--primary-accent), transparent);
}
.orb2 {
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, var(--svc-teal), transparent); 
}
.orb3 {
    top: 50%;
    left: 45%;
    background: radial-gradient(circle, var(--border-gray), transparent);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}


/* --- 1. HERO SECTION --- */

.hero {
    position: relative;
    min-height: 90vh;
    padding-top: 5rem; 
    overflow: hidden;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-badge {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary-accent);
    backdrop-filter: blur(5px);
    padding: 0.6rem 1.5rem; 
    border-radius: 50px; 
    display: inline-flex; 
    align-items: center;        /* Center vertically */
    justify-content: center;    /* Center horizontally */
    gap: 0.6rem;
    font-size: 1.1rem;          /* ✅ Increased text size */
    font-weight: 600;           /* ✅ Makes text more prominent */
    letter-spacing: 0.5px;      /* Optional – improves readability */
    margin-bottom: 1.5rem;
}


.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: var(--text-gray);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons use global styles (btn-primary / btn-secondary) */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

.btn-secondary.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark); 
    color: var(--text-dark);
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
}
.btn-secondary.btn-outline:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    background: rgba(249, 115, 22, 0.05);
    transform: translateY(-2px);
}

/* Hero Visual Cards Positioning */
.hero-visual {
    position: relative;
    min-height: 500px; 
}

.floating-card {
    position: absolute;
    width: 250px; 
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
    animation: pulse 4s infinite ease-in-out alternate;
}

/* FIX: Card specific positions */
.card1 {
    top: 50px;
    left: 0;
}
.card2 {
    top: 150px;
    right: 0;
    animation-delay: 0.5s;
}
.card3 {
    bottom: 50px;
    left: 100px;
    animation-delay: 1s;
}

@keyframes pulse {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    color: var(--bg-white);
}

.card-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

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


/* --- 2. JOURNEY SECTION (Staggered Cards - DULL WHITE BACKGROUND & VISIBLE NUMBERS) --- */

.journey-section {
    padding: 5rem 0; 
    background: var(--bg-white); 
}

.section-header .section-badge {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--primary-accent-dark);
}

.section-title {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.journey-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.journey-card:nth-child(even) {
    margin-top: 50px; 
}


.journey-card {
    position: relative;
    padding: 3rem;
    background: var(--bg-light-gray); 
    backdrop-filter: none; 
    border: 1px solid var(--border-gray);
    border-radius: 24px;
    transition: all 0.3s ease;
    text-align: center;
}

.journey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent), var(--primary-accent-dark));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.journey-card:hover::before {
    opacity: 0.05; 
}

.journey-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2);
}

.journey-number {
    /* FIX: Changed color to solid dark gray for clear visibility */
    color: var(--text-dark); 
    opacity: 0.1; /* Added opacity to keep it faded but visible */
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.journey-icon {
    font-size: 2.5rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.journey-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.journey-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 3. SERVICES SECTION (Bento Grid) --- */

.services-section {
    padding: 5rem 0; 
    background: transparent;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto); 
    gap: 1.5rem;
    margin-top: 3rem;
}

.bento-item {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 1;
}
.bento-item.wide {
    grid-column: span 2;
    grid-row: span 1;
}
.bento-item.tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.bento-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.05));
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.bento-item > div {
    position: relative;
    z-index: 1;
    height: 100%;
}

.bento-item:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 1.8rem;
    color: var(--primary-accent-dark);
    margin-bottom: 0.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.service-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --- 4. PROCESS SECTION (Timeline) --- */

.process-section {
    padding: 5rem 0; 
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 3rem auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 4px; 
    background: linear-gradient(180deg, var(--primary-accent), var(--primary-accent-dark));
}

.process-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
    min-height: 150px;
}
.process-step:nth-child(odd) {
    flex-direction: row;
}
.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 1.5rem;
    border-radius: 12px;
    width: 40%; 
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.process-step:hover .step-content {
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.15);
}

.step-number-circle {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    z-index: 10;
    
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.5);
    border: 4px solid var(--bg-light-gray); 
    color: var(--bg-white);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary-accent-dark);
    margin-bottom: 0.2rem;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.step-desc {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}


/* --- 5. WHO WE HELP --- */

.help-section {
    padding: 5rem 0; 
    background: transparent;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.help-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.2);
    transition: all 0.3s ease;
}

.help-card:hover {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.15);
    transform: translateY(-5px);
}

.help-icon {
    font-size: 2rem;
    color: var(--primary-accent);
    margin-bottom: 1rem;
}

.help-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-accent-dark), var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
    color: var(--text-gray);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-gray);
    transition: color 0.3s ease;
}
.help-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-list li::before {
    content: "\f00c"; /* Check icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-accent-dark);
    font-size: 0.8rem;
}

.help-list li:hover {
    color: var(--text-dark);
}

/* --- 6. FINAL CTA SECTION --- */

.final-cta {
    padding: 5rem 0; 
    background: transparent;
}

.cta-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}


/* --- Responsive Overrides --- */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-visual {
        min-height: 400px; 
        position: relative;
    }
    .floating-card {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
        animation: none; 
        transform: none;
    }
    .card1, .card2, .card3 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
    }
    
    .journey-container {
        grid-template-columns: 1fr;
    }
    .journey-card:nth-child(even) {
        margin-top: 0; 
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(150px, auto);
    }
    .bento-item.large, .bento-item.wide, .bento-item.tall {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Timeline mobile layout */
    .process-timeline {
        align-items: flex-start;
    }
    .timeline-line {
        left: 25px;
        transform: none;
    }
    .process-step {
        flex-direction: column !important; 
        min-height: auto;
        margin-bottom: 2rem;
        padding-left: 60px;
        align-items: flex-start;
    }
    .process-step .step-content {
        width: 100%; 
        margin-left: 0;
    }
    .step-number-circle {
        position: absolute;
        left: 0;
        top: 0;
        transform: none;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-item, .bento-item.large, .bento-item.wide, .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .cta-card {
        padding: 2rem;
    }
}