/* ═══════════════════════════════════════════════════════════════
   DUL ARAFAT MUIN — PORTOFOLIO PROFESIONAL
   Palette: Corporate & Enterprise (Dark & Light Theme)
   Primary:   #2563EB (Deep Royal Blue)
   Accent:    #10B981 (Emerald Green / Stability & Trust)
   Secondary: #3B82F6 / #059669
═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Primary Corporate & Enterprise Palette ── */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-glow: rgba(37, 99, 235, 0.35);
    --accent-cyan: #10B981;
    --accent-cyan-glow: rgba(16, 185, 129, 0.3);
    --accent-pink: #F59E0B;

    /* ── Dark Theme Surfaces (Deep Obsidian Navy) ── */
    --bg-dark: #070D18;
    --bg-surface: #0D1627;
    --bg-card: #121E36;
    --bg-card-hover: #192847;

    --text-white: #FFFFFF;
    --text-body: #CBD5E1;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(37, 99, 235, 0.45);
    --navbar-bg: rgba(7, 13, 24, 0.9);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2D2B55;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary-glow);
    color: #fff;
}

/* ── Layout & Containers ── */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-align: center;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 2.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
    line-height: 1.7;
}

/* ── Buttons ── */
.btn-primary,
.btn-outline,
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: #fff;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.btn-sm {
    font-size: 0.85rem;
    padding: 0.5rem 1.15rem;
}

.btn-full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAVBAR
═══════════════════════════════════════════════════════════════ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
}

.navbar {
    width: 100%;
    padding: 1.25rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding: 0.4rem 0;
}

.nav-link i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.88rem;
}

/* Hamburger Mobile */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8.5rem 0 5rem 0;
    overflow: hidden;
    background: radial-gradient(circle at 15% 30%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
}

.hero-bg-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: #BFDBFE;
    margin-bottom: 1.25rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.hero-name {
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.accent-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 45%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-role {
    color: var(--accent-cyan);
    font-weight: 600;
}

.typing-cursor {
    color: var(--accent-cyan);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    border-radius: 3px;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-desc strong {
    color: var(--text-white);
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.social-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

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

.hero-img-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, transparent 70%);
    animation: glowPulse 5s infinite ease-in-out;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.hero-img-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(37, 99, 235, 0.35);
}

.hero-img-circle.outer {
    width: 410px;
    height: 410px;
    animation: spinClockwise 25s linear infinite;
}

.hero-img-circle.inner {
    width: 350px;
    height: 350px;
    border-color: rgba(16, 185, 129, 0.25);
    animation: spinCounterClockwise 18s linear infinite;
}

@keyframes spinClockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spinCounterClockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.hero-img-wrapper {
    width: 300px;
    height: 370px;
    border-radius: 150px 150px 120px 120px;
    overflow: hidden;
    position: relative;
    border: 3px solid rgba(37, 99, 235, 0.45);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.35) 0%, rgba(7, 13, 24, 0.7) 100%);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.hero-img-wrapper:hover .profile-photo {
    transform: scale(1.05);
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: badgeFloat 4.5s ease-in-out infinite;
}

.badge-developer {
    top: 8%;
    left: -5%;
    background: rgba(18, 18, 38, 0.9);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.badge-iot {
    top: 48%;
    left: -9%;
    background: rgba(18, 18, 38, 0.9);
    border: 1px solid #2ECC71;
    color: #2ECC71;
    animation-delay: -1.2s;
}

.badge-designer {
    bottom: 18%;
    right: -6%;
    background: rgba(18, 18, 38, 0.9);
    border: 1px solid var(--primary-light);
    color: #D1CBFF;
    animation-delay: -2s;
}

.badge-multimedia {
    bottom: -4%;
    left: 20%;
    background: rgba(18, 18, 38, 0.9);
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
    animation-delay: -3.5s;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */
.stats-bar {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.2rem 0;
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.stat-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1;
    font-feature-settings: "tnum";
}

.stat-plus {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: top;
}

.stat-highlight .stat-num {
    background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

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

/* ═══════════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════════ */
.about {
    background: var(--bg-dark);
}

.about-lead-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(18, 30, 54, 0.95) 100%);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: var(--radius-md);
    padding: 2.5rem 2.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.about-lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--primary));
}

