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

:root {
    --primary-color: #F5C518;
    --secondary-color: #18191A;
    --card-color: #242526;
    --text-color: #E4E6EB;
    --border-color: #3A3B3C;
    --bg-gradient: linear-gradient(135deg, #18191A 0%, #1a1d1f 100%);
    --navbar-bg: rgba(24, 25, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Açık Mod */
[data-theme="light"] {
    --primary-color: #D4A017;
    --secondary-color: #f5f5f5;
    --card-color: #ffffff;
    --text-color: #1a1a1a;
    --border-color: #e0e0e0;
    --bg-gradient: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Tema Değiştirme Butonu */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    z-index: 1001;
    transition: all 0.3s ease;
}

/* Dil Değiştirme Butonu */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 85px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    z-index: 1001;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.lang-toggle span {
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(30deg);
}

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

@media (max-width: 800px) {
    .container {
        max-width: 98vw;
        padding: 18px 4vw;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px 2vw;
    }
    h1 {
        font-size: 1.6rem;
    }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: slideInLeft 0.6s ease-out;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: slideInRight 0.6s ease-out;
}

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

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

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

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

/* ===== HERO SECTION ===== */
.hero {
    margin-top: 80px;
    /* subtract navbar height so hero fits in the viewport and the scroll indicator is visible */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* reduce bottom padding slightly so less empty space below the scroll indicator */
    padding: 2rem 2rem 1rem;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #F5C518;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: #F5C518;
    border-radius: 30% 70% 70% 30%;
    bottom: 10%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: #F5C518;
    border-radius: 60% 40% 30% 70%;
    top: 50%;
    right: 30%;
    animation: float 7s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #F5C518;
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.3);
    animation: profilePulse 2s ease-in-out infinite;
}

.profile-rings {
    position: absolute;
    width: 230px;
    height: 230px;
    border: 2px solid #F5C518;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 8s linear infinite;
    opacity: 0.5;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--primary-color);
    margin: 1rem 0;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 10px 30px rgba(245, 197, 24, 0.3);
}

.scroll-indicator {
    position: absolute;
    /* move the indicator higher so it's clearly visible on load */
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* keep it above the floating shapes */
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

.scroll-icon {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid #F5C518;
    border-radius: 15px;
    position: relative;
}

/* Reduce the top padding of the first section (after hero) so there's less empty space beneath the hero */
.hero + section {
    padding-top: 3rem;
}

.scroll-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: #F5C518;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* ===== SECTION STYLING ===== */
section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    animation: slideInDown 0.6s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(135deg, rgba(36, 37, 38, 0.5) 0%, rgba(24, 25, 26, 0.5) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    animation: slideInLeft 0.8s ease-out;
}

.about-para {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    animation: slideInRight 0.8s ease-out;
}

.stat-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.stat-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(245, 197, 24, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: linear-gradient(135deg, rgba(24, 25, 26, 0.5) 0%, rgba(36, 37, 38, 0.5) 100%);
}

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

.skill-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.skill-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(245, 197, 24, 0.15);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #F5C518 0%, #FFD700 100%);
    border-radius: 4px;
    animation: fillBar 1.5s ease-out;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, rgba(36, 37, 38, 0.5) 0%, rgba(24, 25, 26, 0.5) 100%);
}

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

.project-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.1) 0%, transparent 100%);
    transition: top 0.3s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(245, 197, 24, 0.15);
}

.project-card:hover::before {
    top: 0;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.project-tags span {
    display: inline-block;
    background: rgba(245, 197, 24, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, rgba(24, 25, 26, 0.5) 0%, rgba(36, 37, 38, 0.5) 100%);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    opacity: 0.9;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.contact-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(245, 197, 24, 0.15);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--border-color);
    transition: background 0.3s ease;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes profilePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(245, 197, 24, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(245, 197, 24, 0.5);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Tema ve Dil butonlarını mobilde küçült ve yeniden konumlandır */
    .theme-toggle {
        top: 22px;
        right: 65px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .lang-toggle {
        top: 22px;
        right: 105px;
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #18191A;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

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

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        /* ensure hero still fits on smaller screens while accounting for navbar */
        min-height: calc(100vh - 80px);
        padding: 1rem;
    }

    .profile-container {
        width: 150px;
        height: 150px;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .profile-rings {
        width: 180px;
        height: 180px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .skills-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Daha küçük ekranlarda butonları daha da küçült */
    .theme-toggle {
        top: 20px;
        right: 55px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .lang-toggle {
        top: 20px;
        right: 90px;
        width: 28px;
        height: 28px;
        font-size: 0.55rem;
    }

    .nav-menu {
        padding: 1.5rem 0;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .profile-container {
        width: 120px;
        height: 120px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .profile-rings {
        width: 150px;
        height: 150px;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .skill-card,
    .project-card,
    .contact-card {
        padding: 1.5rem;
    }

    .skill-icon,
    .project-icon,
    .contact-icon {
        font-size: 2.5rem;
    }
}

/* Make the scroll indicator sit a bit higher on smaller screens so it's always visible */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 30px;
    }
}

/* ===== AÇIK MOD EK STİLLERİ ===== */
[data-theme="light"] .about,
[data-theme="light"] .projects {
    background: linear-gradient(135deg, rgba(230, 230, 230, 0.5) 0%, rgba(245, 245, 245, 0.5) 100%);
}

[data-theme="light"] .skills,
[data-theme="light"] .contact {
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.5) 0%, rgba(230, 230, 230, 0.5) 100%);
}

[data-theme="light"] .floating-shape {
    opacity: 0.15;
}

[data-theme="light"] .logo {
    color: var(--primary-color);
}

[data-theme="light"] .profile-img {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 160, 23, 0.3);
}

[data-theme="light"] .profile-rings {
    border-color: var(--primary-color);
}

[data-theme="light"] .scroll-icon {
    border-color: var(--primary-color);
}

[data-theme="light"] .scroll-icon::after {
    background: var(--primary-color);
}

