/* ===== IMPORTS ===== */
/* Inter font loaded via HTML link tag for better performance */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.80);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-card-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e1;

    --accent: #007AFF;
    --accent-light: #3b9aff;
    --accent-glow: rgba(0, 122, 255, 0.25);
    --accent-purple: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #8b5cf6 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 100%;
    --container-padding: 0 10px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.15);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: -0.011em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ===== SPLIT LAYOUT ===== */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ===== LEFT PANEL ===== */
.left-panel {
    width: 30%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: url('assets/BGImage.jpeg') center center / cover no-repeat;
    border-right: none;
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 15, 26, 0.75) 0%,
        rgba(10, 15, 30, 0.55) 40%,
        rgba(0, 20, 40, 0.65) 70%,
        rgba(10, 12, 28, 0.80) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.left-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 122, 255, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.left-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 20px 28px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

/* ===== RIGHT PANEL ===== */
.right-panel {
    margin-left: 30%;
    width: 70%;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    scroll-behavior: smooth;
    position: relative;
}

/* Solid base layer */
.right-panel::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: var(--bg-secondary);
    pointer-events: none;
    z-index: -2;
}

/* Image layer on top of base */
.right-panel::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: url('assets/myimage.png') center top 50px / 100% auto no-repeat;
    opacity: 0.25;
    pointer-events: none;
    z-index: -1;
}

.right-panel > * {
    position: relative;
    z-index: 1;
}

.right-panel::-webkit-scrollbar {
    width: 6px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== RIGHT NAVBAR ===== */
.right-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 40px;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

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

ul,
ol {
    list-style: none;
}

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

/* ===== UTILITY ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 600px;
}

.section {
    padding: 70px 16px;
    position: relative;
}

/* ===== NAVIGATION ===== */

.nav-pills {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-pill {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-pill.active {
    color: var(--accent-light);
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.25);
}

/* ===== PDF Download Button ===== */
.nav-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.25);
    color: var(--accent-light);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.nav-pdf-btn:hover {
    background: rgba(0, 122, 255, 0.18);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.15);
}

.nav-pdf-btn svg {
    flex-shrink: 0;
}

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

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

/* ===== HERO (left panel content) ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.04); }
}

/* ===== INSTAGRAM-STYLE PROFILE ===== */

/* Top Row: Avatar + Stats */
.ig-top-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.ig-avatar-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    flex-shrink: 0;
    animation: ringPulse 4s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 39, 67, 0.3), 0 0 40px rgba(188, 24, 136, 0.15);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 39, 67, 0.5), 0 0 60px rgba(188, 24, 136, 0.25);
    }
}

.ig-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: none;
    display: block;
}

.ig-stats-row {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: space-around;
}

.ig-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.ig-stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.ig-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: lowercase;
}

/* Bio */
.ig-bio {
    margin-bottom: 14px;
}

.ig-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.ig-role {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.ig-bio-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 4px 0;
}

.ig-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.ig-location svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Typing Animation */
.typing-prefix {
    color: var(--accent-light);
}

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

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

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

/* Action Buttons — IG style */
.ig-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.ig-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ig-btn svg {
    flex-shrink: 0;
}

.ig-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #5a9fff 100%);
    color: #fff;
    border: none;
    box-shadow: none;
}

.ig-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-light) 0%, #6daeff 100%);
    transform: translateY(-2px);
    box-shadow: none;
}

.resume-btn {
    font-family: inherit;
    cursor: pointer;
}

.ig-btn-secondary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
    color: var(--text-primary);
    border: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.ig-btn-secondary:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.07) 100%);
    transform: translateY(-2px);
    box-shadow: none;
}

/* Social Row */
.ig-social-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.ig-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.ig-social-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: none;
}

/* LinkedIn — Blue */
.ig-social-card[title="LinkedIn"] {
    --social-color: rgba(10, 102, 194, 0.4);
    --social-color-bright: rgba(10, 102, 194, 0.8);
    --social-bg-hover: rgba(10, 102, 194, 0.08);
}

/* X — White/Gray */
.ig-social-card[title*="X"] {
    --social-color: rgba(255, 255, 255, 0.2);
    --social-color-bright: rgba(255, 255, 255, 0.5);
    --social-bg-hover: rgba(255, 255, 255, 0.07);
}

/* Instagram — Gradient Pink/Orange */
.ig-social-card[title="Instagram"] {
    --social-color: rgba(225, 48, 108, 0.4);
    --social-color-bright: rgba(225, 48, 108, 0.8);
    --social-bg-hover: rgba(225, 48, 108, 0.08);
}

