/* Custom CSS for Radient Insurance Website */

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.slide-in-left {
    transform: translateX(-100px);
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    transform: translateX(100px);
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
}

.zoom-in {
    transform: scale(0.8);
    opacity: 0;
    animation: zoomIn 1s ease-out forwards;
}

.bounce {
    animation: bounce 2s infinite;
}

.pulse {
    animation: pulse 2s infinite;
}

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

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

/* Hero Section */
/* Hero Section */
#home {
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
}

#home .bg-white {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
#about img {
    transition: transform 0.5s ease;
}

#about .grid {
    max-width: 600px;
    margin: 0 auto;
}

#about .bg-white {
    border-left: 4px solid #D4AF37;
}

/* Instagram-style Gallery */
#gallery .gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#gallery .gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#gallery .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gallery .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.aspect-square {
    aspect-ratio: 1/1;
}

/* Custom LightGallery Theme */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.lg-custom-theme .lg-img-wrap {
    padding: 20px 0;
}

.lg-custom-theme .lg-toolbar {
    background-color: transparent;
}

.lg-custom-theme .lg-counter {
    color: #fff;
}

.lg-custom-theme .lg-toolbar .lg-icon {
    color: #fff;
    font-size: 24px;
}

.lg-custom-theme .lg-actions .lg-next, 
.lg-custom-theme .lg-actions .lg-prev {
    background-color: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.lg-custom-theme .lg-actions .lg-next:hover, 
.lg-custom-theme .lg-actions .lg-prev:hover {
    background-color: rgba(212, 175, 55, 0.8);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

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

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Filter Buttons */
.gallery-filter {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.gallery-filter.active {
    background-color: #D4AF37 !important;
    color: white !important;
    font-weight: 600;
}

.gallery-filter:hover:not(.active) {
    background-color: #f3f4f6;
}

/* Custom Gradient Backgrounds */
.gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F2D57E 100%);
}

.red-gradient {
    background: linear-gradient(135deg, #FF0000 0%, #FF6B6B 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

/* Floating Buttons Animation */
.floating-btn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    max-width: 1200px;
}

/* Mobile Sidebar */
#mobile-sidebar {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#mobile-sidebar nav a {
    transition: all 0.3s ease;
}

#mobile-sidebar nav a:hover {
    background-color: #D4AF37;
    color: white;
    padding-left: 20px;
}

/* Responsive Header */
@media (max-width: 768px) {
    header .container {
        padding: 0.5rem 1rem;
    }
    
    header .flex-wrap {
        justify-content: center;
        text-align: center;
    }
    
    header .flex-wrap > div {
        margin: 0.25rem 0;
    }
}

@media (max-width: 640px) {
    header .flex-wrap > div {
        width: 100%;
        justify-content: center;
        margin: 0.25rem 0;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8960b;
}