:root {
    --primary-purple: #8b5cf6;
    --dark-purple: #5b21b6;
    --light-purple: #a78bfa;
    --accent-purple: #c084fc;
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --text-light: #f8fafc;
    --text-gray: #cbd5e1;
    --text-dark: #64748b;
    --border-purple: rgba(139, 92, 246, 0.2);
    --glow-purple: rgba(139, 92, 246, 0.4);
    --header-bg: rgba(15, 15, 15, 0.85);
    --header-bg-scrolled: rgba(15, 15, 15, 0.96);
    --card-bg-1: rgba(139, 92, 246, 0.06);
    --card-bg-2: rgba(91, 33, 182, 0.06);
    --input-bg: rgba(15, 15, 15, 0.5);
    --input-bg-focus: rgba(15, 15, 15, 0.7);
    --terminal-bg-1: #1a1a1f;
    --terminal-bg-2: #25252d;
}

/* LIGHT THEME */
[data-theme-mode="light"] {
    --primary-purple: #7c3aed;
    --dark-purple: #5b21b6;
    --light-purple: #6d28d9;
    --accent-purple: #8b5cf6;
    --bg-dark: #f8f6ff;
    --bg-darker: #efeaff;
    --text-light: #0f0f1a;
    --text-gray: #475569;
    --text-dark: #94a3b8;
    --border-purple: rgba(124, 58, 237, 0.18);
    --glow-purple: rgba(124, 58, 237, 0.25);
    --header-bg: rgba(248, 246, 255, 0.85);
    --header-bg-scrolled: rgba(248, 246, 255, 0.96);
    --card-bg-1: rgba(124, 58, 237, 0.06);
    --card-bg-2: rgba(124, 58, 237, 0.02);
    --input-bg: rgba(255, 255, 255, 0.85);
    --input-bg-focus: #ffffff;
    --terminal-bg-1: #1a1a1f;
    --terminal-bg-2: #25252d;
}

/* Color palette themes (toggled via data-theme) */
[data-theme="teal"] {
    --primary-purple: #14b8a6;
    --dark-purple: #0f766e;
    --light-purple: #5eead4;
    --accent-purple: #2dd4bf;
    --border-purple: rgba(20, 184, 166, 0.2);
    --glow-purple: rgba(20, 184, 166, 0.4);
}
[data-theme="orange"] {
    --primary-purple: #f97316;
    --dark-purple: #c2410c;
    --light-purple: #fdba74;
    --accent-purple: #fb923c;
    --border-purple: rgba(249, 115, 22, 0.2);
    --glow-purple: rgba(249, 115, 22, 0.4);
}
[data-theme="cyan"] {
    --primary-purple: #06b6d4;
    --dark-purple: #0e7490;
    --light-purple: #67e8f9;
    --accent-purple: #22d3ee;
    --border-purple: rgba(6, 182, 212, 0.2);
    --glow-purple: rgba(6, 182, 212, 0.4);
}

/* LIGHT THEME — additional adjustments */
[data-theme-mode="light"] .bg-animation { opacity: 0.35; }
[data-theme-mode="light"] .hero::before {
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
}
[data-theme-mode="light"] .tech-tag {
    color: var(--dark-purple);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.14), rgba(124, 58, 237, 0.06));
    border-color: rgba(124, 58, 237, 0.25);
}
[data-theme-mode="light"] .profile-card::after { background: var(--bg-dark); }

