/* Professional Styling for Havuz Ekipman Bakımı Page */

/* ==================== HERO SECTION ENHANCEMENTS ==================== */
.hero-section {
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Ensure hero section doesn't interfere with header */
    z-index: 1;
    isolation: isolate;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Keep background elements below header */
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    /* Keep overlay elements below header */
}

.hero-section .container {
    position: relative;
    z-index: 3;
    /* Keep container elements below header */
}

.hero-content {
    padding: 2rem 0;
}

.hero-title {
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    max-width: 600px;
}

.hero-features-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==================== SERVICE DETAILS ENHANCEMENTS ==================== */
.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.service-image-wrapper {
    position: relative;
    height: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.service-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

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

.service-image-wrapper:hover img {
    transform: scale(1.05);
}

.image-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

.service-badge {
    z-index: 4;
    /* Keep badge elements below header */
}

.service-badge .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.service-features-grid {
    counter-reset: feature-counter;
}

.feature-item {
    counter-increment: feature-counter;
}

.feature-item::before {
    content: counter(feature-counter);
    position: absolute;
    left: -30px;
    top: 0;
    width: 24px;
    height: 24px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

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

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
}

/* ==================== RELATED SERVICES ENHANCEMENTS ==================== */
.service-card-hover {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.service-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(13, 110, 253, 0.2) !important;
}

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

.service-card-hover:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.2);
}

/* ==================== BUTTON ENHANCEMENTS ==================== */
.btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.4);
}

.btn-outline-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* ==================== TYPOGRAPHY ENHANCEMENTS ==================== */
.display-3 {
    font-size: 3.5rem !important;
    line-height: 1.1;
}

.display-4 {
    font-size: 2.5rem !important;
    line-height: 1.2;
}

.display-5 {
    font-size: 2rem !important;
    line-height: 1.3;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

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

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.service-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ==================== RESPONSIVE ENHANCEMENTS ==================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 600px;
    }
    
    .service-image-wrapper {
        height: 550px;
    }
    
    .display-3 {
        font-size: 4rem !important;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
    
    .service-image-wrapper {
        height: 400px;
        margin-bottom: 2rem;
    }
    
    .hero-features-card {
        margin-top: 2rem;
    }
    
    .feature-item::before {
        position: static;
        margin-right: 10px;
        margin-bottom: 10px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .service-image-wrapper {
        height: 300px;
    }
    
    .py-7 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .service-card-hover .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .service-image-wrapper {
        height: 250px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .service-card-hover .card-body {
        padding: 1.5rem 1rem !important;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.object-fit-cover {
    object-fit: cover;
}

.bg-light-subtle {
    background-color: #f8f9fa !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ==================== LOADING STATES ==================== */
.service-image-wrapper img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-image-wrapper img[loading="lazy"].loaded {
    opacity: 1;
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .service-content {
        animation: none;
    }
    
    .btn,
    .service-card-hover,
    .service-image-wrapper {
        transition: none;
    }
    
    .btn::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .hero-gradient-overlay {
        background: transparent;
    }
    
    .service-card-hover {
        border: 2px solid #000 !important;
    }
}