:root {
    --primary-color: #6366f1;
    --secondary-color: #818cf8;
    --accent-color: #c7d2fe;
    --background-color: #fafafa;
    --text-color: #374151;
    --paper-color: #ffffff;
    --shadow-color: rgba(99, 102, 241, 0.08);
    --skill-bg: #f3f4f6;
    --skill-hover: #e5e7eb;
    --gradient-start: #2563eb;
    --gradient-end: #60a5fa;
    --hover-color: #1d4ed8;
    --card-bg: rgba(255, 255, 255, 0.9);
}

* {
    cursor: default;
}

a, button, .skill-item, .project-card, .nav-link {
    cursor: pointer !important;
}

body {
    background-color: var(--background-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color) 0%, #e2e8f0 100%);
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

header {
    text-align: center;
    padding: 40px 0;
}

.profile-header {
    margin-bottom: 30px;
    opacity: 0;
    animation: scaleIn 1s ease forwards;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h1 {
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.tagline {
    color: var(--secondary-color);
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

nav ul li {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

nav ul li:nth-child(1) { animation-delay: 0.1s; }
nav ul li:nth-child(2) { animation-delay: 0.2s; }
nav ul li:nth-child(3) { animation-delay: 0.3s; }
nav ul li:nth-child(4) { animation-delay: 0.4s; }
nav ul li:nth-child(5) { animation-delay: 0.5s; }

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

.section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.section:nth-child(even) {
    animation: slideInLeft 0.8s ease forwards;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Paper effect container */
.container {
    width: 24cm; /* Genişletilmiş A4 width */
    max-width: 95%;
    margin: 2rem auto;
    background: var(--paper-color);
    box-shadow: 
        0 1px 3px var(--shadow-color),
        0 10px 20px var(--shadow-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    padding: 3rem;
}

/* Paper texture and lines */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.5em;
    opacity: 0.05;
    pointer-events: none;
}

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

.skills-category {
    margin-bottom: 40px;
    background: var(--paper-color);
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.skills-category h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
}

.skill-item {
    background: var(--paper-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 4px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.skill-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.skill-item:hover::after {
    opacity: 0.1;
}

.skill-item i {
    font-size: 1.8em;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.skill-item span {
    font-size: 0.9em;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project {
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.project-info p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.5;
}

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

.tech-tag {
    background: var(--background-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: var(--primary-color);
    color: white;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    opacity: 0;
    animation: rotateInIcon 0.5s ease forwards;
}

.contact-links a:nth-child(1) { animation-delay: 0.1s; }
.contact-links a:nth-child(2) { animation-delay: 0.2s; }
.contact-links a:nth-child(3) { animation-delay: 0.3s; }

.contact-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary-color);
}

.contact-link:hover i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.lang-btn:hover::before {
    width: 300px;
    height: 300px;
}

.lang-btn:hover {
    background-color: var(--secondary-color);
}

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

footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--primary-color);
    color: white;
}

/* Experience Timeline Styles */
.experience-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.experience-card {
    background: var(--paper-color);
    border-radius: 24px;
    margin-bottom: 40px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(129, 140, 248, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 20px 25px -5px var(--shadow-color),
        0 10px 10px -5px var(--shadow-color);
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    padding: 40px;
}

.experience-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.experience-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 6px rgba(99, 102, 241, 0.05),
        0 10px 15px rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease;
}

.experience-logo i {
    font-size: 2em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-date {
    font-size: 0.95em;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.experience-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-header {
    margin-bottom: 20px;
}

.experience-title h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.experience-title h4 {
    font-size: 1.2em;
    color: var(--text-color);
    margin: 8px 0 0 0;
    font-weight: 500;
    opacity: 0.9;
}

.experience-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1em;
    opacity: 0.9;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.experience-skill {
    background: var(--skill-bg);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.experience-skill:hover {
    background: var(--skill-hover);
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
}

.experience-achievements {
    display: grid;
    gap: 15px;
    margin-top: 25px;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.achievement-icon {
    color: var(--primary-color);
    font-size: 1.2em;
    padding-top: 3px;
}

.achievement-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .experience-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-left {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .experience-card {
        border-radius: 20px;
    }

    .experience-content {
        padding: 30px;
    }

    .experience-title h3 {
        font-size: 1.5em;
    }

    .experience-title h4 {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .experience-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-content {
        padding: 20px;
    }

    .achievement-item {
        padding: 12px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0;
        padding: 1rem;
        box-shadow: none;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .skill-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }

    .skills-category {
        padding: 15px;
    }

    .skills-grid {
        gap: 10px;
    }

    .skill-item i {
        font-size: 1.5em;
    }

    .skill-item span {
        font-size: 0.85em;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .container {
        width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .project-card:hover {
        transform: translateY(-5px);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateInIcon {
    from {
        opacity: 0;
        transform: rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}
