/* Email Bubble Notification Styles */
.email-bubble {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.email-bubble.bubble-pop {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
}

.email-bubble.bubble-burst {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.5);
    filter: blur(5px);
}

.bubble-content {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.bubble-content::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #0284c7;
}

/* Certificates Styles */
.certificate-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.certificate-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.3);
}

.certificate-full-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .certificate-full-description {
    border-top-color: rgba(255, 255, 255, 0.1);
}


.bubble-content i {
    font-size: 14px;
}

.email-bubble.bubble-burst .bubble-content {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    animation: bubbleBurst 0.6s ease-out forwards;
}

@keyframes bubbleBurst {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Custom Styles */

:root {
    --mouse-x: 0px;
    --mouse-y: 0px;
}

/* Interactive Background Canvas */
#interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9996;
    opacity: 0.7;
}

.dark #interactive-bg {
    opacity: 0.5;
}

/* Ensure content is above canvas */
body > *:not(#interactive-bg):not(#mouse-trail) {
    position: relative;
    z-index: 1;
}

html {
    scroll-behavior: smooth;
    zoom: 1;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    zoom: 1;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Light Mode - Default Styles (when dark class is NOT present) */
html:not(.dark) {
    color-scheme: light;
}

html:not(.dark) body,
html:not(.dark) .bg-white {
    background-color: #ffffff !important;
    color: #111827 !important;
}

html:not(.dark) section,
html:not(.dark) [class*="bg-gradient"] {
    background: transparent !important;
    background-image: none !important;
}

html:not(.dark) .text-gray-900 { color: #111827 !important; }
html:not(.dark) .text-gray-800 { color: #1f2937 !important; }
html:not(.dark) .text-gray-700 { color: #374151 !important; }
html:not(.dark) .text-gray-600 { color: #4b5563 !important; }
html:not(.dark) .text-gray-500 { color: #6b7280 !important; }
html:not(.dark) .text-primary-600 { color: #0284c7 !important; }
html:not(.dark) .text-primary-700 { color: #0369a1 !important; }

html:not(.dark) .bg-gray-50 { background-color: #f9fafb !important; }
html:not(.dark) .bg-primary-50 { background-color: #f0f9ff !important; }
html:not(.dark) .bg-white\/90,
html:not(.dark) .bg-white\/95 { 
    background-color: rgba(255, 255, 255, 0.9) !important; 
}

html:not(.dark) #navbar { 
    background-color: rgba(255, 255, 255, 0.95) !important; 
    border-color: rgba(229, 231, 235, 0.3) !important;
}

html:not(.dark) input,
html:not(.dark) textarea {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
}

html:not(.dark) input:focus,
html:not(.dark) textarea:focus {
    border-color: #0284c7 !important;
    background-color: #ffffff !important;
}

html:not(.dark) .border-gray-200 { border-color: #e5e7eb !important; }
html:not(.dark) .border-gray-300 { border-color: #d1d5db !important; }

/* Dark Mode - Comprehensive Styles */
html.dark {
    color-scheme: dark;
}

/* Body and Base Backgrounds */
html.dark body,
html.dark .bg-white {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Sections and Gradients */
html.dark section,
html.dark [class*="bg-gradient"] {
    background: #000000 !important;
    background-image: linear-gradient(to bottom right, #000000, #030712, #000000) !important;
}

/* Tailwind Dark Mode Classes */
html.dark .dark\:bg-black { background-color: #000000 !important; }
html.dark .dark\:bg-gray-900 { background-color: #111827 !important; }
html.dark .dark\:bg-gray-950 { background-color: #030712 !important; }
html.dark .dark\:bg-gray-800 { background-color: #1f2937 !important; }
html.dark .dark\:text-white { color: #ffffff !important; }
html.dark .dark\:text-gray-300 { color: #d1d5db !important; }
html.dark .dark\:text-gray-400 { color: #9ca3af !important; }
html.dark .dark\:text-gray-500 { color: #6b7280 !important; }
html.dark .dark\:text-primary-400 { color: #38bdf8 !important; }
html.dark .dark\:text-primary-300 { color: #7dd3fc !important; }
html.dark .dark\:border-gray-800 { border-color: #1f2937 !important; }
html.dark .dark\:border-gray-700 { border-color: #374151 !important; }
html.dark .dark\:hover\:bg-gray-800:hover { background-color: #1f2937 !important; }
html.dark .dark\:hover\:text-primary-400:hover { color: #38bdf8 !important; }
html.dark .dark\:hover\:bg-primary-500:hover { background-color: #0ea5e9 !important; }

/* Background Colors - Override Tailwind */
html.dark .bg-white\/90,
html.dark .bg-white\/95 { 
    background-color: rgba(0, 0, 0, 0.9) !important; 
}
html.dark .bg-gray-50 { background-color: #030712 !important; }
html.dark .bg-primary-50 { background-color: #0c1220 !important; }

/* Text Colors - Override Tailwind */
html.dark .text-gray-900 { color: #ffffff !important; }
html.dark .text-gray-800 { color: #f9fafb !important; }
html.dark .text-gray-700 { color: #d1d5db !important; }
html.dark .text-gray-600 { color: #9ca3af !important; }
html.dark .text-gray-500 { color: #6b7280 !important; }
html.dark .text-primary-600 { color: #38bdf8 !important; }
html.dark .text-primary-700 { color: #7dd3fc !important; }

/* Border Colors */
html.dark .border-gray-200 { border-color: #374151 !important; }
html.dark .border-gray-300 { border-color: #4b5563 !important; }

/* Navigation */
html.dark #navbar { 
    background-color: rgba(0, 0, 0, 0.95) !important; 
    border-color: rgba(55, 65, 81, 0.3) !important;
}

/* Buttons and Interactive Elements */
html.dark button.text-gray-700 { color: #d1d5db !important; }
html.dark button:hover.bg-gray-100 { background-color: #1f2937 !important; }

/* Cards and Containers */
html.dark .bg-white\/90 { background-color: rgba(17, 24, 39, 0.9) !important; }
html.dark .bg-gray-900\/90 { background-color: rgba(17, 24, 39, 0.9) !important; }

/* Input Fields */
html.dark input,
html.dark textarea {
    background-color: #111827 !important;
    color: #ffffff !important;
    border-color: #374151 !important;
}
html.dark input:focus,
html.dark textarea:focus {
    border-color: #38bdf8 !important;
    background-color: #1f2937 !important;
}

/* Links */
html.dark a.text-gray-600 { color: #9ca3af !important; }
html.dark a.text-gray-700 { color: #d1d5db !important; }
html.dark a:hover.text-primary-600 { color: #38bdf8 !important; }

/* Hero Animation - Fixed visibility */
.hero-content {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure profile image is visible */
.profile-photo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#profile-initial {
    display: none !important;
}

#profile-image[src=""],
#profile-image:not([src]) {
    display: none !important;
}

#profile-image[src=""] ~ #profile-initial,
#profile-image:not([src]) ~ #profile-initial {
    display: flex !important;
}

/* Navigation Bar Styling */
#navbar {
    transition: all 0.3s ease;
    overflow: visible !important;
}

#navbar .container {
    overflow: visible !important;
}

#navbar > div {
    overflow: visible !important;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dark #navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.08);
}

/* Navigation Active State */
.nav-link.active {
    color: #0284c7 !important;
    background-color: rgba(14, 165, 233, 0.1) !important;
    font-weight: 600;
}

.dark .nav-link.active {
    color: #38bdf8 !important;
    background-color: rgba(56, 189, 248, 0.15) !important;
}


/* Project Card Hover Effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Hide scrollbar for navigation */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Form Status Messages */
#form-status.success {
    color: #10b981;
}

#form-status.error {
    color: #ef4444;
}

/* Dark mode background adjustments */
.dark body {
    background-color: #000000;
}

/* Profile Photo - Maximum Quality Rendering */
.profile-photo {
    /* Maximum quality smooth rendering */
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    /* Hardware acceleration for better quality */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    /* Prevent blur and aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure photo is centered properly */
    object-position: center center;
    /* Better quality for high-res displays */
    -webkit-image-rendering: -webkit-optimize-contrast;
    /* Force GPU rendering for better quality */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

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

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

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

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

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

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

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

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.rotate-slow {
    animation: rotate 20s linear infinite;
}

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

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

/* Button Hover Effects */
.btn-animate {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.btn-animate:hover::before {
    width: 300px;
    height: 300px;
}

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

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

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Text Reveal Animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-reveal {
    animation: textReveal 0.8s ease-out forwards;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Mouse Trail Circles */
#mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.trail-circle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(14, 165, 233, 0.15) 50%, rgba(14, 165, 233, 0.05) 100%);
    border: 1.5px solid rgba(14, 165, 233, 0.25);
    transform: translate(-50%, -50%);
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
    opacity: 0;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.3), inset 0 0 5px rgba(14, 165, 233, 0.15);
    pointer-events: none;
    will-change: left, top;
}

.dark .trail-circle {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.15) 50%, rgba(56, 189, 248, 0.05) 100%);
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3), inset 0 0 5px rgba(56, 189, 248, 0.15);
}

.trail-circle.visible {
    opacity: 0.6;
}

.trail-circle:nth-child(1) {
    width: 24px;
    height: 24px;
    z-index: 6;
}

.trail-circle:nth-child(2) {
    width: 20px;
    height: 20px;
    z-index: 5;
}

.trail-circle:nth-child(3) {
    width: 18px;
    height: 18px;
    z-index: 4;
}

.trail-circle:nth-child(4) {
    width: 16px;
    height: 16px;
    z-index: 3;
}

.trail-circle:nth-child(5) {
    width: 14px;
    height: 14px;
    z-index: 2;
}

.trail-circle:nth-child(6) {
    width: 12px;
    height: 12px;
    z-index: 1;
}

/* Mouse Follow Effects - Global */
.mouse-follow {
    position: relative;
    transition: transform 0.3s ease-out;
}

.mouse-follow::before {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.15) 30%, rgba(14, 165, 233, 0.08) 50%, transparent 70%);
    border-radius: 50%;
    top: calc(var(--mouse-y) - 200px);
    left: calc(var(--mouse-x) - 200px);
    pointer-events: none;
    z-index: 9995;
    transition: opacity 0.1s ease, transform 0.05s ease-out;
    will-change: top, left;
}

.dark .mouse-follow::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0.15) 30%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
}

/* Ensure all sections are above the glow effect */
section {
    position: relative;
    z-index: 1;
}

/* Section Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* About Me Section Animations - Initial hidden state */
#about .container > h2,
#about .mb-12,
#about .grid > div {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* About Me revealed animations */
#about.revealed .container > h2 {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out forwards;
}

#about.revealed .mb-12 {
    opacity: 1;
    transform: translateY(0);
}

#about.revealed .mb-12:nth-of-type(1) {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

#about.revealed .mb-12:nth-of-type(2) {
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

#about.revealed .mb-12:nth-of-type(3) {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

/* Skills, Languages, Tools sections */
#about.revealed .mb-12 h3 {
    animation: fadeInScale 0.6s ease-out forwards;
}

#about.revealed .mb-12 p {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Education card */
#about.revealed .bg-gray-50 {
    animation: fadeInScale 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

/* Languages & Tools grid */
#about.revealed .grid > div:nth-child(1) {
    animation: fadeInLeft 0.8s ease-out forwards;
    animation-delay: 1s;
}

#about.revealed .grid > div:nth-child(2) {
    animation: fadeInRight 0.8s ease-out forwards;
    animation-delay: 1.1s;
}

/* Language and Tool items */
#about.revealed .space-y-3 > div,
#about.revealed .flex.flex-wrap > span {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 0.5s ease-out forwards;
}

#about.revealed .space-y-3 > div:nth-child(1) {
    animation-delay: 1.2s;
}

#about.revealed .space-y-3 > div:nth-child(2) {
    animation-delay: 1.3s;
}

#about.revealed .flex.flex-wrap > span {
    animation-delay: calc(1.4s + var(--index, 0) * 0.1s);
}

/* Loading Animation */

/* Scroll Progress Bar */
#scroll-progress {
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

/* Smooth Scroll Indicator */
#scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#scroll-indicator:hover {
    opacity: 1;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.3);
    border: 2px solid rgba(14, 165, 233, 0.5);
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.scroll-dot:hover {
    background: rgba(14, 165, 233, 0.6);
    transform: scale(1.3);
}

.scroll-dot.active {
    background: #0284c7;
    border-color: #0284c7;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.dark .scroll-dot {
    background: rgba(56, 189, 248, 0.3);
    border-color: rgba(56, 189, 248, 0.5);
}

.dark .scroll-dot:hover {
    background: rgba(56, 189, 248, 0.6);
}

.dark .scroll-dot.active {
    background: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.scroll-dot::after {
    content: attr(title);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scroll-dot:hover::after {
    opacity: 1;
}

/* Gradient Card Styles - Beautiful Cards */
.gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.95) 100%);
    border: 1px solid rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html.dark .gradient-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

html:not(.dark) .gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(249, 250, 251, 1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    color: #111827;
}

/* Light Mode Text Colors - Better Contrast */
html:not(.dark) .gradient-card,
html:not(.dark) .about-card {
    color: #111827 !important;
}

html:not(.dark) .gradient-card h3,
html:not(.dark) .about-card h3,
html:not(.dark) .gradient-card h4,
html:not(.dark) .about-card h4 {
    color: #111827 !important;
}

html:not(.dark) .gradient-card p,
html:not(.dark) .about-card p {
    color: #1f2937 !important;
}

html:not(.dark) .gradient-card .text-gray-700,
html:not(.dark) .about-card .text-gray-700 {
    color: #1f2937 !important;
    font-weight: 500;
}

html:not(.dark) .gradient-card .text-gray-600,
html:not(.dark) .about-card .text-gray-600 {
    color: #374151 !important;
    font-weight: 500;
}

html:not(.dark) .gradient-card .text-gray-500,
html:not(.dark) .about-card .text-gray-500 {
    color: #4b5563 !important;
    font-weight: 500;
}

html:not(.dark) .gradient-card .text-gray-800,
html:not(.dark) .about-card .text-gray-800 {
    color: #111827 !important;
    font-weight: 600;
}

/* Ensure all text in gradient cards is visible in light mode */
html:not(.dark) .gradient-card *,
html:not(.dark) .about-card * {
    color: inherit;
}

html:not(.dark) .gradient-card p,
html:not(.dark) .about-card p {
    color: #1f2937 !important;
    font-weight: 500;
}

/* Button Text Visibility - Ensure text is always visible */
.btn-animate,
.btn-animate span,
.btn-animate i {
    color: inherit !important;
}

.btn-animate.text-white,
.btn-animate.text-white span {
    color: #ffffff !important;
}

.btn-animate.text-primary-600,
.btn-animate.text-primary-600 span {
    color: #0284c7 !important;
}

html.dark .btn-animate.text-primary-600,
html.dark .btn-animate.text-primary-600 span {
    color: #38bdf8 !important;
}

/* Ensure button text is visible in light mode */
html:not(.dark) a[href="#projects"] span,
html:not(.dark) a[href="#cv"] span,
html:not(.dark) button#view-cv-btn span,
html:not(.dark) a[href*="CV.pdf"] span {
    color: inherit !important;
    font-weight: 700 !important;
}

/* CV Action Buttons - Force text visibility */
.cv-action-btn {
    color: #0284c7 !important;
}

.cv-action-btn .cv-btn-text {
    color: #0284c7 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.cv-action-btn i {
    color: #0284c7 !important;
}

html.dark .cv-action-btn {
    color: #38bdf8 !important;
}

html.dark .cv-action-btn .cv-btn-text {
    color: #38bdf8 !important;
}

html.dark .cv-action-btn i {
    color: #38bdf8 !important;
}

html:not(.dark) .cv-action-btn .cv-btn-text,
html:not(.dark) .cv-action-btn i {
    color: #0284c7 !important;
}

html:not(.dark) .cv-action-btn {
    background-color: #ffffff !important;
    border-color: #0284c7 !important;
}

html:not(.dark) .cv-action-btn:hover {
    background-color: #f0f9ff !important;
    border-color: #0369a1 !important;
}

html:not(.dark) .cv-action-btn:hover .cv-btn-text,
html:not(.dark) .cv-action-btn:hover i {
    color: #0369a1 !important;
}

/* Hero Buttons - Force text visibility in light mode */
.hero-btn-primary {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

.hero-btn-primary *,
.hero-btn-primary span,
.hero-btn-primary .hero-btn-text,
.hero-btn-primary .hero-btn-icon,
.hero-btn-primary i {
    color: #ffffff !important;
    fill: #ffffff !important;
}

html:not(.dark) .hero-btn-primary,
html:not(.dark) .hero-btn-primary *,
html:not(.dark) .hero-btn-primary span,
html:not(.dark) .hero-btn-primary i,
html:not(.dark) .hero-btn-primary .hero-btn-text,
html:not(.dark) .hero-btn-primary .hero-btn-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

html:not(.dark) a[href="#cv"],
html:not(.dark) a[href="#cv"] *,
html:not(.dark) a[href="#cv"] span,
html:not(.dark) a[href="#cv"] i {
    color: #ffffff !important;
    fill: #ffffff !important;
}

html.dark .hero-btn-primary {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
}

html.dark .hero-btn-primary *,
html.dark .hero-btn-primary span,
html.dark .hero-btn-primary i,
html.dark .hero-btn-primary .hero-btn-text,
html.dark .hero-btn-primary .hero-btn-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.hero-btn-secondary {
    background-color: #ffffff !important;
    border-color: #0369a1 !important;
    color: #0369a1 !important;
}

.hero-btn-secondary *,
.hero-btn-secondary span,
.hero-btn-secondary .hero-btn-text,
.hero-btn-secondary .hero-btn-icon,
.hero-btn-secondary i {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

/* Force all text and icons in hero-btn-secondary to be visible - Darker color for light mode */
html:not(.dark) .hero-btn-secondary {
    background-color: #ffffff !important;
    border-color: #0369a1 !important;
    color: #0369a1 !important;
}

html:not(.dark) .hero-btn-secondary *,
html:not(.dark) .hero-btn-secondary span,
html:not(.dark) .hero-btn-secondary i,
html:not(.dark) .hero-btn-secondary .hero-btn-text,
html:not(.dark) .hero-btn-secondary .hero-btn-icon {
    color: #0369a1 !important;
    fill: #0369a1 !important;
}

html:not(.dark) a[href="#cv"],
html:not(.dark) a[href="#cv"] *,
html:not(.dark) a[href="#cv"] span,
html:not(.dark) a[href="#cv"] i {
    color: #0369a1 !important;
    fill: #0369a1 !important;
}

/* Override any other color classes */
html:not(.dark) .hero-btn-secondary.text-primary-600,
html:not(.dark) .hero-btn-secondary .text-primary-600,
html:not(.dark) .hero-btn-secondary.text-primary-400,
html:not(.dark) .hero-btn-secondary .text-primary-400 {
    color: #0369a1 !important;
}

html.dark .hero-btn-secondary {
    background-color: #111827 !important;
    border-color: #38bdf8 !important;
}

html.dark .hero-btn-secondary .hero-btn-text,
html.dark .hero-btn-secondary .hero-btn-icon {
    color: #38bdf8 !important;
}

html:not(.dark) .hero-btn-secondary:hover {
    background-color: #f0f9ff !important;
    border-color: #075985 !important;
}

html:not(.dark) .hero-btn-secondary:hover .hero-btn-text,
html:not(.dark) .hero-btn-secondary:hover .hero-btn-icon,
html:not(.dark) .hero-btn-secondary:hover *,
html:not(.dark) .hero-btn-secondary:hover i,
html:not(.dark) .hero-btn-secondary:hover span {
    color: #075985 !important;
    fill: #075985 !important;
}

html:not(.dark) .hero-btn-primary:hover {
    background-color: #0369a1 !important;
}

/* Resume Section View CV Button - Force text visibility */
#view-cv-btn,
.view-cv-btn {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    /* Mobile optimizations */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

#view-cv-btn *,
#view-cv-btn span,
#view-cv-btn i,
.view-cv-btn *,
.view-cv-btn span,
.view-cv-btn i,
.view-cv-text,
.view-cv-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

html:not(.dark) #view-cv-btn,
html:not(.dark) #view-cv-btn *,
html:not(.dark) #view-cv-btn span,
html:not(.dark) #view-cv-btn i,
html:not(.dark) .view-cv-btn,
html:not(.dark) .view-cv-btn *,
html:not(.dark) .view-cv-btn span,
html:not(.dark) .view-cv-btn i,
html:not(.dark) .view-cv-text,
html:not(.dark) .view-cv-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
    background-color: #0284c7 !important;
}

html.dark #view-cv-btn,
html.dark .view-cv-btn {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
}

html.dark #view-cv-btn *,
html.dark #view-cv-btn span,
html.dark #view-cv-btn i,
html.dark .view-cv-btn *,
html.dark .view-cv-btn span,
html.dark .view-cv-btn i,
html.dark .view-cv-text,
html.dark .view-cv-icon {
    color: #ffffff !important;
    fill: #ffffff !important;
}

#view-cv-btn:hover,
.view-cv-btn:hover {
    background-color: #0369a1 !important;
}

html.dark #view-cv-btn:hover,
html.dark .view-cv-btn:hover {
    background-color: #0284c7 !important;
}

/* About Card Styles */
.about-card {
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.about-card:hover::before {
    transform: scaleX(1);
}

html.dark .about-card::before {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #7dd3fc);
}

/* Icon Wrapper */
.icon-wrapper {
    transition: transform 0.3s ease;
}

.about-card:hover .icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

/* Tool Badge Styles */
.tool-badge {
    position: relative;
    overflow: hidden;
}

.tool-badge::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;
}

.tool-badge:hover::before {
    width: 300px;
    height: 300px;
}

/* Tech Badge Styles */
.tech-badge {
    position: relative;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

html.dark .tech-badge:hover {
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

/* Enhanced Project Card Hover Effects - Faster animations */
.project-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(56, 189, 248, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(14, 165, 233, 0.25);
}

html.dark .project-card:hover {
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.3);
}

/* Project Header */
.project-header {
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Project Content */
.project-content {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
}

html.dark .project-content {
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.95));
}

/* Project Link */
.project-link {
    position: relative;
    overflow: hidden;
}

.project-link::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.3s ease;
}

.project-link:hover::before {
    left: 100%;
}

/* Typing Effect - Optimized */
.typing-text {
    overflow: hidden;
    white-space: nowrap;
    opacity: 1 !important;
    transform: none !important;
    display: inline-block;
}

/* Typing animation disabled for better visibility - can be re-enabled if needed */
.typing-text::after {
    display: none;
}


/* Parallax Mouse Effect */
.parallax-mouse {
    transform: translate(
        calc((var(--mouse-x) - 50vw) * 0.02),
        calc((var(--mouse-y) - 50vh) * 0.02)
    );
    transition: transform 0.1s ease-out;
}

/* Gradient Follow Mouse */
.gradient-follow {
    background: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(14, 165, 233, 0.1) 0%,
        transparent 50%
    );
}

/* Custom Cursor (Optional) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #0284c7;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    top: var(--mouse-y);
    left: var(--mouse-x);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    border-color: #0ea5e9;
}

/* Text Follow Mouse */
.text-follow {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(14, 165, 233, 0.3),
        transparent
    );
    background-size: 200% 100%;
    background-position: calc(var(--mouse-x) * 0.1) 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Tilt Effect */
.card-tilt {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.card-tilt:hover {
    transform: perspective(1000px) rotateX(calc((var(--mouse-y) - 50vh) * 0.01deg)) rotateY(calc((var(--mouse-x) - 50vw) * 0.01deg));
}

/* ============================================
   YENİ ÖZELLİKLER - Portfolio V5'ten İlham
   ============================================ */

/* 1. ÖZEL SCROLLBAR STİLLERİ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(3, 0, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

html:not(.dark) ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 0 20px rgba(168, 85, 247, 0.2),
        0 0 10px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(168, 85, 247, 0.3),
        0 0 15px rgba(99, 102, 241, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(99, 102, 241, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 
        inset 0 0 40px rgba(168, 85, 247, 0.4),
        0 0 20px rgba(99, 102, 241, 0.4);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox için scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) rgba(3, 0, 20, 0.4);
}

html:not(.dark) * {
    scrollbar-color: rgba(99, 102, 241, 0.4) rgba(255, 255, 255, 0.4);
}

/* 2. GRID PATTERN BACKGROUND */
.grid-pattern {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(79, 79, 79, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(79, 79, 79, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

html:not(.dark) .grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
}

/* 3. MODERN CARD TASARIMLARI */
.modern-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

html:not(.dark) .modern-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

html:not(.dark) .modern-card:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

/* Project Card için özel stil */
.project-card-modern {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

html:not(.dark) .project-card-modern {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.project-card-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card-modern:hover::after {
    opacity: 1;
}

.project-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
}

html:not(.dark) .project-card-modern:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2);
}

/* 4. BLOB ANİMASYONLARI */
@keyframes blob {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 10s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Blob container */
.blob-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
    mix-blend-mode: multiply;
    opacity: 0.2;
}

html:not(.dark) .blob {
    opacity: 0.15;
    mix-blend-mode: normal;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.4);
    top: 0;
    left: -4%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.4);
    top: 0;
    right: -4%;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.4);
    bottom: -8%;
    left: 20%;
}

.blob-4 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.4);
    bottom: -10%;
    right: 20%;
}

@media (min-width: 768px) {
    .blob {
        width: 400px;
        height: 400px;
    }
    
    .blob-1 {
        opacity: 0.1;
    }
    
    .blob-2 {
        opacity: 0.1;
    }
    
    .blob-3 {
        opacity: 0.1;
    }
    
    .blob-4 {
        opacity: 0.1;
    }
}

/* 5. WELCOME SCREEN STİLLERİ */

@media (min-width: 768px) {
    .welcome-title {
        font-size: 6rem;
    }
}

/* 6. TYPING CURSOR BLINK */
@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(to bottom, #6366f1, #a855f7);
    margin-left: 2px;
    animation: blink-cursor 1s infinite;
    vertical-align: baseline;
}

/* 7. PROJECT CAROUSEL STİLLERİ */
.project-carousel-container {
    position: relative;
    overflow: hidden;
}

.project-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    transform: scale(1.05);
}

.project-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.project-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Controls */
.project-carousel-controls {
    z-index: 20;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

.carousel-prev,
.carousel-next {
    border: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    z-index: 30;
    min-width: 44px;
    min-height: 44px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev:active,
.carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Carousel için responsive */
@media (max-width: 640px) {
    .carousel-prev,
    .carousel-next {
        padding: 0.75rem;
        font-size: 1rem;
        min-width: 48px;
        min-height: 48px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        min-width: 24px;
        min-height: 24px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
}

/* 8. PROJECT MODAL STİLLERİ */
.project-modal {
    z-index: 10000 !important;
    cursor: pointer; /* Dışına tıklanabilir olduğunu göster */
    display: none; /* Başlangıçta gizli */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

.project-modal.flex {
    display: flex !important;
}

.project-modal-content {
    max-height: 95vh;
    cursor: default; /* İçerik tıklanabilir */
    will-change: transform, opacity; /* Performans için */
    transform-origin: center center;
    margin: auto;
    position: relative;
}

.modal-carousel-container {
    position: relative;
    overflow: hidden;
}

.modal-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.modal-carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.modal-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-carousel-controls {
    z-index: 20;
}

.modal-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    min-width: 24px;
    min-height: 24px;
}

.modal-carousel-dot:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.modal-carousel-dot.active {
    background: rgba(0, 0, 0, 0.7);
    width: 24px;
    border-radius: 4px;
}

.modal-carousel-prev,
.modal-carousel-next {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-carousel-prev:hover,
.modal-carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.modal-carousel-prev:active,
.modal-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Line clamp utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal responsive */
@media (max-width: 1024px) {
    .project-modal-content {
        max-width: 95vw;
    }
    
    .modal-carousel-container {
        height: 400px !important;
    }
}

@media (max-width: 768px) {
    .project-modal-content {
        max-height: 95vh;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    
    .modal-carousel-container {
        height: 40vh !important;
        min-height: 250px;
    }
    
    .modal-carousel-prev,
    .modal-carousel-next {
        padding: 0.75rem;
        font-size: 1rem;
        min-width: 48px;
        min-height: 48px;
        background: rgba(255, 255, 255, 0.95) !important;
    }
    
    .project-card {
        touch-action: manipulation;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Preview Button Styles */
.project-content {
    position: relative;
}

.preview-btn {
    cursor: pointer;
    border: none;
    outline: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    min-width: 44px;
    min-height: 44px;
}

.preview-btn:hover {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
}

.preview-btn:active {
    transform: scale(0.95);
}

/* Modal carousel stilleri güncellemesi */
.modal-carousel-container {
    position: relative;
    overflow: hidden;
}

.modal-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.modal-carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

.modal-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-carousel-controls {
    z-index: 20;
}

.modal-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    min-width: 24px;
    min-height: 24px;
}

.modal-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.modal-carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

.modal-carousel-prev,
.modal-carousel-next {
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: auto;
    z-index: 30;
    min-width: 44px;
    min-height: 44px;
}

.modal-carousel-prev:hover,
.modal-carousel-next:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-carousel-prev:active,
.modal-carousel-next:active {
    transform: translateY(-50%) scale(0.95);
}



/* Welcome Screen Styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.welcome-screen.active {
    pointer-events: auto;
}

.welcome-text-container {
    position: relative;
    z-index: 100001;
}

.welcome-text {
    font-size: 4rem;
    font-weight: 700;
    color: #0ea5e9;
    text-align: center;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dark .welcome-text {
    color: #38bdf8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.welcome-text.show {
    opacity: 1;
    transform: scale(1);
}

.welcome-text .letter {
    display: inline-block;
    transition: all 0.3s ease;
}

.welcome-text.exploding .letter {
    animation: explodeToParticle 1s ease-out forwards;
}

@keyframes explodeToParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--target-x), var(--target-y)) scale(0);
    }
}

/* Blur background when welcome screen is active */
body.welcome-active #interactive-bg,
body.welcome-active main,
body.welcome-active nav {
    filter: blur(15px);
    transition: filter 0.5s ease;
}

/* Mobile button optimizations */
button,
a.btn,
a[role="button"],
.view-cv-btn,
#view-cv-btn,
#certificates-btn,
button[type="submit"],
#contact-form button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
}

/* Mobile menu button */
#mobile-menu-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto !important;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    z-index: 100;
}

/* CV section buttons container */
#cv .flex.flex-wrap {
    gap: 12px !important;
}

@media (max-width: 768px) {
    .welcome-text {
        font-size: 2.5rem;
    }
    
    /* Navigation bar - smaller on mobile */
    #navbar {
        height: auto;
        min-height: 56px;
    }
    
    #navbar .container > div {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    /* Navigation buttons - smaller on mobile */
    #navbar .nav-link {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 12px !important;
        font-size: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Logo - smaller on mobile */
    #navbar .text-xl {
        font-size: 16px;
    }
    
    /* Theme toggle - icon only on very small screens */
    #theme-toggle span {
        display: none;
    }
    
    /* Ensure buttons are large enough on mobile */
    .view-cv-btn,
    #view-cv-btn,
    #certificates-btn {
        min-width: 120px;
        min-height: 48px;
        padding: 12px 16px !important;
        font-size: 14px;
    }
    
    /* CV buttons container - stack on mobile */
    #cv .flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    #cv .flex.flex-wrap .view-cv-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Contact form button */
    #contact-form button[type="submit"] {
        min-height: 48px;
        font-size: 16px;
    }
}


