/* Additional Custom Styles for Enhanced Responsiveness */

/* Core Component Styles - Moved from inline */
.gradient-bg {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #000000 100%);
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(30, 155, 211, 0.1) 0%, transparent 50%),
                linear-gradient(45deg, rgba(30, 155, 211, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.dark-particle {
    position: absolute;
    background: rgba(30, 155, 211, 0.1);
    border-radius: 50%;
    animation: darkFloat 6s ease-in-out infinite;
}

@keyframes darkFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.2; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.3; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 0.2; }
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.tech-card:hover {
    transform: translateY(-5px);
}

/* Enhanced Glassmorphism Effect */
.glassmorphism {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.125);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced Project Card Hover Effects */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.project-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(30, 155, 211, 0.3);
}

.project-card .project-image {
    transition: transform 0.4s ease;
}

/* Enhanced Technology Card Animations */
.tech-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 155, 211, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 155, 211, 0.2);
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e9bd3, #1a88c4);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

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

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(30, 155, 211, 0.3);
    border-top: 3px solid #1e9bd3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .project-card:hover {
        transform: translateY(-8px);
    }
    
    .tech-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Optimize font sizes for mobile */
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
    
    /* Adjust spacing for mobile */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Mobile navigation improvements */
    #mobile-menu {
        backdrop-filter: blur(16px);
        background: rgba(17, 24, 39, 0.95);
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .grid.lg\\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .glassmorphism {
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float,
    .animate-pulse-slow,
    .animate-bounce {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .fixed,
    nav,
    footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .project-card,
    .tech-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Enhanced Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #1e9bd3;
    outline-offset: 2px;
    border-radius: 4px;
}

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1a88c4;
}

/* Selection Colors */
::selection {
    background: rgba(30, 155, 211, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(30, 155, 211, 0.3);
    color: white;
}

/* Image hover overlay for click hint */
.slider-image {
    position: relative;
}

.slider-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.slider-image:hover::after {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.slider-image::before {
    content: '🔍 Büyütmek için tıkla';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin: 20px;
}

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