/* Facebook — Blue */
.ig-social-card[title="Facebook"] {
    --social-color: rgba(24, 119, 242, 0.4);
    --social-color-bright: rgba(24, 119, 242, 0.8);
    --social-bg-hover: rgba(24, 119, 242, 0.08);
}

.ig-social-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.ig-social-card:hover .ig-social-logo {
    transform: scale(1.15);
}

.ig-social-card span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.ig-social-card:hover span {
    color: var(--text-primary);
}

/* Section Labels */
.ig-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Education Mini */
.ig-education {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: none;
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.ig-education:hover {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.13) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-2px);
    box-shadow: none;
}

.ig-edu-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: none;
}

.ig-edu-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ig-edu-degree {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.ig-edu-school {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* Certifications Mini */
.ig-certs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ig-cert {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(145deg, rgba(0, 122, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.ig-cert:hover {
    background: linear-gradient(145deg, rgba(0, 122, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-2px) scale(1.01);
    box-shadow: none;
}

.ig-cert-logo {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    padding: 3px;
    border: none;
}

.ig-cert-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.ig-cert-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.ig-cert-org {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.3;
}

/* Contact Cards Grid */
.ig-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ig-ccard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: none;
}

.ig-ccard::before {
    display: none;
}

.ig-ccard:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: none;
}

.ig-ccard-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ccard-icon-bg);
    color: var(--ccard-color);
    margin-bottom: 2px;
    overflow: hidden;
}

.ig-ccard-icon--img {
    background: transparent;
    padding: 0;
}

.ig-ccard-icon--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.ig-ccard-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ccard-color);
    text-align: center;
    line-height: 1.3;
}

.ig-ccard-value {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

/* Gmail — Red */
.ig-ccard--gmail {
    --ccard-color: #EA4335;
    --ccard-gradient: linear-gradient(135deg, #EA4335, #FBBC05);
    --ccard-icon-bg: rgba(234, 67, 53, 0.12);
    --ccard-bg-hover: rgba(234, 67, 53, 0.06);
}

/* Yahoo — Purple */
.ig-ccard--yahoo {
    --ccard-color: #7B0099;
    --ccard-gradient: linear-gradient(135deg, #7B0099, #b44bd8);
    --ccard-icon-bg: rgba(123, 0, 153, 0.12);
    --ccard-bg-hover: rgba(123, 0, 153, 0.06);
}

/* Pakistan — Green (flag) */
.ig-ccard--pk {
    --ccard-color: #01ad52;
    --ccard-gradient: linear-gradient(135deg, #01ad52, #00c853);
    --ccard-icon-bg: rgba(1, 173, 82, 0.12);
    --ccard-bg-hover: rgba(1, 173, 82, 0.06);
}

/* Sweden — WhatsApp Green + Blue */
.ig-ccard--se {
    --ccard-color: #25D366;
    --ccard-gradient: linear-gradient(135deg, #25D366, #128C7E);
    --ccard-icon-bg: rgba(37, 211, 102, 0.12);
    --ccard-bg-hover: rgba(37, 211, 102, 0.06);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
}

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

/* ===== ABOUT — BENTO GRID ===== */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
}

/* Bio spans full width on row 1 */
.bento-tile--bio {
    grid-column: 1 / -1;
}

/* Stats takes left on row 2 */
.bento-tile--stats {
    grid-column: 1 / 2;
}

/* Tech takes right on row 2 */
.bento-tile--tech {
    grid-column: 2 / 3;
}

/* Industries spans full width on row 3 */
.bento-tile--industries {
    grid-column: 1 / -1;
}

/* Base Tile */
.bento-tile {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: all 0.35s ease;
}

.bento-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--border-card-hover);
}

.bento-tile-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* ── Bio Tile ── */
.bento-tile--bio {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(0, 122, 255, 0.15);
}

.bento-tile--bio::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
}

.bento-tile--bio:hover {
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
}

.bento-tile--bio p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 8px 0;
}

.bento-tile--bio p:last-child { margin-bottom: 0; }

.bento-tile--bio strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ── Stats Tile ── */
.bento-tile--stats {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(236, 72, 153, 0.04) 100%);
    border-color: rgba(139, 92, 246, 0.15);
}

.bento-tile--stats:hover {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.35);
}

