/* ======================================
   CSS VARIABLES — Light Theme
====================================== */
:root {
    --accent:       #6c63ff;
    --accent-2:     #ff6584;
    --accent-dark:  #5a52d5;

    --bg-body:        #f0f2f5;
    --bg-card:        #ffffff;
    --bg-sidebar:     #ffffff;
    --bg-alt:         #f8f9fc;

    --text-primary:   #2d3748;
    --text-secondary: #718096;
    --text-light:     #a0aec0;

    --border:      #e2e8f0;
    --shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow:      0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.12);

    --sidebar-width: 280px;
    --radius:        16px;
    --radius-sm:     8px;
    --transition:    all 0.3s ease;
}

/* ======================================
   RESET & BASE
====================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ======================================
   SIDEBAR
====================================== */
.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    box-shadow: var(--shadow);
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-inner {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Profile */
.profile { text-align: center; margin-bottom: 24px; }

.profile-photo {
    width: 110px; height: 110px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.profile-photo img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.profile-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-title {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 500;
    min-height: 1.2em;
}

.cursor { display: inline-block; animation: blink 0.8s infinite; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* Navigation */
.sidebar-nav ul li { margin-bottom: 4px; }

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-nav .nav-link i { width: 18px; text-align: center; font-size: 0.95rem; }

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--accent);
    background: rgba(108, 99, 255, 0.08);
}

.sidebar-nav .nav-link.active { font-weight: 600; }

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.social-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ======================================
   MOBILE NAV
====================================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    z-index: 200;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.mobile-name { font-weight: 600; color: var(--accent); font-size: 1rem; }

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 140;
}
.sidebar-overlay.active { display: block; }

/* ======================================
   MAIN CONTENT
====================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ======================================
   SECTION BASE
====================================== */
.section {
    min-height: 100vh;
    padding: 80px 0;
    position: relative;
}

.section-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header { text-align: center; margin-bottom: 56px; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-line {
    width: 50px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    margin: 0 auto 12px;
}

.section-subtitle { color: var(--text-secondary); font-size: 0.92rem; }

/* ======================================
   BUTTONS
====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(108, 99, 255, 0.45);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.accent { color: var(--accent); }

/* ======================================
   HOME SECTION
====================================== */
.section-home {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    overflow: hidden;
}

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    animation: floatBubble 8s ease-in-out infinite;
}

.bubble-1 { width: 320px; height: 320px; background: var(--accent);   top: -90px;  right: -70px;  animation-delay: 0s; }
.bubble-2 { width: 200px; height: 200px; background: var(--accent-2); bottom: 50px; right: 180px; animation-delay: 2s; }
.bubble-3 { width: 120px; height: 120px; background: var(--accent);   top: 180px;  right: 380px; animation-delay: 4s; }
.bubble-4 { width: 70px;  height: 70px;  background: var(--accent-2); top: 60px;   right: 260px; animation-delay: 1s; }

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

.home-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
    gap: 40px;
}

.home-text { flex: 1; max-width: 520px; }

.home-greeting { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 6px; }

.home-name {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.home-title {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 20px;
    min-height: 1.5em;
}

.cursor-hero { color: var(--accent); }
.blink { animation: blink 0.8s infinite; }

.home-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.home-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Home Image */
.home-image { flex-shrink: 0; }

.image-wrapper { position: relative; width: 280px; height: 280px; }

.image-bg-circle {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0.15;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

.image-wrapper img {
    width: 280px; height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

/* ======================================
   ABOUT SECTION
====================================== */
.section-about { background: var(--bg-alt); }

.about-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    margin-bottom: 56px;
}

.about-image { flex-shrink: 0; }

.about-img-card { position: relative; width: 280px; }

.about-img-card img {
    width: 280px; height: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -16px; right: -16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    box-shadow: var(--shadow);
}

.badge-number { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.badge-text   { font-size: 0.72rem; opacity: 0.9; line-height: 1.3; }

.about-text { flex: 1; }

.about-text h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-text p { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.92rem; }

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0 28px;
}

.info-item { display: flex; flex-direction: column; gap: 2px; }

.info-label {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i { color: var(--accent); font-size: 0.78rem; }

.info-value { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }

.info-value.available {
    color: #48bb78;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value.available::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #48bb78;
    animation: blink 1.5s infinite;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.grid-row {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.stat-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 10px; display: block; }

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label { font-size: 0.78rem; color: var(--text-secondary); }

/* ======================================
   RESUME SECTION
====================================== */
.section-resume { background: var(--bg-card); }

.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

.resume-col-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-col-title i { color: var(--accent); font-size: 1.1rem; }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item { position: relative; margin-bottom: 28px; }

.timeline-dot {
    position: absolute;
    left: -16px; top: 6px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.timeline-content:hover { box-shadow: var(--shadow-sm); transform: translateX(4px); }

.timeline-date {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.timeline-content h4 { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }

.timeline-place { font-size: 0.78rem; color: var(--text-secondary); margin-bottom: 6px; font-style: italic; }

.timeline-content p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ======================================
   SKILLS SECTION
====================================== */
.section-skills { background: var(--bg-alt); }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.skills-col-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.skill-item { margin-bottom: 18px; }

.skill-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--text-primary);
}

.skill-header span:last-child { color: var(--accent); }

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: 0%;
    transition: width 1.2s ease;
}

/* Skill Cards */
.skill-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    transition: var(--transition);
    text-align: center;
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.skill-card-icon {
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.skill-card-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.skill-card-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--bg-body);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Tech Icons */
.tech-icons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
    min-width: 70px;
}

.tech-icon:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tech-icon i      { font-size: 1.7rem; color: var(--accent); }
.tech-icon span   { font-size: 0.72rem; color: var(--text-secondary); font-weight: 500; }

/* ======================================
   PORTFOLIO SECTION
====================================== */
.section-portfolio { background: var(--bg-card); }

.portfolio-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.portfolio-img { aspect-ratio: 4/3; }

.portfolio-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.7);
    gap: 10px;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    padding: 20px;
    text-align: center;
}

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

.portfolio-overlay h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.portfolio-overlay p  { font-size: 0.78rem; opacity: 0.85; margin-bottom: 14px; }

.portfolio-links { display: flex; gap: 12px; }

.portfolio-links a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.88rem;
    transition: var(--transition);
}

