* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    /* Light theme variables */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8f9fa;
    --text-primary-light: #2c3e50;
    --text-secondary-light: #666;
    --accent-light: #3498db;
    --card-shadow-light: 0 10px 30px rgba(0,0,0,0.05);
    --header-bg-light: rgba(255, 255, 255, 0.95);
    --hero-bg-light: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --hero-text-light: #2c3e50;
    --border-light: rgba(0,0,0,0.1);
    
    /* Dark theme variables */
    --bg-primary-dark: #1a1a1a;
    --bg-secondary-dark: #2c2c2c;
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #cccccc;
    --accent-dark: #61dafb;
    --card-shadow-dark: 0 10px 30px rgba(0,0,0,0.3);
    --header-bg-dark: rgba(26, 26, 26, 0.95);
    --hero-bg-dark: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    --hero-text-dark: #ffffff;
    --border-dark: rgba(255,255,255,0.1);
    
    /* Default theme (light) */
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --accent: var(--accent-light);
    --card-shadow: var(--card-shadow-light);
    --header-bg: var(--header-bg-light);
    --hero-bg: var(--hero-bg-light);
    --accent-rgb: 52, 152, 219; /* Light mode accent rengi için RGB değerleri */
}

/* Dark theme class */
[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --accent: var(--accent-dark);
    --card-shadow: var(--card-shadow-dark);
    --header-bg: var(--header-bg-dark);
    --hero-bg: var(--hero-bg-dark);
    --accent-rgb: 97, 218, 251; /* Dark mode accent rengi için RGB değerleri */
}