/* Light-mode code terminal */
[data-theme-mode="light"] .code-terminal {
    background: linear-gradient(145deg, #ffffff, #f3eefe);
    border-color: rgba(124, 58, 237, 0.20);
    box-shadow:
        0 24px 60px -20px rgba(124, 58, 237, 0.28),
        0 12px 32px -16px rgba(15, 15, 25, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
[data-theme-mode="light"] .terminal-header { border-bottom-color: rgba(15, 15, 25, 0.08); }
[data-theme-mode="light"] .terminal-title { color: #64748b; }
[data-theme-mode="light"] .code-content { color: #1e1b2e; }
[data-theme-mode="light"] .code-keyword  { color: #7c3aed; }
[data-theme-mode="light"] .code-function { color: #2563eb; }
[data-theme-mode="light"] .code-string   { color: #16a34a; }
[data-theme-mode="light"] .code-variable { color: #db2777; }
[data-theme-mode="light"] .code-comment  { color: #94a3b8; }

[data-theme-mode="light"] .form-field input,
[data-theme-mode="light"] .form-field textarea {
    color: var(--text-light);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
[data-theme-mode="light"] .form-field input::placeholder,
[data-theme-mode="light"] .form-field textarea::placeholder { color: #94a3b8; }
[data-theme-mode="light"] header.scrolled {
    box-shadow: 0 4px 24px -10px rgba(124, 58, 237, 0.12);
}
[data-theme-mode="light"] .logo-bracket { text-shadow: 0 0 8px rgba(124, 58, 237, 0.3); }
[data-theme-mode="light"] ::-webkit-scrollbar-track { background: var(--bg-darker); }
[data-theme-mode="light"] .header-icon-btn { background: rgba(124, 58, 237, 0.05); }
[data-theme-mode="light"] .header-icon-btn:hover { background: rgba(124, 58, 237, 0.13); }
[data-theme-mode="light"] .mobile-menu-btn { background: rgba(124, 58, 237, 0.05); }

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

html {
    scroll-behavior: smooth;
    /* Account for fixed header so anchor scroll lands clean */
    scroll-padding-top: 80px;
}

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

.code-font {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

/* Animated Background — lighter, GPU-friendly */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
}

.bg-animation::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(91, 33, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(192, 132, 252, 0.10) 0%, transparent 50%);
    animation: backgroundMove 24s ease-in-out infinite;
    will-change: transform;
}

[data-theme="teal"] .bg-animation::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 118, 110, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(45, 212, 191, 0.10) 0%, transparent 50%);
}
[data-theme="orange"] .bg-animation::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(194, 65, 12, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(251, 146, 60, 0.10) 0%, transparent 50%);
}
[data-theme="cyan"] .bg-animation::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 116, 144, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 211, 238, 0.10) 0%, transparent 50%);
}

@keyframes backgroundMove {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -20px, 0); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-purple);
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
    background: var(--header-bg-scrolled);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 0;
    gap: 1rem;
}

.logo {
    font-size: 1.55rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border-purple);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0.02));
    color: var(--light-purple);
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.logo:hover,
.logo:focus-visible {
    border-color: var(--primary-purple);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04));
    box-shadow: 0 6px 24px -8px var(--glow-purple);
    transform: translateY(-1px);
    outline: none;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-light), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}

.logo-bracket {
    color: var(--primary-purple);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    animation: pulse-bracket 3s ease-in-out infinite;
    text-shadow: 0 0 12px var(--glow-purple);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease, background 0.25s ease;
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.10);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    transition: width 0.25s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::before,
.nav-links a.active::before { width: 70%; }

.nav-links a.active {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.15);
}

/* Nav action buttons (theme + lang + hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-purple);
    background: rgba(139, 92, 246, 0.06);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    font-family: inherit;
}
.header-icon-btn:hover,
.header-icon-btn:focus-visible {
    background: rgba(139, 92, 246, 0.16);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    outline: none;
}
.header-icon-btn i { font-size: 0.95rem; transition: transform 0.25s ease; }
.header-icon-btn:hover i { transform: scale(1.1); }
.header-icon-btn .lang-current {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.lang-toggle { width: auto; padding: 0 0.7rem; }
.mobile-menu-btn {
    display: none;
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid var(--border-purple);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--primary-purple);
    outline: none;
}

.mobile-menu-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    position: relative;
    transition: background 0.2s ease, transform 0.25s ease;
}

.mobile-menu-btn .bar::before,
.mobile-menu-btn .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease;
}
.mobile-menu-btn .bar::before { top: -7px; }
.mobile-menu-btn .bar::after  { top: 7px; }

.mobile-menu-btn[aria-expanded="true"] .bar { background: transparent; }
.mobile-menu-btn[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] .bar::after  { top: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 7rem 0 4rem;
}

/* Subtle grid backdrop for depth (hero only) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }

/* Open-to-work status chip in hero */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    width: -moz-fit-content;
    width: fit-content;
}
.hero-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-purple);
    width: fit-content;
    animation: typing 1.6s steps(14, end) 0.4s both, blinkCaret 0.85s step-end infinite 2s;
}

