/* ========================================
   HOMEPAGE STYLES - Pre Free Fantasy
   ======================================== */

/* Preloader / Splash Screen */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.preloader-door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-blue);
    transition: transform 0.6s ease-in-out 1s;
}

.preloader-door-left {
    left: 0;
    transform-origin: left;
}

.preloader-door-right {
    right: 0;
    transform-origin: right;
}

.preloader.loaded .preloader-door-left {
    transform: translateX(-100%);
}

.preloader.loaded .preloader-door-right {
    transform: translateX(100%);
}

.preloader-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader.loaded .preloader-content {
    animation: fadeOut 0.25s ease-in-out 1s forwards;
}

.preloader.loaded {
    animation: hidePreloader 0s ease-in-out 1.6s forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes hidePreloader {
    to {
        visibility: hidden;
        opacity: 0;
    }
}

/* Hero Section - Content Left, Image Right */
.hero-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.hero-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    padding-right: 20px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 26px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-buttons .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border: 2px solid var(--accent-gold);
}

.hero-buttons .btn-primary:hover {
    background: var(--primary-blue);
    color: var(--accent-gold);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Highlights Section */
.highlights-section {
    padding: 60px 0;
    background: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.highlight-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.highlight-card img {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    object-fit: contain;
}

.highlight-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight-card p {
    font-size: 14px;
    color: var(--text-dark);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    background: var(--light-gray);
    padding: 40px 25px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card img {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
}

.step-card h3 {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.stat-number {
    font-size: 42px;
    color: var(--accent-gold);
    font-weight: 400;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    white-space: nowrap;
}

.stat-label {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 400;
    white-space: nowrap;
}

/* CTA Section - Content Left, Logo Right */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.cta-content h2 {
    font-size: 42px;
    color: var(--primary-blue);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 35px;
}

.btn-cta {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--accent-gold);
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.btn-cta:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
    border-color: var(--accent-gold);
}

.cta-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
}
