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

:root {
    --bg-0: #0b0b0d;
    --bg-1: #111114;
    --bg-2: #16161a;
    --surface-1: rgba(255,255,255,0.03);
    --surface-2: rgba(255,255,255,0.05);
    --border-soft: rgba(255,255,255,0.08);
    --border-accent: rgba(32,121,93,0.45);
    --accent: #20795d;
    --accent-2: #2d8a66;
    --accent-glow: rgba(32,121,93,0.35);
    --text-1: #f5f5f7;
    --text-2: #b8b8be;
    --text-3: #7d7d85;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-md: 0 14px 40px rgba(0,0,0,0.4);
    --shadow-accent: 0 18px 50px -12px rgba(32,121,93,0.35);
    --easing: cubic-bezier(0.22,1,0.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0;
    background-color: #0a0a0c;
    font-family: 'Inter','Montserrat',sans-serif;
    color: var(--text-1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body > .container { position: relative; z-index: 2; }

.bg-mesh {
    position: fixed; inset: -10%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(40% 35% at 15% 20%, rgba(32,121,93,0.22), transparent 60%),
        radial-gradient(35% 30% at 85% 15%, rgba(45,138,102,0.14), transparent 60%),
        radial-gradient(45% 40% at 75% 80%, rgba(32,121,93,0.18), transparent 60%),
        radial-gradient(35% 35% at 20% 85%, rgba(45,138,102,0.12), transparent 60%),
        radial-gradient(50% 50% at 50% 50%, rgba(32,121,93,0.05), transparent 70%),
        linear-gradient(180deg, #0a0a0c 0%, #0c0e0f 100%);
    filter: blur(40px) saturate(1.2);
    animation: meshDrift 20s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0%   { transform: translate(0,0) scale(1); }
    50%  { transform: translate(-2%,1%) scale(1.05); }
    100% { transform: translate(2%,-1%) scale(1); }
}

body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none; z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 28px 28px; }
}

body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(32,121,93,0.6), transparent),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(45,138,102,0.5), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(32,121,93,0.4), transparent),
        radial-gradient(1px 1px at 85% 20%, rgba(45,138,102,0.6), transparent),
        radial-gradient(1.5px 1.5px at 10% 70%, rgba(32,121,93,0.5), transparent),
        radial-gradient(1px 1px at 60% 10%, rgba(45,138,102,0.4), transparent);
    animation: particlesFloat 18s ease-in-out infinite; opacity: 0.7;
}
@keyframes particlesFloat {
    0%,100% { transform: translateY(0) translateX(0); opacity: 0.7; }
    50%      { transform: translateY(-30px) translateX(20px); opacity: 1; }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 10px; border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: #000; }

.container { width: min(92%,1200px); margin: 0 auto; position: relative; z-index: 1; }
.header { margin: 0 auto; }

/* ── HERO ── */
.hero-section {
    text-align: center; padding: 80px 0 60px; position: relative;
    min-height: 92vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.hero-section::before,
.hero-section::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(80px); z-index: -1; pointer-events: none;
}
.hero-section::before {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(32,121,93,0.2), transparent 70%);
    top: 10%; left: 10%;
    animation: floatBlob 12s ease-in-out infinite, hueShift 8s ease-in-out infinite;
}
.hero-section::after {
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(45,138,102,0.13), transparent 70%);
    bottom: 10%; right: 8%;
    animation: floatBlob 14s ease-in-out infinite reverse;
}
@keyframes floatBlob {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(40px,-30px) scale(1.1); }
}
@keyframes hueShift {
    0%,100% { filter: blur(80px) hue-rotate(0deg); }
    50%      { filter: blur(80px) hue-rotate(15deg); }
}

.profile-container {
    margin: 0 0 28px; display: flex;
    justify-content: center; align-items: center; position: relative;
}
.profile-image-wrapper { position: relative; display: inline-block; }

