/*
Theme Name: Portfolio Theme
Theme URI: https://wordpress.org/
Author: Aydın Diler
Author URI: https://wordpress.org/
Description: Modern ve profesyonel bir portfolio teması. Kişisel portföy, blog ve CV siteleri için tasarlanmıştır.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portfolio-theme
Tags: portfolio, blog, custom-menu, featured-images, translation-ready, rtl-language-support
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a5f;
    --primary-light: #4a90d9;
    --primary-glow: rgba(30, 58, 95, 0.4);
    --accent: #5bb8f5;
    --accent-glow: rgba(91, 184, 245, 0.3);
    --bg-body: #0f1923;
    --bg-surface: rgba(255, 255, 255, 0.05);
    --bg-surface-hover: rgba(255, 255, 255, 0.09);
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-sidebar: rgba(12, 20, 30, 0.95);
    --text-heading: #e8ecf1;
    --text-body: #a8b8c8;
    --text-muted: #607080;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(74, 144, 217, 0.45);
    --glass-blur: 20px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-glow: 0 0 40px rgba(30, 58, 95, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #2d6cb5 50%, #5bb8f5 100%);
    --gradient-surface: linear-gradient(135deg, rgba(30, 58, 95, 0.1), rgba(91, 184, 245, 0.05));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   LAYOUT
   ============================================ */

.site-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */

.left-sidebar {
    width: 300px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.profile-section {
    text-align: center;
    color: var(--text-heading);
}

/* Profile Image with Animated Glow Ring */
.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-surface);
    border: 3px solid rgba(30, 58, 95, 0.3);
    box-shadow: 0 0 30px rgba(30, 58, 95, 0.15),
                0 0 60px rgba(30, 58, 95, 0.05);
    transition: all var(--transition-smooth);
    animation: glowBreath 4s ease-in-out infinite;
}

@keyframes glowBreath {
    0%, 100% { box-shadow: 0 0 25px rgba(30, 58, 95, 0.12), 0 0 50px rgba(30, 58, 95, 0.04); }
    50% { box-shadow: 0 0 35px rgba(30, 58, 95, 0.25), 0 0 70px rgba(30, 58, 95, 0.08); }
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.25;
    z-index: -1;
    animation: rotateGlow 6s linear infinite;
}

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

.profile-image:hover {
    transform: scale(1.06);
    border-color: rgba(30, 58, 95, 0.5);
    box-shadow: 0 0 45px rgba(30, 58, 95, 0.3), 0 0 80px rgba(30, 58, 95, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-smooth);
    display: block;
    position: relative;
    z-index: 1;
}

.profile-image:hover img {
    transform: scale(1.08);
}

.profile-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: var(--text-muted);
}

.profile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-heading);
    letter-spacing: -0.5px;
}

.profile-title {
    font-size: 15px;
    color: var(--primary-light);
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: all var(--transition-smooth);
}

.social-link:hover {
    background: rgba(30, 58, 95, 0.15);
    border-color: var(--border-hover);
    color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.2);
}

/* Contact Info */
.contact-info {
    margin-bottom: 36px;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-body);
    font-size: 14px;
}

.contact-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-light);
    font-size: 14px;
}

/* Download CV Button */
.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    width: 100%;
    justify-content: center;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #ffffff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.download-cv-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.download-cv-btn:hover::before {
    transform: translateX(100%);
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    margin-left: 300px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-body);
    position: relative;
}

.content-wrapper {
    padding: 72px 88px 72px 72px;
    max-width: 1400px;
}

/* Scroll-reveal animation applied via JS */
.reveal-element {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.revealed > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.revealed > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.revealed > *:nth-child(9) { transition-delay: 0.45s; }

/* ============================================
   RIGHT NAVIGATION
   ============================================ */

.right-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 16px 12px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    border-radius: var(--radius-sm);
}

.nav-icon:hover {
    background: var(--bg-surface-hover);
    color: var(--primary-light);
}

.nav-icon.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    padding: 14px 32px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #ffffff;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
    font-size: 15px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-secondary {
    padding: 14px 32px;
    background: transparent;
    color: var(--text-heading);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-smooth);
    font-size: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px rgba(30, 58, 95, 0.1);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 14px;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 14px;
    font-weight: 600;
}

