/* 
  REDWOLF CYBERPUNK DESIGN SYSTEM 
  Author: Gemini CLI / RedWolf
*/

:root {
    /* COLOR TOKENS */
    --clr-bg-base: #090000;
    --clr-bg-surface: #120000;
    --clr-bg-hover: #1C0000;
    --clr-bg-input: #0F0000;
    --clr-red-primary: #DC143C;
    --clr-red-deep: #8B0000;
    --clr-red-hot: #FF1744;
    --clr-red-glow: rgba(220, 20, 60, 0.25);
    --clr-red-glow-lg: rgba(220, 20, 60, 0.12);
    --clr-text-primary: #E8E8E8;
    --clr-text-muted: #9A8585;
    --clr-text-dim: #5A3030;
    --clr-border: #3A0000;
    --clr-border-hot: #8B0000;
    
    /* FONTS */
    --font-display: 'Orbitron', sans-serif;
    --font-terminal: 'Share Tech Mono', monospace;
    --font-body: 'Rajdhani', sans-serif;

    /* ANIMATION SPEEDS */
    --anim-fast: 0.2s;
    --anim-med: 0.4s;
    --anim-slow: 0.8s;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg-base);
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

ul {
    list-style: none;
}

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

h1, h2, h3, h4 {
    font-weight: 900;
    text-transform: uppercase;
}

/* --- UTILITIES --- */
.display-text { font-family: var(--font-display); }
.terminal-text { font-family: var(--font-terminal); text-transform: uppercase; letter-spacing: 1px; }
.body-text { font-family: var(--font-body); }

/* --- VISUAL MOTIFS --- */

/* 0. GLOBAL BACKGROUND PARTICLES */
#bg-smoke, #bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#bg-smoke {
    z-index: -2; /* Smoke behind particles */
    background: var(--clr-bg-base);
}

/* 1. SCANLINE OVERLAY */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      0deg, transparent, transparent 2px,
      rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* 2. CIRCUIT GRID BACKGROUND */
.circuit-bg {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L40 40 L40 0' fill='none' stroke='%23DC143C' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
}

/* 3. GLITCH TEXT */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.glitch-active::before {
    opacity: 1;
    left: 3px;
    text-shadow: -3px 0 var(--clr-red-primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 0.4s Math.random() linear infinite;
}

.glitch-active::after {
    opacity: 1;
    left: -3px;
    text-shadow: -3px 0 #fff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 0.4s Math.random() linear infinite;
}

.glitch-active {
    animation: glitch-vibrate 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 5. CLIP-PATH ANGULAR CUTS */
.clip-path-card {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.clip-path-heading {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.clip-path-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-red-primary);
    clip-path: polygon(0 0, 80% 0, 85% 100%, 0 100%);
}

/* 6. CORNER BRACKET DECORATORS */
.corner-brackets {
    position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--clr-red-primary);
    border-style: solid;
    opacity: 0.6;
    transition: all var(--anim-med) ease;
    pointer-events: none;
}

.corner-brackets::before {
    top: -4px;
    left: -4px;
    border-width: 2px 0 0 2px; /* Top-left */
}

.corner-brackets::after {
    bottom: -4px;
    right: -4px;
    border-width: 0 2px 2px 0; /* Bottom-right */
}

.corner-brackets:hover::before,
.corner-brackets:hover::after {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px var(--clr-red-primary);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all var(--anim-fast) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--clr-red-primary);
    color: #000;
    animation: borderPulse 2s infinite;
}

.btn-primary:hover {
    background-color: var(--clr-red-hot);
    box-shadow: 0 0 20px var(--clr-red-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-red-primary);
    border: 1px solid var(--clr-red-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-red-primary);
    color: #000;
}

.btn-nav {
    padding: 8px 16px;
    border: 1px solid var(--clr-red-primary);
    background: transparent;
    color: var(--clr-red-primary);
    font-size: 0.8rem;
}

.full-width { width: 100%; }