.imgs img {
    width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(32,121,93,0.5);
    box-shadow: 0 0 0 6px rgba(32,121,93,0.07), 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s var(--easing), border-color 0.3s ease;
}
.imgs img:hover { transform: scale(1.04); border-color: var(--accent); }

/* profile photo placeholder when no image */
.imgs-placeholder {
    width: 160px; height: 160px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(32,121,93,0.2), rgba(8,40,28,0.3));
    border: 2px solid rgba(32,121,93,0.5);
    box-shadow: 0 0 0 6px rgba(32,121,93,0.07), 0 20px 50px rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem; color: var(--accent);
}

.profile-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 130%; height: 130%;
    background: radial-gradient(circle, rgba(32,121,93,0.15) 0%, transparent 70%);
    border-radius: 50%; z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%,100% { opacity: 0.5; transform: translate(-50%,-50%) scale(1); }
    50%      { opacity: 0.9; transform: translate(-50%,-50%) scale(1.12); }
}

.profile-image-wrapper::before,
.profile-image-wrapper::after {
    content: ''; position: absolute; inset: -14px; border-radius: 50%;
    border: 2px dashed rgba(32,121,93,0.4);
    animation: spin 12s linear infinite; pointer-events: none;
}
.profile-image-wrapper::after {
    inset: -28px;
    border: 1px dashed rgba(45,138,102,0.22);
    animation: spin 18s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-container::before,
.profile-container::after {
    content: ''; position: absolute;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: orbit 6s linear infinite;
    top: 50%; left: 50%;
}
.profile-container::after {
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    background: var(--accent-2);
    animation: orbit 8s linear infinite reverse;
}
@keyframes orbit {
    from { transform: rotate(0) translateX(120px) rotate(0); }
    to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

.main-text,.main-dec { width: 100%; text-align: center; }
.main-text { margin-top: 8px; }

.name-title {
    font-family: 'Inter',sans-serif;
    font-size: clamp(2.4rem,6vw,4rem);
    font-weight: 800; letter-spacing: -0.02em;
    margin: 0 0 8px; line-height: 1.1; color: var(--text-1);
}
.name-part { display: inline-block; transition: transform 0.3s ease; }
.name-part.highlight { margin-left: 12px; color: var(--accent); position: relative; }

.name-part.highlight .letter {
    background: linear-gradient(90deg, #20795d, #7bc4a5, #20795d, #2d8a66, #20795d);
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    filter: drop-shadow(0 0 18px rgba(32,121,93,0.55));
    animation: letterIn 0.8s var(--easing) forwards, ekeShimmer 3s linear 0.8s infinite,
               ekeFloat 3.6s ease-in-out 0.8s infinite, ekeGlow 2.4s ease-in-out 0.8s infinite;
}
.name-part.highlight .letter:nth-child(1) { animation-delay: 0s,0.8s,0.8s,0.8s; }
.name-part.highlight .letter:nth-child(2) { animation-delay: 0.05s,0.85s,1.0s,1.0s; }
.name-part.highlight .letter:nth-child(3) { animation-delay: 0.10s,0.90s,1.2s,1.2s; }
@keyframes ekeShimmer { 0%{background-position:0% 50%} 100%{background-position:300% 50%} }
@keyframes ekeFloat {
    0%,100%{transform:translateY(0) rotate(0)} 25%{transform:translateY(-8px) rotate(-3deg)}
    50%{transform:translateY(0)} 75%{transform:translateY(-4px) rotate(3deg)}
}
@keyframes ekeGlow {
    0%,100%{filter:drop-shadow(0 0 18px rgba(32,121,93,0.55))}
    50%{filter:drop-shadow(0 0 35px rgba(45,138,102,0.9)) drop-shadow(0 0 60px rgba(32,121,93,0.5))}
}

.name-part:not(.highlight) .letter {
    background: linear-gradient(90deg,#fff,#7bc4a5,#fff);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: letterIn 0.8s var(--easing) forwards, nameShimmer 5s linear 1s infinite, nameFloat 5s ease-in-out 1s infinite;
}
.name-part:not(.highlight) .letter:nth-child(odd) { animation-delay: 0s,1s,1.2s; }
@keyframes nameShimmer { 0%{background-position:200% 50%} 100%{background-position:0% 50%} }
@keyframes nameFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-3px)} }

.title-container {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 14px; margin: 18px 0 6px;
}
.job-title {
    font-size: clamp(0.95rem,1.6vw,1.1rem); color: var(--text-2); margin: 0;
    font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase;
}
.title-separator { color: var(--accent); font-size: 0.8rem; line-height: 1; }

.description-text { margin: 28px auto 32px; max-width: 620px; }
.description-text p { color: var(--text-2); font-size: 1.05rem; margin: 8px 0; line-height: 1.65; }
.tech-stack { color: var(--accent) !important; font-weight: 600; font-size: 0.85rem !important; letter-spacing: 3px !important; text-transform: uppercase; }

/* LINKS SECTION */
.links-section {
    margin: 18px auto 0; padding: 36px 32px;
    background: transparent;
    border: 2px dashed rgba(32,121,93,0.4);
    border-radius: 28px; max-width: 540px;
    text-align: center; position: relative;
}
.links-section::before {
    content: ''; position: absolute; inset: -14px;
    border: 1px dashed rgba(45,138,102,0.2);
    border-radius: 36px; pointer-events: none;
}
.orbit-icons { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.orbit-icons i {
    position: absolute; top: 0; left: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; color: var(--accent);
    background: var(--bg-0); border-radius: 50%;
    box-shadow: 0 0 16px rgba(32,121,93,0.5), inset 0 0 0 1px rgba(32,121,93,0.4);
    offset-path: inset(-1px round 28px); offset-distance: 0%; offset-rotate: 0deg;
    animation: travel 16s linear infinite;
    pointer-events: auto; cursor: pointer;
    transition: transform 0.25s var(--easing), box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.orbit-icons i:hover {
    animation-play-state: paused;
    color: #0a0a0a;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 24px rgba(32,121,93,0.85), 0 0 50px rgba(45,138,102,0.4), inset 0 0 0 1px rgba(45,138,102,0.6);
    z-index: 5;
}
.orbit-icons i:nth-child(1){animation-delay:0s}
.orbit-icons i:nth-child(2){animation-delay:-3.2s}
.orbit-icons i:nth-child(3){animation-delay:-6.4s}
.orbit-icons i:nth-child(4){animation-delay:-9.6s}
.orbit-icons i:nth-child(5){animation-delay:-12.8s}
@keyframes travel { to { offset-distance: 100%; } }

.links-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.links-link h1 {
    font-size: 1.6rem; margin: 0; color: var(--text-1); font-weight: 700;
    letter-spacing: 6px; text-transform: uppercase;
    background: linear-gradient(135deg, #fff, var(--accent-2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.down { display: none; }
.social { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.social .social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; height: 56px; width: 56px;
    background: rgba(255,255,255,0.04); color: var(--text-2);
    border-radius: 16px; font-size: 1.35rem;
    border: 1px solid var(--border-soft);
    transition: transform 0.4s var(--easing), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.4s ease;
    position: relative; outline: none;
    backdrop-filter: blur(8px);
    opacity: 0; transform: translateY(24px) scale(0.85);
    animation: socialIn 1.4s var(--easing) forwards;
}
.social .social-icon:nth-child(1){animation-delay:0.4s}
.social .social-icon:nth-child(2){animation-delay:0.7s}
.social .social-icon:nth-child(3){animation-delay:1.0s}
.social .social-icon:nth-child(4){animation-delay:1.3s}
.social .social-icon:nth-child(5){animation-delay:1.6s}
@keyframes socialIn { to { opacity:1; transform:translateY(0) scale(1); } }

.social .social-icon::after {
    content: attr(title);
    position: absolute; bottom: -34px; left: 50%;
    transform: translateX(-50%) translateY(-4px);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent-2); background: rgba(20,20,24,0.9);
    border: 1px solid var(--border-accent);
    padding: 4px 10px; border-radius: 999px;
    opacity: 0; pointer-events: none; white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s var(--easing);
}
.social .social-icon::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.3s ease;
}
.social .social-icon i { position: relative; z-index: 1; transition: transform 0.4s var(--easing), color 0.3s ease; }
.social .social-icon:hover,.social .social-icon:focus-visible {
    color: var(--text-1); background: rgba(32,121,93,0.1); border-color: transparent;
    transform: translateY(-6px); box-shadow: 0 12px 28px -8px rgba(32,121,93,0.5);
}
.social .social-icon:hover::before,.social .social-icon:focus-visible::before { opacity:1; }
.social .social-icon:hover::after,.social .social-icon:focus-visible::after { opacity:1; transform:translateX(-50%) translateY(0); }
.social .social-icon:hover i,.social .social-icon:focus-visible i { transform:scale(1.15); color:var(--accent-2); }

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

/* ── SECTIONS ── */
.projects-section,.technologies-section,.about-section { padding: 80px 0; position: relative; z-index: 1; }
.projects-header,.technologies-header,.about-header { text-align: center; margin-bottom: 56px; }
.projects-header h1,.technologies-header h1,.about-header h1 {
    font-family: 'Inter',sans-serif;
    font-size: clamp(2rem,4.5vw,3rem); font-weight: 800; letter-spacing: -0.02em;
    margin: 0 0 16px; color: var(--text-1); position: relative; display: inline-block;
}
.projects-header h1::after,.technologies-header h1::after,.about-header h1::after {
    content: ''; display: block; width: 56px; height: 3px; margin: 14px auto 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px; transform-origin: center;
    animation: underlineGrow 1.2s var(--easing) both;
}
@keyframes underlineGrow { from{transform:scaleX(0)} to{transform:scaleX(1)} }

.projects-header h1:hover,.technologies-header h1:hover,.about-header h1:hover {
    animation: textGlitch 0.6s var(--easing);
}
@keyframes textGlitch {
    0%,100%{transform:translate(0);text-shadow:none}
    20%{transform:translate(-2px,2px);text-shadow:2px 0 var(--accent),-2px 0 #4ad}
    40%{transform:translate(2px,-2px);text-shadow:-2px 0 var(--accent),2px 0 #4ad}
    60%{transform:translate(-1px,1px);text-shadow:1px 0 var(--accent)}
    80%{transform:translate(1px);text-shadow:-1px 0 var(--accent-2)}
}

.projects-down,.technologies-down,.about-down {
    font-size: 1.4rem; color: var(--accent);
    animation: bounceSoft 2.4s ease-in-out infinite; margin-top: 8px;
}
@keyframes bounceSoft {
    0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)}
}

/* ── PROJECTS GRID ── */
.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 24px; padding: 0 4px; max-width: 1200px; margin: 0 auto;
    perspective: 1200px;
}
.project-card {
    background:
        linear-gradient(120deg,transparent 30%,rgba(45,138,102,0.05) 50%,transparent 70%),
        linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01)),
        var(--bg-1);
    background-size: 200% 200%,100% 100%,100% 100%;
    background-position: -100% 0,0 0,0 0;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 28px 24px 26px; text-align: center;
    transition: background-position 0.8s var(--easing), transform 0.45s var(--easing),
                border-color 0.3s ease, box-shadow 0.4s ease;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transform-style: preserve-3d; will-change: transform;
}
.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg,transparent,var(--accent),var(--accent-2),var(--accent),transparent);
    background-size: 200% 100%;
    opacity: 0; transition: opacity 0.4s ease;
    animation: borderFlow 3s linear infinite;
}
@keyframes borderFlow { from{background-position:-200% 0} to{background-position:200% 0} }