.portfolio-links a:hover { background: #fff; color: var(--accent); }

/* ======================================
   CONTACT SECTION
====================================== */
.section-contact { background: var(--bg-alt); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }

.contact-info h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; }

.contact-info > p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.75;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; align-items: center; gap: 16px; }

.contact-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-label { display: block; font-size: 0.72rem; color: var(--text-light); margin-bottom: 2px; }
.contact-value { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }

/* Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-body);
    transition: var(--transition);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

/* ======================================
   FOOTER
====================================== */
.footer {
    background: var(--bg-card);
    text-align: center;
    padding: 22px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
}

/* fade-in artık AOS tarafından yönetiliyor */

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
    .stats-row       { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid  { grid-template-columns: repeat(2, 1fr); }
    .home-name       { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); z-index: 150; }
    .sidebar.open { transform: translateX(0); }

    .mobile-nav { display: flex; }

    .main-content { margin-left: 0; padding-top: 60px; }

    .home-inner { flex-direction: column-reverse; text-align: center; padding: 40px 20px; }
    .home-name  { font-size: 2rem; }
    .home-cta   { justify-content: center; }

    .image-wrapper,
    .image-wrapper img { width: 200px; height: 200px; }

    .section-container { padding: 0 20px; }

    .about-content   { flex-direction: column; align-items: center; }
    .about-info      { grid-template-columns: 1fr; }

    .resume-grid        { grid-template-columns: 1fr; }
    .skills-grid        { grid-template-columns: 1fr; }
    .skill-cards-grid   { grid-template-columns: repeat(2, 1fr); }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row     { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .tech-icons     { gap: 10px; }
    .tech-icon      { padding: 12px 14px; }
    .home-name      { font-size: 1.7rem; }
}

/* ======================================
   PROJELER (DETAYLI)
====================================== */
.section-projeler { background: var(--bg-alt); }

.project-list { display: flex; flex-direction: column; gap: 20px; }

.project-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    align-items: flex-start;
}

.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.project-left { flex-shrink: 0; }

.project-icon-box {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}

