/* =============================================
   PORTFOLIO - Alessandro Minaki
   Theme: Dark, Modern, Minimal
   ============================================= */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #12121e;
    --bg-card-hover: #181828;
    --border: #1e1e32;
    --border-light: #2a2a44;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-2: #06b6d4;
    --accent-3: #8b5cf6;
    --gradient: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-text: linear-gradient(135deg, #818cf8, #22d3ee);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --orange: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

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

/* ---- NAV ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-secondary);
    transition: var(--transition);
}
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid var(--border);
}
.nav-mobile a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}
.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}
.glow-1 {
    width: 600px; height: 600px;
    background: rgba(99, 102, 241, 0.15);
    top: -200px; right: -100px;
}
.glow-2 {
    width: 400px; height: 400px;
    background: rgba(6, 182, 212, 0.1);
    bottom: -100px; left: -100px;
    animation: glowFloat2 8s ease-in-out infinite alternate;
}
.glow-3 {
    width: 300px; height: 300px;
    background: rgba(139, 92, 246, 0.08);
    top: 40%; left: 50%;
    transform: translateX(-50%);
    animation: glowFloat3 10s ease-in-out infinite alternate;
}
.glow-1 {
    animation: glowFloat1 7s ease-in-out infinite alternate;
}
/* Particles container */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 3px; height: 3px;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    background: var(--accent-glow);
    letter-spacing: 1px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out, badgePulse 3s ease-in-out infinite;
}

/* Hero Logo AMS */
.hero-logo {
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    perspective: 800px;
}
.hero-logo {
    position: relative;
}
.hero-logo-svg {
    width: clamp(320px, 50vw, 480px);
    height: auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2)) drop-shadow(0 0 60px rgba(6, 182, 212, 0.1));
}

/* Nome (menor, uma linha, abaixo do logo) */
.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title.hero-title-small {
    font-size: clamp(20px, 3vw, 34px);
    letter-spacing: 8px;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    white-space: nowrap;
}
.hero-title-small .name-line {
    margin: 0 4px;
}
.name-separator {
    color: var(--accent-light);
    margin: 0 6px;
    font-weight: 300;
    opacity: 0.5;
}
.gradient-text {
    background: linear-gradient(270deg, #818cf8, #22d3ee, #a78bfa, #818cf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}
/* Letters + turbulence effect */
.name-line { display: inline-block; }
.letter {
    display: inline-block;
    transition: transform 0.3s ease;
}
.letter.shake {
    animation: letterShake 0.5s ease;
}
@keyframes letterShake {
    0%   { transform: translateY(0) rotate(0deg); }
    15%  { transform: translateY(-8px) rotate(-3deg); }
    30%  { transform: translateY(5px) rotate(2deg); }
    50%  { transform: translateY(-4px) rotate(-1.5deg); }
    70%  { transform: translateY(3px) rotate(1deg); }
    85%  { transform: translateY(-1px) rotate(-0.5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-subtitle strong { color: var(--text-primary); }
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 140px);
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.stat { text-align: center; }
.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    height: 52px;
}
.stat-number {
    font-size: 44px;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-plus {
    font-size: 26px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 8px;
    letter-spacing: 0.5px;
}
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- SECTIONS ---- */
.section { padding: 120px 0; }
.section-dark { background: var(--bg-secondary); }
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-lead {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-lead strong { color: var(--accent-light); }
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}
.highlight {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.highlight:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.highlight-icon {
    width: 40px; height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}
.highlight-icon svg { width: 20px; height: 20px; }
.highlight strong {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}
.highlight p {
    font-size: 13px;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* Terminal */
.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot-red, .dot-yellow, .dot-green {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.terminal-body { padding: 20px; }
.terminal-line {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 2;
    color: var(--text-secondary);
}
.t-prompt { color: var(--green); }
.t-cmd { color: var(--text-primary); }
.t-output { color: var(--text-muted); padding-left: 16px; }
.t-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

/* ---- PROJECTS ---- */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}
.filter-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

/* Featured Project */
.project-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.project-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient);
}
.project-featured:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow);
}
.project-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 16px;
}
.project-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}
.project-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.project-features span {
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 12px;
    color: var(--green);
    font-weight: 500;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.tech-tag {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    font-family: var(--font-mono);
}
.project-apis {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}
.api-label { color: var(--text-secondary); font-weight: 600; }

/* Code Block */
.code-block {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}
.code-lang {
    padding: 2px 8px;
    background: var(--accent-glow);
    border-radius: 4px;
    color: var(--accent-light);
    font-size: 11px;
}
.code-block pre {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.9;
    overflow-x: auto;
}
.c-kw { color: #c678dd; }
.c-fn { color: #61afef; }
.c-str { color: #98c379; }
.c-cm { color: #5c6370; font-style: italic; }

/* Project Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.project-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.15), 0 0 0 1px rgba(99, 102, 241, 0.1);
}
.project-card.hidden {
    display: none;
}
.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.project-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}
.project-icon svg { width: 22px; height: 22px; }
.project-icon-img {
    background: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
}
.project-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.project-icon-instagram {
    background: rgba(0, 0, 0, 0.3);
}
.project-type {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.project-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.project-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.project-status {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.status-live {
    padding: 4px 12px;
    background: var(--green-bg);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}
.status-store {
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
}
.status-netlify {
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-2);
}

/* ---- SKILLS ---- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}
.skill-category:hover {
    border-color: var(--border-light);
}
.skill-cat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent-light);
}
.skill-cat-title svg { width: 22px; height: 22px; }
/* Skill Tags (tag badges) */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-tags .tech-tag {
    padding: 6px 14px;
    font-size: 13px;
    transition: var(--transition);
}
.skill-tags .tech-tag:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---- TIMELINE ---- */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 15px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute;
    left: -33px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--border-light);
    border: 2px solid var(--bg-secondary);
}
.timeline-marker.active {
    background: var(--accent);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
    animation: markerPulse 2s ease-in-out infinite;
}
.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.timeline-content:hover {
    border-color: var(--border-light);
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}
.timeline-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
}
.timeline-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ---- CONTACT ---- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.contact-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: 50%;
    color: var(--accent-light);
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-value {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- FOOTER ---- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo-wrap {
    display: flex;
    justify-content: center;
}
.footer-logo-img {
    height: 96px;
    width: auto;
    opacity: 0.55;
    transition: var(--transition);
    color: var(--text-primary);
}
.footer-logo-img:hover {
    opacity: 0.75;
    transform: scale(1.05);
}
.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes scrollPulse {
    0% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
    100% { opacity: 1; transform: scaleY(1); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes glowFloat1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes glowFloat2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, -40px) scale(1.15); }
}
@keyframes glowFloat3 {
    from { transform: translateX(-50%) translate(0, 0) scale(1); opacity: 0.08; }
    to { transform: translateX(-50%) translate(30px, -30px) scale(1.2); opacity: 0.15; }
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(99, 102, 241, 0.15); }
}
@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 16px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 28px rgba(99, 102, 241, 0.8), 0 0 8px rgba(99, 102, 241, 0.4); }
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered reveal for cards */
.reveal.visible:nth-child(2) { transition-delay: 0.1s; }
.reveal.visible:nth-child(3) { transition-delay: 0.2s; }
.reveal.visible:nth-child(4) { transition-delay: 0.3s; }
.reveal.visible:nth-child(5) { transition-delay: 0.4s; }
.reveal.visible:nth-child(6) { transition-delay: 0.5s; }