.project-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(32,121,93,0.18), transparent 45%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; border-radius: inherit;
}
.project-card:hover { background-position: 200% 0,0 0,0 0; border-color: var(--border-accent); box-shadow: var(--shadow-md), 0 0 0 1px rgba(32,121,93,0.1); }
.project-card:hover::before { opacity: 1; }
.project-card:hover::after { opacity: 1; }

.logo-container {
    width: 96px; height: 96px; border-radius: 22px;
    background: #fff;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.45s var(--easing), border-color 0.3s ease;
    position: relative; overflow: hidden; padding: 6px;
    border: 2px solid transparent;
}
.logo-container::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
    background: linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent);
    transform: skewX(-20deg); transition: left 0.7s var(--easing); z-index: 2;
}
.project-card:hover .logo-container::before { left: 150%; }
.project-card:hover .logo-container,.project-card:focus-within .logo-container {
    transform: translateY(-3px) scale(1.06); border-color: var(--accent);
}
.project-logo {
    margin-bottom: 22px; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
}
.project-logo-img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; z-index: 1; position: relative; border: none; }
.project-note {
    display: inline-block; background: rgba(32,121,93,0.12); color: var(--accent-2);
    padding: 4px 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
    margin: 12px 0 0; text-transform: uppercase; letter-spacing: 0.8px;
    border: 1px solid rgba(32,121,93,0.2);
}
.project-card h3 { color: var(--text-1); font-size: 1.2rem; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
.project-card p { color: var(--text-2); font-size: 0.92rem; margin: 0 0 22px; line-height: 1.6; }
.project-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: var(--accent-2);
    padding: 10px 22px; border-radius: 999px; text-decoration: none;
    font-weight: 600; font-size: 0.9rem; transition: all 0.3s ease;
    border: 1px solid var(--border-accent); letter-spacing: 0.3px;
    position: relative; overflow: hidden;
}
.project-link::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0;
    border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: translate(-50%,-50%); transition: width 0.5s var(--easing), height 0.5s var(--easing); z-index: -1;
}
.project-link::after { content: '→'; transition: transform 0.3s ease; }
.project-link:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0a0a; border-color: var(--accent); box-shadow: var(--shadow-accent); }
.project-link:hover::before { width: 300px; height: 300px; }
.project-link:hover::after { transform: translateX(4px); }
.project-link-container { display: flex; justify-content: center; margin-top: 18px; }