.project-body { flex: 1; min-width: 0; }

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.project-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.project-year {
    font-size: 0.76rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-action-links {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.project-action-links a {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.project-action-links a:hover { background: var(--accent); color: #fff; }

.project-desc {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 500;
    background: rgba(108, 99, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

/* ======================================
   ÖDÜLLER
====================================== */
.section-oduller { background: var(--bg-card); }

.awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.award-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.award-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d365, #fda085);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
}

.award-icon--silver { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.award-icon--bronze { background: linear-gradient(135deg, #cd7f32, #a0522d); }

.award-year {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(108, 99, 255, 0.1);
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 4px;
}

.award-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.award-org {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.award-org i { color: var(--accent); font-size: 0.75rem; }

.award-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ======================================
   SERTİFİKALAR
====================================== */
.section-sertifikalar { background: var(--bg-alt); }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.cert-badge {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    min-height: 90px;
}

.cert-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.cert-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
}

.cert-issuer {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-issuer i { color: var(--accent); font-size: 0.75rem; }

.cert-date {
    font-size: 0.76rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cert-date i { font-size: 0.73rem; }

.cert-verify {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

.cert-verify:hover { gap: 10px; }

/* ======================================
   BASINDA BEN
====================================== */
.section-basinda { background: var(--bg-card); }

.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.press-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.press-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.press-source {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.press-source i   { font-size: 1.4rem; }
.press-source span { font-size: 0.92rem; font-weight: 600; }

.press-content { padding: 20px 24px; flex: 1; display: flex; flex-direction: column; }

.press-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.press-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.press-excerpt {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.press-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
    align-self: flex-start;
}

.press-link:hover { gap: 10px; }

/* ======================================
   RESPONSIVE — NEW SECTIONS
====================================== */
@media (max-width: 1024px) {
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .project-card { flex-direction: column; }
    .awards-grid  { grid-template-columns: 1fr 1fr; }
    .cert-grid    { grid-template-columns: 1fr 1fr; }
    .press-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .awards-grid { grid-template-columns: 1fr; }
    .cert-grid   { grid-template-columns: 1fr; }
}

/* ======================================
   PROFESYONEL AÇIK / KOYU TEMA SİSTEMİ
   - Seçim yoksa cihaz temasını kullanır.
   - Kullanıcı butona basınca localStorage ile hatırlar.
====================================== */
html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;

    --accent:       #8b5cf6;
    --accent-2:     #22d3ee;
    --accent-dark:  #7c3aed;

    --bg-body:        #0b1020;
    --bg-card:        #151f32;
    --bg-sidebar:     #0f172a;
    --bg-alt:         #1b263a;

    --text-primary:   #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light:     #94a3b8;

    --border:      rgba(148, 163, 184, 0.28);
    --shadow-sm:   0 8px 24px rgba(0, 0, 0, 0.24);
    --shadow:      0 14px 38px rgba(0, 0, 0, 0.34);
    --shadow-lg:   0 20px 55px rgba(0, 0, 0, 0.45);
}

html,
body {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
}

/* Tema değiştirme butonu */
.theme-toggle {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 9999;
    min-width: 48px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}

.theme-toggle .theme-text {
    font-size: 13px;
}

/* Koyu temada genel kontrast düzeltmeleri */
html[data-theme="dark"] .section-home,
html[data-theme="dark"] .section-resume,
html[data-theme="dark"] .section-oduller,
html[data-theme="dark"] .section-basinda,
html[data-theme="dark"] .footer {
    background: var(--bg-body);
}

html[data-theme="dark"] .section-about,
html[data-theme="dark"] .section-skills,
html[data-theme="dark"] .section-projeler,
html[data-theme="dark"] .section-sertifikalar,
html[data-theme="dark"] .section-contact {
    background: #101827;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .mobile-nav {
    background: var(--bg-sidebar);
    border-color: var(--border);
}

html[data-theme="dark"] .profile-photo img,
html[data-theme="dark"] .image-wrapper img {
    border-color: var(--bg-card);
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .social-links a,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .tech-icon,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .award-card,
html[data-theme="dark"] .cert-card,
html[data-theme="dark"] .press-card,
html[data-theme="dark"] .timeline-content,
html[data-theme="dark"] .contact-form-wrapper,
html[data-theme="dark"] .contact-item,
html[data-theme="dark"] .about-img-card,
html[data-theme="dark"] .info-item {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .award-card,
html[data-theme="dark"] .cert-card,
html[data-theme="dark"] .press-card,
html[data-theme="dark"] .project-card {
    border: 1px solid var(--border);
}

html[data-theme="dark"] .skill-card {
    border-top: 3px solid var(--accent);
}

html[data-theme="dark"] .stat-card:hover,
html[data-theme="dark"] .skill-card:hover,
html[data-theme="dark"] .tech-icon:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .award-card:hover,
html[data-theme="dark"] .cert-card:hover,
html[data-theme="dark"] .press-card:hover,
html[data-theme="dark"] .timeline-content:hover {
    background: #202c43;
    border-color: rgba(139, 92, 246, 0.65);
    box-shadow: var(--shadow);
}

html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .home-name,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .resume-col-title,
html[data-theme="dark"] .skill-card-name,
html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .timeline-content h4,
html[data-theme="dark"] .project-title,
html[data-theme="dark"] .award-title,
html[data-theme="dark"] .cert-title,
html[data-theme="dark"] .press-title,
html[data-theme="dark"] .contact-info h3,
html[data-theme="dark"] .info-value,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--text-primary);
}

html[data-theme="dark"] p,
html[data-theme="dark"] .home-greeting,
html[data-theme="dark"] .home-desc,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .profile-title,
html[data-theme="dark"] .timeline-place,
html[data-theme="dark"] .timeline-content p,
html[data-theme="dark"] .project-desc,
html[data-theme="dark"] .project-year,
html[data-theme="dark"] .award-org,
html[data-theme="dark"] .award-desc,
html[data-theme="dark"] .cert-issuer,
html[data-theme="dark"] .cert-date,
html[data-theme="dark"] .press-date,
html[data-theme="dark"] .press-excerpt,
html[data-theme="dark"] .contact-info > p,
html[data-theme="dark"] .contact-label,
html[data-theme="dark"] .contact-value,
html[data-theme="dark"] .info-label,
html[data-theme="dark"] .tech-icon span,
html[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

html[data-theme="dark"] .accent,
html[data-theme="dark"] .sidebar-nav .nav-link:hover,
html[data-theme="dark"] .sidebar-nav .nav-link.active,
html[data-theme="dark"] .skill-card-icon,
html[data-theme="dark"] .stat-icon,
html[data-theme="dark"] .tech-icon i,
html[data-theme="dark"] .contact-icon,
html[data-theme="dark"] .timeline-date,
html[data-theme="dark"] .award-year,
html[data-theme="dark"] .press-link,
html[data-theme="dark"] .cert-verify,
html[data-theme="dark"] .project-action-links a:hover {
    color: var(--accent);
}

html[data-theme="dark"] .sidebar-nav .nav-link:hover,
html[data-theme="dark"] .sidebar-nav .nav-link.active,
html[data-theme="dark"] .award-year,
html[data-theme="dark"] .contact-icon {
    background: rgba(139, 92, 246, 0.16);
}

html[data-theme="dark"] .skill-card-tag,
html[data-theme="dark"] .tag {
    background: rgba(139, 92, 246, 0.18);
    color: #ddd6fe;
    border: 1px solid rgba(167, 139, 250, 0.48);
}

html[data-theme="dark"] .divider,
html[data-theme="dark"] .tech-icons,
html[data-theme="dark"] .cert-verify,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .skills-col-title {
    border-color: var(--border);
}

html[data-theme="dark"] .divider {
    background: var(--border);
}

html[data-theme="dark"] .timeline-dot {
    border-color: var(--bg-body);
}

html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group textarea {
    background: #0f172a;
    color: var(--text-primary);
    border-color: var(--border);
}

html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group textarea:focus {
    background: #111827;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.20);
}

html[data-theme="dark"] .form-group input::placeholder,
html[data-theme="dark"] .form-group textarea::placeholder {
    color: #94a3b8;
}

html[data-theme="dark"] .btn-primary {
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.32);
}

html[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.45);
}

html[data-theme="dark"] .bubble {
    opacity: 0.12;
}

html[data-theme="dark"] img {
    filter: brightness(.96) contrast(1.04);
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 72px;
        height: 40px;
        min-width: 40px;
        padding: 0 10px;
    }

    .theme-toggle .theme-text {
        display: none;
    }
}




/* ======================================
   MOBIL SAG BOSLUK / TASMA DUZELTMESI
====================================== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body {
    position: relative;
}

.main-content,
.section,
.section-container,
.home-inner,
.mobile-nav,
.sidebar {
    max-width: 100%;
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }

    .section {
        width: 100%;
        overflow-x: hidden;
    }

    .home-inner,
    .section-container {
        width: 100%;
        max-width: 100%;
    }

    .bubble {
        max-width: 70vw;
    }

    .bubble-1,
    .bubble-2,
    .bubble-3,
    .bubble-4 {
        right: auto;
    }
}

/* ======================================
   INSTAGRAM HIKAYE TARZI FOTO GALERI
====================================== */
.gallery-open {
    cursor: pointer;
}

.profile-photo.gallery-open,
.home-image.gallery-open .image-wrapper {
    transition: transform .25s ease, filter .25s ease;
}

.profile-photo.gallery-open:hover,
.home-image.gallery-open:hover .image-wrapper {
    transform: scale(1.03);
    filter: brightness(1.05);
}


/* Profil fotoğrafı çevresinde Instagram hikaye halkası */
.profile-photo.gallery-open,
.home-image.gallery-open .image-wrapper {
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.profile-photo.gallery-open img,
.home-image.gallery-open .image-wrapper img {
    position: relative;
    z-index: 2;
}

.profile-photo.gallery-open::before,
.home-image.gallery-open .image-wrapper::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, filter .25s ease;
}

.profile-photo.gallery-open::after,
.home-image.gallery-open .image-wrapper::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    z-index: 1;
    background: var(--bg-sidebar);
}

.home-image.gallery-open .image-wrapper::after {
    background: var(--bg-card);
}

.profile-photo.gallery-open.story-has-new::before,
.home-image.gallery-open.story-has-new .image-wrapper::before {
    opacity: 1;
    background: conic-gradient(
        from 0deg,
        #8b5cf6,
        #ec4899,
        #f97316,
        #facc15,
        #8b5cf6
    );
    animation: storyRingRotate 2.4s linear infinite, storyRingPulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, .75));
}

.profile-photo.gallery-open.story-seen::before,
.home-image.gallery-open.story-seen .image-wrapper::before {
    opacity: 1;
    background: conic-gradient(
        from 0deg,
        #94a3b8,
        #cbd5e1,
        #94a3b8
    );
    filter: none;
}

.profile-photo.gallery-open.story-has-new:hover::before,
.home-image.gallery-open.story-has-new:hover .image-wrapper::before {
    filter: drop-shadow(0 0 16px rgba(236, 72, 153, .9));
}

@keyframes storyRingRotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1); }
}

@keyframes storyRingPulse {
    0%, 100% { opacity: .9; }
    50% { opacity: 1; }
}

body.story-lock {
    overflow: hidden !important;
    touch-action: none;
}

.story-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

@supports (width: 100dvw) {
    .story-viewer {
        width: 100dvw;
        height: 100dvh;
    }
}

.story-viewer.active {
    display: block;
}

.story-bg {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, .94);
    backdrop-filter: blur(12px);
}

.story-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    touch-action: manipulation;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity .12s ease;
    pointer-events: none;
}

.story-progress {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    z-index: 4;
    display: flex;
    gap: 5px;
}

.story-progress-item {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, .28);
}

