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

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    width: 90%;
    max-width: 1200px;
    background-color: var(--nav-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    z-index: 1000;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
    margin-right: 0;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.welcomePage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.welcomePic,
.welcome-content {
    position: relative;
    z-index: 2;
}

.welcomePic {
    width: 200px;
    height: 200px;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    object-fit: cover;
}

.welcome-content {
    text-align: center;
}

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

.welcomeP {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.welcomeB {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.welcomeB:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    background-color: var(--accent-color-hover);
}

.projelerPage {
    min-height: 100vh;
    background-color: var(--bg-primary);
    padding: 5rem 2rem;
    text-align: center;
}

.projeler-header {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.projeler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.proje-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.proje-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
}

.proje-icon {
    font-size: 2.5rem;
    color: #6C63FF;
    margin-bottom: 1rem;
}

.proje-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.proje-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

html {
    scroll-behavior: smooth;
}

/* Smooth scroll için özel class */
.smooth-scroll {
    transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.techPage {
    min-height: 100vh;
    background-color: var(--bg-secondary);
    padding: 5rem 2rem;
    text-align: center;
}

.tech-header {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 1rem;
}

.tech-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-card p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.skills-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.skill-group {
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.skill-group:hover {
    transform: translateY(-5px);
}

.skill-group h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    transition: width 1s ease;
}

/* Her kategori için ayrı renk */
.skill-group:nth-child(1) .skill-fill {
    background: #FF416C;
}

.skill-group:nth-child(2) .skill-fill {
    background: #2193b0;
}

.skill-group:nth-child(3) .skill-fill {
    background: #11998e;
}

.skill-group:nth-child(4) .skill-fill {
    background: #8E2DE2;
}

.skill-group:nth-child(5) .skill-fill {
    background: #f12711;
}

.skill-group:nth-child(6) .skill-fill {
    background: #FF0099;
}

/* Dark mode için arka plan */
[data-theme="dark"] .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* Mobile için responsive tasarım */
@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }

    .skills-container {
        padding: 0 1rem;
    }

    .skill-group {
        padding: 1.5rem;
    }

    .skill-group h3 {
        font-size: 1.5rem;
    }
}

.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        margin-left: 1rem;
    }

    .nav-toggle span {
        margin: 0;
        transform-origin: center;
    }

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

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

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

.contactPage {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-header {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--text-secondary);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6C63FF;
}

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

.submit-btn {
    background-color: #6C63FF;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.footer {
    background-color: var(--bg-primary);
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-section p {
    color: var(--text-primary);
    line-height: 1.6;
}

.footer-section p a {
    color: var(--text-primary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: var(--accent-color) !important;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.social-links img {
    width: 24px;
    filter: var(--social-icon-filter);
    transition: transform 0.3s ease;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.footer-bottom .project-by {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-bottom .project-by img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer-bottom .project-by:hover img {
    transform: scale(1.1);
}

.footer-bottom .project-by span {
    color: #4ade80;
    font-weight: 500;
}

/* Dark mode toggle butonu */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 0;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    color: var(--text-primary);
    stroke: var(--text-primary);
}

.theme-toggle:hover svg {
    transform: rotate(45deg);
}

/* Dark mode stilleri */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #e1e1e1;
    --text-secondary: #b3b3b3;
    --accent-color: #8B80F9;
    --accent-color-hover: #7A6EF0;
    --card-bg: #242442;
    --nav-bg: rgba(36, 36, 66, 0.95);
    --nav-bg-rgb: 36, 36, 66;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --social-icon-filter: invert(1);
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333;
    --text-secondary: #666;
    --accent-color: #6C63FF;
    --accent-color-hover: #5B52EE;
    --card-bg: white;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-rgb: 255, 255, 255;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --social-icon-filter: none;
    --border-color: rgba(0, 0, 0, 0.1);
}

/* Portfolio Styles */
.portfolio-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.portfolio-header {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 400px;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

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

.portfolio-links a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.demo-link {
    background: var(--accent-color);
    color: white;
}

.github-link {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.portfolio-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

.portfolio-item.hidden {
    display: none;
}

/* Dark mode uyumluluğu için */
[data-theme="dark"] .github-link {
    border-color: var(--accent-color);
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .portfolio-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#bear-container {
    position: relative;
    z-index: 2;
    width: 400px;
    height: 400px;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

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

.lang-switch {
    display: flex;
    gap: 5px;
    background: var(--card-bg);
    padding: 3px;
    border-radius: 20px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.lang-btn {
    border: none;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
}

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

.lang-btn:hover:not(.active) {
    background: rgba(108, 99, 255, 0.1);
}

/* Grid düzenini korumak için */
@media (min-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
}

.scroll-to-top svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2.5;
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    width: 90%;
    max-width: 1000px;
    margin: 2% auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
    font-size: 24px;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.project-images {
    margin-bottom: 30px;
}

.slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent-color);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.project-info {
    color: var(--text-primary);
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-links a {
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.demo-link {
    background: var(--accent-color);
    color: white;
}

.github-link {
    background: var(--card-bg);
    color: var(--text-primary);
}

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Scrollbar Styles for Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

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

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.detail-btn {
    background: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: auto;
}

.detail-btn:hover {
    background: var(--accent-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}