/* ==========================================================
   EMIR YIGIT — Sistem Yönetimi & IT Danışmanlık
   CLI / Terminal Tema — 3D Animasyonlar
   ========================================================== */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* CLI Terminal Palette */
    --bg: #050807;
    --bg-soft: #080d10;
    --bg-warm: #0b1216;
    --card: #0b1114;
    --card-alt: #10181d;
    --border: #24444a;
    --border-soft: #183038;
    --text: #f0f7ff;
    --text-mid: #a8c1c7;
    --text-light: #70878d;
    --accent: #00ff00;
    --accent-hover: #66ff66;
    --accent-soft: #0b5f20;
    --accent-pale: #08240f;
    --accent-2: #ffd23f;
    --accent-3: #39ff88;
    --success: #39ff88;
    --warning: #ffd866;
    --error: #ff5f7a;

    /* Spacing & Sizing */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.50);
    --shadow-glow: 0 0 28px rgba(0, 255, 0, 0.24);

    /* Transitions */
    --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --tr: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --tr-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Inter', Georgia, serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 0, 0.62) #050807;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Terminal grid overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 235, 240, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 235, 240, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    color: inherit;
}

::selection {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

/* CLI themed scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    border-left: 1px solid rgba(168, 193, 199, 0.08);
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(0, 255, 0, 0.72), rgba(0, 255, 0, 0.34));
    border: 2px solid var(--bg);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, 0.22);
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, var(--accent), rgba(102, 255, 102, 0.58));
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.26);
}

::-webkit-scrollbar-corner {
    background: var(--bg);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 820px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    background: var(--accent-pale);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    display: none;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 1160px;
    transition: var(--tr);
    background: rgba(5, 8, 7, 0.94);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(168, 193, 199, 0.13);
    border-radius: 18px;
    padding: 9px 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.navbar.scrolled {
    background: rgba(5, 8, 7, 0.98);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
    top: 10px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--tr);
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: url('../img/logo-mark.svg') center / contain no-repeat;
    color: transparent;
    border: 0;
    border-radius: 0;
    font-size: 0;
    line-height: 0;
    margin-right: 8px;
    box-shadow: none;
    transition: var(--tr);
    flex-shrink: 0;
}

.logo:hover .logo-mark {
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.24));
    transform: translateY(-1px) scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    padding: 7px 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 8px;
    transition: var(--tr);
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(168, 193, 199, 0.055);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(0, 255, 0, 0.065);
}

.nav-cta {
    background: transparent !important;
    color: var(--accent) !important;
    padding: 7px 14px !important;
    border: 1px solid rgba(0, 255, 0, 0.36);
    border-radius: 8px !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--bg) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 255, 0, 0.18);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--tr);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--tr);
    font-family: var(--font-mono);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.18);
}

.btn-dark {
    background: var(--text);
    color: var(--bg);
}

.btn-dark:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--accent-pale);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.88rem;
}

.btn .arrow {
    transition: var(--tr);
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ===== HERO ===== */
.hero {
    padding: 152px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    display: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: floatShape 14s ease-in-out infinite;
}

.hero-shape-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    top: -8%;
    right: -5%;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -5%;
    left: -8%;
    animation-delay: -4s;
    opacity: 0.3;
}

.hero-shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 216, 102, 0.35), transparent 70%);
    top: 30%;
    left: 50%;
    animation-delay: -7s;
    opacity: 0.4;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 20px) scale(0.92); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    margin-bottom: 16px;
}

.terminal-prompt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--text-light);
    padding: 9px 13px;
    margin-bottom: 24px;
    background: rgba(5, 8, 7, 0.88);
    border: 1px solid rgba(168, 193, 199, 0.14);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 255, 0, 0.03);
}

.terminal-prompt .prompt-user {
    color: var(--accent);
}

.terminal-prompt .prompt-path {
    color: var(--accent-2);
}

.terminal-prompt .prompt-command {
    color: var(--text);
}

.hero-title {
    font-size: clamp(2.55rem, 5.1vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.hero-title .accent-word {
    color: var(--accent);
    font-style: italic;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hero-title .accent-word::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4%;
    height: 6px;
    background: rgba(0, 255, 0, 0.18);
    z-index: -1;
    border-radius: 4px;
    transform: skew(-3deg);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    min-height: 1.6em;
}

.hero-subtitle .typed-text {
    color: var(--accent);
    font-weight: 500;
}

.cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 590px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    position: relative;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-number::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 6px;
    transform: translateY(-12px);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* Hero visual / 3D card stack */
.hero-visual {
    position: relative;
    height: 520px;
    perspective: 1500px;
    transform-style: preserve-3d;
}

.hero-card {
    position: absolute;
    background: var(--card);
    border: 1px solid rgba(168, 193, 199, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--tr-slow);
    will-change: transform;
}

.hero-card-main {
    width: 78%;
    height: 78%;
    top: 11%;
    left: 11%;
    overflow: hidden;
    transform: rotateY(-6deg) rotateX(4deg);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44);
}

.hero-card-main .photo-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(8, 36, 15, 0.5) 0%, var(--bg-warm) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-card-main .photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.08), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 210, 63, 0.08), transparent 60%);
}

