/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --terminal-bg: #1a1a1a;
    --text-color: #00ff00;
    --text-secondary: #888888;
    --border-color: #333333;
    --cursor-color: #00ff00;
    --flag-size: 36px;
}

body {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    /* Mobil scroll iyileştirmeleri */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Cool Background Wallpaper */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 224, 208, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(72, 209, 204, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.03) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(64, 224, 208, 0.03) 50%, transparent 70%),
        linear-gradient(90deg, transparent 40%, rgba(0, 191, 255, 0.02) 50%, transparent 60%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300px 300px, 300px 300px, 400px 400px;
    animation: backgroundShift 25s ease-in-out infinite;
    z-index: -1;
}

/* Animated particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(64, 224, 208, 0.35), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(0, 191, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(72, 209, 204, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(0, 255, 255, 0.35), transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(64, 224, 208, 0.3), transparent),
        radial-gradient(2px 2px at 240px 90px, rgba(0, 191, 255, 0.4), transparent),
        radial-gradient(1px 1px at 280px 20px, rgba(72, 209, 204, 0.35), transparent);
    background-repeat: repeat;
    background-size: 300px 150px;
    animation: particleFloat 20s linear infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0px 0px, 0px 0px, 0px 0px;
    }
    25% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 150px 150px, -150px -150px, 200px 0px;
    }
    50% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 300px 0px, 0px 300px, -200px 200px;
    }
    75% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, -150px 150px, 150px -150px, 0px -200px;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100px);
    }
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.flag-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-btn:hover {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.flag-btn.active {
    border-color: var(--text-color);
    background: rgba(0, 255, 255, 0.1);
}

.flag-icon {
    width: var(--flag-size);
    height: calc(var(--flag-size) * 0.75);
    border-radius: 2px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Terminal */
.terminal {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    position: relative;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

.terminal-header {
    background: rgba(10, 10, 10, 0.95);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 20px;
}

.terminal-content {
    padding: 30px;
    min-height: 350px;
    max-height: 60vh;
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) transparent;
    /* Mobil scroll iyileştirmeleri */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.terminal-content::-webkit-scrollbar {
    width: 6px;
}

.terminal-content::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-content::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 3px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 0, 0.8);
}

.typing-container {
    display: flex;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
}

.typing-text {
    font-size: 1.2rem;
    line-height: 1.8;
    white-space: pre-wrap;
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    border-color: var(--text-color);
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.2rem;
}

.social-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 80px 15px 15px;
        max-width: 95%;
        justify-content: flex-start;
        /* Mobil container scroll iyileştirmesi */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .terminal {
        margin-bottom: 30px;
    }
    
    .terminal-content {
        padding: 25px 20px;
        min-height: 400px;
        max-height: 50vh;
        /* Mobil terminal scroll iyileştirmesi */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .typing-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .language-switcher {
        top: 15px;
        right: 15px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
    
    .back-home {
        top: 15px;
        left: 15px;
    }
    
    .back-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .coming-soon-content {
        padding: 30px 20px;
    }
    
    .coming-soon-title {
        font-size: 2rem;
    }
    
    .coming-soon-text {
        font-size: 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 70px 10px 10px;
        max-width: 98%;
        justify-content: flex-start;
        /* Küçük mobil cihazlar için scroll iyileştirmesi */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .terminal-content {
        padding: 20px 15px;
        min-height: 450px;
        max-height: 45vh;
        /* Küçük mobil cihazlar için terminal scroll iyileştirmesi */
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .typing-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .social-links {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        padding: 12px 20px;
        font-size: 0.85rem;
        width: 200px;
        justify-content: center;
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
    }
    
    .back-home {
        top: 10px;
        left: 10px;
    }
    
    .back-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .back-text {
        display: none;
    }
    
    .project-item {
        padding: 12px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .coming-soon-content {
        padding: 20px 15px;
    }
    
    .coming-soon-title {
        font-size: 1.5rem;
    }
    
    .coming-soon-text {
        font-size: 0.9rem;
    }
    
    .coming-soon-icon {
        font-size: 2.5rem;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Typing Animation */
.typing-text {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Smooth transitions for language switching */
.social-text {
    transition: all 0.3s ease;
}

/* Back to Home Button */
.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:hover {
    border-color: var(--text-color);
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(-2px);
}

.back-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.back-text {
    font-weight: 500;
}

/* Coming Soon Container */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.coming-soon-content {
    text-align: center;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 500px;
}

.coming-soon-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

.coming-soon-content:hover {
    border-color: var(--text-color);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.15);
}

.coming-soon-title {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.coming-soon-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.coming-soon-icon {
    font-size: 4rem;
    animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Projects Container (keeping for future use) */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

.project-item {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.02) 50%, transparent 70%);
    pointer-events: none;
}

.project-item:hover {
    border-color: var(--text-color);
    background: rgba(0, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.project-title {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--text-color);
    transform: scale(1.05);
}

/* Loading animation */
body {
    opacity: 0;
    animation: pageLoad 1s ease-in forwards;
}

@keyframes pageLoad {
    to {
        opacity: 1;
    }
} 