/* Custom Styles for Nur Halı Yıkama Website - Modern Light Theme */

/* Poppins Font */
* {
    font-family: 'Poppins', sans-serif;
}

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

body {
    scroll-snap-type: y proximity; /* proximity daha esnek, mandatory yerine */
    overflow-y: scroll;
}

/* Each section takes full viewport */
section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100vh;
    position: relative;
}

/* Ensure content is centered in sections */
section > div {
    width: 100%;
}

/* Ana sayfa için özel ayar - tam üstte başlasın */
#anasayfa {
    scroll-snap-align: start;
    scroll-margin-top: 0;
}

/* Sidebar Active Link */
.sidebar-link.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
    border-left: 4px solid #06b6d4;
    color: #0891b2;
}

.sidebar-link.active .w-10 {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.sidebar-link.active i {
    color: white !important;
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Custom Scrollbar - Modern Style */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f8fafc, #e2e8f0);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    border-radius: 10px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #2563eb);
}

/* Hover Effects - Enhanced */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    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.5s;
}

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

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Shine Effect */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Logo Shine Animation */
@keyframes logoShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: logoShine 3s ease-in-out infinite;
}

.shine-effect {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% auto;
    animation: shine 2s linear infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .text-4xl {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    #sidebar,
    #sidebarToggle,
    #overlay {
        display: none;
    }
    
    .lg\:ml-64 {
        margin-left: 0;
    }
    
    body {
        background: white;
    }
}

/* Selection Color */
::selection {
    background-color: rgba(6, 182, 212, 0.3);
    color: #0e7490;
}

/* Focus Styles */
*:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Floating Action Buttons - Mobile Responsive */
@media (max-width: 640px) {
    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fixed.bottom-6.right-6 > a,
    .fixed.bottom-6.right-6 > button {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* Sidebar Mobile Fix - Ensure phone buttons are visible */
@media (max-width: 1023px) {
    #sidebar {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
        width: 16rem; /* 64 * 0.25rem = 16rem */
    }
    
    #sidebar > div {
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        min-height: 0;
        overflow: hidden;
        position: relative;
    }
    
    /* Logo section - compact on mobile */
    #sidebar > div > div:first-child {
        flex-shrink: 0;
        height: 100px;
        min-height: 100px;
        max-height: 100px;
    }
    
    /* Navigation - scrollable, takes remaining space */
    #sidebar nav {
        flex: 1 1 0;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Contact Info section - always visible at bottom, fixed height */
    #sidebar > div > div:last-child {
        flex-shrink: 0;
        flex-grow: 0;
        margin-top: auto;
        position: relative;
        z-index: 10;
        background: white;
        min-height: fit-content;
    }
    
    /* Ensure navigation items are visible */
    #sidebar nav .sidebar-link {
        min-height: 3.5rem;
    }
}