.hero-card-main .photo-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    z-index: 1;
}

.hero-card-mini {
    background: rgba(11, 17, 20, 0.94);
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero-card-mini-1 {
    top: 8%;
    right: 0;
    transform: rotateY(-12deg) translateZ(40px);
    animation: floatCard1 6s ease-in-out infinite;
}

.hero-card-mini-2 {
    bottom: 12%;
    left: -2%;
    transform: rotateY(8deg) translateZ(60px);
    animation: floatCard2 7s ease-in-out infinite;
}

.hero-card-mini-3 {
    top: 48%;
    right: -5%;
    transform: rotateY(-8deg) translateZ(80px);
    animation: floatCard3 8s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: rotateY(-12deg) translateZ(40px) translateY(0); }
    50% { transform: rotateY(-12deg) translateZ(40px) translateY(-12px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: rotateY(8deg) translateZ(60px) translateY(0); }
    50% { transform: rotateY(8deg) translateZ(60px) translateY(10px); }
}

@keyframes floatCard3 {
    0%, 100% { transform: rotateY(-8deg) translateZ(80px) translateY(0); }
    50% { transform: rotateY(-8deg) translateZ(80px) translateY(-8px); }
}

.hero-card-mini-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 255, 0, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.hero-card-mini-text {
    display: flex;
    flex-direction: column;
}

.hero-card-mini-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.hero-card-mini-sub {
    font-size: 0.72rem;
    color: var(--text-light);
}

/* Decorative dots */
.hero-decoration {
    position: absolute;
    pointer-events: none;
}

.hero-dots {
    bottom: -10px;
    left: 8%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    opacity: 0.3;
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-sm {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-warm {
    background: var(--bg-warm);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-header.left {
    text-align: left;
    margin-left: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-title .italic-accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 500;
}

.section-subtitle {
    color: var(--text-mid);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

.section-header.left .section-subtitle {
    margin: 0;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-pale), var(--bg-warm));
    box-shadow: var(--shadow-md);
    transform-style: preserve-3d;
    transition: var(--tr);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.14), transparent 70%);
}

.about-image .photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.about-image .photo-placeholder svg {
    width: 100px;
    height: 100px;
    opacity: 0.5;
}

.about-image .photo-label {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(8, 13, 16, 0.94);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-mid);
}

.about-text h2 {
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-mid);
    margin-bottom: 18px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-pale);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.about-feature-text strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 2px;
}

.about-feature-text span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===== TECH TAGS ===== */
.tech-stack-block {
    margin-top: 32px;
    padding: 24px;
    background: var(--card-alt);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.tech-stack-block h4 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 500;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-mid);
    font-weight: 500;
    font-family: var(--font-mono);
    transition: var(--tr);
}

.tech-tag:hover {
    background: var(--accent-pale);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 58px 28px 32px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-pale), transparent 70%);
    opacity: 0;
    transition: var(--tr);
}

.service-card::after,
.portfolio-card::after,
.blog-card::after,
.process-step::after,
.skill-card::after {
    content: '● ● ●  terminal';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
    background: linear-gradient(180deg, rgba(15, 24, 27, 0.98), rgba(8, 13, 16, 0.92));
    border-bottom: 1px solid var(--border-soft);
    pointer-events: none;
}

.service-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-pale);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: 24px;
    transition: var(--tr);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--bg);
    transform: rotate(-6deg) scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--tr);
    position: relative;
    z-index: 1;
}

.service-card-link:hover {
    gap: 10px;
}

