/* home.css */

/* Hero Section Styles */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-pattern {
    background-image: 
        linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
        linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #4092f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Headline Animation */
.hero-headline {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-subheadline {
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-primary:hover {
    background: linear-gradient(to right, #1f2937, #111827);
}

.cta-secondary:hover {
    background: #f9fafb;
    border-color: #6b7280;
}

/* Hero Image Container */
.hero-image-container {
    animation: fadeInRight 1s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Elements */
.floating-element {
    animation: float 3s ease-in-out infinite;
}

.floating-delay {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Counter Animation */
.counter {
    transition: all 0.3s ease;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #374151);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Feature Icon */
.feature-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #374151, #1f2937);
    transform: rotate(5deg) scale(1.1);
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: #374151;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: white;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.carousel-track {
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex: 0 0 auto;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding-top: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon-wrapper {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

@media (min-width: 1024px) {
    .hero-section {
        min-height: 90vh;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Print Styles */
@media print {
    .cta-button,
    .floating-element,
    .carousel-container {
        display: none;
    }
}