@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;

}


#projects,
#cv,
#contact,
#home {
    scroll-margin-top: 80px;

}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.main-text {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(45deg, #ff4e50, #1c1c8c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(255, 78, 80, 0.6), 0 0 12px rgba(28, 28, 140, 0.6);
    animation: glow 2s ease-in-out infinite alternate;
}

.sub-text {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: poppins;

}


.logo:hover {
    transform: scale(1.1) rotate(-2deg);
    text-shadow: 0 0 12px rgba(255, 78, 80, 0.8), 0 0 16px rgba(28, 28, 140, 0.8);

}



/* Glow animasyonu */
@keyframes glow {
    0% {
        text-shadow: 0 0 6px rgba(255, 78, 80, 0.3), 0 0 10px rgba(28, 28, 140, 0.3);
    }

    100% {
        text-shadow: 0 0 12px rgba(255, 78, 80, 0.6), 0 0 20px rgba(28, 28, 140, 0.6);
    }
}



nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.lang-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.lang-btn.active {
    background: rgba(71, 3, 206, 0.2);
    border-color: rgba(1, 54, 245, 0.8);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    display: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

nav a:hover {
    color: #00d4ff;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 47, 247, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.hero-content {

    text-align: center;
    color: #fff;
    cursor: url('../images/apple.png'), auto;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    animation: slideDown 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 40px;
    animation: slideUp 1s ease-out 0.3s both;
    opacity: 1;
}

.hero-content h1,
.hero-content p {
    position: relative;
    z-index: 2;
    color: #ffffff;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.6s both;
    position: relative;
    z-index: 3;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 10;

}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0e27;
    transform: translateY(-3px);
}

#snakeGame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    margin-top: 80px;
    z-index: 2;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.45;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: url('../images/apple.png'), auto;


}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}





.projects {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

#target-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

.target {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('../images/target.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: auto;
    cursor: crosshair;

    animation: spawn-animation 0.3s ease-out;
}


@keyframes spawn-animation {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.target.hit {
    animation: hit-animation 0.4s ease-out forwards;
}

@keyframes hit-animation {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.2) rotate(15deg);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.5) rotate(-30deg);
        opacity: 0;
    }
}


.projects-wrapper {
    position: relative;
    padding: 20px 60px;
}

.project-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;

}

.projects-container {
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;

}

.projects-container:active {
    cursor: grabbing;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.projects-grid {
    display: flex;
    gap: 30px;
    padding: 10px 0;

}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.project-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: attr(data-emoji);
    font-size: 80px;
    opacity: 0.3;
    position: absolute;
}



.project-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #00d4ff;
}

.project-info p {
    color: #a0a0a0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
}

.tech-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.tag {
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
}


.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.nav-arrow:hover {
    background: rgba(0, 212, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 0;
}

.nav-arrow.right {
    right: 0;
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: #00d4ff;
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}




.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;


}






.contact .container {
    position: relative;
    z-index: 2;
    pointer-events: none;

}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;

}


.form-group {
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00d4ff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #00d4ff, #7b2ff7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.g-recaptcha {
    margin-bottom: 20px;
}


.form-group textarea::-webkit-scrollbar {
    width: 8px;
}

.form-group textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin: 8px 0;
}

.form-group textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #7b2ff7);
    border-radius: 10px;
}

.form-group textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7b2ff7, #00d4ff);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    font-size: 24px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: #00d4ff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }



    .projects-wrapper {
        padding: 0 50px;
    }

    .project-card {
        max-width: 270px;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
    }

    .nav-arrow svg {
        width: 20px;
        height: 20px;
    }

    .cv-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 36px;
    }

    /* Mobile Menu */
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.3s ease;
        padding: 20px;
    }

    nav ul.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .lang-switcher {
        margin-left: 0;
    }

    nav>ul>li:not(.lang-switcher) {
        width: 100%;
        text-align: center;
    }

    nav>ul>li:not(.lang-switcher) a {
        display: block;
        padding: 15px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .logo {
        font-size: 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .project-info {
        padding: 20px;
    }
}


@media (max-width: 768px) {
    #snakeGame {
        height: 100%;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    #snakeGame {
        height: 100%;
        min-height: 300px;
    }
}

/* CV */
.about-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;

    position: relative;
    overflow: hidden;

}

.about-section .container {
    position: relative;
    z-index: 0;
    margin-top: 20px;
}

#character-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20%;
    height: 500px;
    z-index: 1;
    pointer-events: none;
}

#character-container canvas {
    pointer-events: auto;
}

.profile-image {
    width: 128px;
    height: 128px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px;
    border: 4px solid #38038f;
    margin-bottom: 24px;
    object-fit: cover;
    object-position: 40% center;
    filter: brightness(0.95) contrast(1.05);
    transition: all 0.5s ease-in-out;
    cursor: default;
}

.profile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(77, 9, 186, 0.4);
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
}

.about-content p {
    color: #a0a0a0;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 18px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;

}

.skill-tag {
    padding: 8px 16px;
    background-color: rgba(2, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    min-width: 120px;
    text-align: center;
    color: #a0a0a0;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    transform: scale(1.1);
    background-color: rgba(0, 212, 255, 0.7);
    color: #fff;
    border-color: #1c0050;
    box-shadow: 0 4px 15px rgba(123, 47, 247, 0.4);
}

.cv-button-container {
    margin-top: 40px;

}

.cv-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(30deg, #7b2ff7, #00d4ff);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;

}

.cv-button:hover {
    background: linear-gradient(30deg, #7b2ff7, #00d4ff);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);

}




#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
    touch-action: none;
    overscroll-behavior: none;
    overflow: hidden;


}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-container {
    text-align: center;
    position: relative;
}

.logoo-container {
    margin-bottom: 40px;
    animation: float 3s ease-in-out infinite;
}

.logoo {
    width: 80px;
    height: 80px;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    margin: 0 auto;
    position: relative;
}

.logoo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #00d4ff;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

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

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.loading-text span {
    animation: blink 1.4s infinite;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#progress-bar-inner {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #0099ff, #00d4ff);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

#progress-percentage {
    color: #00d4ff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    letter-spacing: 2px;
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00d4ff;
    border-radius: 50%;
    animation: rise 15s infinite ease-in;
}

@keyframes rise {
    0% {
        bottom: -10px;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        bottom: 110%;
        opacity: 0;
    }
}