/* ===== PROCESS ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding: 58px 24px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--tr);
    overflow: hidden;
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: var(--accent-soft);
    box-shadow: var(--shadow);
}

.process-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--accent-soft);
    font-weight: 700;
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    margin-right: 40px;
}

.process-step p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: var(--tr);
}

.testimonial:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: var(--accent-soft);
}

.testimonial-quote {
    font-size: 2.4rem;
    color: var(--accent);
    line-height: 1;
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.testimonial-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.testimonial-author-info span {
    color: var(--text-light);
    font-size: 0.82rem;
}

/* ===== PORTFOLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

.portfolio-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--tr);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 28px;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}

.portfolio-card > a,
.blog-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--accent-pale), var(--bg-warm));
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(0, 255, 0, 0.14), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 210, 63, 0.14), transparent 60%);
}

.portfolio-image .photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.portfolio-image .photo-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.5;
    transition: var(--tr);
}

.portfolio-card:hover .photo-placeholder svg {
    transform: scale(1.1);
    opacity: 0.7;
}

.portfolio-info {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.portfolio-tags span {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: var(--accent-pale);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-weight: 500;
}

.portfolio-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.82rem;
    color: var(--text-light);
}

.portfolio-meta strong {
    color: var(--text);
    font-weight: 600;
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--tr);
    position: relative;
    padding-top: 28px;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
}

.blog-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent-pale), var(--bg-warm));
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(0, 255, 0, 0.14), transparent 60%);
}

.blog-image .photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.blog-image .photo-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.blog-content {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: var(--tr);
}

.blog-card:hover h3 {
    color: var(--accent);
}

.blog-content p {
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.82rem;
    color: var(--text-light);
}

.blog-read-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--tr);
}

.blog-card:hover .blog-read-more {
    gap: 8px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, #061014 0%, #13202a 100%);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.20), transparent 60%);
    pointer-events: none;
    animation: floatShape 12s ease-in-out infinite;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 210, 63, 0.18), transparent 60%);
    pointer-events: none;
    animation: floatShape 14s ease-in-out infinite reverse;
}

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

.cta-card h2 {
    color: var(--text);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-mid);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card .btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.cta-card .btn-primary:hover {
    background: var(--accent-hover);
    color: var(--bg);
}

.cta-card .btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.cta-card .btn-outline:hover {
    background: var(--accent-pale);
    border-color: var(--accent);
    color: var(--accent-hover);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.contact-intro h2 {
    margin-bottom: 16px;
}

.contact-intro p {
    color: var(--text-mid);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--tr);
}

.contact-item:hover {
    border-color: var(--accent-soft);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-pale);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
}

.contact-item-text strong {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-item-text span {
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-mid);
    transition: var(--tr);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--tr);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: var(--card);
    box-shadow: 0 0 0 4px var(--accent-pale);
}

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

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

.form-note {
    font-size: 0.85rem;
    text-align: center;
    color: var(--success);
    min-height: 1.2em;
    margin-top: 4px;
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
    padding: 160px 0 64px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    z-index: -1;
}

.page-header-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-breadcrumb a {
    color: var(--text-mid);
    transition: var(--tr-fast);
}

.page-breadcrumb a:hover {
    color: var(--accent);
}

.page-breadcrumb .separator {
    opacity: 0.5;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-header h1 .italic-accent {
    font-style: italic;
    color: var(--accent);
}

.page-header p {
    color: var(--text-mid);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== TIMELINE (used on hakkimda) ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--card);
    border: 3px solid var(--accent);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 500;
}

.timeline-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item .role {
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-item p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Skill cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 52px 24px 24px;
    transition: var(--tr);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    border-color: var(--accent-soft);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-card-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.skill-card-header span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
}

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

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

/* ===== BLOG POST ===== */
.blog-post {
    padding: 140px 0 80px;
}

.blog-post-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.blog-post-header .blog-category {
    margin-bottom: 16px;
    font-size: 0.78rem;
}

.blog-post-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-cover {
    max-width: 920px;
    margin: 0 auto 48px;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--accent-pale), var(--bg-warm));
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.blog-post-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(0, 255, 0, 0.14), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(255, 210, 63, 0.14), transparent 60%);
}

.blog-post-body {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text);
}

.blog-post-body h2 {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
}

.blog-post-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 36px 0 12px;
}

.blog-post-body p {
    margin-bottom: 22px;
    color: var(--text);
}

.blog-post-body strong {
    color: var(--text);
    font-weight: 600;
}

.blog-post-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.blog-post-body a:hover {
    color: var(--accent-hover);
}

.blog-post-body ul,
.blog-post-body ol {
    margin: 16px 0 24px 24px;
}

.blog-post-body li {
    margin-bottom: 10px;
    list-style: disc;
}

.blog-post-body code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 3px 8px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--accent-hover);
}

.blog-post-body pre {
    background: #030605;
    color: #d5f8ff;
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid #24444a;
}

.blog-post-body pre code {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
    font-size: 0.88rem;
    line-height: 1.7;
}

