/* ============================
   CSS Variables & Design Tokens
   ============================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(22, 22, 35, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b80;

    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.3);
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #74b9ff);

    --success: #00d2d3;
    --warning: #feca57;
    --info: #54a0ff;

    /* Social Colors */
    --instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --tiktok: #010101;
    --linkedin: #0077b5;
    --facebook: #1877f2;
    --threads: #000000;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 92, 231, 0.3);

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.15);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ============================
   Background Particles
   ============================ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* ============================
   Navigation
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-links li {
    list-style: none;
}

.nav-link {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ============================
   Hero Section
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(116, 185, 255, 0.05) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(5deg); }
}

.hero-content {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.greeting-wave {
    display: inline-block;
    animation: wave 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.hero-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.name-line {
    display: block;
}

.name-highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tagline-prefix {
    color: var(--accent-primary);
    font-weight: 600;
}

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

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

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number.special {
    font-size: 1.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.image-glow {
    position: absolute;
    inset: -4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    opacity: 0.6;
    filter: blur(20px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

.image-border {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-secondary);
    border: 1px solid var(--border-hover);
    z-index: 3;
    white-space: nowrap;
}

.image-badge i {
    color: var(--warning);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.card-1 {
    top: 20px;
    right: -10px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 80px;
    left: -20px;
    animation-delay: -2s;
}

.card-3 {
    bottom: 20px;
    right: -30px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(6px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

/* ============================
   Section Common
   ============================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 16px;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================
   About Section
   ============================ */
.about {
    background: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.9;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.score-highlight {
    color: var(--accent-secondary) !important;
    font-size: 1.2em;
}

.about-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.info-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ============================
   Skills & Tech Stack Section
   ============================ */
.tech-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.tech-filter-group {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 6px;
    backdrop-filter: blur(12px);
}

.tech-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.tech-filter-btn i {
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.tech-filter-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tech-filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--accent-glow);
}

.tech-filter-btn .filter-count {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.tech-filter-btn.active .filter-count {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    transition: all 0.4s ease;
}

.skill-card {
    padding: 30px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.35s ease, scale 0.35s ease;
    animation-delay: var(--delay);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.skill-card.filtered-out {
    display: none;
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.skill-card.filtering-in {
    animation: filterFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.tech-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tech-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.tech-cat-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.badge-tjkt {
    background: rgba(0, 210, 211, 0.15);
    color: #00d2d3;
    border: 1px solid rgba(0, 210, 211, 0.35);
}

.badge-coding {
    background: rgba(108, 92, 231, 0.18);
    color: #a29bfe;
    border: 1px solid rgba(108, 92, 231, 0.35);
}

.tech-exp-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.skill-icon-wrap {
    margin-bottom: 0;
}

.skill-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 1.45rem;
    color: white;
    transition: var(--transition-normal);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(-5deg);
}

.skill-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tech-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.tech-tag:hover {
    color: var(--accent-secondary);
    border-color: var(--border-hover);
    background: var(--bg-glass-hover);
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.skill-progress {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   Projects Section
   ============================ */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    animation-delay: var(--delay);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.project-preview {
    position: relative;
}

.project-browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.browser-url i {
    font-size: 0.65rem;
    color: var(--success);
}

.project-screenshot {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-primary);
}

.project-screenshot iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    pointer-events: none;
}

.project-screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-card) 100%);
    pointer-events: none;
}

.project-info {
    padding: 20px 24px 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.project-tag {
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-secondary);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--accent-gradient);
    color: white;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.project-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ============================
   Certification Section
   ============================ */
.certification {
    background: var(--bg-secondary);
}

.cert-showcase {
    max-width: 800px;
    margin: 0 auto;
}

.cert-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.cert-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.cert-card-main:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.cert-badge-large {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-badge-large i {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    position: relative;
}

.cert-badge-ring {
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
    inset: -10px;
    opacity: 0.15;
    animation-delay: -1.5s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.cert-info {
    flex: 1;
}

.cert-provider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.cert-provider-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.cert-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.cert-fullname {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cert-score {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.score-circle {
    position: relative;
    width: 90px;
    height: 90px;
}

.score-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 6;
}

.score-fill {
    fill: none;
    stroke: url(#scoreGradient);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: var(--accent-primary);
}

.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-max {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.score-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.score-grade {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--success);
}

.cert-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.cert-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.cert-meta-item i {
    color: var(--accent-primary);
}

.cert-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.topic-tag {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.topic-tag:hover {
    border-color: var(--border-hover);
    color: var(--accent-secondary);
    background: var(--bg-glass-hover);
}

.cert-link {
    display: inline-flex;
}

/* ============================
   Experience / Timeline
   ============================ */
.timeline {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 0.8rem;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-badge {
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    color: white;
}

.badge-edu {
    background: linear-gradient(135deg, var(--success), #00b894);
}

.badge-gtps {
    background: linear-gradient(135deg, #e056fd, #686de0);
    box-shadow: 0 2px 10px rgba(224, 86, 253, 0.3);
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.timeline-company i {
    color: var(--accent-primary);
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.timeline-tasks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.task-item i {
    color: var(--success);
    font-size: 0.8rem;
}

/* ============================
   Gallery Section
   ============================ */
.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
}

/* ============================
   Gallery PKL Section
   ============================ */
.gallery-pkl {
    background: var(--bg-primary);
}

.gallery-grid-pkl {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.gallery-grid-pkl .gallery-item:nth-child(1) {
    grid-column: span 1;
}

.gallery-item {
    animation-delay: var(--delay);
}

.gallery-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.gallery-image-wrap:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.gallery-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-wrap:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-image-wrap:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 20px;
    color: white;
}

.gallery-overlay-content i {
    font-size: 1.5rem;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-image-wrap:hover .gallery-overlay-content i {
    transform: translateY(0);
}

.gallery-overlay-content span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================
   Contact / Social Section
   ============================ */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition-normal);
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
}

.social-instagram::before { background: var(--instagram); }
.social-tiktok::before { background: linear-gradient(135deg, #25f4ee, #fe2c55); }
.social-linkedin::before { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.social-facebook::before { background: linear-gradient(135deg, #1877f2, #42b6ff); }
.social-threads::before { background: linear-gradient(135deg, #333, #666); }

.social-card:hover::before {
    opacity: 0.12;
}

.social-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.social-instagram .social-icon-wrap { background: var(--instagram); color: white; }
.social-tiktok .social-icon-wrap { background: linear-gradient(135deg, #25f4ee, #fe2c55); color: white; }
.social-linkedin .social-icon-wrap { background: var(--linkedin); color: white; }
.social-facebook .social-icon-wrap { background: var(--facebook); color: white; }
.social-threads .social-icon-wrap { background: linear-gradient(135deg, #555, #888); color: white; }

.social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.social-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.social-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-arrow {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.social-card:hover .social-arrow {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

/* ============================
   Footer
   ============================ */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: 'Space Grotesk', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--bg-glass-hover);
}

/* ============================
   Scroll Animations
   ============================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Responsive Design
   ============================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .image-frame {
        width: 300px;
        height: 300px;
    }

    .floating-card {
        display: none;
    }

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

    .cert-card-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 36px 28px;
    }

    .cert-meta {
        justify-content: center;
    }

    .cert-topics {
        justify-content: center;
    }

    .cert-score {
        justify-content: center;
    }

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

    .gallery-grid .gallery-item:nth-child(1) {
        grid-column: span 2;
    }

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

    .projects-grid .project-card:last-child {
        grid-column: span 2;
    }

    .gallery-grid-pkl {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        z-index: 999;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    .nav-links li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

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

    .nav-link {
        font-size: 1.05rem;
        padding: 10px 20px;
        display: block;
        width: 100%;
        border-radius: var(--radius-md);
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--bg-glass-hover);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-name {
        font-size: 2.2rem;
    }

    .hero-greeting {
        justify-content: center;
    }

    .hero-tagline {
        justify-content: center;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-tasks {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid .gallery-item:nth-child(1) {
        grid-column: span 1;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:last-child {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .image-frame {
        width: 260px;
        height: 260px;
    }

    .tech-filter-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tech-filter-btn {
        font-size: 0.84rem;
        padding: 8px 14px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .gallery-grid-pkl {
        grid-template-columns: 1fr;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 8px 16px;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .tech-filter-group {
        border-radius: var(--radius-lg);
        gap: 4px;
    }

    .tech-filter-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 12px;
        font-size: 0.82rem;
    }
}
