:root {
    /* Default Dark Theme (Green/Android) */
    --bg-dark: #0a110c;

    --bg-header: rgba(10, 17, 12, 0.85);
    --bg-card: rgba(255, 255, 255, 0.03);
    /* Daha şeffaf ve modern */
    --bg-card-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #ecfdf5;
    /* Saf beyaz değil, çok hafif nane beyazı - göz yormaz */
    --text-secondary: #a7f3d0;

    /* Opaklığı kaldırdım, daha canlı bir yeşil seçtim */
    --primary-color: #149456;
    --secondary-color: #00c853;
    --accent-glow: #69f0ae;

    --icon-android: #00e676;
    --icon-apple: rgba(255, 255, 255, 0.3);
    --icon-qr: #ffffff;

    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Dark mode için gölgeye gerek yok ama tanımlı olsun */
    --card-shadow: none;
}

[data-theme="light"] {
    --bg-dark: #F5F7F6;

    --bg-header: rgba(245, 247, 246, 0.85);

    /* Kartları light mode'da tam beyaz yapıp gölgeyle ayırıyoruz */
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    /* Hover olunca çok hafif yeşerir */

    /* Okunabilirlik için koyu orman yeşili/siyah */
    --text-primary: #064e3b;
    --text-secondary: #047857;

    /* Light mode için biraz daha koyu bir yeşil (Accessibility için) */
    --primary-color: #059669;
    --secondary-color: #10b981;
    --accent-glow: #34d399;

    --icon-android: #059669;
    --icon-apple: rgba(0, 0, 0, 0.4);
    --icon-qr: #000000;

    /* Light mode border'ı daha belirgin ama ince */
    --glass-border: rgba(0, 0, 0, 0.06);

    /* Light mode'da kartların havada durması için gölge şart */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: -2px;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
}

/* Badge Style */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-secondary);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Social Icons */
.hero-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-social-link {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.hero-social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- Background Effects --- */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(66, 165, 245, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(123, 31, 162, 0.08) 0%, transparent 25%);
    pointer-events: none;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header & Nav --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--bg-header);
    /* Dynamic BG */
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.5s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    /* Vertical Center Links & Button */
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
}

.hero-content {
    max-width: 600px;
}