.blog-post-body blockquote {
    border-left: 4px solid var(--accent);
    padding: 8px 0 8px 24px;
    margin: 28px 0;
    font-style: italic;
    color: var(--text-mid);
    background: var(--bg-warm);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 20px 24px;
}

.blog-post-body blockquote p {
    margin-bottom: 0;
}

.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-mid);
    font-weight: 500;
    margin-bottom: 32px;
    transition: var(--tr);
}

.blog-back:hover {
    color: var(--accent);
    gap: 12px;
}

.blog-post-footer {
    max-width: 760px;
    margin: 64px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.blog-post-footer p {
    color: var(--text-mid);
    margin-bottom: 24px;
}

/* Blog list (full page) */
.blog-list-page {
    padding: 0 0 80px;
}

.blog-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.blog-filter {
    padding: 8px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-mid);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--tr);
}

.blog-filter:hover,
.blog-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding: 72px 0 56px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}

.footer-col a,
.footer-col p {
    display: block;
    color: var(--text-mid);
    font-size: 0.92rem;
    margin-bottom: 10px;
    transition: var(--tr-fast);
}

.footer-col a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-light);
    transition: var(--tr-fast);
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-mid);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px) scale(0.92);
    transition:
        opacity 0.35s var(--ease-out-cubic),
        transform 0.35s var(--ease-out-cubic),
        background-color 0.25s var(--ease-out-cubic),
        border-color 0.25s var(--ease-out-cubic),
        color 0.25s var(--ease-out-cubic),
        box-shadow 0.25s var(--ease-out-cubic),
        visibility 0s linear 0.35s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* ===== ANIMATIONS / SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition:
        opacity 0.9s var(--ease-out-cubic),
        transform 0.9s var(--ease-out-cubic),
        filter 0.9s var(--ease-out-cubic);
    will-change: opacity, transform, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal.cli-loading {
    position: relative;
}

.cli-load-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background:
        linear-gradient(180deg, rgba(5, 8, 7, 0.94), rgba(5, 8, 7, 0.78)),
        repeating-linear-gradient(0deg, rgba(0, 255, 0, 0.08) 0 1px, transparent 1px 6px);
    border-radius: inherit;
    pointer-events: none;
    animation: cliLoadFade 0.56s var(--ease-out-cubic) forwards;
}

.cli-load-layer::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 21;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.75;
    pointer-events: none;
    animation: cliScan 0.56s var(--ease-out-cubic) forwards;
}

@keyframes cliLoadFade {
    0% { opacity: 1; clip-path: inset(0 0 100% 0); }
    18% { clip-path: inset(0 0 0 0); }
    72% { opacity: 0.9; }
    100% { opacity: 0; clip-path: inset(100% 0 0 0); }
}

@keyframes cliScan {
    0% { transform: translateY(0); opacity: 0; }
    18% { opacity: 0.85; }
    100% { transform: translateY(220px); opacity: 0; }
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Tilt effect (3D) */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

/* Marquee for tech logos */
.marquee {
    overflow: hidden;
    padding: 24px 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 48px;
    width: max-content;
    min-width: max-content;
    animation: marqueeScroll 46s linear infinite;
    will-change: transform;
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 24px));
    }
}

.marquee-item {
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--tr-fast);
}