@keyframes typing {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes blinkCaret {
    from, to { border-right-color: transparent; }
    50%      { border-right-color: var(--primary-purple); }
}

.hero-text .title-prefix {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: var(--primary-purple);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-text h2 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--text-gray);
    font-weight: 400;
    margin-bottom: 1.6rem;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 2.4rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: transform 0.5s ease;
}
.cta-button:hover::before { transform: translateX(200%); }

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-purple);
    color: var(--primary-purple);
}
.cta-button.secondary:hover {
    background: var(--primary-purple);
    color: white;
}

/* Code Terminal — kod yazar gibi intro, korunuyor */
.code-terminal {
    background: linear-gradient(145deg, #1a1a1f, #25252d);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow:
        0 30px 80px -20px rgba(139, 92, 246, 0.35),
        0 20px 60px -20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-purple);
    position: relative;
    overflow: hidden;
}

.code-terminal::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg, transparent, var(--primary-purple), transparent);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27ca3f; }

.terminal-title {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-gray);
    font-family: 'JetBrains Mono', monospace;
}

.code-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
}

.code-line {
    margin-bottom: 0.4rem;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.35s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.65s; }
.code-line:nth-child(5) { animation-delay: 0.8s; }
.code-line:nth-child(6) { animation-delay: 0.95s; }
.code-line:nth-child(7) { animation-delay: 1.1s; }

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

.code-keyword { color: #c792ea; }
.code-string  { color: #c3e88d; }
.code-function{ color: #82aaff; }
.code-comment { color: #546e7a; font-style: italic; }
.code-variable{ color: #f07178; }

/* Sections */
.section {
    padding: 5.5rem 0;
    position: relative;
}

.section h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-light), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple));
    border-radius: 3px;
    opacity: 0.85;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.05rem;
    margin: 0 auto 3.5rem;
    max-width: 620px;
    padding: 0 1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.profile-card {
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-purple);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(transparent, var(--primary-purple), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: -1;
    will-change: transform;
}
.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: 18px;
    z-index: -1;
}
@keyframes rotate { to { transform: rotate(1turn); } }

.avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 50%),
        linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3),
                inset 0 -8px 24px rgba(0, 0, 0, 0.25);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}
.avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-purple), var(--light-purple), var(--primary-purple));
    z-index: -1;
    animation: rotate 5s linear infinite;
    will-change: transform;
}

.profile-card h3 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.profile-card > p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.about-text p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.75;
}

/* Tech Stack */
.tech-stack { margin-top: 1.5rem; }

.tech-stack h3 {
    color: var(--primary-purple);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.tech-item {
    background: rgba(139, 92, 246, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-purple);
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}
.tech-item:hover {
    transform: translateY(-4px);
    background: rgba(139, 92, 246, 0.12);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.18);
}
.tech-item i {
    font-size: 1.8rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    display: block;
}
.tech-item span {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Currently / Şu Sıralar panel */
.currently-panel {
    margin-top: 1.75rem;
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    border: 1px solid var(--border-purple);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.currently-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple), var(--light-purple));
}
.currently-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.currently-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    box-shadow: 0 0 0 0 var(--glow-purple);
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}
.currently-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--primary-purple);
    letter-spacing: 0.18em;
    font-weight: 600;
}
.currently-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.currently-list li {
    display: flex;
    align-items: start;
    gap: 0.85rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}