.bento-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bento-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.bento-stat-lbl {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Tech Stack Tile ── */
.bento-tile--tech {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(0, 122, 255, 0.15);
}

.bento-tile--tech:hover {
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.35);
}

.bento-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-tech-tag {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.bento-tech-tag--primary {
    background: rgba(0, 122, 255, 0.1);
    color: var(--accent-light);
    border-color: rgba(0, 122, 255, 0.3);
}

.bento-tech-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── Globe Tile ── */
.bento-tile--globe {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.06) 0%, rgba(234, 179, 8, 0.04) 100%);
    border-color: rgba(249, 115, 22, 0.15);
}

.bento-tile--globe:hover {
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.35);
}

.bento-flags {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.bento-flag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.bento-flag:hover {
    transform: scale(1.15);
}

.bento-flag small {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* ── Industries Tile ── */
.bento-tile--industries {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
    border-color: rgba(34, 197, 94, 0.15);
}

.bento-tile--industries:hover {
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.35);
}

.bento-industry-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.bento-industry {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.bento-industry-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-color);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--dot-color);
}

/* ===== EDUCATION ===== */
.education-card.small {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.education-card.small:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border-color: var(--border-card-hover);
}

.edu-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid var(--border-card);
}

.edu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edu-content {
    flex: 1;
}

.edu-degree {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.edu-school {
    font-size: 1rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 6px;
}

.edu-meta-small {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

/* ===== EXPERIENCE TIMELINE ===== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
    position: relative;
}

/* Vertical connecting line */
.timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.4), rgba(139, 92, 246, 0.3), rgba(0, 122, 255, 0.1));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 54px;
}

/* Timeline node dot */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 28px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2.5px solid rgba(0, 122, 255, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 122, 255, 0.5);
    transform: scale(1.2);
}

/* First item (current job) gets a pulsing dot */
.timeline-item:first-child::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.4);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 122, 255, 0.4); }
    50% { box-shadow: 0 0 18px rgba(0, 122, 255, 0.7); }
}

.timeline-dot { display: none; }

.timeline-content {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Left accent bar */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    opacity: 0.6;
    transition: all 0.4s ease;
    border-radius: 3px 0 0 3px;
}

/* Top shimmer line */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.2) 30%, rgba(139, 92, 246, 0.2) 70%, transparent 100%);
    transition: all 0.4s ease;
}

.timeline-content:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 122, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(0, 122, 255, 0.2);
}

.timeline-content:hover::before {
    opacity: 1;
    width: 4px;
    box-shadow: 2px 0 12px rgba(0, 122, 255, 0.2);
}

.timeline-content:hover::after {
    background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.4) 30%, rgba(139, 92, 246, 0.4) 70%, transparent 100%);
}

/* Current job — premium glow */
.timeline-item:first-child .timeline-content {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(17, 24, 39, 0.75) 30%);
    border-color: rgba(0, 122, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 122, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(0, 122, 255, 0.1);
}

.timeline-item:first-child .timeline-content::after {
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple), var(--accent));
    opacity: 0.8;
}

.timeline-item:first-child .timeline-content::before {
    opacity: 1;
    background: linear-gradient(180deg, var(--accent), var(--accent-purple));
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 12px;
}

.timeline-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover .timeline-logo {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 122, 255, 0.15);
}

.timeline-logo--self {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    color: #fff;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
}

/* ── Indie / Non-company cards ── */
.timeline-item--indie .timeline-content {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(139, 92, 246, 0.06);
}

.timeline-item--indie .timeline-content::before {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    opacity: 0.4;
}

.timeline-item--indie .timeline-content::after {
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.2) 30%, rgba(236, 72, 153, 0.15) 70%, transparent 100%);
}

.timeline-item--indie .timeline-content:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25), 0 0 30px rgba(139, 92, 246, 0.06);
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
}

.timeline-item--indie .timeline-content:hover::before {
    opacity: 1;
    box-shadow: 2px 0 12px rgba(139, 92, 246, 0.2);
}

.timeline-item--indie .timeline-content:hover::after {
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.4) 30%, rgba(236, 72, 153, 0.3) 70%, transparent 100%);
}

.timeline-item--indie .timeline-desc li::before {
    background: #8b5cf6;
}

.timeline-item--indie .timeline-tech {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}

.timeline-item--indie .timeline-tech:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #ddd6fe;
    border-color: rgba(139, 92, 246, 0.35);
}

