/* =============================================
   RIKY DWIANTO PORTFOLIO
   Ultra-Modern Flat Design · Bright · No Shadow/Border
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-soft: #DBEAFE;
    --primary-ultra: #EFF6FF;
    --secondary: #F59E0B;
    --secondary-soft: #FEF3C7;
    --accent: #10B981;
    --accent-soft: #D1FAE5;
    --purple: #7C3AED;
    --purple-soft: #EDE9FE;
    --rose: #F43F5E;
    --rose-soft: #FFE4E6;
    --bg-white: #FFFFFF;
    --bg-page: #F8FAFC;
    --bg-alt: #F1F5F9;
    --text-dark: #0F172A;
    --text-heading: #1E293B;
    --text-body: #475569;
    --text-muted: #94A3B8;
    --font: 'Plus Jakarta Sans', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Sections ── */
.section {
    padding: 7rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.section-header-center {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.section-heading.center {
    text-align: center;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-soft);
}

.btn-outline:hover {
    background: var(--primary-soft);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ══════════════════════════
   NAVBAR
   ══════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.dot {
    color: var(--primary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* ══════════════════════════
   HERO
   ══════════════════════════ */
.hero-section {
    padding: 10rem 0 6rem;
    background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-ultra) 40%, #F8FAFC 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-soft);
    opacity: 0.4;
    animation: shapePulse 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    background: var(--purple-soft);
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 30%;
    background: var(--secondary-soft);
    animation-delay: 4s;
}

@keyframes shapePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-soft);
    color: #065F46;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.08;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

/* Typewriter */
.typewriter-wrapper {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.typewriter-prefix {
    color: var(--text-muted);
}

.typewriter-text {
    color: var(--primary);
    font-weight: 700;
}

.typewriter-cursor {
    animation: blink 0.8s infinite;
    color: var(--primary);
    font-weight: 300;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 500px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    color: var(--text-body);
    transition: all 0.3s var(--ease);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Hero Visual — Orbiting Badges */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-shape {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 800;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    overflow: hidden;
    /* Ensure image stays in circle */
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    animation-duration: 18s;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    animation-duration: 22s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 360px;
    height: 360px;
    animation-duration: 25s;
}

.orbit-4 {
    width: 360px;
    height: 360px;
    animation-duration: 28s;
    animation-direction: reverse;
}

.orbit-5 {
    width: 320px;
    height: 320px;
    animation-duration: 20s;
}

.orbit-6 {
    width: 380px;
    height: 380px;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.floating-badge {
    position: absolute;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 3;
    /* counter-rotate to keep text upright */
    animation: counterSpin 20s linear infinite;
}

.orbit-1 .floating-badge {
    animation-duration: 18s;
}

.orbit-2 .floating-badge {
    animation-duration: 22s;
    animation-direction: reverse;
}

.orbit-3 .floating-badge {
    animation-duration: 25s;
}

.orbit-4 .floating-badge {
    animation-duration: 28s;
    animation-direction: reverse;
}

.orbit-5 .floating-badge {
    animation-duration: 20s;
}

.orbit-6 .floating-badge {
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes counterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.badge-php {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple-soft);
    color: var(--purple);
}

.badge-node {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-soft);
    color: #065F46;
}

.badge-flutter {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--primary-soft);
    color: var(--primary);
}

.badge-mysql {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--secondary-soft);
    color: #92400E;
}

.badge-docker {
    top: 15%;
    right: 5%;
    background: var(--primary-soft);
    color: #1D4ED8;
}

.badge-sql {
    bottom: 15%;
    left: 5%;
    background: var(--rose-soft);
    color: var(--rose);
}

.badge-server {
    bottom: 10%;
    right: 15%;
    background: var(--accent-soft);
    color: #065F46;
}

/* ══════════════════════════
   ABOUT
   ══════════════════════════ */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-left {
    max-width: 500px;
}

.about-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-dark);
}

/* Skill Cards */
.skills-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    cursor: default;
}

