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

:root {
    --primary-color: #1D2D4A;
    --primary-light: #2a3f5f;
    --primary-dark: #152238;
    --accent-color: #3498db;
    --accent-light: #5dade2;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --gradient-primary: linear-gradient(135deg, #1D2D4A 0%, #2a3f5f 50%, #3498db 100%);
    --gradient-accent: linear-gradient(45deg, #1D2D4A 0%, #3498db 100%);
    --shadow-primary: 0 10px 30px rgba(29, 45, 74, 0.3);
    --shadow-hover: 0 20px 40px rgba(29, 45, 74, 0.4);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* Background effects removed for better performance */

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    loading: lazy;
    decoding: async;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Animations removed for better performance */

.animate-on-scroll {
    opacity: 1;
    transform: none;
}

/* Header Styles */
.header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(29, 45, 74, 0.2);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}


.header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    animation: fadeInLeft 0.8s ease-out;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    color: var(--accent-light);
    font-size: 16px;
    animation: pulse 2s infinite;
}

.phone-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.phone-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-light);
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--accent-light);
    transform: scale(1.05);
}

.phone-link:hover::after {
    width: 100%;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(29, 45, 74, 0.1);
    position: relative;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.logo-image {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(29, 45, 74, 0.1));
    position: relative;
    z-index: 1;
    transition: transform 300ms ease, filter 300ms ease;
}

/* Logo hover shine effect */
.logo-link {
    position: relative;
    display: inline-block;
    overflow: visible;
    cursor: pointer;
}

.logo-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.65) 45%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    filter: blur(0.5px);
    z-index: 3;
}

.logo-link:hover::after {
    animation: logo-shine 1.2s ease;
}

@keyframes logo-shine {
    0% { left: -120%; }
    100% { left: 140%; }
}

/* Subtle scale + glow on hover */
.logo-link:hover .logo-image {
    transform: scale(1.035) rotate(0.25deg);
    filter: drop-shadow(0 10px 20px rgba(29, 45, 74, 0.25));
}

/* Slider styles moved to slider/css/slider.css */

/* Gallery styles moved to gallery/css/gallery.css */

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    color: white !important;
}

.footer * {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-info {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 10px;
        text-align: center;
        flex-wrap: nowrap;
    }
    
    .contact-item {
        font-size: 13px;
        padding: 8px 14px;
        width: 100%;
        justify-content: center;
    }
    
    .address-item {
        gap: 8px;
        font-size: clamp(11px, 3.2vw, 13px);
    }
    
    .address-item strong {
        white-space: nowrap;
    }
    
    .marquee-text {
        overflow: hidden;
        white-space: nowrap;
        max-width: 60vw;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Mobile marquee for address */
    .marquee-text {
        overflow: visible;
        white-space: nowrap;
        text-overflow: clip;
        max-width: 100%;
        display: inline-block;
        vertical-align: middle;
    }

    .marquee-content {
        display: inline-block;
        padding-left: 0;
        animation: none;
    }

    .phone-item {
        gap: 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: clamp(12px, 3.5vw, 14px);
        width: 100%;
    }
    .phone-item .phone-link {
        white-space: nowrap;
    }
    .phone-item .phone-heading {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        align-self: center;
        text-align: center;
    }
    
    .logo-image {
        max-width: 250px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .gallery-categories {
        gap: 10px;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .slider-section {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        max-width: 200px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-categories {
        flex-direction: column;
        align-items: center;
    }
}

/* Ultra-small devices: tighten text and spacing to fit screen */
@media (max-width: 360px) {
    .header-info {
        gap: 8px;
    }
    .address-item {
        font-size: clamp(10px, 3.2vw, 12px);
    }
    .marquee-text {
        max-width: 78vw;
    }
    .phone-item {
        font-size: clamp(11px, 3.6vw, 13px);
    }
    .phone-item .phone-heading {
        gap: 6px;
    }
}

/* Marquee keyframes */
@keyframes address-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
