@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-hover: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent-primary: #58a6ff;
    --accent-secondary: #f78166;
    --accent-success: #3fb950;
    --accent-warning: #d29922;
    --accent-error: #f85149;
    --border-color: #30363d;
    --terminal-green: #00ff41;
    --terminal-blue: #0080ff;
    --terminal-purple: #bf00ff;
    --shadow-light: 0 4px 20px rgba(88, 166, 255, 0.1);
    --shadow-medium: 0 8px 40px rgba(88, 166, 255, 0.15);
    --shadow-heavy: 0 16px 60px rgba(88, 166, 255, 0.2);
    --glow: 0 0 20px rgba(88, 166, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(247, 129, 102, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 6px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--terminal-green);
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-family: 'JetBrains Mono', monospace;
}

.nav-menu li a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--terminal-green);
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--text-primary);
}

.nav-menu li a:hover::before {
    opacity: 1;
    left: -20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hero {
    background: var(--bg-primary);
    padding: 120px 0 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(88, 166, 255, 0.03) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(247, 129, 102, 0.03) 50%, transparent 51%);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-text h1 .highlight {
    color: var(--terminal-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    font-family: 'JetBrains Mono', monospace;
}

.hero-text p::before {
    content: '// ';
    color: var(--accent-primary);
}

.btn {
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.hero-img {
    position: relative;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(247, 129, 102, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.hero-img::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        radial-gradient(circle at 60% 20%, rgba(88, 166, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 60%, rgba(0, 255, 65, 0.05) 0%, transparent 50%);
    border-radius: 50%;
    z-index: -2;
    animation: float 8s ease-in-out infinite reverse;
}

.code-particle {
    position: absolute;
    color: var(--terminal-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.6;
    pointer-events: none;
    animation: particleFloat 4s ease-in-out infinite;
}

.code-particle:nth-child(1) {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.code-particle:nth-child(2) {
    top: 30%;
    right: -25px;
    animation-delay: 1s;
}

.code-particle:nth-child(3) {
    bottom: 20%;
    left: -15px;
    animation-delay: 2s;
}

.code-particle:nth-child(4) {
    bottom: 40%;
    right: -30px;
    animation-delay: 3s;
}

.code-particle:nth-child(5) {
    top: 50%;
    left: -35px;
    animation-delay: 0.5s;
}

.code-particle:nth-child(6) {
    top: 70%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) translateX(5px) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(-5px) translateX(10px) rotate(270deg);
        opacity: 0.9;
    }
}

.hero-img img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--terminal-green);
    background: var(--bg-hover);
    border-color: var(--terminal-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

section {
    padding: 100px 0;
    position: relative;
}

section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

section h2::before {
    content: '// ';
    color: var(--accent-primary);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--terminal-green);
}

.about {
    background: var(--bg-secondary);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
}

.about p::before {
    content: '/*';
    position: absolute;
    top: 10px;
    left: 10px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.about p::after {
    content: '*/';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--terminal-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-medium);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon i {
    font-size: 3rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon i {
    transform: scale(1.1);
    color: var(--terminal-green);
}

.skill-card span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--terminal-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-medium);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    color: var(--accent-primary);
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.companies {
    background: var(--bg-secondary);
}

.companies-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 300px;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--terminal-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.company-card:hover {
    transform: translateY(-3px);
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-medium);
}

.company-logo {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.company-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.company-info span {
    color: var(--terminal-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.company-info p {
    color: var(--text-secondary);
    margin: 0.2rem 0;
    font-size: 0.85rem;
}

.contact {
    background: var(--bg-primary);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact input,
.contact textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--terminal-green);
    box-shadow: var(--shadow-light);
}

.contact textarea {
    min-height: 120px;
    resize: vertical;
}

#form-message {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.footer p::before {
    content: '// ';
    color: var(--accent-primary);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    opacity: 0.03;
}

.matrix-bg::before {
    content: '01';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, var(--terminal-green), transparent);
    animation: matrix 20s linear infinite;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--terminal-green);
    text-shadow: 0 0 5px var(--terminal-green);
}

@keyframes matrix {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-img img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        min-height: 80vh;
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-img {
    position: relative;
    width: 450px; /* Önceden kaç ise +50-100px arttırdım */
    height: 450px;
    margin: 0 auto; /* Ortalar */
    display: flex;
    justify-content: center;
    align-items: center;
    }
    
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kasları kesmeden doldurur */
    border-radius: 50%; /* Mükemmel yuvarlak */
  }
    
    .code-particle {
        font-size: 0.6rem;
    }
    
    .code-particle:nth-child(1) {
        top: 5%;
        left: -15px;
    }
    
    .code-particle:nth-child(2) {
        top: 25%;
        right: -20px;
    }
    
    .code-particle:nth-child(3) {
        bottom: 15%;
        left: -10px;
    }
    
    .code-particle:nth-child(4) {
        bottom: 35%;
        right: -25px;
    }
    
    .code-particle:nth-child(5) {
        top: 45%;
        left: -30px;
    }
    
    .code-particle:nth-child(6) {
        top: 65%;
        right: -15px;
    }
    
    .hero-img::before {
        top: -30px;
        left: -30px;
        right: -30px;
        bottom: -30px;
    }
    
    .hero-img::after {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px 0;
        min-height: 90vh;
    }
    
    .hero-flex {
        gap: 1.5rem;
        min-height: 70vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .social-links {
        margin-bottom: 1.2rem;
    }
    
    .hero-img img {
        width: 200px;
        height: 200px;
    }
    

    .code-particle {
        font-size: 0.5rem;
    }
    
    .code-particle:nth-child(1) {
        top: 3%;
        left: -10px;
    }
    
    .code-particle:nth-child(2) {
        top: 20%;
        right: -15px;
    }
    
    .code-particle:nth-child(3) {
        bottom: 10%;
        left: -8px;
    }
    
    .code-particle:nth-child(4) {
        bottom: 30%;
        right: -20px;
    }
    
    .code-particle:nth-child(5) {
        top: 40%;
        left: -25px;
    }
    
    .code-particle:nth-child(6) {
        top: 60%;
        right: -12px;
    }
    
    .hero-img::before {
        top: -20px;
        left: -20px;
        right: -20px;
        bottom: -20px;
    }
    
    .hero-img::after {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .company-card {
        min-width: 250px;
        flex-direction: column;
        text-align: center;
    }
}

html {
    scroll-behavior: smooth;
}
