/* Custom Styles for TEGOLA Website */

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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Hero Slider Custom Styles */
.slider-container {
    position: relative;
}

.slide {
    transition: opacity 1s ease-in-out;
}

.slide.active {
    z-index: 2;
}

/* Navigation Dropdown Custom Styles */
nav ul li .dropdown {
    transition: all 0.3s ease;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Button Styles */
.btn-primary {
    /* Primary Color Change: #c41e3a -> rgb(62 122 215) */
    background: rgb(62 122 215);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    /* Hover Color Change: #a01829 -> Darker Blue (rgb(40 82 170)) */
    background: rgb(40 82 170);
    transform: translateY(-2px);
    /* Box Shadow Color Change */
    box-shadow: 0 10px 20px rgba(62, 122, 215, 0.3);
}

.btn-secondary {
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.3);
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    /* Focus Border Color Change: #c41e3a -> rgb(62 122 215) */
    border-color: rgb(62 122 215);
    ring: 2px;
    /* Focus Ring Color Change */
    ring-color: rgba(62, 122, 215, 0.2);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    /* Scrollbar Thumb Color Change: #c41e3a -> rgb(62 122 215) */
    background: rgb(62 122 215);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    /* Scrollbar Thumb Hover Color Change: #a01829 -> Darker Blue (rgb(40 82 170)) */
    background: rgb(40 82 170);
}

/* Section Spacing */
section {
    scroll-margin-top: 100px;
}

/* Gradient Text */
.gradient-text {
    /* Gradient Color Change: #c41e3a and #a01829 -> rgb(62 122 215) and Darker Blue (rgb(40 82 170)) */
    background: linear-gradient(135deg, rgb(62 122 215) 0%, rgb(40 82 170) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Shadow */
.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Text Shadow */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive Typography */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Grid Auto Fill */
.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Slide Indicator Active State */
.slide-indicator.active {
    width: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

/* Navigation Hover Line */
nav ul li a {
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    /* Navigation Hover Line Color Change: #c41e3a -> rgb(62 122 215) */
    background: rgb(62 122 215);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Image Zoom Effect */
.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.5s ease;
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .floating-buttons,
    nav,
    button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible */
*:focus-visible {
    /* Focus Visible Outline Color Change: #c41e3a -> rgb(62 122 215) */
    outline: 2px solid rgb(62 122 215);
    outline-offset: 2px;
}

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

/* Custom Container */
.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1536px) {
    .container-custom {
        padding: 0 2rem;
    }
}



/* Add these new styles to your existing style.css */

/* Slider Active States */
.slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.slide:not(.active) {
    opacity: 0 !important;
    z-index: 1;
}

/* Mobile Menu Fixes */
#mobileMenuOverlay {
    transition: opacity 0.3s ease;
}

#mobileMenuOverlay:not(.hidden) {
    display: flex !important;
}

#mobileMenu {
    transition: transform 0.3s ease;
}

/* Ensure mobile menu is visible when active */
#mobileMenuOverlay.active {
    display: flex !important;
    opacity: 1;
}

#mobileMenu.active {
    transform: translateX(0) !important;
}

/* Search Modal Fix */
#searchModal:not(.hidden) {
    display: flex !important;
}

/* Slider Controls Visibility */
.slider-container:hover .slider-controls {
    opacity: 1;
}

.slider-controls {
    transition: opacity 0.3s ease;
}