/* Floating animation for section icons */
.project-icon { animation: float 4s ease-in-out infinite; }
.project-card:nth-child(2) .project-icon { animation-delay: 0.5s; }
.project-card:nth-child(3) .project-icon { animation-delay: 1s; }
.project-card:nth-child(4) .project-icon { animation-delay: 1.5s; }
.project-card:nth-child(5) .project-icon { animation-delay: 2s; }

/* Highlight icon float */
.highlight-icon { animation: float 5s ease-in-out infinite; }
.highlight:nth-child(2) .highlight-icon { animation-delay: 0.7s; }
.highlight:nth-child(3) .highlight-icon { animation-delay: 1.4s; }

/* Contact card hover glow */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    animation: shimmer 4s ease-in-out infinite;
}
.contact-card { position: relative; overflow: hidden; }

/* Section title underline animation */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.6s ease;
}
.section-header:hover .section-title::after {
    width: 60px;
}

/* Skill category hover glow */
.skill-category:hover .tech-tag {
    border-color: rgba(99, 102, 241, 0.25);
}

/* Stats separator */
.stat {
    position: relative;
}
.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -25px; top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 968px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .project-featured { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(3, 120px); gap: 32px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero-title { letter-spacing: -2px; }
    .hero-title.hero-title-small { letter-spacing: 3px; font-size: clamp(16px, 3vw, 24px); white-space: normal; }
    .hero-logo-svg { width: clamp(260px, 65vw, 380px); }
    .hero-subtitle { font-size: 16px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-stats { grid-template-columns: repeat(3, 100px); gap: 16px; }
    .section { padding: 80px 0; }
    .section-title { font-size: 32px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-featured { padding: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 8px; text-align: center; }
    .stat-number { font-size: 32px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .project-card { padding: 24px; }
    .skill-category { padding: 24px; }
}