.story-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.story-progress-bar.active {
    animation: storyProgress 4.5s linear forwards;
}

@keyframes storyProgress {
    from { width: 0%; }
    to { width: 100%; }
}

.story-close {
    position: absolute;
    top: max(24px, calc(env(safe-area-inset-top) + 16px));
    right: max(16px, env(safe-area-inset-right));
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(15, 23, 42, .58);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.story-tap-area {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.story-tap-left {
    left: 0;
    width: 38%;
}

.story-tap-right {
    right: 0;
    width: 62%;
}

@media (min-width: 769px) {
    .story-frame {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: min(440px, 92vw);
        height: min(820px, 92vh);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
    }

    .story-image {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .story-frame {
        border-radius: 0;
    }

    .story-close {
        width: 40px;
        height: 40px;
        font-size: .95rem;
    }
}


/* Mobil sağ boşluk / yatay kayma kesin çözüm */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    .main-content,
    .section,
    .section-container,
    .home-inner,
    .about-content,
    .resume-grid,
    .skill-cards-grid,
    .project-card,
    .awards-grid,
    .cert-grid,
    .press-grid,
    .contact-grid {
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .story-viewer,
    .story-frame {
        width: 100vw;
        max-width: 100vw;
    }

    @supports (width: 100dvw) {
        .story-viewer,
        .story-frame {
            width: 100dvw;
            max-width: 100dvw;
        }
    }
}

/* ======================================
   MOBIL SCROLLBAR / SAG BOSLUK FIX
   Telefonda sağdaki mor gezinme çubuğunu gizler ve yatay taşmayı engeller.
====================================== */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        overflow-x: hidden !important;
    }

    .section,
    .section-home,
    .section-container,
    .home-inner,
    .about-content,
    .grid-row,
    .resume-grid,
    .skill-cards-grid,
    .project-list,
    .project-card,
    .awards-grid,
    .cert-grid,
    .press-grid,
    .contact-grid,
    .footer {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .bubble,
    .bubble-1,
    .bubble-2,
    .bubble-3,
    .bubble-4 {
        max-width: 100vw !important;
        pointer-events: none !important;
    }

    .story-viewer,
    .story-frame {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}


/* ======================================
   ZIYARETCI SAYACI
====================================== */
.visitor-widget {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.visitor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 170px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.20);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.visitor-card i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.28);
}

.visitor-number {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.visitor-card small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ======================================
   PREMIUM CARD HOVER — Mouse Takip Eden Işık + Hafif 3D
====================================== */
.premium-hover {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.premium-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(139, 92, 246, 0.24),
        rgba(236, 72, 153, 0.10) 22%,
        transparent 48%
    );
    transition: opacity .25s ease;
}

.premium-hover:hover::before {
    opacity: 1;
}

.premium-hover > * {
    position: relative;
    z-index: 1;
}

html[data-theme="dark"] .premium-hover::before {
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(167, 139, 250, 0.30),
        rgba(59, 130, 246, 0.10) 24%,
        transparent 50%
    );
}

html[data-theme="dark"] .visitor-card {
    background: rgba(139, 92, 246, 0.13);
    border-color: rgba(167, 139, 250, 0.28);
}

@media (max-width: 768px) {
    .visitor-widget {
        justify-content: center;
        margin-top: 20px;
    }

    .visitor-card {
        min-width: 145px;
        padding: 11px 13px;
    }

    .visitor-card i {
        width: 34px;
        height: 34px;
    }

    .visitor-number {
        font-size: 0.95rem;
    }

    .premium-hover::before {
        display: none;
    }
}


/* ======================================
   PROFIL ALTI MINI ZIYARETCI SAYACI
====================================== */
.profile-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.profile-mini-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    padding: 9px 8px;
    border-radius: 14px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.18);
    box-shadow: var(--shadow-sm);
}

.profile-mini-stat i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.72rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 18px rgba(108, 99, 255, 0.24);
}

.profile-mini-stat .visitor-number {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    white-space: nowrap;
}

.profile-mini-stat small {
    display: block;
    font-size: 0.55rem;
    line-height: 1.15;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

html[data-theme="dark"] .profile-mini-stat {
    background: rgba(139, 92, 246, 0.13);
    border-color: rgba(167, 139, 250, 0.26);
}

@media (max-width: 768px) {
    .profile-mini-stats {
        grid-template-columns: 1fr 1fr;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ======================================
   PROFIL FOTO HOVER EFEKTI — Robot göz yerine
====================================== */
.profile-photo.gallery-open,
.home-image.gallery-open .image-wrapper {
    transform-style: preserve-3d;
}

.profile-photo.gallery-open::after,
.home-image.gallery-open .image-wrapper::after {
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}

.profile-photo.gallery-open img,
.home-image.gallery-open .image-wrapper img {
    transition: transform .35s ease, filter .35s ease, box-shadow .35s ease;
}

.profile-photo.gallery-open:hover img,
.home-image.gallery-open:hover .image-wrapper img {
    transform: scale(1.045);
    filter: brightness(1.08) contrast(1.04) saturate(1.08);
    box-shadow: 0 18px 42px rgba(108, 99, 255, .32);
}

.profile-photo.gallery-open .profile-shine,
.home-image.gallery-open .image-wrapper .profile-shine {
    display: none;
}

.profile-photo.gallery-open:hover::before,
.home-image.gallery-open:hover .image-wrapper::before {
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, .95));
}

/* Hikaye halkasının üstüne cam yansıma efekti */
.profile-photo.gallery-open:hover,
.home-image.gallery-open:hover .image-wrapper {
    transform: translateY(-2px) scale(1.035);
}

/* ======================================
   MINI AI ASISTAN
====================================== */
.ai-assistant {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    font-family: 'Poppins', sans-serif;
}

.ai-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 16px 38px rgba(108, 99, 255, .38);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ai-fab:hover,
.ai-fab.active {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 20px 48px rgba(108, 99, 255, .52);
}

.ai-fab-pulse {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, .35);
    animation: aiPulse 1.9s ease-out infinite;
}