.currently-list i {
    color: var(--primary-purple);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}
.currently-list strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Projects */
.projects-container { max-width: 1200px; margin: 0 auto; }

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

.project-card {
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    border-radius: 22px;
    padding: 1.8rem;
    border: 1px solid var(--border-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.10), transparent);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.project-card:hover::before { transform: translateX(200%); }
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.18);
    border-color: var(--primary-purple);
}

.project-header {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.project-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

.project-info { min-width: 0; flex: 1; }
.project-info h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-tag {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.06));
    color: var(--light-purple);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(139, 92, 246, 0.22);
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.project-card:hover .tech-tag {
    border-color: rgba(139, 92, 246, 0.4);
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: rgba(139, 92, 246, 0.10);
    color: var(--primary-purple);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    border: 1px solid var(--border-purple);
}
.project-link:hover {
    color: white;
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

/* Coming-soon panel (replaces 4 empty future-project cards) */
.coming-soon {
    margin-top: 1.75rem;
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    border: 1px dashed var(--border-purple);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.coming-soon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 50%, rgba(139, 92, 246, 0.08), transparent 60%);
    pointer-events: none;
}
.coming-soon .cs-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}
.coming-soon .cs-icon i {
    animation: rotate 4s linear infinite;
    display: inline-block;
    will-change: transform;
}
.coming-soon .cs-text { flex: 1; min-width: 240px; }
.coming-soon h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.coming-soon p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.55;
}
.coming-soon .cs-code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-purple);
    font-size: 0.85rem;
    background: rgba(139, 92, 246, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border-purple);
    white-space: nowrap;
}
.coming-soon .cs-code .cs-cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: var(--primary-purple);
    vertical-align: -2px;
    margin-left: 2px;
    animation: blinkCursor 1s steps(1) infinite;
}
@keyframes blinkCursor {
    50% { opacity: 0; }
}

/* Contact */
.contact-container { max-width: 1200px; margin: 0 auto; }

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Netlify contact form */
.contact-form {
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    border: 1px solid var(--border-purple);
    border-radius: 22px;
    padding: 1.75rem 1.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-purple), var(--light-purple));
}

.form-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}
.form-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    box-shadow: 0 0 0 0 var(--glow-purple);
    animation: pulseDot 2s ease-in-out infinite;
}
.form-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--primary-purple);
    letter-spacing: 0.18em;
    font-weight: 600;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-field > span {
    font-size: 0.78rem;
    color: var(--text-gray);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
}
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-purple);
    border-radius: 10px;
    padding: 0.75rem 0.95rem;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    resize: vertical;
    min-height: 0;
}
.form-field textarea {
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-dark);
    opacity: 0.7;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
    outline: none;
}

.form-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    margin-top: 0.25rem;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.45);
}
.form-submit:active { transform: translateY(0); }

.hp-field { position: absolute; left: -9999px; }

/* Inline form status (AJAX success/error) */
.form-status {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: statusIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-status.success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.30);
    color: #4ade80;
}
.form-status.error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.30);
    color: #f87171;
}
.form-status i { font-size: 1.05rem; flex-shrink: 0; }
.form-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}
@keyframes statusIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Right column — compact contact cards */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-side-label {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin: 0 0 0.25rem 0.25rem;
    letter-spacing: 0.02em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.contact-card.compact {
    padding: 1.1rem 1rem;
    border-radius: 16px;
    text-align: left;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 0;
}
.contact-card.compact .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 11px;
    margin-bottom: 0.4rem;
}
.contact-card.compact h3 {
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}
.contact-link.compact {
    padding: 0;
    background: none;
    color: var(--text-gray);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: none;
    border-radius: 0;
    word-break: break-all;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s ease;
}
.contact-link.compact:hover {
    background: none;
    transform: none;
    box-shadow: none;
    color: var(--primary-purple);
}

/* Contact */

