/* ==========================================================================
   H.RAMIZ — PERSONAL PORTFOLIO STYLESHEET
   ========================================================================== */

:root {
    /* Color System - Brighter Professional Matte Charcoal Grey */
    --bg-dark: #1c1c1e;
    --bg-surface: #28282b;
    --bg-surface-hover: #323236;
    
    --yellow: #F9E532;
    --yellow-hover: #e6d220;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 229, 50, 0.4);

    --text-primary: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    /* Fonts */
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'Inter Tight', sans-serif;
    --font-sub: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    padding-bottom: 75px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
    body { padding-bottom: 0; }
}

/* Containers */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.section-padding {
    padding: 100px 0;
}

.section-padding.dark-surface {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.12em;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    max-width: 660px;
    margin: 0 auto;
}

/* Meren Coffee Style Top Floating Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 28, 30, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.08em;
}

.logo-bold {
    color: #fff;
}

.logo-dot {
    color: var(--yellow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-pill {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    transition: var(--transition);
}

.nav-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

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

/* Meren Coffee Style Circular Social Buttons */
.circle-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--bg-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.circle-social-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--bg-dark);
    fill: none;
}

.circle-social-btn:hover {
    background: var(--yellow-hover);
    transform: scale(1.1) rotate(6deg);
}

/* Language Switcher Pill Group */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 3px;
    border-radius: 50px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--yellow);
    color: var(--bg-dark);
}

.mobile-hamburger {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.mobile-drawer {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    width: 100vw;
    background: #18181b;
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    z-index: 999;
    flex-direction: column;
    gap: 20px;
}

.mobile-drawer.active {
    display: flex;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mobile-link {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero Section with 3D Cyber Background Grid */
#hero {
    min-height: 100vh;
    padding-top: 130px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cyber-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(249, 229, 50, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 229, 50, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px);
    animation: cyberGridMotion 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes cyberGridMotion {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.cert-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 229, 50, 0.1);
    border: 1px solid rgba(249, 229, 50, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-sub);
    font-size: clamp(0.75rem, 2vw, 0.82rem);
    color: var(--yellow);
    margin-bottom: 20px;
}

.hero-title-wrapper {
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 9vw, 5.5rem);
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 0.95;
    margin-bottom: 14px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.25;
}

.highlight-text {
    color: var(--yellow);
}

.hero-description {
    color: var(--text-muted);
    font-size: clamp(0.92rem, 2.5vw, 1.05rem);
    max-width: 620px;
    margin-bottom: 32px;
}

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

.btn-yellow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    background: var(--yellow);
    color: var(--bg-dark);
    transition: var(--transition);
    border: none;
    min-height: 48px;
    transform-style: preserve-3d;
}

.btn-yellow:hover {
    background: var(--yellow-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(249, 229, 50, 0.3);
}

.btn-yellow.block {
    width: 100%;
}

.btn-yellow.lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #fff;
    transition: var(--transition);
    min-height: 48px;
    transform-style: preserve-3d;
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-3px);
}

.btn-outline.block {
    width: 100%;
}

.btn-outline.lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 20px 28px;
    border-radius: 16px;
    max-width: 580px;
    width: 100%;
    box-sizing: border-box;
}

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

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.5vw, 1.6rem);
    letter-spacing: 0.05em;
    color: var(--yellow);
}

.stat-lbl {
    font-family: var(--font-sub);
    font-size: 0.78rem;
    color: var(--text-dim);
}

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

/* Meren Coffee Waving Infinite Yellow Ribbon Tape with 3D Skew */
.yellow-ribbon-tape {
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transform: rotate(-1deg);
}