.marquee-item:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        height: 420px;
        max-width: 480px;
        margin: 0 auto;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 82px;
    }

    .container {
        padding: 0 18px;
    }

    .navbar {
        width: calc(100% - 24px);
        padding: 9px 14px;
        border-radius: 14px;
    }

    .navbar-content {
        gap: 12px;
    }

    .logo {
        min-width: 0;
        font-size: 0.9rem;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 66px;
        left: 12px;
        right: 12px;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        background: rgba(5, 8, 7, 0.98);
        border: 1px solid rgba(168, 193, 199, 0.13);
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 4px;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        text-align: left;
        padding: 11px 12px;
        white-space: normal;
    }

    .nav-cta {
        text-align: center !important;
    }

    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
    }

    .hero {
        padding: 130px 0 64px;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-greeting {
        margin-bottom: 12px;
    }

    .terminal-prompt {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .hero-title {
        font-size: clamp(2.1rem, 10vw, 3rem);
        line-height: 1.08;
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .hero-desc,
    .about-text p,
    .section-subtitle,
    .page-header p,
    .cta-card p {
        font-size: 1rem;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .hero-visual {
        height: 360px;
        width: min(100%, 420px);
        max-width: 420px;
        overflow: visible;
    }

    .hero-card-main {
        width: 82%;
        height: 78%;
        top: 10%;
        left: 9%;
        transform: none;
    }

    .hero-card-mini {
        padding: 11px 12px;
        gap: 10px;
        max-width: 190px;
    }

    .hero-card-mini-1 {
        top: 4%;
        right: 0;
    }

    .hero-card-mini-2 {
        bottom: 8%;
        left: 0;
    }

    .hero-card-mini-3 {
        top: 46%;
        right: 0;
    }

    .hero-card-mini-title {
        font-size: 0.78rem;
    }

    .hero-card-mini-sub {
        font-size: 0.66rem;
    }

    .hero-dots {
        opacity: 0.18;
    }

    .page-header {
        padding: 128px 0 48px;
    }

    .page-header h1 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header.left,
    .section-header.left .section-subtitle {
        text-align: left;
    }

    .section-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 360px;
        margin: 0 auto;
    }

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

    .services-grid,
    .portfolio-grid,
    .portfolio-grid-2,
    .blog-grid,
    .testimonials-grid,
    .process-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .process-step,
    .skill-card {
        padding-left: 22px;
        padding-right: 22px;
    }

    .portfolio-info,
    .blog-content {
        padding: 22px;
    }

    .portfolio-meta,
    .blog-meta {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-item {
        align-items: flex-start;
        padding: 16px;
    }

    .contact-item-text span {
        overflow-wrap: anywhere;
    }

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

    .blog-post {
        padding: 120px 0 64px;
    }

    .blog-post-header {
        margin-bottom: 34px;
    }

    .blog-post-meta {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .blog-post-cover {
        border-radius: var(--radius);
        margin-bottom: 34px;
    }

    .blog-post-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blog-post-body h2 {
        font-size: 1.42rem;
        margin-top: 36px;
    }

    .blog-post-body pre {
        padding: 18px;
        border-radius: var(--radius-sm);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 56px 0 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .section {
        padding: 64px 0;
    }

    .cta-card {
        padding: 48px 28px;
    }

    .cta-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .back-to-top {
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        width: calc(100% - 16px);
        top: 8px;
        padding: 8px 12px;
    }

    .navbar.scrolled {
        top: 8px;
    }

    .logo {
        font-size: 0.82rem;
    }

    .nav-links {
        top: 58px;
        left: 8px;
        right: 8px;
    }

    .btn {
        padding: 13px 18px;
        font-size: 0.86rem;
        min-height: 48px;
    }

    .eyebrow {
        max-width: 100%;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        padding: 6px 10px;
    }

    .hero {
        padding: 112px 0 52px;
    }

    .hero-title {
        font-size: clamp(1.95rem, 12vw, 2.55rem);
    }

    .hero-desc {
        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        width: 100%;
    }

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

    .hero-visual {
        height: 310px;
        max-width: 330px;
    }

    .hero-card-main {
        width: 86%;
        height: 76%;
        left: 7%;
    }

    .hero-card-mini {
        max-width: 168px;
        padding: 9px 10px;
    }

    .hero-card-mini-icon {
        width: 30px;
        height: 30px;
    }

    .hero-card-mini-1 {
        right: -2px;
    }

    .hero-card-mini-2 {
        left: -2px;
    }

    .hero-card-mini-3 {
        right: -2px;
    }

    .section {
        padding: 54px 0;
    }

    .page-header {
        padding: 112px 0 40px;
    }

    .page-breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.78rem;
    }

    .service-card,
    .process-step,
    .skill-card {
        border-radius: var(--radius);
        padding: 52px 18px 24px;
    }

    .portfolio-card,
    .blog-card {
        border-radius: var(--radius);
    }

    .portfolio-info,
    .blog-content {
        padding: 20px 18px 22px;
    }

    .tech-stack-block,
    .contact-form,
    .cta-card {
        padding: 22px 18px;
        border-radius: var(--radius);
    }

    .contact-item {
        gap: 12px;
    }

    .contact-item-icon {
        width: 38px;
        height: 38px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    .blog-post {
        padding-top: 104px;
    }

    .blog-post-header h1 {
        font-size: clamp(1.8rem, 10vw, 2.25rem);
    }

    .blog-post-body blockquote {
        padding: 16px 18px;
    }

    .footer-top {
        padding-top: 42px;
    }

    .footer-brand p {
        max-width: none;
    }

    .marquee {
        padding: 16px 0;
    }

    .marquee-track {
        gap: 28px;
        animation-duration: 58s;
    }

    .marquee-item {
        font-size: 1.18rem;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee-track {
        animation-duration: 46s !important;
        animation-iteration-count: infinite !important;
    }

    .cli-load-layer {
        display: none !important;
    }
}