body {
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

nav {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    width: 100%;
}

.logo {
    position: static;
    margin-right: 4rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    padding: 0;
}

.nav-controls {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

nav ul li a:hover {
    color: var(--accent);
}

nav ul li a:hover::after {
    width: 70%;
    opacity: 1;
}

/* Aktif link için stil (opsiyonel) */
nav ul li a.active {
    color: var(--accent);
}

nav ul li a.active::after {
    width: 70%;
    opacity: 1;
}

section {
    padding: 8rem 4rem;
}

.hero {
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 200px;
}

/* Matrix benzeri kod yağmuru efektini kaldıralım */
.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero content içindeki elementlerin renklerini düzeltelim */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Consolas', monospace;
    letter-spacing: 3px;
    padding: 1rem 2rem;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    background: var(--bg-secondary);
    display: inline-block;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-30px) translateX(-50%); }
    60% { transform: translateY(-15px) translateX(-50%); }
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.skill-card, .project-card, .education-card {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.skill-card:hover, .project-card:hover, .education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.skill-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

.project-card p, .education-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.tech-stack {
    padding: 0.5rem 1rem;
    font-size: 1rem !important;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    display: inline-block;
    margin-top: auto;
    align-self: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.project-card:hover .tech-stack {
    background: rgba(var(--accent-rgb), 0.15);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    border-radius: 30px;
    background: var(--bg-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-links i {
    font-size: 1.4rem;
}

.language-switch {
    position: static;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
}

.theme-switch {
    position: static;
    display: flex;
    gap: 0.5rem;
}

/* Switch button stilleri */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent);
    transition: .4s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider .fa-sun {
    color: #f1c40f;
    font-size: 14px;
}

.slider .fa-moon {
    color: #95a5a6;
    font-size: 14px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: var(--accent);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider {
    background-color: var(--bg-secondary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Eski theme-btn stillerini kaldır */
.theme-btn {
    display: none;
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    nav {
        height: 50px;
        padding: 0 1rem;
    }

    .logo {
        transform: scale(0.8);
        margin-right: 1rem;
    }

    .hamburger {
        display: block;
        padding: 0.3rem;
    }

    .nav-links {
        position: fixed;
        top: 50px;
        left: -100%;
        width: 100%;
        height: auto;
        background: var(--header-bg);
        flex-direction: column;
        padding: 0.5rem 0;
        transition: 0.3s ease;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-controls {
        margin-left: 0.5rem;
        transform: scale(0.9);
    }

    .language-switch .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .theme-switch {
        transform: scale(0.9);
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        margin: 4px 0;
    }

    body {
        overflow-x: hidden;
        width: 100%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }

    .project-card {
        width: 100%;
        margin: 0 auto;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .contact-links a {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    section {
        padding: 4rem 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    .container, 
    .section-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    nav {
        height: 45px;
    }

    .logo {
        transform: scale(0.75);
    }

    .nav-links {
        top: 45px;
    }

    .nav-controls {
        transform: scale(0.85);
    }

    .projects-grid {
        padding: 0 0.5rem;
    }

    .contact-links {
        padding: 0 0.5rem;
    }

    section {
        padding: 3rem 0.5rem;
    }
}

.project-link {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.project-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

/* Mobil screenshot için özel stil */
.project-image.mobile-screenshot {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
}

.project-image.mobile-screenshot img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* Dashboard screenshot için özel stil */
.project-image.dashboard-screenshot {
    background: var(--bg-secondary);
    padding: 0.8rem;
}

.project-image.dashboard-screenshot img {
    object-fit: contain;
    border-radius: 8px;
}

/* Hover efektleri */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

/* Dark mode için özel ayarlar */
[data-theme="dark"] .project-card {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(44, 44, 44, 0.8);
}

[data-theme="dark"] .tech-stack {
    background: rgba(var(--accent-rgb), 0.15);
}

.logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logo-text::before {
    content: '<';
    position: absolute;
    left: -1rem;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s ease;
}

.logo-text::after {
    content: '/>';
    position: absolute;
    right: -1.8rem;
    opacity: 0;
    color: var(--accent);
    transition: all 0.3s ease;
}

.logo:hover .logo-text::before {
    opacity: 1;
    left: -1.2rem;
}

.logo:hover .logo-text::after {
    opacity: 1;
    right: -2rem;
}

.logo-dot {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 2px;
    opacity: 0;
    transform: translateY(5px);
    animation: blink 2s infinite;
}

.logo:hover .logo-dot {
    opacity: 1;
}

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

@media (max-width: 768px) {
    .logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        text-align: center;
    }

    .logo a {
        justify-content: center;
    }
}

.profile-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--accent), transparent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-primary);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Background Animation Container */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Background animation dots */
.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4; /* Noktaların opaklığını azalttık */
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.2);
}

/* Her dot için farklı renkler ve efektler */
.dot:nth-child(1) {
    background: var(--accent);
    width: 6px;
    height: 6px;
}

.dot:nth-child(2) {
    background: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.dot:nth-child(3) {
    background: rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.25);
}

/* Line styles - Çizgileri daha belirgin yaptık */
.line {
    position: absolute;
    height: 2px;
    background: var(--accent);
    opacity: 0.6; /* Çizgilerin opaklığını arttırdık */
    transform-origin: left center;
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4); /* Glow efektini arttırdık */
}

/* Dark mode adjustments */
[data-theme="dark"] .dot {
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

[data-theme="dark"] .dot:nth-child(2),
[data-theme="dark"] .dot:nth-child(3) {
    opacity: 0.2;
}

[data-theme="dark"] .line {
    opacity: 0.4; /* Dark modda da çizgiler daha belirgin */
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.3);
}

/* Responsive ayarlar */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .project-image {
        height: 180px;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* Project Card */
.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Container */
.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Content Container */
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Title - Tüm başlıklar için aynı stil */
.project-card h3 {
    font-size: 1.25rem !important;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    min-height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    text-align: center;
}

/* Description */
.project-content p:not(.tech-stack) {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: center;
}

/* Technology Stack */
.tech-stack {
    padding: 0.5rem 1rem;
    font-size: 1rem !important;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    display: inline-block;
    margin-top: auto;
    align-self: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

/* Dark Mode */
[data-theme="dark"] .project-card {
    background: rgba(44, 44, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Header ve navigasyon için responsive tasarım */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: auto;
        background: var(--header-bg);
        flex-direction: column;
        padding: 1rem 0;
        transition: 0.3s ease;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-controls {
        margin-left: 1rem;
    }

    /* Hamburger animasyonu */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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