.ribbon-track {
    display: inline-flex;
    gap: 24px;
    animation: ribbonMarquee 24s linear infinite;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

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

/* 3D Visual Objects & Floating Effects */
.cube-3d {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(249, 229, 50, 0.15);
    border: 1.5px solid var(--yellow);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(249, 229, 50, 0.3);
    z-index: 12;
    backdrop-filter: blur(8px);
}

.cube-3d.floating-1 {
    top: -20px;
    left: -10px;
    animation: float3D 5s ease-in-out infinite;
}

.cube-3d.floating-2 {
    bottom: -15px;
    right: -10px;
    animation: float3D 6s ease-in-out 1s infinite reverse;
}

.cube-3d.floating-mobile-3 {
    top: 50%;
    right: -12px;
    animation: float3D 5.5s ease-in-out 0.5s infinite;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-16px) rotate(14deg) scale(1.1); }
}

/* Hero Device Showcase Container */
.device-mockups-showcase {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.hero-mockup-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    position: relative;
    width: 100%;
    max-width: 580px;
}

.hero-mockup-wrapper .macbook-mockup {
    flex: 1;
    margin: 0;
}

.hero-mockup-wrapper .iphone-mockup {
    position: relative;
    bottom: 0;
    right: 0;
    width: 140px;
    flex-shrink: 0;
    margin: 0;
}

/* 3D Tilt Elements */
.tilt-3d-element {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* MacBook Pro Frame */
.macbook-mockup {
    width: 100%;
    background: #0d0d0e;
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0 10px;
    border: 2px solid #3a3a3e;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(249, 229, 50, 0.08);
    position: relative;
    box-sizing: border-box;
}

.macbook-display {
    background: #151518;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.macbook-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    z-index: 10;
}

.macbook-screen {
    height: 230px;
    background: #111113;
    padding-top: 18px;
}

.mock-browser-bar {
    background: #1a1a1d;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mock-url {
    font-family: var(--font-sub);
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mock-web-dashboard {
    padding: 14px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mock-logo {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #fff;
}

.mock-badge {
    font-family: var(--font-sub);
    font-size: 0.6rem;
    background: rgba(249, 229, 50, 0.15);
    color: var(--yellow);
    padding: 2px 8px;
    border-radius: 4px;
}

.mock-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mock-stat-card {
    background: #1a1a1d;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

.mock-stat-card span {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.mock-stat-card strong {
    font-size: 0.75rem;
    color: #fff;
}

.mock-chart-box {
    height: 50px;
    background: #1a1a1d;
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 6px;
}

.bar {
    flex: 1;
    background: var(--yellow);
    border-radius: 2px;
}
.bar-1 { height: 40%; }
.bar-2 { height: 75%; }
.bar-3 { height: 90%; }
.bar-4 { height: 60%; }

.macbook-base {
    height: 12px;
    background: #2a2a2e;
    border-radius: 0 0 12px 12px;
    position: relative;
}

.macbook-notch {
    width: 60px;
    height: 4px;
    background: #1a1a1d;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

/* iPhone 15 Pro Frame */
.iphone-mockup {
    background: #0d0d0e;
    border: 3px solid #4a4a4e;
    border-radius: 24px;
    padding: 5px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(249, 229, 50, 0.1);
}

.iphone-body {
    background: #111113;
    border-radius: 18px;
    height: 230px;
    position: relative;
    overflow: hidden;
    padding: 8px;
}

.iphone-dynamic-island {
    width: 40px;
    height: 10px;
    background: #000;
    border-radius: 8px;
    margin: 0 auto 10px auto;
}

.mock-mobile-app {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-app-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--text-dim);
}

.mobile-app-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: #fff;
}

.mobile-card {
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.mobile-card.highlight {
    border-color: var(--yellow);
    color: var(--yellow);
}

.mobile-card svg {
    width: 14px;
    height: 14px;
}

/* Dynamic Animated Ultra-Minimalist About Me Section */
.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.about-bio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.pulse-glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.cert-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(249, 229, 50, 0.1);
    border: 1px solid var(--yellow);
    color: var(--yellow);
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.cert-provider {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Terminal Bio Simulator */
.terminal-bio-box {
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.bio-nav-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.bio-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.bio-tab-btn.active {
    background: var(--yellow);
    color: var(--bg-dark);
}

.typing-container {
    display: flex;
    align-items: flex-start;
    min-height: 80px;
}

.bio-typed-output {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.typing-cursor {
    color: var(--yellow);
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 2px;
    animation: blinkCursor 0.8s infinite;
}

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

.lang-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-primary);
}

.lang-pill.highlight-pill {
    text-decoration: none;
    color: var(--yellow);
    border-color: var(--yellow);
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category-card.minimal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
}

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

.card-step-num.inline {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: var(--font-display);
    color: var(--yellow);
}

.skill-category-card h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Skills & Projects Grids */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(260px, 1fr) );
    gap: 28px;
}

.catalog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.4s ease;
}

.catalog-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(249, 229, 50, 0.12);
}

.card-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(249, 229, 50, 0.1);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 8px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.feature-checklist {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.feature-checklist svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Featured Projects Filter Chips & Direct Action Buttons */
.project-filter-chips {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.chip-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-sub);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.chip-btn.active, .chip-btn:hover {
    background: var(--yellow);
    color: var(--bg-dark);
    border-color: var(--yellow);
}

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

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px) scale(1.02);
}

.project-card.featured {
    grid-column: span 2;
    border-color: var(--yellow);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(249, 229, 50, 0.1);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-links a {
    color: var(--text-muted);
    margin-left: 12px;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--yellow);
}

.project-tag-lbl {
    font-family: var(--font-sub);
    font-size: 0.72rem;
    color: var(--yellow);
    margin-bottom: 6px;
}

.project-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.project-direct-btn.yellow-btn {
    background: var(--yellow);
    color: var(--bg-dark);
}

.project-direct-btn.yellow-btn:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
}

