:root {
    --primary-color: #ff6b88;
    --primary-light: #ffebef;
    --primary-dark: #e85a77;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-alt: #fff9fa;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Pacifico', cursive;
}

[data-theme="dark"] {
    --text-color: #f0f0f0;
    --text-light: #aaaaaa;
    --bg-color: #1a1a1a;
    --bg-alt: #222222;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 0;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    background: color-mix(in srgb, var(--bg-color), transparent 5%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-signature);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.lang-btn {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--primary-light) 100%);
    padding-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--primary-color);
    font-family: var(--font-signature);
}

.hero-text p.subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-text p.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 136, 0.4);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 136, 0.6);
}

.hero-image img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: var(--shadow);
    animation: morph 8s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.5);
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* About Section */
.about {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    border-radius: 50%;
    filter: blur(80px);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    margin: 15px auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.about-text {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 107, 136, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: var(--text-color);
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(255, 107, 136, 0.15);
}

.highlight-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.highlight-card p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Skills Grid */
.skills-container {
    margin-top: 60px;
}

.skills-container h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 35px rgba(255, 107, 136, 0.1);
}

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

.skill-card h4 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg-alt);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-light);
}

/* Education & Experience & Projects */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Aligned left for better mobile support */
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: auto;
    left: 13px;
    background-color: var(--bg-color);
    border: 3px solid var(--primary-color);
    top: 5px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
}

.project-content h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Certificates */
.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cert-item {
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
    /* To ensure hover effect on link respects border radius */
}

.cert-item:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.cert-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cert-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.cert-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    padding: 20px 40px;
    background: var(--bg-alt);
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: scale(1.05);
    background: var(--bg-color);
}

.footer {
    text-align: center;
    padding: 30px;
    background: var(--bg-alt);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-content img,
.modal-content iframe {
    max-height: 85vh;
    width: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-content iframe {
    height: 80vh;
    width: 90vw;
    max-width: 1000px;
    background: white;
}


.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.modal-prev,
.modal-next {
    position: absolute;
    bottom: 50%;
    /* Center vertically or button based on request? User asked for "alt sağ ve sol" which usually means bottom left/right. But for galleries center is standard. Let's do bottom as requested. */
    bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    user-select: none;
    z-index: 10;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    header {
        background: var(--bg-color);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav {
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-color);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: none;
        text-align: center;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: block;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .controls {
        gap: 10px;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .hamburger {
        display: block;
        color: var(--text-color);
        font-size: 1.6rem;
        margin-left: 5px;
    }

    .hero {
        padding-top: 60px;
        height: auto;
        min-height: calc(100vh - 60px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    .timeline::after {
        left: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    .controls {
        gap: 8px;
    }
}