:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border: rgba(148, 163, 184, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}


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

.hero-buttons {
    display: flex;
    gap: 16px; /* Butonlar arası boşluk */
    flex-wrap: wrap; /* Mobilde alt alta düşsün */
}

.navbar-brand {
    font-family: 'Fira Code', monospace;
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    min-width: 250px; /* Genişlik sabitleme */
}

.typing-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    color: var(--accent);
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

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


/* Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px var(--shadow);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    margin-bottom: 1.5rem;
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content h1 .highlight {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary-custom {
    background: var(--accent);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-primary-custom:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-outline-custom {
    background: transparent;
    color: var(--accent);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Code Window */
.code-window {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow);
}

.window-header {
    background: rgba(30, 41, 59, 0.8);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-line {
    margin-bottom: 0.3rem;
}

.keyword { color: #c678dd; }
.function { color: #61afef; }
.string { color: #98c379; }
.comment { color: #5c6370; }

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Skills */
.skill-card {
    background: var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Projects */
.project-card {
    background: var(--secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.25);
}

.project-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    border-bottom: 1px solid var(--border);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-body {
    padding: 2rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.project-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
}

/* Experience */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.experience-card {
    background: var(--secondary);
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.experience-company {
    color: var(--accent);
    font-weight: 600;
}

.experience-period {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
}

.experience-description {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Education */
.education-item {
    background: var(--secondary);
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

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

.education-school {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certificates */
.certificate-category {
    margin-bottom: 3rem;
}

.certificate-category h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.certificate-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.certificate-item {
    background: var(--secondary);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.certificate-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.certificate-details h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.certificate-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    border-color: var(--accent);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--accent);
    width: 50px;
    text-align: center;
}

.contact-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0;
}

.contact-details a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    color: var(--text-muted);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        flex: 1 1 calc(50% - 1rem);
    }

    .experience-header {
        flex-direction: column;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .profile-photo,
    .profile-placeholder {
        width: 150px;
        height: 150px;
    }
}