.about-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.about-text p,
.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 24px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* About Image */
.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 460px;
    height: 460px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 3px solid rgba(30, 58, 95, 0.2);
    box-shadow: 0 0 60px rgba(30, 58, 95, 0.1),
                0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-smooth);
    display: block;
    position: relative;
}

.about-image:hover img {
    transform: scale(1.02);
    border-color: rgba(30, 58, 95, 0.35);
    box-shadow: 0 0 80px rgba(30, 58, 95, 0.18),
                0 24px 70px rgba(0, 0, 0, 0.35);
}

.about-image > div {
    width: 100%;
    max-width: 460px;
    height: 460px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   STATS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 72px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

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

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    margin-bottom: 52px;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 17px;
    color: var(--text-muted);
}

/* ============================================
   FILTER TABS
   ============================================ */

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px;
}

.filter-tab {
    padding: 10px 22px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-heading);
    background: var(--bg-surface-hover);
}

.filter-tab.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

/* ============================================
   PORTFOLIO
   ============================================ */

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

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border);
}

.portfolio-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.portfolio-item img,
.portfolio-placeholder {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.portfolio-placeholder {
    background: var(--gradient-surface);
    position: relative;
}

.portfolio-placeholder::after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.3;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    align-items: flex-end;
    padding: 32px;
    color: #ffffff;
}

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

.portfolio-info {
    width: 100%;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
}

/* ============================================
   RESUME / TIMELINE
   ============================================ */

.resume-section {
    margin-bottom: 64px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 64px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--bg-body);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 12px var(--primary-glow);
}

.timeline-date {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.timeline-company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 14px;
}

.timeline-description {
    color: var(--text-body);
    line-height: 1.7;
    font-size: 14px;
}

/* ============================================
   SKILLS
   ============================================ */

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

.skills-column {
    width: 100%;
}

.skills-list {
    display: flex;
    flex-direction: column;
}

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

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

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 15px;
}

.skill-percentage {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 15px;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--primary-light);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
    opacity: 0;
    transition: opacity 0.3s ease 1s;
}

.skill-bar:hover .skill-progress::after {
    opacity: 1;
}

/* ============================================
   KNOWLEDGES
   ============================================ */

.knowledges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.knowledge-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    color: var(--text-body);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
}

.knowledge-tag:hover {
    background: rgba(30, 58, 95, 0.12);
    border-color: var(--border-hover);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.15);
}

/* ============================================
   BLOG
   ============================================ */

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

.blog-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.blog-placeholder {
    width: 100%;
    height: 240px;
    background: var(--gradient-surface);
    position: relative;
}

.blog-placeholder::after {
    content: '\f1ea';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: var(--text-muted);
    opacity: 0.2;
}

.blog-content {
    padding: 28px;
}

.blog-category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(30, 58, 95, 0.15);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.blog-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-title a {
    color: var(--text-heading);
    transition: color var(--transition-fast);
}

.blog-title a:hover {
    color: var(--primary-light);
}

.blog-excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}

.pagination-wrapper {
    margin-top: 48px;
    text-align: center;
}

.pagination-wrapper .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.pagination-wrapper .page-numbers li {
    display: inline-block;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-block;
    padding: 10px 16px;
    color: var(--text-body);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-size: 14px;
}

.pagination-wrapper .page-numbers a:hover,
.pagination-wrapper .page-numbers .current {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

/* ============================================
   CONTACT
   ============================================ */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 52px;
}

.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.contact-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-light);
    position: relative;
    z-index: 1;
    transition: all var(--transition-smooth);
}

.contact-card:hover .contact-card-icon {
    background: rgba(30, 58, 95, 0.2);
    transform: scale(1.08);
}

.contact-card-text {
    font-size: 15px;
    color: var(--text-heading);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form {
    max-width: 860px;
    margin-top: 52px;
}

.contact-form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--text-heading);
}

.form-notice {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 0 0 20px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}