.contact-card {
    background: linear-gradient(145deg, var(--card-bg-1), var(--card-bg-2));
    padding: 1.8rem 1.5rem;
    border-radius: 22px;
    border: 1px solid var(--border-purple);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
    transition: width 0.5s ease, height 0.5s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}
.contact-card:hover::before { width: 320px; height: 320px; }
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.18);
}

.contact-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    color: white;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 2;
}
.contact-card p {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}
.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

/* Footer */
footer {
    background: var(--header-bg-scrolled);
    border-top: 1px solid var(--border-purple);
    padding: 2.5rem 0 2rem;
    text-align: center;
    margin-top: 3rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.footer-text { color: var(--text-dark); font-size: 0.9rem; }
.footer-code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-purple);
    font-size: 0.8rem;
}

/* Sections fade-in on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Custom selection */
::selection {
    background: rgba(139, 92, 246, 0.35);
    color: var(--text-light);
}
::-moz-selection {
    background: rgba(139, 92, 246, 0.35);
    color: var(--text-light);
}

/* Focus rings */
:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Top scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-purple), var(--light-purple), var(--accent-purple));
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px var(--glow-purple);
    pointer-events: none;
    will-change: width;
}

/* Section number badge */
.section-num {
    display: block;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid var(--border-purple);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* GitHub-style language dot on project cards */
.lang-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.lang-python  { background: #3776ab; color: #3776ab; }
.lang-js      { background: #f7df1e; color: #f7df1e; }
.lang-java    { background: #f89820; color: #f89820; }
.lang-c       { background: #a8b9cc; color: #a8b9cc; }

.project-info h3 {
    display: flex;
    align-items: center;
}

/* Hero scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.25s ease;
    animation: floatDown 2.5s ease-in-out infinite;
    z-index: 2;
}
.scroll-indicator:hover { color: var(--light-purple); }
.scroll-indicator .chev {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
@keyframes floatDown {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
    50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@media (max-width: 1024px) {
    .scroll-indicator { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--light-purple); }

/* ───────────── RESPONSIVE ───────────── */

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
    .hero-text h1 { white-space: normal; animation: none; border-right: none; width: auto; }
    .about-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .tech-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}

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

    nav {
        padding: 0.7rem 0;
        padding-top: max(0.7rem, env(safe-area-inset-top));
    }

    .logo {
        font-size: 1.15rem;
        padding: 0.35rem 0.7rem;
        gap: 0.18rem;
    }
    .logo-bracket { font-size: 1.05rem; }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--header-bg-scrolled);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-purple);
        padding: 0.8rem 1.25rem 1.25rem;
        transform: translateY(-130%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .nav-links.open { transform: translateY(0); }

    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    .nav-links a::before { display: none; }
    .nav-links a:hover, .nav-links a.active {
        background: rgba(139, 92, 246, 0.15);
    }

    .mobile-menu-btn { display: inline-flex; }

    /* Hero — compact mobile sizing */
    .hero {
        min-height: auto;
        padding: 5.5rem 0 3rem;
    }
    .hero::before { background-size: 40px 40px; }
    .hero-content { gap: 1.75rem; }

    .hero-status {
        font-size: 0.7rem;
        padding: 0.32rem 0.7rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }
    .hero-text .title-prefix { font-size: 0.85rem; margin-bottom: 0.35rem; }
    .hero-text h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        margin-bottom: 0.6rem;
    }
    .hero-text h2 {
        font-size: clamp(1rem, 4.5vw, 1.3rem);
        margin-bottom: 1.2rem;
    }
    .hero-text p {
        font-size: 0.98rem;
        max-width: 100%;
        margin-bottom: 1.6rem;
        line-height: 1.6;
    }

    .cta-buttons { gap: 0.65rem; }
    .cta-button {
        padding: 0.75rem 1.3rem;
        font-size: 0.9rem;
        border-radius: 40px;
    }
    .cta-button.secondary { border-width: 1.5px; }

    .section { padding: 4rem 0; }
    .section h2::before { width: 38px; height: 2px; margin-bottom: 0.9rem; }
    .section-subtitle { margin-bottom: 2.2rem; font-size: 0.95rem; }
    .section-num { font-size: 0.7rem; padding: 0.22rem 0.65rem; }

    .projects-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .project-card { padding: 1.4rem 1.25rem; border-radius: 18px; }
    .project-header { gap: 0.85rem; margin-bottom: 1rem; }
    .project-icon {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
        border-radius: 13px;
    }
    .project-info h3 { font-size: 1.08rem; }
    .project-description { font-size: 0.9rem; margin-bottom: 1.2rem; }

    .contact-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .contact-card.compact { padding: 0.95rem 0.85rem; border-radius: 14px; }
    .contact-card.compact .contact-icon {
        width: 34px; height: 34px; font-size: 0.9rem; border-radius: 10px;
    }
    .contact-card.compact h3 { font-size: 0.85rem; }
    .contact-link.compact { font-size: 0.72rem; }

    .contact-form { padding: 1.25rem; border-radius: 18px; }
    .form-row { grid-template-columns: 1fr; gap: 0.85rem; }
    .form-field input,
    .form-field textarea { font-size: 0.92rem; padding: 0.7rem 0.85rem; }
    .form-submit { padding: 0.8rem 1.4rem; font-size: 0.9rem; }
    .form-label { font-size: 0.68rem; letter-spacing: 0.15em; }

    .contact-card { padding: 1.5rem 1.25rem; border-radius: 18px; }
    .contact-icon {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
        margin-bottom: 0.9rem;
    }
    .contact-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
    .contact-card p { font-size: 0.88rem; margin-bottom: 1rem; }

    .code-terminal { padding: 1rem; border-radius: 14px; }
    .code-content { font-size: 0.72rem; line-height: 1.6; }
    .code-line { margin-bottom: 0.25rem; }
    .terminal-title { font-size: 0.7rem; }
    .terminal-dot { width: 10px; height: 10px; }

    .profile-card { padding: 1.5rem 1.25rem; border-radius: 18px; }
    .avatar { width: 130px; height: 130px; font-size: 2.1rem; }
    .about-text p { font-size: 0.98rem; line-height: 1.7; }
    .tech-stack h3 { font-size: 1.05rem; }
    .tech-grid { gap: 0.7rem; }
    .tech-item { padding: 0.85rem 0.5rem; border-radius: 10px; }
    .tech-item i { font-size: 1.4rem; }
    .tech-item span { font-size: 0.8rem; }

    .coming-soon {
        flex-direction: column;
        text-align: center;
        padding: 1.6rem 1.25rem;
        gap: 1rem;
        border-radius: 18px;
    }
    .coming-soon .cs-code { width: 100%; text-align: center; font-size: 0.78rem; }
    .coming-soon h3 { font-size: 1.05rem; }
    .coming-soon p { font-size: 0.88rem; }

    .currently-panel { padding: 1.2rem 1.25rem; border-radius: 14px; }
    .currently-list li { font-size: 0.9rem; gap: 0.7rem; }
    .currently-label { font-size: 0.68rem; letter-spacing: 0.15em; }

    footer { padding: 2rem 0 1.5rem; }
    .footer-text { font-size: 0.82rem; }
    .footer-code { font-size: 0.72rem; }
}

@media (max-width: 380px) {
    .container { padding: 0 0.9rem; }
    .logo { font-size: 1.05rem; padding: 0.3rem 0.6rem; }
    .logo-bracket { font-size: 0.95rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-button { justify-content: center; }
    .hero-text h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* Performance / accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-text h1 {
        white-space: normal;
        border-right: none;
        animation: none;
        width: auto;
    }
}

body.no-bg-anim .bg-animation { display: none; }
body.no-bg-anim .profile-card::before,
body.no-bg-anim .avatar::after,
body.no-bg-anim .coming-soon .cs-icon i {
    animation: none !important;
}