@keyframes aiPulse {
    0% { transform: scale(.88); opacity: .85; }
    100% { transform: scale(1.35); opacity: 0; }
}

.ai-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: 340px;
    max-width: calc(100vw - 28px);
    height: 470px;
    max-height: calc(100vh - 110px);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px) scale(.96);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.ai-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-header {
    padding: 16px;
    background: linear-gradient(135deg, rgba(108, 99, 255, .16), rgba(255, 101, 132, .12));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-header strong {
    display: block;
    font-size: .92rem;
    color: var(--text-primary);
}

.ai-header span {
    display: block;
    font-size: .72rem;
    color: var(--text-secondary);
}

.ai-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--bg-body);
    color: var(--text-secondary);
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: .8rem;
    line-height: 1.55;
}

.ai-message.bot {
    align-self: flex-start;
    background: var(--bg-alt);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
}

.ai-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    border-bottom-right-radius: 6px;
}

.ai-message a {
    color: var(--accent);
    font-weight: 700;
}

.ai-quick {
    display: flex;
    gap: 8px;
    padding: 0 14px 12px;
    overflow-x: auto;
}

.ai-quick button {
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: .72rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    cursor: pointer;
}

.ai-quick button:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.ai-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.ai-form input {
    flex: 1;
    border: 1px solid var(--border);
    background: var(--bg-body);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 10px 13px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: .8rem;
}

.ai-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, .12);
}

.ai-form button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    cursor: pointer;
}

html[data-theme="dark"] .ai-panel {
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

@media (max-width: 768px) {
    .ai-assistant {
        right: 14px;
        bottom: 14px;
    }

    .ai-fab {
        width: 54px;
        height: 54px;
    }

    .ai-panel {
        right: 0;
        bottom: 66px;
        width: min(340px, calc(100vw - 28px));
        height: min(465px, calc(100vh - 100px));
        border-radius: 20px;
    }
}


/* ======================================
   BASARI SAYACI — PREMIUM COUNTER
====================================== */
.achievement-counter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.achievement-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px 18px 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(108, 99, 255, 0.14), transparent 36%),
        var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.achievement-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.9s ease;
    pointer-events: none;
}

.achievement-card.counter-finished::before,
.achievement-card:hover::before {
    transform: translateX(130%);
}

.achievement-card::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.9;
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 14px 30px rgba(108, 99, 255, 0.28);
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.achievement-number {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
}

.achievement-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.achievement-note {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.45;
    max-width: 160px;
}

.achievement-counter.counter-started .achievement-card {
    animation: achievementPop 0.55s ease both;
}

.achievement-counter.counter-started .achievement-card:nth-child(2) { animation-delay: .08s; }
.achievement-counter.counter-started .achievement-card:nth-child(3) { animation-delay: .16s; }
.achievement-counter.counter-started .achievement-card:nth-child(4) { animation-delay: .24s; }

@keyframes achievementPop {
    0% { opacity: .4; transform: translateY(14px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

html[data-theme="dark"] .achievement-card {
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.23), transparent 38%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .achievement-number,
html[data-theme="dark"] .achievement-label {
    color: #f8fafc;
}

html[data-theme="dark"] .achievement-note {
    color: #cbd5e1;
}

@media (max-width: 1024px) {
    .achievement-counter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .achievement-counter {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 34px;
    }

    .achievement-card {
        min-height: 165px;
        padding: 22px 12px 20px;
        border-radius: 14px;
    }

    .achievement-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.05rem;
    }

    .achievement-number { font-size: 1.85rem; }
    .achievement-label { font-size: 0.74rem; }
    .achievement-note { font-size: 0.64rem; }
}


/* ======================================
   PREMIUM HOVER PRO — Spotlight + Neon + 3D Tilt
   Proje / ödül / sertifika / yetenek / başarı kartlarında çalışır.
====================================== */
.premium-tilt-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition:
        transform .18s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        background-color .25s ease;
}

.premium-tilt-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(
            420px circle at var(--mouse-x) var(--mouse-y),
            rgba(139, 92, 246, 0.28),
            rgba(236, 72, 153, 0.12) 28%,
            transparent 62%
        );
    transition: opacity .25s ease;
}

.premium-tilt-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.18) 48%,
            transparent 58%,
            transparent 100%
        );
    transform: translateX(-120%);
}

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

.premium-tilt-card:hover,
.premium-tilt-card.premium-hover-active,
.premium-tilt-card.premium-touch-glow {
    border-color: rgba(139, 92, 246, 0.55) !important;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(139, 92, 246, 0.18),
        0 0 32px rgba(139, 92, 246, 0.18) !important;
}

.premium-tilt-card:hover::before,
.premium-tilt-card.premium-hover-active::before,
.premium-tilt-card.premium-touch-glow::before {
    opacity: 1;
}

.premium-tilt-card:hover::after,
.premium-tilt-card.premium-hover-active::after {
    animation: premiumCardShine 1.05s ease forwards;
}

@keyframes premiumCardShine {
    0% { opacity: 0; transform: translateX(-120%); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateX(120%); }
}

html[data-theme="dark"] .premium-tilt-card:hover,
html[data-theme="dark"] .premium-tilt-card.premium-hover-active,
html[data-theme="dark"] .premium-tilt-card.premium-touch-glow {
    border-color: rgba(167, 139, 250, 0.70) !important;
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(167, 139, 250, 0.24),
        0 0 38px rgba(139, 92, 246, 0.30) !important;
}