/* ── TECHNOLOGIES ── */
.technologies-grid {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 4px;
}
.tech-category {
    background: linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));
    border-radius: var(--radius-md); padding: 28px 24px;
    border: 1px solid var(--border-soft); backdrop-filter: blur(14px);
    transition: transform 0.4s var(--easing), border-color 0.3s ease, box-shadow 0.4s ease;
    position: relative; overflow: hidden;
}
.tech-category::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(32,121,93,0.18), transparent 45%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; border-radius: inherit;
}
.tech-category:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-md); }
.tech-category:hover::after { opacity: 1; }
.tech-category-title {
    font-size: 0.85rem; font-weight: 700; color: var(--accent);
    margin: 0 0 22px; text-align: center; text-transform: uppercase; letter-spacing: 3px;
}
.tech-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 14px; }
.tech-item {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 12px; background: var(--surface-1);
    border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
    transition: transform 0.3s var(--easing), background 0.3s ease, border-color 0.3s ease;
    cursor: pointer; text-decoration: none; color: inherit;
    animation: techFloat 4s ease-in-out infinite; position: relative; overflow: hidden;
}
.tech-item::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(32,121,93,0.18), transparent 50%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; border-radius: inherit;
}
.tech-item:nth-child(1){animation-delay:0s}
.tech-item:nth-child(2){animation-delay:0.4s}
.tech-item:nth-child(3){animation-delay:0.8s}
.tech-item:nth-child(4){animation-delay:1.2s}
@keyframes techFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
.tech-item:hover { animation: none; transform: translateY(-3px); background: rgba(32,121,93,0.08); border-color: var(--border-accent); }
.tech-item:hover::after { opacity: 1; }
a.tech-item:visited,a.tech-item:focus { color: inherit; text-decoration: none; outline: none; }
.tech-item i { font-size: 1.9rem; color: var(--accent); margin-bottom: 8px; transition: transform 0.3s ease, color 0.3s ease; }
.tech-item:hover i { animation: iconPop 0.5s var(--easing); }
@keyframes iconPop { 0%{transform:scale(1)} 50%{transform:scale(1.25) rotate(-8deg)} 100%{transform:scale(1.12) rotate(0)} }
.tech-item span { font-size: 0.78rem; font-weight: 600; color: var(--text-2); text-align: center; letter-spacing: 0.5px; }