/* --- LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-bg-base);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.loader-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.loader-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    opacity: 0.4;
}

.ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
}

.ring-outer {
    border-top-color: var(--clr-red-primary);
    border-bottom-color: var(--clr-red-primary);
    animation: rotate-cw 4s linear infinite;
}

.ring-inner {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-left-color: var(--clr-red-primary);
    border-right-color: var(--clr-red-primary);
    animation: rotate-ccw 3s linear infinite;
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.signature-text {
    font-size: 5rem;
    margin-bottom: 20px;
    letter-spacing: 12px;
}

.loader-diag-stream {
    height: 60px;
    margin-bottom: 30px;
    color: var(--clr-red-primary);
    font-size: 0.8rem;
    opacity: 0.8;
}

.loader-bar-container {
    width: 250px;
    height: 4px;
    background: var(--clr-bg-surface);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--clr-border);
}

.loader-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--clr-red-primary);
    box-shadow: 0 0 15px var(--clr-red-primary);
    animation: loading-bar 2.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-footer {
    position: absolute;
    bottom: -100px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--clr-text-dim);
    padding: 0 20px;
}

.status-pulse {
    color: var(--clr-red-primary);
    animation: blink 1s infinite;
}

@keyframes rotate-cw {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* --- NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    background: rgba(9, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    height: 64px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 1px solid var(--clr-red-primary);
    box-shadow: 0 0 10px var(--clr-red-glow);
}

.logo a {
    font-size: 1.5rem;
    color: var(--clr-red-primary);
    text-shadow: 0 0 10px var(--clr-red-glow);
}

.cursor-block {
    width: 12px;
    height: 24px;
    background: var(--clr-red-primary);
    animation: blink 1s step-end infinite;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-item {
    color: var(--clr-text-muted);
    font-weight: 600;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--clr-red-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--anim-fast) ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--clr-red-primary);
}

.nav-item:hover::after, .nav-item.active::after {
    transform: scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-red-primary);
    font-size: 1.5rem;
}

.nav-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-red-primary), transparent);
    animation: shimmer 3s infinite linear;
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 64px;
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    will-change: transform, opacity;
}

.tagline {
    color: var(--clr-red-deep);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--clr-red-primary);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.hero-title {
    font-size: 5rem;
    color: var(--clr-red-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--clr-text-primary);
    margin-bottom: 24px;
    min-height: 1.5em;
}

.cursor {
    animation: blink 1s step-end infinite;
}

.hero-description {
    color: var(--clr-text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image-container {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.image-frame {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    border: 2px solid var(--clr-red-primary);
    padding: 10px;
    box-shadow: 0 0 32px var(--clr-red-glow-lg);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(220, 20, 60, 0.1), transparent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--clr-red-deep);
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: translateY-bounce 2s infinite;
}

/* --- SECTIONS --- */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-red-primary);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--clr-red-primary);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--clr-text-primary);
    margin-bottom: 30px;
}

.text-accent {
    color: var(--clr-red-primary);
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.text-accent:hover {
    border-bottom-color: var(--clr-red-primary);
    text-shadow: 0 0 8px var(--clr-red-glow);
}

.identity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.id-card {
    background: var(--clr-bg-surface);
    padding: 24px;
    border-left: 3px solid var(--clr-red-primary);
    transition: all var(--anim-med) ease;
}

.id-card h3 {
    font-size: 1.1rem;
    color: var(--clr-red-primary);
    margin-bottom: 10px;
}

.id-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.id-card:hover {
    background: var(--clr-bg-hover);
    box-shadow: 0 0 15px var(--clr-red-glow);
    transform: translateX(5px);
}

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

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    color: var(--clr-red-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--clr-text-dim);
}

.about-img-frame {
    width: 100%;
    aspect-ratio: 4/5;
    border: 1px solid var(--clr-border);
    position: relative;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 20, 60, 0.15);
    mix-blend-mode: multiply;
}

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

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

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

.hud-bar {
    display: flex;
    gap: 5px;
}

.hud-cell {
    width: calc(5% - 5px);
    height: 10px;
    background: var(--clr-bg-hover);
    border: 1px solid var(--clr-border);
    transition: all 0.3s ease;
}

.hud-cell.filled {
    background: var(--clr-red-primary);
    border-color: var(--clr-red-primary);
    box-shadow: 0 0 8px var(--clr-red-glow);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.tool-badge {
    background: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all var(--anim-med) ease;
}

.tool-badge i {
    font-size: 2rem;
    color: var(--clr-text-muted);
}

.tool-badge span {
    font-size: 0.7rem;
    font-family: var(--font-terminal);
}

.tool-badge:hover {
    border-color: var(--clr-red-primary);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--clr-red-glow);
}

.tool-badge:hover i {
    color: var(--clr-red-primary);
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-card {
    background: var(--clr-bg-surface);
    padding: 30px;
    border-top: 2px solid var(--clr-red-deep);
    transition: all var(--anim-med) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-header h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.7rem;
    background: var(--clr-bg-hover);
    color: var(--clr-red-primary);
    border: 1px solid var(--clr-red-primary);
    padding: 4px 10px;
}

.project-body {
    color: var(--clr-text-muted);
    margin-bottom: 30px;
}

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

.btn-project {
    font-size: 0.8rem;
    color: var(--clr-red-primary);
    font-weight: 700;
}

.btn-project:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--clr-red-primary);
}

