/* Hero Image Container */
.hero-image-container {
    position: relative;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* Hero Image Styles */
.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    transform-style: preserve-3d;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02) rotateX(5deg);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.15));
}

@media (hover: none) {
    .hero-image:hover {
        transform: none;
    }
    
    .hero-image:active {
        transform: scale(0.98);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, var(--background-dark) 0%, #1a1a1a 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a90e2' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFade 1s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 600px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.hero .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.hero .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.hero .btn:hover::after {
    width: 300px;
    height: 300px;
}

@media (hover: none) {
    .hero .btn:hover::after {
        width: 0;
        height: 0;
    }
    
    .hero .btn:active::after {
        width: 100px;
        height: 100px;
    }
}

.hero .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.hero .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.hero .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.hero .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        text-align: center;
    }
    
    .hero .lead {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero .d-flex {
        justify-content: center;
    }
    
    .hero-image-container {
        max-width: 90%;
        margin: 2rem auto 0;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero-image-container {
        max-width: 85%;
    }
    
    .hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero .d-flex {
        flex-direction: column;
    }
    
    .hero .gap-3 {
        gap: 0.5rem !important;
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 4vw, 2rem);
    }
    
    .hero .lead {
        font-size: clamp(0.875rem, 2vw, 1rem);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero .btn:active {
        transform: scale(0.98);
    }
    
    .hero-image:active {
        transform: scale(0.98);
    }
    
    .hero .btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(74, 144, 226, 0.2);
    }
    
    .hero .btn-outline-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
    }
} 