:root {
    /* Light Theme Variables */
    --primary: #00ffd5;
    --secondary: #ff00ff;
    --background: #0a0b0e;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(0, 0, 0, 0.3);
    --neon-shadow: 0 0 10px var(--primary),
                  0 0 20px var(--primary),
                  0 0 30px var(--primary);
    --primary-rgb: 0, 255, 213;
    --text-rgb: 255, 255, 255;
}

/* Light Theme Colors */
body.light-theme {
    --background: #ffffff;
    --text: #0a0b0e;
    --glass: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary: #008B8B;
    --neon-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
    --text-rgb: 10, 11, 14;
}

body.light-theme .experience-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 139, 139, 0.2);
}

body.light-theme .timeline-item {
    background: rgba(0, 139, 139, 0.05);
    border-left: 2px solid #008B8B;
}

body.light-theme .timeline-item::before {
    background: #008B8B;
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
}

body.light-theme .timeline-item .date {
    color: #006666;
    background: rgba(0, 139, 139, 0.1);
    border: 1px solid rgba(0, 139, 139, 0.2);
}

body.light-theme .timeline-item h3 {
    color: #008B8B;
}

body.light-theme .timeline-item .company {
    color: #333;
}

body.light-theme .timeline-item li::before {
    color: #008B8B;
}

body.light-theme .timeline-item:hover {
    background: rgba(0, 139, 139, 0.1);
    box-shadow: 0 5px 15px rgba(0, 139, 139, 0.1);
}

/* Light temada özel stiller */
body.light-theme .project-title,
body.light-theme .section-title,
body.light-theme .section-title-small {
    color: #006666;
}

body.light-theme .progress {
    background: #008B8B;
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
}

body.light-theme .neon-button,
body.light-theme .social-link,
body.light-theme .contact-item i {
    color: #006666;
    border-color: #008B8B;
}

body.light-theme .neon-button:hover,
body.light-theme .social-link:hover {
    box-shadow: 0 0 10px rgba(0, 139, 139, 0.5);
    background: rgba(0, 139, 139, 0.1);
}

body.light-theme .tech-tag {
    background: #008B8B;
    color: #ffffff;
}

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.theme-label {
    width: 50px;
    height: 25px;
    position: relative;
    display: block;
    background: var(--glass);
    border-radius: 25px;
    cursor: pointer;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.theme-label i {
    position: absolute;
    top: 4px;
    font-size: 14px;
}

.theme-label .fa-sun {
    right: 6px;
    color: #ffd700;
}

.theme-label .fa-moon {
    left: 6px;
    color: var(--primary);
}

#theme-switch {
    display: none;
}

#theme-switch:checked + .theme-label {
    background: var(--primary);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-toggle {
    display: flex;
    gap: 8px;
    padding: 5px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--primary);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.language-option img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.language-option span {
    font-size: 0.8rem;
    color: var(--text);
}

.language-option.active {
    opacity: 1;
    background: rgba(0, 255, 213, 0.1);
    box-shadow: 0 0 5px var(--primary);
}

.language-option:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Container ve Panel Yapıları */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 30%) 1fr;
    padding: clamp(1rem, 2vw, 2rem);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    align-items: start;
}

/* Sol Panel */
.left-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: clamp(1.5rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid var(--glass);
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

/* Sağ Panel */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

/* Glass Panel */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: clamp(1.5rem, 2vw, 2rem);
    border: 1px solid var(--glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.glass-panel:last-child {
    margin-bottom: 0;
}

/* Profil Bölümü */
.profile-section {
    text-align: center;
    width: 100%;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--neon-shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CV Download Button */
.cv-download {
    margin: 1.5rem 0;
    width: 100%;
}

.download-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: var(--card-bg);
    border: 1px solid var(--primary);
    border-radius: 15px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.download-cv:hover {
    background: rgba(0, 255, 213, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--neon-shadow);
}

/* Contact Info */
.contact-info {
    margin: 1.5rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 15px;
    background: var(--glass);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.contact-item:hover {
    background: rgba(0, 255, 213, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item span {
    font-size: 0.95rem;
}

.phone-number {
    cursor: pointer;
    user-select: none;
}

/* Language Skills */
.languages-section {
    margin: 1.5rem 0;
    width: 100%;
}

.section-title-small {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--glass);
    border-radius: 10px;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.language-item:hover {
    background: rgba(0, 255, 213, 0.1);
    transform: translateX(5px);
}

.language-item .level {
    color: var(--primary);
    font-weight: 500;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    background: var(--card-bg);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-card {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.skill-icon i,
.skill-icon svg {
    color: var(--primary);
}

.skill-icon svg path {
    fill: var(--primary);
}

/* Skill Progress Bars */
.skill-progress {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 1s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* Tech Stack */
.tech-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: var(--glass);
}

.tech-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 213, 0.2);
}

.tech-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-icon span {
    font-size: 0.9rem;
    color: var(--text);
    text-align: center;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass);
    border-radius: 15px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    height: 100%;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-title {
    color: var(--primary);
    font-size: 1.3rem;
}

.project-desc {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project Tags and Links */
.tech-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    background: var(--primary);
    color: var(--background);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-top: 1rem;
}

/* Glitch Text Effects */
.glitch-text, .dev-title, .bio {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2em;
    display: block;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.glitch-text {
    font-size: 2.2em;
    font-weight: bold;
    color: #00ffd5;
    letter-spacing: 2px;
    margin-bottom: 15px;
    height: 1.4em;
    line-height: 1.4em;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #c77dff;
    transform: translateX(-2px);
    animation: glitch-1 4s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: #7b2cbf;
    transform: translateX(2px);
    animation: glitch-2 4s infinite linear alternate-reverse;
}

/* Dev Title */
.dev-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #00ccff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0;
    height: 1.3em;
    line-height: 1.3em;
    animation: devTitleGlow 3s ease-in-out infinite;
}

.dev-title::before,
.dev-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dev-title::before {
    color: #9d4edd;
    animation: devGlitch1 4s infinite linear alternate-reverse;
}

.dev-title::after {
    color: #5a189a;
    animation: devGlitch2 4s infinite linear alternate-reverse;
}

/* Bio Text */
.bio {
    font-size: 1.1em;
    color: #40e0d0;
    margin-top: 20px;
    letter-spacing: 1px;
    height: 1.2em;
    line-height: 1.2em;
}

/* Animations */
@keyframes devTitleGlow {
    0%, 100% {
        text-shadow: 0 0 10px #9d4edd;
    }
    50% {
        text-shadow: 0 0 20px #9d4edd,
                     0 0 30px #9d4edd;
    }
}

@keyframes glitch-1 {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }
    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 3px);
    }
    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(3px, -2px);
    }
    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-3px, 4px);
    }
    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(2px, -4px);
    }
}

