html {
    scroll-behavior: smooth;
}

/* Desktop slider */
.slider-container {
    position: relative;
    height: 384px; /* h-96 */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 16rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 16rem;
    min-height: 100vh;
    background: #f3f4f6;
}

.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-right: 4px solid white;
}

.hero-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Modern Slider Styles */
.modern-slider-container {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .modern-slider-container {
        min-height: 600px;
    }
}

.slide-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    z-index: 1;
}

.slide-modern.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.slide-modern.prev {
    transform: translateX(-100%);
}

/* Full screen slide adjustments */
.slide-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.slide-modern .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Full Width Modern Slider Styles */
.modern-slider-container {
    border-radius: 0;
    min-height: 100vh;
    height: 100vh;
}

@media (max-width: 768px) {
    .modern-slider-container {
        min-height: 100vh;
        height: 100vh;
    }
}

/* Enhanced Profile Photo Area */
.slide-modern .w-60,
.slide-modern .w-80 {
    transition: transform 0.3s ease;
}

.slide-modern .w-60:hover,
.slide-modern .w-80:hover {
    transform: scale(1.05);
}

/* Improved floating animations for profile area */
@keyframes float-enhanced {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

.animate-float {
    animation: float-enhanced 6s ease-in-out infinite;
}

/* Profile photo area decorative elements */
.slide-modern .absolute.-inset-4 {
    animation: pulse 3s infinite;
}

/* Responsive text alignment */
@media (max-width: 1024px) {
    .slide-modern .lg\:text-left {
        text-align: center;
    }

    .slide-modern .lg\:mx-0 {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Enhanced background decorative elements */
.slide-modern .absolute.inset-0.opacity-20 > div {
    filter: blur(60px);
}

@media (max-width: 768px) {
    .slide-modern .absolute.inset-0.opacity-20 > div {
        filter: blur(40px);
        width: 120px !important;
        height: 120px !important;
    }
}

/* Navigation dots positioning for full width */
.modern-slider-container .absolute.bottom-8 {
    pointer-events: none;
}

.modern-slider-container .absolute.bottom-8 > div {
    pointer-events: all;
}

/* Navigation Arrows Hover Effects */
#prevSlide:hover,
#nextSlide:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Pulse Effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

.modern-slider-container button:hover {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-modern {
        backdrop-filter: blur(10px);
    }
}

/* Tablet styles */
@media (max-width: 1024px) {
    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-left: 16rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        height: 100vh;
        position: fixed;
        z-index: 9999;
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    /* Mobile overlay for sidebar */
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Hero section mobile fixes */
    .hero-bg {
        min-height: 100vh;
    }

    .hero-bg .container {
        padding: 0.5rem;
    }

    .hero-bg .flex {
        text-align: center;
        gap: 1rem;
        align-items: center;
    }

    .hero-bg .flex > div:last-child {
        order: 2;
        flex: none;
        margin-bottom: 1rem;
    }

    .hero-bg .flex > div:first-child {
        order: 1;
        flex: none;
        width: 100%;
    }

    /* Slider mobile improvements */
    .slider-container {
        height: auto !important;
        min-height: 400px !important;
        overflow: hidden !important;
        position: relative !important;
        margin-bottom: 1rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem !important;
        z-index: 1 !important;
        opacity: 0 !important;
        transform: none !important;
        transition: opacity 0.5s ease-in-out !important;
    }

    .slide.active {
        opacity: 1 !important;
        z-index: 10 !important;
    }

    .slide .backdrop-blur-sm {
        padding: 1.25rem 0.75rem;
        margin: 0.25rem;
        max-width: none;
        width: calc(100% - 0.5rem);
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    /* Doctor avatar mobile */
    .hero-bg .w-40 {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
    }

    .hero-bg .w-24 {
        width: 80px !important;
        height: 80px !important;
    }

    .hero-bg .w-80 {
        width: 120px !important;
        height: 120px !important;
        margin: 0 auto !important;
    }

    /* About section mobile */
    #hakkimda .flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    #hakkimda .w-64 {
        width: 180px;
        height: 220px;
        margin: 0 auto 1.5rem;
    }

    #hakkimda .flex-1 {
        flex: none;
    }

    #hakkimda .flex-2 {
        flex: none;
    }

    /* Grid layouts mobile */
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .md\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .lg\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .md\\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Container mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    /* Typography mobile */
    .text-5xl {
        font-size: 2rem;
        line-height: 1.1;
    }

    .text-4xl {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .text-xl {
        font-size: 1rem;
        line-height: 1.4;
    }

    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    /* Buttons mobile - SIMPLE */
    button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap !important;
        display: inline-block !important;
        text-align: center !important;
    }
    
    /* All button types mobile fix - SIMPLE */
    button, .bg-gradient-to-r {
        overflow: visible !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    button svg, .bg-gradient-to-r svg {
        display: inline !important;
        vertical-align: middle !important;
        width: 16px !important;
        height: 16px !important;
    }

    /* Mobile navigation button special fix */
    button#mobile-menu-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        padding: 0.75rem !important;
        min-height: auto !important;
    }

    button#mobile-menu-trigger svg {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    /* Sidebar navigation buttons fix */
    button#mobile-menu-btn,
    button#close-menu-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        padding: 0.5rem !important;
        min-height: auto !important;
    }

    button#mobile-menu-btn svg,
    button#close-menu-btn svg {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }
    
    /* Mobile button fixes - SIMPLE STRUCTURE */
    .slide button {
        white-space: nowrap !important;
        overflow: visible !important;
        display: inline-block !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    .slide button svg {
        display: inline !important;
        vertical-align: middle !important;
        margin-left: 0.5rem !important;
        flex-shrink: 0 !important;
        width: 16px !important;
        height: 16px !important;
    }

    /* Force simple inline layout for all gradient buttons */
    button.bg-gradient-to-r,
    .bg-gradient-to-r {
        white-space: nowrap !important;
        overflow: visible !important;
        display: inline-block !important;
        text-align: center !important;
    }

    button.bg-gradient-to-r svg,
    .bg-gradient-to-r svg {
        display: inline !important;
        vertical-align: middle !important;
        margin-left: 0.5rem !important;
    }

    /* Mobile menu button fix */
    #mobile-menu-trigger {
        white-space: nowrap !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #mobile-menu-trigger svg {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
    }

    /* Sidebar buttons fix */
    #mobile-menu-btn,
    #close-menu-btn {
        white-space: nowrap !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }

    #mobile-menu-btn svg,
    #close-menu-btn svg {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }

    /* Slider dots fix - ULTIMATE ROUND DOTS */
    .slider-dot {
        flex-shrink: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        float: none !important;
        clear: none !important;
        border-radius: 50% !important;
        border: none !important;
        outline: none !important;
        min-width: 8px !important;
        min-height: 8px !important;
    }

    /* Force round dots on mobile */
    button.slider-dot {
        border-radius: 50% !important;
        width: 12px !important;
        height: 12px !important;
        padding: 0 !important;
        margin: 0 4px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }

    button.slider-dot.w-3 {
        width: 12px !important;
        height: 12px !important;
        border-radius: 50% !important;
    }

    button.slider-dot.w-2 {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
    }

    /* Mobile dots container - ULTIMATE FIX */
    .flex.flex-row.items-center.justify-center.space-x-3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        overflow: hidden !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
    
    /* Dots container flex fix - ULTIMATE */
    .flex.space-x-3 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    /* Force dots to stay in line - ULTIMATE */
    .flex.space-x-3 > * {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
    }

    /* Dots container class - ULTIMATE FIX */
    .dots-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        width: auto !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        white-space: nowrap !important;
        gap: 0.5rem !important;
    }

    .dots-container button {
        display: inline-block !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        padding: 0 !important;
    }

    .dots-container .slider-dot {
        border-radius: 50% !important;
        width: 12px !important;
        height: 12px !important;
        min-width: 12px !important;
        min-height: 12px !important;
    }

    /* Cards mobile */
    .card-hover {
        margin-bottom: 1rem;
    }

    /* Form inputs mobile */
    input, textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Spacing adjustments */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .mb-16 {
        margin-bottom: 2rem;
    }

    .mb-12 {
        margin-bottom: 1.5rem;
    }

    /* Contact section mobile */
    #iletisim .grid {
        gap: 2rem;
    }

    #iletisim .space-y-4 > * + * {
        margin-top: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-bg .container {
        padding: 0.25rem;
    }
    
    .hero-bg .flex {
        gap: 0.75rem;
    }
    
    .text-5xl {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    .text-4xl {
        font-size: 1.375rem;
    }
    
    .text-3xl {
        font-size: 1.25rem;
    }
    
    .slide .backdrop-blur-sm {
        padding: 1rem 0.5rem;
        margin: 0.125rem;
        min-height: 260px;
    }
    
    .hero-bg .w-40 {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero-bg .w-24 {
        width: 60px !important;
        height: 60px !important;
    }
    
    .hero-bg .w-80 {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero-bg .w-48 {
        width: 60px !important;
        height: 60px !important;
    }
    
    .slider-container {
        min-height: 300px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slider-dot {
        transform: scale(0.8);
        flex-shrink: 0 !important;
    }
    
    .slider-dot.w-3 {
        width: 10px !important;
        height: 10px !important;
    }
    
    .slider-dot.w-2 {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Button spans for small mobile */
    button span {
        font-size: 0.8rem !important;
        gap: 0.25rem !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
    }
    
    button svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* Small mobile dots container */
    .dots-container {
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        gap: 0.25rem !important;
    }

    .dots-container .slider-dot {
        width: 10px !important;
        height: 10px !important;
        min-width: 10px !important;
        min-height: 10px !important;
        border-radius: 50% !important;
    }

    /* Small mobile button fixes - SIMPLE */
    .slide button {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        overflow: visible !important;
        display: inline-block !important;
        text-align: center !important;
        line-height: 1.2 !important;
    }

    .slide button svg {
        display: inline !important;
        vertical-align: middle !important;
        margin-left: 0.25rem !important;
        width: 14px !important;
        height: 14px !important;
    }

    /* Small mobile menu button */
    button#mobile-menu-trigger {
        padding: 0.5rem !important;
        min-height: auto !important;
    }

    button#mobile-menu-trigger svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Small sidebar buttons */
    button#mobile-menu-btn,
    button#close-menu-btn {
        padding: 0.375rem !important;
    }

    button#mobile-menu-btn svg,
    button#close-menu-btn svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Full screen slide adjustments */
.slide-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.slide-modern .container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced mobile full screen experience */
@media (max-width: 768px) {
    .slide-modern {
        padding-top: 80px; /* Account for mobile menu button */
        padding-bottom: 80px; /* Account for navigation dots */
    }
    
    .slide-modern .min-h-screen {
        min-height: calc(100vh - 160px); /* Account for both top and bottom space */
    }
    
    /* Mobile specific adjustments */
    .slide-modern .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .slide-modern h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .slide-modern .w-48 {
        width: 10rem;
        height: 10rem;
    }
    
    /* Better mobile spacing */
    .slide-modern .gap-6 {
        gap: 1.5rem;
    }
    
    .slide-modern .py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Text adjustments for mobile */
    .slide-modern .text-lg {
        font-size: 1rem !important;
    }
    
    .slide-modern .text-sm {
        font-size: 0.875rem !important;
    }
}

/* Navigation positioning for full screen */
.modern-slider-container .absolute.bottom-4 {
    bottom: 1rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Fix top white strip - ensure full height */
    .modern-slider-container {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    .slide-modern {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    
    /* Better mobile padding for content */
    .slide-modern .container {
        padding-top: 4rem !important;
        padding-bottom: 6rem !important;
    }
    
    /* Navigation positioning */
    .modern-slider-container .absolute.bottom-4 {
        bottom: 1.5rem;
    }
    
    /* Navigation arrows mobile adjustments */
    .modern-slider-container button[id="prevSlide"],
    .modern-slider-container button[id="nextSlide"] {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .modern-slider-container button[id="prevSlide"] {
        left: 0.5rem;
    }
    
    .modern-slider-container button[id="nextSlide"] {
        right: 0.5rem;
    }
    
    /* Better dots styling for mobile */
    .modern-slider-container .absolute.bottom-4 > div {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 2rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    }
    
    .profile-pic {
        width: 14rem !important;
        height: 14rem !important;
    }
}