html[data-theme="dark"] .premium-tilt-card::before {
    background:
        radial-gradient(
            460px circle at var(--mouse-x) var(--mouse-y),
            rgba(167, 139, 250, 0.33),
            rgba(59, 130, 246, 0.13) 30%,
            transparent 64%
        );
}

html[data-theme="dark"] .premium-tilt-card::after {
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, 0.12) 48%,
            transparent 58%,
            transparent 100%
        );
}

@media (max-width: 768px) {
    .premium-tilt-card {
        transform: none !important;
    }

    .premium-tilt-card::before {
        background:
            radial-gradient(
                circle at center,
                rgba(139, 92, 246, 0.20),
                rgba(236, 72, 153, 0.08) 34%,
                transparent 68%
            );
    }

    .premium-tilt-card:hover::after,
    .premium-tilt-card.premium-hover-active::after {
        animation: none;
    }
}


/* ======================================
   KOD YAĞMURU KAPALI
====================================== */
.code-rain-canvas {
    display: none !important;
}
/* ======================================
   TÜRKİYE YARIŞMA HARİTASI
====================================== */
.section-map {
    background: var(--bg-alt);
    overflow: hidden;
}

.turkey-map-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .18), transparent 34%),
        radial-gradient(circle at 85% 70%, rgba(236, 72, 153, .14), transparent 38%),
        var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.map-glow {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, .12), transparent, rgba(59, 130, 246, .10), transparent);
    animation: mapGlowSpin 12s linear infinite;
    pointer-events: none;
}

@keyframes mapGlowSpin {
    to { transform: rotate(360deg); }
}

.map-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.map-kicker {
    display: inline-flex;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .14em;
    font-size: .72rem;
    margin-bottom: 4px;
}

.map-topline h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .22);
    font-weight: 700;
    font-size: .78rem;
    white-space: nowrap;
}

.turkey-map-area {
    position: relative;
    z-index: 1;
    min-height: 330px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(59, 130, 246, .05)),
        rgba(255, 255, 255, .32);
    border: 1px solid var(--border);
    overflow: hidden;
}

html[data-theme="dark"] .turkey-map-area {
    background:
        linear-gradient(135deg, rgba(139, 92, 246, .13), rgba(59, 130, 246, .08)),
        rgba(15, 23, 42, .55);
}

.turkey-map-svg {
    position: absolute;
    inset: 16px 18px 42px;
    width: calc(100% - 36px);
    height: calc(100% - 58px);
    filter: drop-shadow(0 18px 35px rgba(15, 23, 42, .10));
}

.turkey-shape {
    fill: rgba(139, 92, 246, .10);
    stroke: rgba(139, 92, 246, .38);
    stroke-width: 3;
}

.map-route {
    fill: none;
    stroke: rgba(236, 72, 153, .55);
    stroke-width: 3;
    stroke-dasharray: 9 9;
    animation: routeMove 2.4s linear infinite;
}

@keyframes routeMove {
    to { stroke-dashoffset: -36; }
}

.map-marker {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: .68rem;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(255,255,255,.6);
}

.map-marker span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: 3px solid var(--bg-card);
    box-shadow:
        0 0 0 0 rgba(139, 92, 246, .55),
        0 0 22px rgba(139, 92, 246, .55);
    animation: markerPulse 1.8s ease-out infinite;
}

@keyframes markerPulse {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, .55), 0 0 22px rgba(139, 92, 246, .55); }
    70% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0), 0 0 22px rgba(139, 92, 246, .55); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0), 0 0 22px rgba(139, 92, 246, .55); }
}

.map-marker:hover span,
.map-marker:focus span {
    transform: scale(1.25);
}

.marker-edirne { left: 14%; top: 48%; }
.marker-istanbul { left: 22%; top: 46%; }
.marker-bogazici { left: 25%; top: 39%; }
.marker-gebze { left: 30%; top: 48%; }
.marker-sakarya { left: 36%; top: 44%; }
.marker-izmir { left: 27%; top: 68%; }
.marker-denizli { left: 39%; top: 70%; }
.marker-ankara { left: 53%; top: 53%; }

.map-info-panel {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 16px;
    color: var(--text-secondary);
    background: rgba(139, 92, 246, .09);
    border: 1px solid rgba(139, 92, 246, .18);
    font-size: .86rem;
    font-weight: 600;
}

.map-info-panel i {
    color: var(--accent);
}

.map-info-panel.active {
    color: var(--text-primary);
    box-shadow: 0 0 24px rgba(139, 92, 246, .14);
}

/* ======================================
   ELEKTRİK / NEON HOVER DOKUNUŞU
====================================== */
.premium-tilt-card.premium-hover-active,
.premium-tilt-card.premium-touch-glow {
    animation: electricCardFlicker .95s ease-in-out infinite alternate;
}

@keyframes electricCardFlicker {
    0% {
        box-shadow:
            0 18px 45px rgba(15, 23, 42, 0.16),
            0 0 0 1px rgba(139, 92, 246, 0.16),
            0 0 22px rgba(139, 92, 246, 0.14) !important;
    }
    45% {
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.18),
            0 0 0 1px rgba(236, 72, 153, 0.26),
            0 0 28px rgba(236, 72, 153, 0.18) !important;
    }
    100% {
        box-shadow:
            0 22px 56px rgba(15, 23, 42, 0.20),
            0 0 0 1px rgba(96, 165, 250, 0.24),
            0 0 34px rgba(96, 165, 250, 0.18) !important;
    }
}

html[data-theme="dark"] .premium-tilt-card.premium-hover-active,
html[data-theme="dark"] .premium-tilt-card.premium-touch-glow {
    animation-name: electricCardFlickerDark;
}

@keyframes electricCardFlickerDark {
    0% { box-shadow: 0 22px 60px rgba(0,0,0,.44), 0 0 0 1px rgba(167,139,250,.24), 0 0 32px rgba(139,92,246,.25) !important; }
    50% { box-shadow: 0 24px 64px rgba(0,0,0,.48), 0 0 0 1px rgba(236,72,153,.34), 0 0 44px rgba(236,72,153,.28) !important; }
    100% { box-shadow: 0 26px 70px rgba(0,0,0,.50), 0 0 0 1px rgba(96,165,250,.34), 0 0 46px rgba(96,165,250,.24) !important; }
}