@keyframes glitch-2 {
    0% {
        clip-path: inset(24% 0 29% 0);
        transform: translate(2px, -2px);
    }
    20% {
        clip-path: inset(54% 0 21% 0);
        transform: translate(-3px, 2px);
    }
    40% {
        clip-path: inset(73% 0 15% 0);
        transform: translate(1px, -4px);
    }
    60% {
        clip-path: inset(24% 0 71% 0);
        transform: translate(-2px, 3px);
    }
    80% {
        clip-path: inset(10% 0 83% 0);
        transform: translate(3px, -2px);
    }
    100% {
        clip-path: inset(49% 0 26% 0);
        transform: translate(-1px, 2px);
    }
}

/* Scrollbar Styles */
.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
    width: 8px;
}

.left-panel::-webkit-scrollbar-track,
.right-panel::-webkit-scrollbar-track {
    background: var(--background);
}

.left-panel::-webkit-scrollbar-thumb,
.right-panel::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
    border: 2px solid var(--background);
}

/* iOS ve GitHub ikonları için özel stil */
.tech-stack .tech-icon img[alt="iOS"],
.tech-stack .tech-icon img[alt="GitHub"] {
    filter: brightness(0) invert(0.8);
}

/* Light tema için iOS ve GitHub ikonları */
body.light-theme .tech-stack .tech-icon img[alt="iOS"],
body.light-theme .tech-stack .tech-icon img[alt="GitHub"] {
    filter: brightness(0) invert(0.2);
}

/* Text container */
.text-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Glitch efektleri için wrapper */
.glitch-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .left-panel,
    .right-panel {
        height: auto;
        position: relative;
        top: 0;
        overflow-y: visible;
    }
    
    .left-panel {
        margin-bottom: 2rem;
    }

    .right-panel {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .theme-toggle,
    .language-selector {
        top: 10px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .project-card {
        padding: 1.2rem;
    }

    .glitch-text {
        font-size: 1.8em;
    }
    
    .dev-title {
        font-size: 1.2em;
    }
    
    .bio {
        font-size: 1em;
    }

    .tech-icons {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 1rem;
    }

    .tech-icon {
        padding: 0.8rem;
    }

    .tech-icon img {
        width: 30px;
        height: 30px;
    }

    .tech-icon span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .timeline-item {
        margin-left: 1.5rem;
        padding: 1rem;
    }

    .contact-item {
        padding: 10px;
    }

    .contact-item i {
        font-size: 1rem;
    }

    .contact-item span {
        font-size: 0.9rem;
    }

    .language-option span {
        display: none;
    }

    .language-option img {
        margin: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Experience Section Styles */
.experience-section {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.experience-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 213, 0.1);
}

.timeline {
    position: relative;
    padding: 1rem 0;
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    padding: 2rem;
    margin-left: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.timeline-item .date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 213, 0.1);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 213, 0.2);
}

.timeline-item h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-item .company {
    color: var(--text);
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: none;
    padding-left: 0;
}

.timeline-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    opacity: 0.9;
    line-height: 1.6;
}

.timeline-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.timeline-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 255, 213, 0.1);
}

@media (max-width: 1200px) {
    .experience-section {
        padding: 1.5rem;
    }

    .timeline-item {
        padding: 1.5rem;
        margin-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        padding: 1.2rem;
        margin-left: 1.2rem;
    }

    .timeline-item::before {
        width: 16px;
        height: 16px;
        left: -9px;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item .date {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 1rem;
        margin-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item::before {
        width: 14px;
        height: 14px;
        left: -8px;
    }

    .timeline-item h3 {
        font-size: 1.1rem;
    }

    .timeline-item .company {
        font-size: 0.9rem;
    }

    .timeline-item li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }
}

/* Smooth Scrolling */
.left-panel,
.right-panel {
    scroll-behavior: smooth;
}

/* Panel içeriklerinin minimum yüksekliği */
.profile-section,
.experience-section,
.skills-section,
.projects-section,
.tech-stack {
    min-height: auto;
}

/* Hover Effects */
.project-card:hover .project-title,
.skill-card:hover h3 {
    color: var(--primary);
}

.tech-icon:hover span {
    color: var(--primary);
}

/* Active States */
.language-option.active {
    background: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .theme-toggle,
    .language-selector,
    #particles-js {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        display: block;
    }

    .left-panel,
    .right-panel {
        height: auto;
        overflow: visible;
    }
}

