/*
======================================================
DATA MIGRATION SUBPAGE STYLES (Orange Theme)
Requires: global.css for variables and base typography
======================================================
*/

/* --- 0. BACKGROUND & ANIMATION (Light Orange/Gray Tint) --- */
body {
    /* Use a very subtle, light background based on primary accent */
    background: linear-gradient(135deg, var(--bg-light-gray) 0%, var(--bg-white) 50%, rgba(249, 115, 22, 0.05) 100%);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    /* FIX: Added position/size for orbs */
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

/* Orbs use different light colors */
.orb1 {
    top: 10%; left: 5%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent); /* Light Orange */
}

.orb2 {
    bottom: 15%; right: 10%;
    background: radial-gradient(circle, var(--border-gray), transparent); /* Light Gray */
    animation-delay: 7s; /* FIX: Added delay to orb2/3 */
}

.orb3 {
    top: 50%; left: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent); /* Light Orange Accent */
    animation-delay: 14s;
}

@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 (FIXED LAYOUT) --- */

.hero {
    position: relative;
    min-height: 80vh;
    padding: 4rem 0;
    z-index: 1;
    display: flex; /* FIX: Added flex to center content */
    align-items: center;
}

.hero-content {
    /* FIX: Added grid layout for the main content area (Text + Visual) */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px; /* FIX: Set max-width */
    margin: 0 auto;
}
.hero-text {
    max-width: 550px; /* FIX: Set text constraint */
}
.hero-visual {
    height: 400px; /* FIX: Set visual constraint */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge: centered and larger text */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem; /* increased text size */
    line-height: 1;
    margin-bottom: 1.5rem;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.28);
    color: var(--primary-accent);
    backdrop-filter: blur(5px);
}

/* icon inside badge */
.hero-badge i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    width: 1.4rem;
    height: 1.4rem;
}

/* H1 */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    /* Dark text fading to accent color */
    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;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-accent-dark), var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem; /* FIX: Added size */
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex; /* FIX: Added flex for buttons */
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-accent);
    border: 2px solid rgba(249, 115, 22, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-weight: 700; /* FIX: Added weight */
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-accent);
}

/* --- 2. CHALLENGES WE SOLVE (FIXED LAYOUT) --- */
.challenge-section {
    background: var(--bg-white);
    padding: 6rem 0; /* FIX: Added padding */
}

/* FIX: Added grid layout for challenge cards */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for challenges */
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 2rem;
}

.challenge-card {
    position: relative;
    overflow: hidden;
    padding: 2.5rem; /* FIX: Added padding */
    background: var(--bg-light-gray);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0; /* Starts at 0 height */
    transition: height 0.3s ease;
    /* Vertical border highlight */
    background: linear-gradient(180deg, var(--primary-accent), var(--primary-accent-dark));
}

.challenge-card:hover::before {
    height: 100%;
}

.challenge-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
}

.challenge-icon {
    font-size: 2.5rem; /* FIX: Added size */
    color: var(--primary-accent-dark);
    margin-bottom: 1rem;
}
.challenge-card h4 {
    font-size: 1.4rem; /* FIX: Added size */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.challenge-card p {
    font-size: 1rem; /* FIX: Added size */
    color: var(--text-gray);
}

/* --- 3. METHODOLOGY SECTION (FIXED LAYOUT) --- */

.method-section {
    padding: 6rem 0; /* FIX: Added padding */
    /* Subtle background for separation */
    background: linear-gradient(180deg, var(--bg-light-gray) 0%, rgba(249, 115, 22, 0.08) 100%);
}

/* FIX: Added grid layout for method cards */
.method-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for method steps */
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 2rem;
}

.method-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 1.5rem; /* FIX: Added padding */
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.15);
}

.method-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; /* FIX: Added size */
    font-weight: 700;
    margin: 0 auto 1rem;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.method-card h4 {
    font-size: 1.25rem; /* FIX: Added size */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.method-card p {
    font-size: 0.95rem; /* FIX: Added size */
    color: var(--text-gray);
}

/* --- 4. FEATURES SECTION (FIXED LAYOUT) --- */
.features-section {
    background: var(--bg-white);
    padding: 6rem 0; /* FIX: Added padding */
}

/* FIX: Added grid layout for feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for features */
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 2rem;
}

.feature-card {
    padding: 2rem; /* FIX: Added padding */
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center; /* FIX: Center content */
}

.feature-card:hover {
    border-color: var(--primary-accent);
    transform: scale(1.02);
}

.feature-icon {
    font-size: 2.5rem; /* FIX: Added size */
    color: var(--primary-accent-dark);
    margin-bottom: 1rem;
}
.feature-card h5 {
    font-size: 1.2rem; /* FIX: Added size */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.95rem; /* FIX: Added size */
    color: var(--text-gray);
}

/* --- 5. MIGRATION TYPES SECTION (FIXED LAYOUT) --- */
.types-section {
    padding: 6rem 0; /* FIX: Added padding */
    /* Subtle background for separation */
    background: linear-gradient(180deg, var(--bg-light-gray) 0%, rgba(249, 115, 22, 0.08) 100%);
}

/* FIX: Added grid layout for type cards */
.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for migration types */
    max-width: 1200px;
    margin: 3rem auto 0;
    gap: 1.5rem;
}

.type-card {
    text-align: center; /* FIX: Center content */
    padding: 2rem 1.5rem; /* FIX: Added padding */
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-5px);
}

.type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}
.type-card h5 {
    font-size: 1.1rem; /* FIX: Added size */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.type-card p {
    font-size: 0.95rem; /* FIX: Added size */
    color: var(--text-gray);
}

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

.final-cta-section {
    background: var(--bg-white);
    padding: 6rem 0;
}

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

.final-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1), transparent 70%);
    animation: rotate 10s linear infinite;
    z-index: 0;
}

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

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

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    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.25rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-btn {
    padding: 1.3rem 3rem;
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        height: 300px;
    }
    .challenge-grid,
    .method-container,
    .features-grid,
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 6rem;
    }
    .challenge-grid,
    .method-container,
    .features-grid,
    .types-grid {
        grid-template-columns: 1fr;
    }
    .final-cta-card {
        padding: 3rem 2rem;
    }

    /* small-screen badge and heading scaling */
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
    }
    .hero p {
        font-size: 1rem;
    }
}
.hero-svg {
    width: 100%;
    max-width: 420px;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 1024px) {
    .hero-svg {
        max-width: 320px;
        margin: 0 auto;
    }
}
