/* Home Page Specific Styles */

/* Counter animation for stats */
.counter {
    transition: all 0.3s ease;
}

/* Scroll-triggered animations are defined globally; Home can add overrides below if needed */

/* Section Enter animation utility */
.section-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 5rem); /* Account for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding-top: 2rem;
}

/* Override for sections that should be full height */
#home.min-h-screen {
    min-height: calc(100vh - 5rem);
}

.hero-content {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary-yellow), var(--accent-gold), var(--primary-yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray-300);
    max-width: 48rem;
    margin: 0 auto 2rem auto;
    line-height: 1.625;
}

/* Interactive Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray-400);
    font-size: 0.875rem;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.cta-primary {
    background: linear-gradient(to right, var(--primary-yellow), var(--accent-gold));
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.25);
    transform: translateY(0);
}

.cta-primary:hover {
    transform: translateY(-0.5rem) scale(1.05);
    box-shadow: 0 15px 35px rgba(250, 204, 21, 0.4);
}

.cta-secondary {
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.cta-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    transform: translateY(-0.5rem) scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1s infinite;
}

.scroll-indicator svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-yellow);
    transition: color 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover svg {
    color: var(--accent-gold);
}

/* Quick Preview Section */
.quick-preview {
    padding: 5rem 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.5), rgba(30, 58, 138, 0.2));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 10;
}

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(59, 130, 246, 0.1));
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover {
    border-color: rgba(250, 204, 21, 0.5);
    transform: translateY(-1rem) rotate(1deg);
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.2);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:nth-child(even):hover {
    transform: translateY(-1rem) rotate(-1deg);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to right, var(--primary-yellow), var(--accent-gold));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(12deg);
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-blue);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--accent-gold);
}

.service-description {
    color: var(--text-gray-300);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: var(--accent-gold);
    transform: scale(1.05);
}

/* Home visual strip (stock1-3) */
.home-visual-strip figure,
.home-visual-strip article {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(59, 130, 246, 0.08));
}

.home-visual-strip img {
    display: block;
    width: 100%;
    height: 14rem; /* Ensures uniform media height */
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.home-visual-strip figure:hover,
.home-visual-strip article:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.45);
    box-shadow: 0 16px 32px rgba(250, 204, 21, 0.18);
}

.home-visual-strip figure:hover img,
.home-visual-strip article:hover img {
    transform: scale(1.06);
}

/* Responsive Design */
@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
    
    .stats-container {
        gap: 4rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-primary,
    .cta-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