.about-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 206, 201, 0.1);
    border: 1px solid rgba(0, 206, 201, 0.25);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.about-lead-text {
    font-size: 1.05rem;
    color: var(--text-white);
    line-height: 1.85;
    margin-bottom: 1.6rem;
    text-align: justify;
    text-justify: inter-word;
}

.about-lead-text strong {
    color: #FFFFFF;
    font-weight: 600;
}

.about-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.about-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #CBD5E1;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.about-pill:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.about-pill i {
    color: var(--accent-cyan);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 1rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    transition: var(--transition-smooth);
}

.about-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-card--featured {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, var(--bg-card) 100%);
    border-color: rgba(37, 99, 235, 0.3);
}

.about-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
}

.about-card h3 {
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.about-card p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION (WHAT I OFFER)
═══════════════════════════════════════════════════════════════ */
.services {
    background: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.8rem;
}

/* Row 1: 3 cards (Web, IoT, UI/UX) - span 2 columns each */
.services-grid> :nth-child(1),
.services-grid> :nth-child(2),
.services-grid> :nth-child(3) {
    grid-column: span 2;
}

/* Row 2: 2 cards (Graphic Design, Video Editing) - centered */
.services-grid> :nth-child(4) {
    grid-column: 2 / span 2;
}

.services-grid> :nth-child(5) {
    grid-column: 4 / span 2;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card--featured {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.12);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.3rem;
}

.service-card h3 {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.service-checklist {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    margin-top: auto;
}

.service-checklist li {
    font-size: 0.82rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.4;
}

.service-checklist li i {
    color: var(--accent-cyan);
    font-size: 0.82rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION (PORTFOLIO SHOWCASE)
═══════════════════════════════════════════════════════════════ */
.projects {
    background: var(--bg-dark);
}

.project-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.project-card.hidden {
    display: none;
}

.project-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 100%;
    min-height: 250px;
    background: #000;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-thumb-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.project-tag {
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid var(--border-subtle);
    color: #E2E8F0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.28);
    color: #BFDBFE;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.project-specs {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    border-left: 3px solid var(--accent-cyan);
}

.spec-item {
    font-size: 0.83rem;
    display: flex;
    gap: 0.4rem;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.spec-value {
    color: var(--text-white);
}

.project-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════
   SKILLS & CERTIFICATIONS SECTION
═══════════════════════════════════════════════════════════════ */
.skills {
    background: var(--bg-surface);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition-fast);
    box-shadow: var(--card-shadow);
}

.skill-category-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
    font-size: 1.35rem;
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-category-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
}

.skill-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1rem;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-body);
    transition: var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-tag i {
    font-size: 0.95rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.skill-tag:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Certifications Box */
.certifications-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.5rem;
}

.certs-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.certs-section-title i {
    color: #F1C40F;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

.cert-card {
    display: flex;
    gap: 1.3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    transition: var(--transition-fast);
}

.cert-card:hover {
    border-color: var(--border-highlight);
    background: rgba(37, 99, 235, 0.05);
}

.cert-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(241, 196, 15, 0.15);
    color: #F1C40F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cert-issuer {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.cert-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.45rem;
}

.cert-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.cert-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cert-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   RESUME & TIMELINE SECTION
═══════════════════════════════════════════════════════════════ */
.resume {
    background: var(--bg-dark);
}

.timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.timeline-col-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.timeline-col-header i {
    font-size: 1.3rem;
    color: var(--primary);
}

.timeline-col-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 8px;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.2rem;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.4rem;
    transition: var(--transition-fast);
}

.timeline-content:hover {
    border-color: var(--border-highlight);
    transform: translateX(4px);
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.timeline-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
}

.badge-active {
    background: rgba(0, 206, 201, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 206, 201, 0.3);
}

.badge-done {
    background: rgba(148, 163, 184, 0.12);
    color: #94A3B8;
}

.badge-org {
    background: rgba(37, 99, 235, 0.15);
    color: #BFDBFE;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-project {
    background: rgba(253, 121, 168, 0.15);
    color: var(--accent-pink);
    border: 1px solid rgba(253, 121, 168, 0.3);
}

.timeline-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.timeline-institution {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.65;
}

