/* ============================================
   SAKLI BAHÇE ESENKÖY - BEACH PAGE STYLES
   ============================================ */

/* Beach Hero Section */
.beach-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-attachment: scroll;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.beach-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(244, 208, 63, 0.4) 100%);
    z-index: 1;
    will-change: transform;
}

/* Prevent unwanted transforms on hero */
.beach-hero.no-transform {
    transform: none !important;
}

/* Ensure hero container positioning */
.beach-hero .container {
    transform: none !important;
    position: relative;
    z-index: 10;
}

/* Hero Badge Animation */
.hero-badge {
    animation: beachFloat 3s ease-in-out infinite;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(244, 208, 63, 0.3);
    box-shadow: 0 8px 32px rgba(244, 208, 63, 0.2);
}

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

/* Scroll Mouse Animation */
.scroll-mouse-beach {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    margin: 0 auto;
}

.scroll-wheel-beach {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheelBeach 2s infinite;
}

@keyframes scrollWheelBeach {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

/* Beach Features Section */
.beach-features {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, rgba(14, 165, 233, 0.03) 100%);
    margin-top: 0;
    border-top: none;
}

/* Beach Services Section */
.beach-services {
    position: relative;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(244, 208, 63, 0.05) 100%);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.service-card:hover .w-20 {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Beach Elements Animation */
@keyframes waveFloat {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(10px) rotate(1deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(-10px) rotate(-1deg); }
}

.wave-element {
    animation: waveFloat 4s ease-in-out infinite;
}

/* Stats Counter Animation */
.stats-number {
    display: inline-block;
    transition: all 0.3s ease;
}

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

.stats-number.counting {
    animation: countBounce 0.6s ease-in-out;
}

/* Beach Color Variations */
.text-ocean-blue { color: #0ea5e9; }
.text-ocean-light { color: #38bdf8; }
.text-ocean-dark { color: #0284c7; }
.text-sand { color: #f4d03f; }
.text-sand-light { color: #f8e6a0; }
.text-sand-dark { color: #e8c547; }

.bg-ocean-blue { background-color: #0ea5e9; }
.bg-ocean-light { background-color: #38bdf8; }
.bg-ocean-dark { background-color: #0284c7; }
.bg-sand { background-color: #f4d03f; }
.bg-sand-light { background-color: #f8e6a0; }
.bg-sand-dark { background-color: #e8c547; }

/* Hover Effects */
.hover\:bg-ocean-dark:hover { background-color: #0284c7; }
.hover\:bg-sand-dark:hover { background-color: #e8c547; }

/* Gradient Backgrounds */
.from-ocean-blue { --tw-gradient-from: #0ea5e9; }
.to-sand { --tw-gradient-to: #f4d03f; }
.from-ocean-dark { --tw-gradient-from: #0284c7; }
.to-sand-dark { --tw-gradient-to: #e8c547; }

/* Beach Service Hover Effects */
.service-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
}

.service-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(244, 208, 63, 0.15);
}

.service-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
}

.service-card:nth-child(4):hover {
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
}

.service-card:nth-child(5):hover {
    box-shadow: 0 20px 40px rgba(179, 69, 26, 0.15);
}

.service-card:nth-child(6):hover {
    box-shadow: 0 20px 40px rgba(107, 114, 128, 0.15);
}

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

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), rgba(244, 208, 63, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.image-overlay img {
    transition: transform 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .beach-hero {
        min-height: 90vh;
        min-height: 90dvh;
    }
}

@media (max-width: 768px) {
    .beach-hero {
        min-height: 100vh;
        min-height: 100dvh;
        background-attachment: scroll;
        padding: 1rem 0;
    }
    
    .beach-hero .container {
        padding: 0 1rem;
    }
    
    .beach-hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .beach-hero p {
        font-size: 1.125rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    .grid.lg\\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .beach-hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0.5rem 0;
    }
    
    .beach-hero h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .beach-hero p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stats-container.grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }
    
    /* Hero buttons responsive */
    .beach-hero .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .beach-hero a {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 40;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    padding: 0.75rem 0;
}

.breadcrumb-nav.visible {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: breadcrumbSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.breadcrumb-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    animation: fadeInScale 0.6s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    opacity: 0;
    transform: scale(0.8);
}

.breadcrumb-nav a {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.breadcrumb-nav a:hover {
    color: #2d5a27;
    background: rgba(45, 90, 39, 0.08);
    border-color: rgba(45, 90, 39, 0.15);
    transform: translateY(-1px);
}

.breadcrumb-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2d5a27, #8bab2f);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.breadcrumb-nav a:hover::after {
    width: 80%;
}

.breadcrumb-nav a i {
    margin-right: 0.375rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.breadcrumb-nav .text-primary {
    color: #2d5a27;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.1) 0%, rgba(139, 164, 47, 0.08) 100%);
    border: 1px solid rgba(45, 90, 39, 0.2);
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

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

.breadcrumb-nav .text-primary:hover::before {
    left: 100%;
}

.breadcrumb-nav .fas.fa-chevron-right {
    color: #9ca3af;
    font-size: 0.7rem;
    margin: 0 0.25rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

@keyframes breadcrumbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section adjustments for breadcrumb */
.beach-hero {
    margin-top: 0;
    padding-top: 80px;
}

/* Responsive breadcrumb */
@media (max-width: 768px) {
    .beach-hero {
        padding-top: 100px;
    }
    
    .breadcrumb-nav {
        z-index: 40;
        top: 80px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
        backdrop-filter: blur(16px);
        padding: 0.625rem 0;
    }
    
    .breadcrumb-nav a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .breadcrumb-nav .text-primary {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .beach-hero {
        padding-top: 120px;
        min-height: 100dvh;
    }
    
    .breadcrumb-nav {
        top: 80px;
        padding: 0.65rem 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
        backdrop-filter: blur(18px);
        box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    }
    
    .breadcrumb-nav a,
    .breadcrumb-nav .text-primary {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}


/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(14, 165, 233, 0.1);
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Ripple Effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .beach-hero::before {
        background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%);
    }
    
    .service-card {
        border: 2px solid #000;
    }
    
    .hero-badge {
        border: 2px solid currentColor;
    }
}

/* Print Styles */
@media print {
    .beach-hero {
        min-height: auto;
        background: white;
        color: black;
    }
    
    .service-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.service-card:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

a:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

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

/* Performance Optimizations */
.beach-hero,
.service-card,
.animate-on-scroll {
    will-change: transform;
}

/* GPU Acceleration */
.service-card:hover,
.hero-badge,
.scroll-mouse-beach {
    transform: translateZ(0);
}