/* ── ABOUT ── */
.about-content {
    max-width: 820px; margin: 0 auto;
    background: linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01));
    border-radius: var(--radius-md); padding: 44px 40px;
    border: 1px solid var(--border-soft); backdrop-filter: blur(14px);
    line-height: 1.8; position: relative; overflow: hidden;
}
.about-content::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 80px; height: 2px;
    background: linear-gradient(90deg,transparent,var(--accent),transparent);
}
.about-content::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(32,121,93,0.18), transparent 50%);
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; border-radius: inherit;
}
.about-content:hover::after { opacity: 1; }
.about-content p { font-size: 1rem; color: var(--text-2); margin-bottom: 18px; }
.about-content p:last-child { margin-bottom: 0; }

/* LETTER ANIM */
.name-title .letter {
    display: inline-block; opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    animation: letterIn 0.8s var(--easing) forwards;
    transform-origin: bottom center;
}
@keyframes letterIn { to { opacity:1; transform:translateY(0) rotateX(0); } }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--easing), transform 0.9s var(--easing); }
.reveal-in { opacity: 1; transform: translateY(0); }
.projects-grid .reveal:nth-child(1){transition-delay:0.05s}
.projects-grid .reveal:nth-child(2){transition-delay:0.10s}
.projects-grid .reveal:nth-child(3){transition-delay:0.15s}
.projects-grid .reveal:nth-child(4){transition-delay:0.20s}
.projects-grid .reveal:nth-child(5){transition-delay:0.25s}
.projects-grid .reveal:nth-child(6){transition-delay:0.30s}
.technologies-grid .reveal:nth-child(1){transition-delay:0.05s}
.technologies-grid .reveal:nth-child(2){transition-delay:0.15s}
.technologies-grid .reveal:nth-child(3){transition-delay:0.25s}

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .container { width: 94%; }
    .hero-section { padding: 50px 0; min-height: auto; }
    .imgs img,.imgs-placeholder { width: 130px; height: 130px; }
    .title-container { flex-direction: column; gap: 6px; }
    .title-separator { display: none; }
    .projects-section,.technologies-section,.about-section { padding: 50px 0; }
    .projects-grid,.technologies-grid { grid-template-columns: 1fr; gap: 18px; }
    .project-card { padding: 24px 20px; }
    .about-content { padding: 28px 20px; }
    .projects-header,.technologies-header,.about-header { margin-bottom: 36px; }
}
@media (max-width: 533px) {
    .imgs img,.imgs-placeholder { width: 110px; height: 110px; }
    .description-text p { font-size: 0.95rem; }
    .social .social-icon { height: 2.9rem; width: 2.9rem; font-size: 1.15rem; }
    .links-section { padding: 20px 16px; }
    .logo-container { width: 80px; height: 80px; border-radius: 18px; }
    .project-card h3 { font-size: 1.05rem; }
    .project-card p { font-size: 0.85rem; }
    .tech-items { grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 10px; }
    .tech-item { padding: 14px 8px; }
    .tech-item i { font-size: 1.6rem; }
    .tech-item span { font-size: 0.72rem; }
    .about-content p { font-size: 0.9rem; }
}