.form-notice-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.form-notice-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-heading);
    transition: all var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15), 0 0 20px rgba(30, 58, 95, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.submit-btn {
    padding: 14px 40px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

/* ============================================
   MAP (hidden but safe)
   ============================================ */

.map-container {
    margin-top: 52px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   SINGLE POST / DEFAULT PAGE CONTENT
   ============================================ */

.entry-content,
.page-content {
    color: var(--text-body);
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h1,
.page-content h2,
.page-content h3 {
    color: var(--text-heading);
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 16px;
    margin-top: 32px;
}

.entry-content p,
.page-content p {
    margin-bottom: 16px;
}

.entry-content a,
.page-content a {
    color: var(--primary-light);
    text-decoration: underline;
    text-decoration-color: rgba(167, 139, 250, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.entry-content a:hover,
.page-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

.entry-content img,
.page-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.entry-content blockquote,
.page-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-heading);
    font-style: italic;
}

.entry-content code,
.page-content code {
    background: var(--bg-surface);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

.entry-content pre,
.page-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border);
    margin: 24px 0;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.entry-content li,
.page-content li {
    margin-bottom: 8px;
}

/* ============================================
   RESPONSIVE: <= 1400px
   ============================================ */

@media (max-width: 1400px) {
    .left-sidebar {
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
    }

    .content-wrapper {
        padding: 56px 64px 56px 56px;
    }
}

/* ============================================
   RESPONSIVE: <= 1200px
   ============================================ */

@media (max-width: 1200px) {
    .about-section {
        gap: 48px;
    }

    .content-wrapper {
        padding: 48px 52px 48px 48px;
    }
}

/* ============================================
   RESPONSIVE: <= 968px (TABLET / MOBILE)
   ============================================ */

@media (max-width: 968px) {
    .site-wrapper {
        flex-direction: column;
    }

    .left-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        min-height: auto;
        padding: 32px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        margin-left: 0;
    }

    .right-nav {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        transform: none;
        padding: 10px;
        border-radius: var(--radius-lg);
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
        background: rgba(22, 22, 42, 0.92);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: 2000;
        border: 1px solid var(--border);
    }

    .nav-icons {
        flex-direction: row;
        gap: 6px;
        justify-content: space-between;
    }

    .nav-icon {
        width: auto;
        height: 50px;
        flex: 1;
        border-radius: var(--radius-sm);
    }

    .nav-icon:hover {
        transform: translateY(-2px);
    }

    .nav-icon.active {
        transform: none;
        box-shadow: 0 0 20px var(--primary-glow);
    }

    .nav-icon.active::after {
        display: none;
    }

    .profile-image {
        width: 140px;
        height: 140px;
        margin: 0 auto 18px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-title {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .about-section,
    .portfolio-grid,
    .blog-grid,
    .skills-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

    .content-wrapper {
        padding: 36px 20px 120px;
    }

    .about-image img {
        max-width: 320px;
        height: 320px;
    }

    .about-image > div {
        max-width: 300px;
        height: 300px;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        padding-left: 54px;
    }

    .timeline-item::before {
        left: 8px;
    }

    .portfolio-item img,
    .portfolio-placeholder {
        height: 260px;
    }

    .filter-tabs {
        gap: 4px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   RESPONSIVE: <= 640px (SMALL MOBILE)
   ============================================ */

@media (max-width: 640px) {
    .stats-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .filter-tabs {
        gap: 4px;
    }

    .page-title {
        font-size: 32px;
    }

    .left-sidebar {
        padding: 24px 18px;
    }

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

    .contact-item {
        font-size: 13px;
        gap: 10px;
    }

    .download-cv-btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    .right-nav {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
        border-radius: var(--radius-md);
    }

    .nav-icon {
        height: 46px;
        font-size: 16px;
    }

    .content-wrapper {
        padding-bottom: 110px;
    }

    .about-image img {
        max-width: 240px;
        height: 240px;
    }

    .about-image > div {
        max-width: 220px;
        height: 220px;
    }

    .portfolio-item img,
    .portfolio-placeholder {
        height: 200px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .blog-image,
    .blog-placeholder {
        height: 180px;
    }
}
