/* Custom CSS for ASGERF Website */

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

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

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

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #504B3D 0%, #7A553E 100%);
}

.gradient-overlay {
    background: linear-gradient(rgba(80, 75, 61, 0.8), rgba(122, 85, 62, 0.8));
}

/* Hero section styling with responsive backgrounds */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Responsive hero background images */
@media (max-width: 320px) {
    .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_320.webp') !important;
    }
    
    /* Fallback for browsers that don't support WebP */
    .no-webp .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_320.jpg') !important;
    }
}

@media (min-width: 321px) and (max-width: 768px) {
    .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_768.webp') !important;
    }
    
    .no-webp .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_768.jpg') !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_1024.webp') !important;
    }
    
    .no-webp .hero-bg {
        background-image: url('../images/responsive/DSC01719_1758712071200_1024.jpg') !important;
    }
}

@media (min-width: 1025px) {
    .hero-bg {
        background-image: url('../images/DSC01719_1758712071200.webp') !important;
    }
    
    .no-webp .hero-bg {
        background-image: url('../images/DSC01719_1758712071200.jpg') !important;
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(42, 41, 39, 0.6), rgba(80, 75, 61, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
}

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

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

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #7A553E 0%, #504B3D 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 85, 62, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid #7A553E;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #7A553E;
    color: white;
    transform: translateY(-2px);
}

/* Navigation dropdown improvements */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.group .group-hover\:opacity-100 {
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

/* Form styling */
.form-input {
    border: 2px solid #C1B4A0;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #7A553E;
    box-shadow: 0 0 0 3px rgba(122, 85, 62, 0.1);
}

/* Typography enhancements */
.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #7A553E 0%, #C1B4A0 100%);
    border-radius: 2px;
}

/* Image gallery styles */
.image-gallery img {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        min-height: 60vh;
    }
    
    .section-heading::after {
        width: 40px;
        height: 2px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #7A553E;
    outline-offset: 2px;
}

/* Statistics counter animation */
.stat-number {
    font-weight: 700;
    font-size: 2.5rem;
    color: #7A553E;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #C1B4A0;
    border-top: 2px solid #7A553E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* marks custom below */

.header h1 {padding-top:14px} /* logo position tweaking */


@media (min-width: 769px) {
    header {padding-top: 14px;}
}

.faq-question:focus {
    outline:none;
}

.footer-bg {
    background-image: url('../images/tribal-2.png'); 
    background-size: 100% auto; 
    background-repeat: no-repeat; 
    background-position: center; 
    background-blend-mode: overlay;
}
