:where([class^="ri-"])::before {
    content: "\f3c2";
}

html {
    scroll-behavior: smooth;
    scrollbar-color: #00A3FF #181818;
    scrollbar-width: thin;
}

body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 25%, #0f0f0f 50%, #1a1a1a 75%, #0f0f0f 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    min-height: 100vh;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Code and technical text styling */
code, pre, .code-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-feature-settings: 'liga' 1, 'calt' 1;
}

/* Developer-style text effects */
.developer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

/* Ortak Navbar Stilleri */
.navbar,
#mobile-menu {
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Masaüstü Navbar */
.navbar {
    position: fixed;
    /* Varsayılan olarak fixed olduğunu varsayıyorum */
    top: 0;
    width: 100%;
    z-index: 50;
}

/* Mobil Menü */
#mobile-menu {
    opacity: 0;
    visibility: hidden;
}

#mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.typing::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 163, 255, 0.2);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background: #2d2d2d;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 24px;
    width: 32px;
    height: 32px;
    background: #121212;
    border: 2px solid #00A3FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-dot::before {
    content: "";
    width: 12px;
    height: 12px;
    background: #00A3FF;
    border-radius: 50%;
}

/* Form Stilleri */
input:focus+label,
textarea:focus+label,
input:not(:placeholder-shown)+label,
textarea:not(:placeholder-shown)+label {
    transform: translateY(-24px) scale(0.8);
    color: #00A3FF;
    background: #252525;
    padding: 0 4px;
    border-radius: 4px;
}

input::placeholder,
textarea::placeholder {
    color: transparent;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 163, 255, 0.2);
}

.skill-card {
    background: rgba(29, 29, 29, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 163, 255, 0.3);
    border-color: rgba(0, 163, 255, 0.5);
    background: rgba(29, 29, 29, 0.8);
}

.project-card {
    background: rgba(29, 29, 29, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 163, 255, 0.4);
    border-color: rgba(0, 163, 255, 0.6);
    background: rgba(29, 29, 29, 0.8);
}

.project-card img {
    transition: transform 0.5s ease;
}

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

.project-overlay {
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95), transparent);
    transition: opacity 0.3s ease;
}

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

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

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #555;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.custom-checkbox:checked {
    background-color: #00A3FF;
    border-color: #00A3FF;
    box-shadow: 0 0 0 2px rgba(0, 163, 255, 0.2);
}

.custom-checkbox:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }

    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-400px * 5 - 2rem * 5));
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
    width: fit-content;
    padding: 1rem 0;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Dil Değiştirme Butonları */
.language-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.language-btn:hover {
    color: #00A3FF;
    background: rgba(0, 163, 255, 0.1);
}

.language-btn.active {
    color: #00A3FF;
    background: rgba(0, 163, 255, 0.1);
}

/* Mobile Menu Link Stilleri */
.mobile-nav-link {
    position: relative;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-link:hover::after {
    width: 80%;
}

/* Language Buttons */
.language-buttons {
    position: relative;
    z-index: 60;
}

.language-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.language-btn:hover,
.language-btn.active {
    opacity: 1;
    color: var(--primary);
}

/* Mobile Menu Button */
#mobile-menu-button,
#mobile-menu-close {
    transition: all 0.3s ease;
}

#mobile-menu-button:hover,
#mobile-menu-close:hover {
    color: var(--primary);
}

/* Scrollbar - Yazılımcı Yeşili */
::-webkit-scrollbar {
    width: 10px;
    background: #181818;
}

::-webkit-scrollbar-thumb {
    background: #00A3FF;
    border-radius: 8px;
    border: 2px solid #181818;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: #00A3FF;
}

/* Firefox */
html {
    scrollbar-color: #00A3FF #181818;
    scrollbar-width: thin;
}

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

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

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 163, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 163, 255, 0.6);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #00A3FF, #00FF94);
    transition: all 0.3s ease;
}

.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;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 163, 255, 0.4);
}

/* Text gradient effects */
.text-gradient {
    background: linear-gradient(45deg, #00A3FF, #00FF94);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for profile image */
.profile-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Improved particle animation */
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 163, 255, 0.3), rgba(0, 255, 148, 0.3));
    animation: floatParticle 20s infinite linear;
    box-shadow: 0 0 10px rgba(0, 163, 255, 0.3);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}