.greeting {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero .tagline {
    margin: 1.5rem 0 2.5rem;
    font-size: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(23, 122, 61, 0.349);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 199, 129, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(23, 122, 61, 0.349);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 450px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 0;
    right: 0;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
    animation: float 8s ease-in-out infinite reverse;
}

.phone-mockup {
    width: 280px;
    height: 550px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotate(-5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    padding: 20px;
    display: flex;
    align-items: center;
}

.code-snippet {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 12px;
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    width: 100%;
    color: #aeaeae;
    line-height: 1.5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.keyword {
    color: #cc7832;
}

.type {
    color: #ffc66d;
}

.string {
    color: #6a8759;
}

.function {
    color: #ffc66d;
}

.comment {
    color: #808080;
    font-style: italic;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

/* --- Glassmorphism Cards --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    /* More rounded like iOS widgets */
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow, none);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- About Section --- */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    min-width: 140px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 3rem;
}

.tech-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(23, 122, 61, 0.349);
    border: 1px solid rgba(17, 199, 129, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
    padding: 3rem 2rem;
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- Projects Section (App Store Style) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    width: 100%;
    background: rgba(0, 0, 0, 0);
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.color-1 {
    background: linear-gradient(45deg, #29323c, #485563);
}

.color-2 {
    background: linear-gradient(45deg, #1f4037, #99f2c8);
}

.color-3 {
    background: linear-gradient(45deg, #ee0979, #ff6a00);
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(23, 122, 61, 0.349);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.icon-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.icon-link:hover {
    color: var(--primary-color);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-methods {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.method i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(66, 165, 245, 0.05);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
}

.footer i {
    color: #ff4081;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .navbar .nav-links {
        display: none;
        /* Hide for now, interactions handled in JS */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-header);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .navbar .nav-links.active {
        display: flex;
    }
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.fade-in {
    opacity: 0;
    transition: all 1s ease-out;
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Experience & Education --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Mobile first alignment */
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 1.5rem;
    opacity: 0;
    /* JS handles reveal */
    transform: translateY(20px);
    transition: var(--transition);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 1;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(23, 122, 61, 0.349);
    border-radius: 20px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-type: disc;
    margin-left: 1rem;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.award-card {
    border-left: 4px solid var(--primary-color);
}

@media (min-width: 768px) {

    /* Kept timeline linear as requested */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    /* Awards grid adjustment if needed */
}

/* --- Floating Background Icons --- */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    /* Interaction enabled layer */
    pointer-events: none;
}

.icon-float {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    /* Default size */
    opacity: 0.1;
    animation: floatUp 15s linear infinite;
}

.fa-android {
    color: var(--icon-android);
}

.fa-apple {
    color: var(--icon-apple);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* --- Project Custom Icons --- */
.project-icon-container {
    width: 100%;
    height: 100%;
    background: transparent;
    /* Transparent as requested */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    transition: var(--transition);
}

.icon-dynamic-qr {
    color: var(--icon-qr);
    text-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
}

/* --- Skill Tags (Pills) --- */
.skill-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-tag {
    display: inline-block;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    /* White text always */
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}


.project-card:hover .project-icon-container {
    transform: scale(1.1);
}

.icon-orange {
    color: #FF9800;
    text-shadow: 0 0 20px rgba(255, 152, 0, 0.4);
}

.icon-amber {
    color: #FFC107;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

.icon-black {
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.icon-blue {
    color: #2196F3;
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
}

/* --- TV Glitch Animation --- */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    4.166666667% {
        clip: rect(91px, 9999px, 43px, 0);
    }

    8.333333333% {
        clip: rect(6px, 9999px, 5px, 0);
    }

    12.5% {
        clip: rect(48px, 9999px, 2px, 0);
    }

    16.666666667% {
        clip: rect(9px, 9999px, 66px, 0);
    }

    20.833333333% {
        clip: rect(87px, 9999px, 92px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 19px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(39px, 9999px, 3px, 0);
    }
}

/* --- iPhone Notch --- */
.phone-mockup {
    border-color: #1a1a1a;
    /* Sleek dark bezel */
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

/* --- Back To Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--secondary-color);
}

/* --- Typewriter Cursor --- */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--primary-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Fleeing Icons --- */
.icon-float {
    pointer-events: auto !important;
    transition: left 0.5s ease-out, top 0.5s ease-out;
    /* Smooth flee */
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar .nav-links {
        display: none;
        /* Varsayılan olarak kapalı */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 17, 12, 0.6);
        /* İstediğin koyuluk */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    /* JavaScript 'active' sınıfı eklediğinde menü açılsın */
    .navbar .nav-links.active {
        display: flex;
    }
}

.about-content,
.skills-grid,
.projects-grid,
.awards-grid,
.contact-wrapper {
    width: 90%;
    /* Genişliği ekranın %90'ı kadar yap (Kenarlardan %5 boşluk kalır) */
    max-width: 1200px;
    /* Çok büyük ekranlarda içeriğin aşırı yayılmasını engeller */
    margin-left: auto;
    /* Sol tarafı otomatik ayarla (Ortalar) */
    margin-right: auto;
    /* Sağ tarafı otomatik ayarla (Ortalar) */
}

/* Mobilde biraz daha geniş olabilir (mobilde %90 az gelebilir, %95 yapalım) */
@media (max-width: 768px) {

    .about-content,
    .skills-grid,
    .projects-grid,
    .volunteering-grid,
    .awards-grid,
    .contact-wrapper {
        width: 94%;
        /* Mobilde kenar boşluklarını biraz daraltır */
    }
}

/* --- Project Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    /* Reuse glass card bg */
    margin: 5% auto;
    width: 90%;
    max-width: 1000px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s ease-out;
    padding: 0;
    /* Removing default pudding to control layout */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--text-secondary);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 75vh;
    /* Increased from 600px to dynamic viewport height */
    min-height: 600px;
    max-height: 900px;
}

/* Modal Visual (Left) */
.modal-visual {
    flex: 1.2;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* Modal Info (Right) */
.modal-info {
    flex: 0.8;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* Custom Scrollbar for Chrome/Safari/Edge */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.modal-info::-webkit-scrollbar {
    width: 6px;
}

.modal-info::-webkit-scrollbar-track {
    background: transparent;
}

.modal-info::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.modal-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.modal-nav {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
    }

    .modal-body {
        flex-direction: column;
        height: auto;
        overflow-y: auto;
    }

    .modal-visual {
        min-height: 300px;
        flex: none;
    }

}

/* --- 404 Easter Egg --- */
#apple-target {
    position: absolute;
    bottom: 20px;
    right: 300px;
    /* Positioned on the floor */
    font-size: 3rem;
    color: var(--text-secondary);
    /* Grey apple */
    z-index: 5;
    transition: transform 0.3s, opacity 0.3s;
}

#android-egg {
    position: absolute;
    top: -35px;
    /* Peeking out */
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    font-size: 3.5rem;
    color: var(--primary-color);
    /* Android Green */
    cursor: pointer;
    z-index: 0;
    /* Behind the text slightly if needed, or visual trick */
    transition: top 0.3s;
}

#android-egg:hover {
    top: -50px;
    /* Peek more on hover */
}

/* Animation Classes */
#android-egg.eating-mode {
    position: fixed;
    /* Switch to fixed to jump out of relative container freely */
    z-index: 9999;
    top: auto;
    left: auto;
    /* Transformation will be handled via JS/Keyframes or dynamic calculation */
    /* Because relative start vs absolute target is hard with pure CSS keyframes without knowing exact coords */
}

.apple-eaten {
    transform: scale(0) rotate(180deg) !important;
    opacity: 0;
}