.skill-card:hover {
    transform: translateY(-4px);
    background: var(--primary-ultra);
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.skill-icon-web {
    background: var(--primary-soft);
    color: var(--primary);
}

.skill-icon-mobile {
    background: var(--purple-soft);
    color: var(--purple);
}

.skill-icon-db {
    background: var(--secondary-soft);
    color: #B45309;
}

.skill-icon-ai {
    background: var(--accent-soft);
    color: #059669;
}

.skill-icon-devops {
    background: var(--rose-soft);
    color: var(--rose);
}

.skill-icon-api {
    background: #FFF7ED;
    color: #EA580C;
}

.skill-icon-data {
    background: #F0FDF4;
    color: #16A34A;
}

.skill-icon-think {
    background: #FDF4FF;
    color: #A855F7;
}

.skill-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.skill-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ══════════════════════════
   TIMELINE
   ══════════════════════════ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-soft), var(--primary), var(--primary-soft));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 1.5rem;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    position: relative;
    z-index: 2;
}

.marker-dot::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-soft);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.timeline-card {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    cursor: default;
}

.timeline-card:hover {
    transform: translateX(8px);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.timeline-year {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
}

.timeline-type {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.type-experience {
    background: var(--primary-soft);
    color: var(--primary);
}

.type-education {
    background: var(--accent-soft);
    color: #065F46;
}

.type-certification {
    background: var(--secondary-soft);
    color: #92400E;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.1rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* ══════════════════════════
   FILTER BAR
   ══════════════════════════ */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--bg-white);
    border: none;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
}

.filter-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* ══════════════════════════
   PORTFOLIO GRID
   ══════════════════════════ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.project-card:hover {
    transform: translateY(-8px);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-soft), var(--bg-alt));
}

.card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image.no-image::after {
    content: '📁';
    font-size: 3rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.project-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s var(--ease);
}

.project-card:hover .card-overlay {
    opacity: 1;
}

.card-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
}

.card-view-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card-body {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.card-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.card-type {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: capitalize;
}

.type-badge-web_link {
    background: var(--primary-soft);
    color: var(--primary);
}

.type-badge-video {
    background: var(--purple-soft);
    color: var(--purple);
}

.type-badge-image {
    background: var(--accent-soft);
    color: #065F46;
}

.type-badge-pdf {
    background: var(--rose-soft);
    color: var(--rose);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: var(--bg-alt);
    color: var(--text-body);
}

/* ══════════════════════════
   PROJECT DETAIL
   ══════════════════════════ */
.project-detail-page {
    padding: 7rem 0 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.back-link:hover {
    gap: 0.75rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-meta-top {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-category {
    background: var(--primary-soft);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.detail-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.detail-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.detail-media {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.detail-main-image {
    width: 100%;
    border-radius: var(--radius);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}

.detail-gallery {
    margin: 2rem 0;
}

.detail-gallery h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.detail-content {
    margin: 2rem 0;
}

.detail-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
}

.detail-action {
    margin: 2rem 0;
    text-align: center;
}

/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.footer {
    background: var(--text-dark);
    color: #CBD5E1;
    padding: 4.5rem 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1E293B;
    color: #94A3B8;
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-nav h4,
.footer-contact h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
    color: #94A3B8;
    font-size: 0.88rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.82rem;
    color: #64748B;
}

/* ══════════════════════════
   ANIMATIONS
   ══════════════════════════ */
.project-card,
.timeline-item,
.skill-card,
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card.fade-in,
.timeline-item.fade-in,
.skill-card.fade-in,
.stat-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════
   404
   ══════════════════════════ */
.text-center {
    text-align: center;
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        margin: 0 auto 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-left {
        max-width: 100%;
    }

    .skills-showcase {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 2rem;
        gap: 1.25rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 13px;
    }

    .timeline-marker {
        left: -40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .skills-showcase {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        gap: 0.35rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}
/* ADDITIONS FOR REDESIGN */
.text-justify { text-align: justify; }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, #a855f7 50%, #ec4899 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.shadow-hover:hover { box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4); transform: translateY(-2px); }

/* ZIG-ZAG TIMELINE FOR DESKTOP */
@media (min-width: 769px) {
    .timeline { max-width: 1000px; padding: 0; }
    .timeline::before { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding: 0 40px; margin-bottom: 0; }
    .timeline-item:nth-child(odd) { left: 0; text-align: right; }
    .timeline-item:nth-child(even) { left: 50%; text-align: left; }
    .timeline-item:nth-child(odd) .timeline-marker { left: auto; right: -50px; justify-content: flex-end; }
    .timeline-item:nth-child(even) .timeline-marker { left: -50px; justify-content: flex-start; }
    .timeline-item:nth-child(odd) .marker-dot { margin-right: -7px; }
    .timeline-item:nth-child(even) .marker-dot { margin-left: -7px; }
    .timeline-item:nth-child(odd) .timeline-card-header { flex-direction: row-reverse; }
}