.project-direct-btn.outline-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: #fff;
}

.project-direct-btn.outline-btn:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.project-tags {
    display: flex;
    gap: 10px;
    font-family: var(--font-sub);
    font-size: 0.78rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

/* Contact Section */
.contact-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    letter-spacing: 0.05em;
    color: #fff;
    margin: 12px 0;
}

.contact-subtitle {
    color: var(--text-muted);
    max-width: 660px;
    margin: 0 auto 36px auto;
    font-size: 1.05rem;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.social-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.social-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.social-bar a:hover {
    color: var(--yellow);
}

/* Fixed Bottom Mobile Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: rgba(24, 24, 27, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-subtle);
    padding: 10px 16px;
    z-index: 10000;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sub);
    font-size: 0.78rem;
    color: var(--yellow);
}

/* ==========================================================================
   HIGH-PRECISION 3D & ANIMATED DEDICATED MOBILE UI (< 768px & < 480px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .stats-bar {
        margin: 0 auto;
    }

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

    .project-card.featured {
        grid-column: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        background-color: #121214 !important;
        padding-bottom: 80px !important;
    }

    .container {
        padding: 0 16px !important;
    }

    .section-padding {
        padding: 44px 0 !important;
    }

    .section-padding.dark-surface {
        background-color: #18181b !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .section-header {
        margin-bottom: 28px !important;
    }

    .section-title {
        font-size: 2.3rem !important;
    }

    .nav-container {
        padding: 0 14px !important;
    }

    .logo {
        font-size: 1.5rem !important;
    }

    .nav-menu {
        display: none !important;
    }

    /* Hide redundant top circle social buttons on mobile */
    .circle-social-btn {
        display: none !important;
    }

    .lang-btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }

    .mobile-hamburger {
        display: inline-flex !important;
    }

    .mobile-bottom-bar {
        display: block !important;
        background: rgba(18, 18, 20, 0.94) !important;
        backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    #hero {
        padding-top: 90px !important;
        padding-bottom: 24px !important;
        min-height: auto !important;
    }

    .cert-tag-pill {
        padding: 6px 14px !important;
        font-size: 0.72rem !important;
        max-width: 100% !important;
        margin: 0 auto 14px auto !important;
        border-color: var(--yellow) !important;
        box-shadow: 0 0 15px rgba(249, 229, 50, 0.2) !important;
    }

    .hero-title {
        font-size: 3.2rem !important;
        margin-bottom: 8px !important;
    }

    .hero-subtitle {
        font-size: 1.15rem !important;
        margin-bottom: 12px !important;
    }

    .hero-description {
        font-size: 0.88rem !important;
        margin-bottom: 20px !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-bottom: 24px !important;
    }

    .btn-yellow, .btn-outline {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }

    /* 3D Cyber Badges Positioned for Mobile Screens */
    .cube-3d.floating-1 {
        top: -10px !important;
        left: 5px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .cube-3d.floating-mobile-3 {
        display: flex !important;
        top: 20% !important;
        right: 5px !important;
        width: 38px !important;
        height: 38px !important;
    }

    .device-mockups-showcase {
        margin-top: 10px !important;
        width: 100% !important;
    }

    .hero-mockup-wrapper {
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-mockup-wrapper .iphone-mockup {
        display: none !important;
    }

    .hero-mockup-wrapper .macbook-mockup {
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 229, 50, 0.15) !important;
    }

    .macbook-screen {
        height: 175px !important;
        padding-top: 14px !important;
    }

    .mock-web-dashboard {
        padding: 10px !important;
    }

    /* Sleek Horizontal Mobile Stats Bar */
    .stats-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 12px 8px !important;
        text-align: center !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(249, 229, 50, 0.2) !important;
        border-radius: 14px !important;
        box-shadow: 0 0 20px rgba(249, 229, 50, 0.08) !important;
    }

    .stat-box {
        align-items: center !important;
    }

    .stat-num {
        font-size: 1.2rem !important;
    }

    .stat-lbl {
        font-size: 0.68rem !important;
    }

    .stat-sep {
        display: none !important;
    }

    /* Minimalist Native Cards on Mobile with 3D Touch Glow */
    .about-bio-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
        background: #1a1a1e !important;
    }

    .cert-badge-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
    }

    .terminal-bio-box {
        padding: 14px 12px !important;
        margin-bottom: 16px !important;
        background: #141417 !important;
    }

    .bio-nav-tabs {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
    }

    .bio-tab-btn {
        flex-shrink: 0 !important;
        font-size: 0.78rem !important;
        padding: 5px 12px !important;
    }

    .bio-typed-output {
        font-size: 0.88rem !important;
    }

    .skills-column {
        gap: 14px !important;
    }

    .skill-category-card.minimal-card {
        padding: 18px 16px !important;
        border-radius: 18px !important;
        background: #1a1a1e !important;
    }

    .catalog-grid, .projects-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .catalog-card, .project-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        background: #1a1a1e !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        transition: transform 0.25s ease, border-color 0.25s ease !important;
    }

    .project-direct-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .catalog-card:active, .project-card:active {
        transform: scale(0.98) !important;
        border-color: var(--yellow) !important;
    }

    .project-card.featured {
        border-color: var(--yellow) !important;
        box-shadow: 0 0 20px rgba(249, 229, 50, 0.15) !important;
    }

    /* REMOVE NESTED CARD CLUTTER IN MOBILE CONTACT SECTION */
    .contact-box {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .contact-title {
        font-size: 2.4rem !important;
        margin: 8px 0 !important;
    }

    .contact-subtitle {
        font-size: 0.88rem !important;
        margin-bottom: 24px !important;
    }

    .contact-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-bottom: 28px !important;
    }

    .contact-buttons .btn-yellow, .contact-buttons .btn-outline {
        width: 100% !important;
        min-height: 48px !important;
        font-size: 0.92rem !important;
    }

    .social-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .social-bar a {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        justify-content: center !important;
        font-size: 0.82rem !important;
        color: #fff !important;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        padding-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.6rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.9rem !important;
    }

    .cert-tag-pill {
        font-size: 0.7rem !important;
    }

    .stats-bar {
        padding: 10px 6px !important;
    }

    .stat-num {
        font-size: 1.1rem !important;
    }

    .stat-lbl {
        font-size: 0.65rem !important;
    }
}