.timeline-highlights {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-highlights span {
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.timeline-highlights span i {
    color: var(--accent-cyan);
}

.timeline-bullets {
    margin-top: 0.65rem;
    padding-left: 1.1rem;
    list-style: disc;
}

.timeline-bullets li {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   WHY HIRE ME SECTION
═══════════════════════════════════════════════════════════════ */
.why-hire {
    background: var(--bg-surface);
}

.why-hire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.2rem 1.8rem;
    transition: var(--transition-fast);
}

.why-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-5px);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 206, 201, 0.12);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.3rem;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════════════════════ */
.contact {
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.3rem;
    margin-bottom: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.contact-card:hover .contact-card-value {
    color: var(--accent-cyan);
}

.contact-card:hover {
    border-color: var(--border-highlight);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.14);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-card-label {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card-value {
    font-size: 0.94rem;
    color: var(--text-white);
    font-weight: 500;
}

.contact-card-value:hover {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-family: var(--font-main);
    font-size: 0.92rem;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
}

.form-group textarea {
    resize: vertical;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.form-note.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
    background: #06060E;
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
    display: inline-block;
    margin-bottom: 0.85rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.83rem;
    color: var(--text-dim);
}

/* ── Back to Top Button ── */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 6px 20px var(--primary-glow);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    transition: var(--transition-fast);
}

#back-to-top:hover {
    transform: translateY(-4px);
    background: #5544d6;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MEDIA QUERIES)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-desc {
        margin: 0 auto 2rem auto;
    }

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

    .hero-divider {
        margin: 0 auto 1.25rem auto;
    }

    .hero-role-wrapper {
        justify-content: center;
    }

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

    .project-card {
        grid-template-columns: 1fr;
        padding: 1.4rem;
        gap: 1.5rem;
    }

    .project-thumb {
        min-height: unset;
        height: auto;
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .project-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .about-grid,
    .why-hire-grid {
        grid-template-columns: 1fr;
    }

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

    .services-grid> :nth-child(1),
    .services-grid> :nth-child(2),
    .services-grid> :nth-child(3),
    .services-grid> :nth-child(4) {
        grid-column: span 1;
    }

    .services-grid> :nth-child(5) {
        grid-column: span 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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

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

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid> :nth-child(1),
    .services-grid> :nth-child(2),
    .services-grid> :nth-child(3),
    .services-grid> :nth-child(4),
    .services-grid> :nth-child(5) {
        grid-column: auto;
        max-width: 100%;
    }

    .service-checklist {
        grid-template-columns: 1fr;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-surface);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 2rem 2rem 2rem;
        gap: 1.4rem;
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        width: 100%;
    }

    .nav-btn {
        width: 100%;
        margin-top: 1rem;
    }

    .hero-image-col {
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
        position: relative;
    }

    .hero-img-wrapper {
        width: 215px;
        height: 270px;
    }

    .hero-img-circle.outer {
        width: 280px;
        height: 280px;
    }

    .hero-img-circle.inner {
        width: 240px;
        height: 240px;
    }

    /* Floating Badges Mobile: stay within viewport without being cut off */
    .floating-badge {
        font-size: 0.72rem;
        padding: 0.35rem 0.65rem;
        gap: 0.35rem;
        max-width: 88vw;
    }

    .badge-developer {
        top: 2%;
        left: 2px;
    }

    .badge-iot {
        top: 48%;
        left: 0;
    }

    .badge-designer {
        top: 20%;
        right: 0;
        bottom: auto;
    }

    .badge-multimedia {
        bottom: -6px;
        left: 20px;
    }

    /* Project Specifications on Mobile */
    .project-specs {
        padding: 0.85rem;
        gap: 0.65rem;
    }

    .spec-item {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .spec-label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--accent-cyan);
        white-space: normal;
    }

    .spec-value {
        font-size: 0.82rem;
        line-height: 1.55;
        color: var(--text-white);
        text-align: justify;
        text-justify: inter-word;
    }

    /* Project description justify on mobile */
    .project-desc {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        line-height: 1.65;
    }

    /* Action buttons wrapping cleanly on mobile */
    .project-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.55rem;
        width: 100%;
    }

    .project-actions .btn-sm {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 110px;
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .stats-container {
        flex-direction: column;
        gap: 1.8rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .skill-tags {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.05rem;
    }

    .project-actions .btn-sm {
        flex: 1 1 100%;
        width: 100%;
    }

    .floating-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.55rem;
    }

    .badge-developer {
        top: 2%;
        left: 0;
    }

    .badge-iot {
        top: 50%;
        left: 0;
    }

    .badge-designer {
        top: 18%;
        right: 0;
        bottom: auto;
    }

    .badge-multimedia {
        bottom: -6px;
        left: 10px;
    }
}