/* Custom Styles for HunterSteel Website */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    transform: scale(1.05);
}

/* Particles Animation */
#particles {
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* Navbar Transitions */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Service Cards Hover Effects */
.service-card:hover .gradient-overlay {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.service-card:hover {
    transform: scale(1.03) translateY(-3px);
    transition: all 0.3s ease;
}

/* Floating Shapes Animation */
.floating-shape {
    animation: rotate 30s linear infinite;
}

.floating-shape-2 {
    animation: rotate-reverse 35s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Counter Animation */
.counter {
    transition: all 0.5s ease;
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(8, 145, 178, 0.3);
}

/* Form Styling */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Mobile Menu Animations */
#mobileMenu {
    transition: all 0.3s ease;
}

#mobileMenu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Language Dropdown */
#langDropdown {
    transition: all 0.3s ease;
}

#langDropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chatbot Animations */
#chatbotBtn {
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(8, 145, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(8, 145, 178, 0);
    }
}

#chatbotWindow {
    transition: all 0.3s ease;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
}

#chatbotWindow.show {
    display: block !important;
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slider .slide {
        background-position: center;
    }
    
    #particles {
        display: none; /* Hide particles on mobile for performance */
    }
    
    .service-card {
        max-height: none;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0891b2;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0e7490;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .hero-slider,
    #particles,
    #chatbot,
    #navbar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}