.project-card:hover {
    background: var(--clr-bg-hover);
    border-top-color: var(--clr-red-primary);
    transform: translateY(-5px);
}

.project-card:hover h3 {
    color: var(--clr-red-primary);
}

/* --- CONTACT --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

.info-card {
    background: var(--clr-bg-surface);
    padding: 24px;
    margin-bottom: 20px;
    border-left: 2px solid var(--clr-red-primary);
}

.info-card h3 {
    font-size: 0.8rem;
    color: var(--clr-red-deep);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 1.1rem;
}

.social-row {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--clr-text-muted);
    transition: all var(--anim-fast) ease;
}

.social-btn:hover {
    border-color: var(--clr-red-primary);
    color: var(--clr-red-primary);
    box-shadow: 0 0 15px var(--clr-red-glow);
    transform: scale(1.1);
}

.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    background: var(--clr-bg-input);
    border: 1px solid var(--clr-border);
    padding: 16px;
    color: var(--clr-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--anim-fast) ease;
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--clr-text-dim);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-red-primary);
    box-shadow: 0 0 10px var(--clr-red-glow);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    transform: translateY(-28px) scale(0.85);
    color: var(--clr-red-primary);
    background: var(--clr-bg-base);
    padding: 0 8px;
    left: 8px;
}

#formStatus {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
    background: #060000;
    padding: 60px 0;
    border-top: 1px solid var(--clr-border);
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-img {
    width: 60px;
    margin: 0 auto 15px;
}

.footer-logo h2 {
    color: var(--clr-red-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--clr-text-dim);
    font-size: 0.8rem;
}

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

.social-link {
    font-size: 1.5rem;
    color: var(--clr-text-dim);
}

.social-link:hover {
    color: var(--clr-red-primary);
}

.footer-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-red-primary), transparent);
    animation: shimmer 5s infinite linear;
}

/* --- ANIMATIONS --- */
@keyframes loading-bar {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

@keyframes glitch-anim {
    0% { clip: rect(24px, 9999px, 90px, 0); }
    10% { clip: rect(65px, 9999px, 30px, 0); }
    20% { clip: rect(12px, 9999px, 88px, 0); }
    30% { clip: rect(44px, 9999px, 12px, 0); }
    40% { clip: rect(87px, 9999px, 45px, 0); }
    50% { clip: rect(55px, 9999px, 66px, 0); }
    60% { clip: rect(10px, 9999px, 5px, 0); }
    70% { clip: rect(98px, 9999px, 100px, 0); }
    80% { clip: rect(32px, 9999px, 14px, 0); }
    90% { clip: rect(66px, 9999px, 80px, 0); }
    100% { clip: rect(4px, 9999px, 12px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(14px, 9999px, 100px, 0); }
    10% { clip: rect(88px, 9999px, 12px, 0); }
    20% { clip: rect(5px, 9999px, 65px, 0); }
    30% { clip: rect(12px, 9999px, 32px, 0); }
    40% { clip: rect(44px, 9999px, 55px, 0); }
    50% { clip: rect(87px, 9999px, 10px, 0); }
    60% { clip: rect(10px, 9999px, 87px, 0); }
    70% { clip: rect(66px, 9999px, 4px, 0); }
    80% { clip: rect(98px, 9999px, 98px, 0); }
    90% { clip: rect(32px, 9999px, 66px, 0); }
    100% { clip: rect(65px, 9999px, 14px, 0); }
}

@keyframes glitch-vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes borderPulse {
    0% { border-color: var(--clr-border); }
    50% { border-color: var(--clr-red-primary); }
    100% { border-color: var(--clr-border); }
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes translateY-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- REVEAL ANIMATIONS (MANAGED BY GSAP) --- */
.reveal, .id-card, .project-card, .skill-item {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .about-grid, .skills-grid, .contact-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: 3.5rem; }
    .hero-description { margin: 0 auto 30px; }
    .hero-image-container { justify-content: center; }
    
    .nav-links-container {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--clr-bg-base);
        overflow: hidden;
        transition: height 0.4s ease;
    }
    
    .nav-links-container.open { height: calc(100vh - 64px); }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        padding: 60px 0;
    }
    
    .mobile-menu-toggle { display: block; }
    
    .about-grid, .skills-grid, .projects-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-container { order: -1; }
    .stats-row { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.375rem; } /* 38px */
    .hero-btns { flex-direction: column; width: 100%; }
    .section-title { font-size: 1.8rem; }
}
