/* Home Section Styles */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
    overflow: hidden;
    padding: 14rem 0 10rem;
    /* Enhanced gradient background */
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.9) 0%, 
        rgba(30, 41, 59, 0.8) 25%, 
        rgba(56, 189, 248, 0.3) 50%, 
        rgba(129, 140, 248, 0.3) 75%, 
        rgba(15, 23, 42, 0.9) 100%), 
        url('../images/hero-banner.jpg') no-repeat center center/cover fixed;
    /* Enhanced visual effects */
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
    /* Enhanced video effects */
    filter: brightness(0.8) contrast(1.1) saturate(1.2);
    transition: all 8s ease-in-out;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(56, 189, 248, 0.15) 25%, 
        rgba(129, 140, 248, 0.15) 50%, 
        rgba(192, 132, 252, 0.15) 75%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
    /* Animated overlay effect */
    animation: overlayPulse 6s ease-in-out infinite alternate;
}

/* Enhanced Typography */
#home h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #38bdf8 25%, 
        #818cf8 50%, 
        #c084fc 75%, 
        #ffffff 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
    letter-spacing: -2px;
}

#home h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #00e5ff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

/* Enhanced Subtitle */
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Buttons */
.btn-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-custom:hover {
    background: #38bdf8;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

/* Animations */
@keyframes textGlow {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }
    50% {
        background-position: 100% 50%;
        text-shadow: 0 0 30px rgba(129, 140, 248, 0.7);
    }
    100% {
        background-position: 0% 50%;
        text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }
}

@keyframes overlayPulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.8;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    #home h1 {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }
    
    #home h3 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    #home h1 {
        font-size: 2.5rem;
    }
    
    #home h3 {
        font-size: 1.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

#home p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#home hr {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    margin: 3rem auto;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    #home h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 991.98px) {
    #home {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 98%);
    }
    
    #home h1 {
        font-size: 4rem;
    }
    
    #home h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    #home {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 99%);
        padding: 12rem 0 8rem;
    }
    
    #home h1 {
        font-size: 3.2rem;
        margin-bottom: 1.2rem;
    }
    
    #home h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    #home p {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    #home h1 {
        font-size: 2.8rem;
    }
    
    #home h3 {
        font-size: 1.2rem;
    }
    
    #home p {
        font-size: 1.1rem;
    }
}