.timeline-item--indie .timeline-content h4,
.timeline-item--indie .timeline-company,
.timeline-item--indie .timeline-desc li,
.timeline-item--indie .timeline-date,
.timeline-item--indie .timeline-location {
    font-style: italic;
}

.timeline-header-info {
    flex: 1;
    min-width: 0;
}

.timeline-content h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.timeline-company {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-bottom: 0;
}

.timeline-company::before {
    display: none;
}

.timeline-company-link {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.timeline-company-link:hover {
    color: #93c5fd;
}

.timeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 10px;
}

.timeline-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 211, 153, 0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 12px rgba(52, 211, 153, 0.8); }
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    padding: 0 24px 16px;
    margin-left: 84px;
}

.timeline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-weight: 500;
}

.timeline-date::before {
    content: '';
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    opacity: 0.6;
}

.timeline-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
}

.timeline-location::before {
    content: '📍';
    font-size: 0.72rem;
}

/* ── Timeline Body (Description + Tags) ── */
.timeline-body {
    padding: 0 24px 22px;
    margin-left: 84px;
}

.timeline-desc {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-desc li {
    position: relative;
    padding-left: 18px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s ease;
}

.timeline-desc li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.3;
    transition: all 0.3s ease;
    transform: rotate(45deg);
}

.timeline-content:hover .timeline-desc li::before {
    opacity: 0.7;
    background: var(--accent-light);
}

.timeline-content:hover .timeline-desc li {
    color: var(--text-primary);
}

/* ── Timeline Tech Tags ── */
.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.timeline-tech {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.02em;
    color: #60a5fa;
    background: rgba(0, 122, 255, 0.06);
    border: 1px solid rgba(0, 122, 255, 0.12);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: default;
}

.timeline-tech:hover {
    background: rgba(0, 122, 255, 0.14);
    color: #93c5fd;
    border-color: rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

/* ── Staggered Timeline Animation ── */
.timeline-item {
    opacity: 0;
    transform: translateY(16px);
    animation: timelineSlideIn 0.45s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.12s; }
.timeline-item:nth-child(3) { animation-delay: 0.19s; }
.timeline-item:nth-child(4) { animation-delay: 0.26s; }
.timeline-item:nth-child(5) { animation-delay: 0.33s; }
.timeline-item:nth-child(6) { animation-delay: 0.40s; }

@keyframes timelineSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SKILLS — Card Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.skill-card {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--skill-color);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.skill-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--skill-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.skill-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.skill-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

/* ===== APPS ===== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.app-card {
    --app-glow: 0, 122, 255;
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(var(--app-glow), 0.18);
    border-radius: 18px;
    padding: 0;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgb(var(--app-glow)), transparent);
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

/* Subtle corner glow effect */
.app-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(var(--app-glow), 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(var(--app-glow), 0.12), 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(var(--app-glow), 0.4);
}

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

.app-card:hover::after {
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(var(--app-glow), 0.14) 0%, transparent 70%);
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.app-card:hover .app-link {
    color: var(--accent-light);
    gap: 10px;
}

.app-card-body {
    padding: 22px 22px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.app-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.app-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.app-platform {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
}

/* ── App Role Corner Tags ── */
.app-role {
    position: absolute;
    top: 0;
    right: 0;
    width: 180px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 0;
    border: none;
    z-index: 3;
    transform: rotate(45deg);
    transform-origin: center center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
    top: 26px;
    right: -46px;
}

.app-role--creator {
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.app-role--contributor {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.app-role--own {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

.app-tag {
    padding: 4px 12px;
    background: rgba(0, 122, 255, 0.07);
    border: 1px solid rgba(0, 122, 255, 0.18);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #60a5fa;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

.app-card:hover .app-tag {
    background: rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
}

.app-card-footer {
    padding: 14px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 16px;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.app-link svg {
    transition: transform 0.25s ease;
}

.app-card:hover .app-link svg {
    transform: translateX(4px);
}

/* ===== CERTIFICATIONS ===== */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.cert-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: var(--transition-base);
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-card-hover);
}

a.cert-card {
    text-decoration: none;
    color: inherit;
}

.cert-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.cert-icon--logo {
    background: #fff;
    border: 1px solid var(--border-card);
    padding: 6px;
    width: 64px;
    height: 64px;
}

.cert-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.cert-org {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Top gradient line */
.cta-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-purple), transparent);
}

/* Background glow */
.cta-card::after {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0, 122, 255, 0.08) 0%, rgba(139, 92, 246, 0.05) 40%, transparent 70%);
    pointer-events: none;
}

.cta-top {
    position: relative;
    z-index: 1;
}

.cta-emoji {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cta-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    max-width: 460px;
}

.cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
    white-space: nowrap;
}