@media (max-width: 768px) {
    .code-rain-canvas { opacity: .35; }
    .turkey-map-card { padding: 18px; border-radius: 22px; }
    .map-topline { flex-direction: column; }
    .turkey-map-area { min-height: 260px; }
    .map-marker strong { display: none; }
    .map-marker span { width: 15px; height: 15px; }
    .marker-istanbul { left: 23%; top: 45%; }
    .marker-bogazici { left: 27%; top: 38%; }
    .marker-ankara { left: 55%; top: 54%; }
    .map-info-panel { font-size: .78rem; align-items: flex-start; }
    .premium-tilt-card.premium-hover-active,
    .premium-tilt-card.premium-touch-glow { animation-duration: 1.4s; }
}


/* ======================================
   YARIŞMA YOLCULUĞU — Apple Tarzı Timeline
====================================== */
.section-journey {
    background:
        radial-gradient(circle at 12% 18%, rgba(139, 92, 246, .12), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, .10), transparent 30%),
        var(--bg-alt);
    overflow: hidden;
}

.journey-wrapper {
    position: relative;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(139, 92, 246, .10), rgba(15, 23, 42, .04));
    border: 1px solid rgba(139, 92, 246, .22);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .18);
    overflow: hidden;
}

html[data-theme="light"] .journey-wrapper {
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(238, 242, 255, .88));
    box-shadow: 0 24px 55px rgba(15, 23, 42, .10);
}

.journey-bg-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}

.journey-summary {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 34px;
}

.journey-summary-item {
    padding: 18px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(139, 92, 246, .22);
    text-align: center;
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .journey-summary-item {
    background: rgba(255, 255, 255, .72);
}

.journey-summary-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 6px;
}

.journey-summary-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.journey-timeline {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.journey-line {
    position: absolute;
    left: 50%;
    top: 150px;
    bottom: 36px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--accent), rgba(236, 72, 153, .75), rgba(249, 115, 22, .55));
    box-shadow: 0 0 28px rgba(139, 92, 246, .55);
    opacity: .8;
}

.journey-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 72px 1fr;
    align-items: center;
    gap: 18px;
}

.journey-item:nth-child(odd) .journey-card {
    grid-column: 1;
    text-align: right;
}

.journey-item:nth-child(even) .journey-card {
    grid-column: 3;
}

.journey-item:nth-child(odd) .journey-dot,
.journey-item:nth-child(even) .journey-dot {
    grid-column: 2;
    grid-row: 1;
}

.journey-dot {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: 4px solid rgba(255,255,255,.12);
    box-shadow: 0 0 0 8px rgba(139, 92, 246, .10), 0 0 30px rgba(139, 92, 246, .45);
    animation: journeyPulse 2.2s ease-in-out infinite;
}

.journey-dot.gold { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 0 0 8px rgba(245,158,11,.12), 0 0 30px rgba(245,158,11,.45); }
.journey-dot.international { background: linear-gradient(135deg, #06b6d4, #8b5cf6); }
.journey-dot.current { background: linear-gradient(135deg, #22c55e, #8b5cf6); }

@keyframes journeyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.journey-card {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(139, 92, 246, .20);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .14);
    backdrop-filter: blur(16px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
    overflow: hidden;
}

html[data-theme="light"] .journey-card {
    background: rgba(255,255,255,.82);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.journey-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, .22), transparent 42%);
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
}

.journey-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, .55);
    box-shadow: 0 22px 55px rgba(139, 92, 246, .20);
}

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

.journey-card.featured {
    border-color: rgba(249, 115, 22, .35);
}

.journey-card.current-card {
    border-color: rgba(34, 197, 94, .35);
}

.journey-year {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .14);
    color: var(--accent);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .5px;
}

.journey-card h3 {
    position: relative;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.journey-card p {
    position: relative;
    color: var(--text-secondary);
    font-size: .84rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.journey-tags {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: inherit;
}

.journey-tags span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .13);
    color: var(--accent);
    border: 1px solid rgba(139, 92, 246, .23);
    font-size: .68rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .journey-wrapper { padding: 20px; border-radius: 24px; }
    .journey-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .journey-line { left: 29px; top: 170px; bottom: 30px; }
    .journey-item { grid-template-columns: 58px 1fr; gap: 14px; align-items: flex-start; }
    .journey-item:nth-child(odd) .journey-card,
    .journey-item:nth-child(even) .journey-card { grid-column: 2; text-align: left; }
    .journey-item:nth-child(odd) .journey-dot,
    .journey-item:nth-child(even) .journey-dot { grid-column: 1; }
    .journey-dot { width: 48px; height: 48px; font-size: .9rem; }
    .journey-card { padding: 18px; border-radius: 18px; }
    .journey-tags { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .journey-summary-number { font-size: 1.25rem; }
    .journey-summary-label { font-size: .68rem; }
    .journey-card h3 { font-size: .92rem; }
    .journey-card p { font-size: .78rem; }
}


/* ======================================
   ROBITRON AI — Premium HUD
====================================== */
.robitron-ai {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    font-family: 'Poppins', sans-serif;
}

.robitron-ai-hint {
    position: absolute;
    right: 72px;
    bottom: 10px;
    width: max-content;
    max-width: 220px;
    padding: 10px 13px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .88);
    color: #fff;
    font-size: .74rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.28);
    border: 1px solid rgba(139, 92, 246, .35);
    opacity: 0;
    transform: translateX(12px) scale(.96);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}

.robitron-ai-hint.show { opacity: 1; transform: translateX(0) scale(1); }
.robitron-ai-hint.hide { opacity: 0; transform: translateX(12px) scale(.96); }

.ai-fab {
    position: relative;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #a78bfa, #6d28d9 55%, #312e81);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.38rem;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(109, 40, 217, .45), inset 0 0 18px rgba(255,255,255,.12);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: visible;
}

.ai-fab:hover,
.ai-fab.active {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 24px 58px rgba(139, 92, 246, .58), inset 0 0 22px rgba(255,255,255,.16);
}

.ai-fab-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(139,92,246,.1), rgba(236,72,153,.9), rgba(6,182,212,.85), transparent 70%);
    animation: aiRingRotate 2.4s linear infinite;
    z-index: -1;
}

.ai-fab-core {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.22);
    backdrop-filter: blur(8px);
}

