/* Custom Styles for Kemer Palace */

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

/* Remove all focus borders and outlines */
* {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}

*:focus-visible {
    outline: none !important;
}

button,
a,
input,
textarea,
select {
    outline: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hero slider height */
.hero-slider-height {
    height: 850px;
}

@media (max-width: 768px) {
    .hero-slider-height {
        height: 650px;
    }
}

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

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

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Slider specific styles */
.slider-dot.active {
    background-color: white !important;
}

/* Fix slider image display */
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero slider parallax effect */
.slide img {
    transition: transform 8s ease-in-out;
}

.slide.active img {
    transform: scale(1.1);
}

/* Glass morphism effect for slider arrows */
.slider-arrow {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

/* Card hover effects */
.feature-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
}



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

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

::-webkit-scrollbar-thumb {
    background: #c56841;
    border-radius: 4px;
}

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

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.visible {
    max-height: 500px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

/* Hamburger menu animation */
.mobile-menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #c56841, #d4804c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Backdrop blur for header */
.backdrop-blur-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #c56841, #d4804c);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a45437, #c56841);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(196, 104, 65, 0.3);
}

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

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(90, 77, 66, 0.8), rgba(196, 104, 65, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* Typography improvements */
.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Remove focus outline borders */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus,
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Hero section specific styles */
.hero-content {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
}

/* Card animations */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Intersection Observer animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #c56841;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

/* Responsive typography */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
}

/* Mobile slider arrow positioning */
@media (max-width: 1279px) {
    #prev-slide,
    #next-slide {
        bottom: 50px;
        top: auto;
        transform: none;
    }
    
    #prev-slide {
        left: 20px;
    }
    
    #next-slide {
        right: 20px;
    }
    
    /* Move slider dots up on mobile */
    .slider-navigation {
        bottom: 100px;
    }
}

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

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
    }
}

/* Utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-hover {
    transition: box-shadow 0.3s ease;
}

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

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduce motion for users who prefer it */
@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;
    }
}

/* Modern Gallery Styles */
.gallery-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(196, 104, 65, 0.8), rgba(106, 56, 46, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

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

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

/* Single Image Layout */
.gallery-single .gallery-item {
    height: 400px;
}

/* Two Images Layout */
.gallery-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    height: 400px;
}

/* Three Images Layout */
.gallery-three {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3px;
    height: 400px;
}

.gallery-three .gallery-main {
    grid-row: span 2;
}

.gallery-three .gallery-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gallery-three .gallery-side .gallery-item {
    flex: 1;
}

/* Multiple Images Layout */
.gallery-multiple {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3px;
    height: 400px;
}

.gallery-multiple .gallery-main {
    grid-row: span 2;
}

.gallery-multiple .gallery-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.gallery-more .gallery-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-two,
    .gallery-three,
    .gallery-multiple {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .gallery-two {
        grid-template-rows: 200px 200px;
    }
    
    .gallery-three {
        grid-template-rows: 250px 150px 150px;
    }
    
    .gallery-three .gallery-main {
        grid-row: span 1;
    }
    
    .gallery-three .gallery-side {
        flex-direction: row;
        height: 150px;
    }
    
    .gallery-multiple {
        grid-template-rows: 250px auto;
    }
    
    .gallery-multiple .gallery-main {
        grid-row: span 1;
    }
    
    .gallery-multiple .gallery-grid {
        grid-template-rows: 120px;
        grid-template-columns: 1fr 1fr 1fr;
        height: 120px;
    }
    
    .gallery-single .gallery-item {
        height: 300px;
    }
}

/* Gallery Modal Improvements */
#gallery-modal {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.95);
}

#gallery-modal img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
}

#gallery-modal button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#gallery-modal button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modern Lazy Loading Styles */
img[data-src] {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    filter: blur(2px);
}

img[data-src].loaded {
    opacity: 1;
    filter: blur(0);
}

img[data-src].error {
    opacity: 0.5;
    filter: grayscale(1);
}

/* Loading placeholder */
.lazy-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
} 