.cta-pill:hover {
    transform: translateY(-3px);
}

.cta-pill svg {
    flex-shrink: 0;
}

.cta-pill--email {
    background: rgba(0, 122, 255, 0.08);
    color: var(--accent-light);
    border-color: rgba(0, 122, 255, 0.2);
}
.cta-pill--email:hover {
    background: rgba(0, 122, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
    border-color: rgba(0, 122, 255, 0.4);
}

.cta-pill--wa {
    background: rgba(37, 211, 102, 0.08);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.2);
}
.cta-pill--wa:hover {
    background: rgba(37, 211, 102, 0.18);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
}

.cta-pill--li {
    background: rgba(10, 102, 194, 0.08);
    color: #3b9aff;
    border-color: rgba(10, 102, 194, 0.2);
}
.cta-pill--li:hover {
    background: rgba(10, 102, 194, 0.18);
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.4);
}

.cta-pill--resume {
    background: rgba(139, 92, 246, 0.08);
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.2);
}
.cta-pill--resume:hover {
    background: rgba(139, 92, 246, 0.18);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

/* ===== SOCIAL / CONTACT ===== */
.social-section {
    text-align: center;
}

.social-section .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-6px) scale(1.05);
    background: rgba(0, 122, 255, 0.1);
    box-shadow: 0 10px 30px var(--accent-glow);
    border-color: var(--accent);
}

.social-link:hover svg {
    color: var(--accent-light);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-card);
    text-align: center;
}

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

.footer span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    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);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.15s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.2s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.25s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.3s;
}

.reveal-stagger.visible>*:nth-child(7) {
    transition-delay: 0.35s;
}

.reveal-stagger.visible>*:nth-child(8) {
    transition-delay: 0.4s;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Stack layout vertically on mobile */
    html, body {
        overflow: auto;
        height: auto;
    }

    .split-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .left-panel {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-card);
    }

    .left-panel-inner {
        padding: 24px 20px;
    }

    .right-panel {
        margin-left: 0;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .right-panel::before {
        width: 100%;
        background: url('assets/myimage.png') center top / 100% auto no-repeat;
        position: fixed;
    }

    .right-panel::after {
        width: 100%;
        position: fixed;
    }

    .right-navbar {
        position: sticky;
        top: 0;
        padding: 12px 20px;
        justify-content: space-between;
    }

    .nav-pills {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 15, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
        z-index: 999;
    }

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

    .nav-pill {
        font-size: 1.2rem;
        padding: 10px 24px;
    }

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

    .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);
    }

    .ig-top-row {
        gap: 14px;
    }

    .ig-avatar-ring {
        width: 72px;
        height: 72px;
    }

    .ig-stat-number {
        font-size: 1rem;
    }

    .ig-social-link {
        width: 34px;
        height: 34px;
    }

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

    .bento-tile--bio,
    .bento-tile--stats,
    .bento-tile--tech,
    .bento-tile--industries {
        grid-column: 1 / -1;
    }

    .bento-tile {
        padding: 20px;
    }

    .bento-stat-num {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .education-card.small {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }

    .timeline {
        padding: 20px 0;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 42px;
    }

    .timeline-item::before {
        left: 10px;
        top: 24px;
        width: 10px;
        height: 10px;
    }

    .timeline-header {
        padding: 16px;
    }

    .timeline-logo {
        width: 40px;
        height: 40px;
    }

    .timeline-meta {
        padding: 8px 16px 14px;
        margin-left: 72px;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-company {
        font-size: 0.82rem;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .timeline-body {
        margin-left: 56px;
        padding: 0 16px 16px;
    }

    .timeline-item {
        animation-delay: 0s !important;
    }

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

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

    .section {
        padding: 60px 0;
    }

    .cta-card {
        padding: 32px 20px;
        gap: 20px;
    }

    .cta-card h3 {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

}

@media (max-width: 480px) {
    .timeline-item {
        padding-left: 36px;
    }

    .timeline::before {
        left: 11px;
    }

    .timeline-item::before {
        left: 6px;
        width: 10px;
        height: 10px;
    }

    .timeline-body {
        margin-left: 0;
        padding: 0 14px 14px;
    }

    .timeline-meta {
        margin-left: 0 !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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