.ai-fab-status {
    position: absolute;
    right: 4px;
    bottom: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 16px rgba(34,197,94,.85);
}

@keyframes aiRingRotate { to { transform: rotate(360deg); } }

.ai-panel {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 370px;
    max-width: calc(100vw - 28px);
    height: 545px;
    max-height: calc(100vh - 110px);
    background: linear-gradient(180deg, rgba(20, 26, 46, .96), rgba(11, 17, 32, .98));
    color: #f8fafc;
    border: 1px solid rgba(139, 92, 246, .28);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(18px) scale(.96);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.ai-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-hud-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(139,92,246,.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(139,92,246,.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 80%);
    opacity: .35;
}

.ai-header {
    position: relative;
    padding: 18px;
    background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(6,182,212,.09));
    border-bottom: 1px solid rgba(139, 92, 246, .22);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 28px rgba(139,92,246,.42);
}

.ai-avatar-eye {
    position: absolute;
    bottom: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #dffcff;
    box-shadow: 0 0 10px #67e8f9;
    animation: aiBlink 4s infinite;
}
.ai-avatar-eye.left { left: 16px; }
.ai-avatar-eye.right { right: 16px; }
@keyframes aiBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

.ai-title-area { position: relative; z-index: 1; }
.ai-system {
    display: inline-block;
    font-size: .6rem;
    letter-spacing: 1.6px;
    color: #67e8f9;
    margin-bottom: 2px;
}
.ai-header strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    letter-spacing: .5px;
}
.ai-header span:not(.ai-system) {
    display: block;
    font-size: .72rem;
    color: #cbd5e1;
}

.ai-close {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 50%;
    background: rgba(15,23,42,.44);
    color: #cbd5e1;
    cursor: pointer;
}
.ai-close:hover { color: #fff; border-color: rgba(139,92,246,.5); }

.ai-messages {
    position: relative;
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 17px;
    font-size: .8rem;
    line-height: 1.56;
    position: relative;
}
.ai-message.bot {
    align-self: flex-start;
    background: rgba(255,255,255,.075);
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,.08);
    border-bottom-left-radius: 6px;
}
.ai-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 10px 24px rgba(109,40,217,.22);
}
.ai-message a { color: #a5f3fc; font-weight: 700; }

.ai-typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 4px;
    border-radius: 50%;
    background: #a78bfa;
    animation: aiTyping 1s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: .12s; }
.ai-typing span:nth-child(3) { animation-delay: .24s; }
@keyframes aiTyping { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }

.ai-quick {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 0 14px 13px;
    overflow-x: auto;
}
.ai-quick button {
    border: 1px solid rgba(139,92,246,.28);
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: .72rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ai-quick button:hover {
    color: #fff;
    border-color: #8b5cf6;
    background: rgba(139,92,246,.22);
    transform: translateY(-2px);
}

.ai-form {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 13px;
    border-top: 1px solid rgba(139, 92, 246, .22);
    background: rgba(15, 23, 42, .7);
}
.ai-form input {
    flex: 1;
    border: 1px solid rgba(139,92,246,.28);
    background: rgba(255,255,255,.07);
    color: #f8fafc;
    border-radius: 999px;
    padding: 11px 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: .8rem;
}
.ai-form input::placeholder { color: rgba(226,232,240,.72); }
.ai-form input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}
.ai-form button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6,182,212,.18);
}

@media (max-width: 768px) {
    .robitron-ai { right: 14px; bottom: 14px; }
    .robitron-ai-hint { display: none; }
    .ai-fab { width: 56px; height: 56px; }
    .ai-fab-core { width: 42px; height: 42px; }
    .ai-panel {
        right: 0;
        bottom: 68px;
        width: min(370px, calc(100vw - 28px));
        height: min(540px, calc(100vh - 100px));
        border-radius: 22px;
    }
}


/* ======================================
   SAG TIK / KOPYALAMA KORUMASI
====================================== */
html,
body {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

body,
.sidebar,
.main-content,
.section,
.project-card,
.award-card,
.cert-card,
.press-card,
.skill-card,
.stat-card,
.tech-icon {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea,
.allow-select,
.contact-value,
.press-link,
a[href^="mailto:"],
a[href^="tel:"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}


/* ======================================
   LIVE PROJECT BADGE — NEXTRON V2
====================================== */
.live-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin: 2px 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(108, 99, 255, 0.14));
    border: 1px solid rgba(34, 197, 94, 0.32);
    color: var(--text-primary);
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.12), inset 0 0 18px rgba(108, 99, 255, 0.06);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

.live-project-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: translateX(-120%);
    animation: liveBadgeShine 3.6s ease-in-out infinite;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.62);
    animation: livePulse 1.6s ease-out infinite;
    flex-shrink: 0;
}

.live-label {
    color: #22c55e;
    font-weight: 700;
}

.live-project-badge strong {
    color: var(--text-primary);
    font-weight: 700;
}

html[data-theme="dark"] .live-project-badge {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(139, 92, 246, 0.16));
    border-color: rgba(34, 197, 94, 0.38);
    box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 0 22px rgba(34, 197, 94, 0.10);
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.62); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes liveBadgeShine {
    0%, 55% { transform: translateX(-120%); }
    78%, 100% { transform: translateX(120%); }
}

@media (max-width: 768px) {
    .live-project-badge {
        font-size: 0.76rem;
        padding: 8px 12px;
        margin-bottom: 12px;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ======================================
   PROFIL ALTI AKTIF PROJE KARTI
====================================== */
.profile-active-project.live-project-badge {
    width: 100%;
    margin: 12px auto 0;
    padding: 12px 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border-radius: 15px;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.profile-active-project.live-project-badge .live-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.profile-active-project.live-project-badge strong {
    font-size: 0.78rem;
}

.profile-active-project.live-project-badge::before {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .profile-active-project.live-project-badge {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* ======================================
   SIDEBAR PROFIL ALTI BOSLUK DUZELTME
   Aktif proje karti ile menu arasindaki fazla boslugu azaltir.
====================================== */
.sidebar .profile {
    margin-bottom: 6px !important;
}

.sidebar .profile + .divider {
    margin: 1px 0 16px !important;
}

.profile-active-project.live-project-badge {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.sidebar-nav ul li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .sidebar .profile {
        margin-bottom: 6px !important;
    }

    .sidebar .profile + .divider {
        margin: 10px 0 14px !important;
    }
}
