@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --primary: #00d4aa;
    --primary-dim: rgba(0, 212, 170, 0.12);
    --primary-glow: rgba(0, 212, 170, 0.35);
    --secondary: #7c3aed;
    --secondary-dim: rgba(124, 58, 237, 0.12);
    --accent: #f59e0b;
    --bg: #060910;
    --bg2: #0d1117;
    --bg3: #111827;
    --card: rgba(17, 24, 39, 0.8);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(0, 212, 170, 0.35);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Space Grotesk', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.35s var(--ease);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Ambient background orbs */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

.title-gradient {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono {
    font-family: var(--mono);
}

/* Restrict background particles to below navbar */
#bg-motion, #mk-bg {
    position: fixed !important;
    top: 64px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 5%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #060910 !important;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

nav.scrolled {
    background: #0d1117 !important;
    border-bottom-color: rgba(0, 212, 170, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.logo h2 {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo h2::before {
    content: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── BUTTONS & NAV LINKS ── */
.uiverse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}


.uiverse-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dim), var(--secondary-dim));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uiverse-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 212, 170, 0.08);
    box-shadow: 0 0 22px var(--primary-glow);
    transform: translateY(-2px);
}

.uiverse-btn:hover::before {
    opacity: 1;
}

.btn-dot {
    display: none;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 12px 28px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #060910;
    font-weight: 700;
}

.btn-primary:hover {
    background: #00efc2;
    border-color: #00efc2;
    color: #060910;
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-primary::before {
    display: none;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text);
    z-index: 1001;
    padding: 8px;
}

/* ── SECTIONS ── */
section {
    padding: 110px 8%;
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary-dim), transparent);
    max-width: 80px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-left {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 212, 170, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    color: var(--primary);
    font-family: var(--mono);
    margin-bottom: 2rem;
}

.hero-badge .pulse {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 212, 170, 0);
    }
}

.hero-name {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

/* Round Profile Picture Styling - Responsive Sizing */
.profile-avatar-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.45);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .profile-avatar-wrap {
        width: 115px;
        height: 115px;
        padding: 3.5px;
    }
}

@media (max-width: 768px) {
    .profile-avatar-wrap {
        width: 85px;
        height: 85px;
        padding: 3px;
        margin-bottom: 0.8rem;
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #0f172a;
}

.profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
}

.hero-role {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-role span {
    color: var(--primary);
    font-weight: 600;
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Terminal card */
.terminal-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    background: #161b22;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.t-red {
    background: #ff5f57;
}

.t-yellow {
    background: #febc2e;
}

.t-green {
    background: #28c840;
}

.terminal-title {
    margin-left: 8px;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 2;
}

.t-line {
    display: flex;
    gap: 8px;
}

.t-prompt {
    color: var(--primary);
    user-select: none;
}

.t-cmd {
    color: #e2e8f0;
}

.t-out {
    color: var(--text-muted);
    padding-left: 1.2rem;
}

.t-out.highlight {
    color: #a78bfa;
}

.t-out.success {
    color: var(--primary);
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--primary);
    vertical-align: middle;
    animation: blink 1.2s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Stats row */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 20px var(--primary-dim);
    transform: translateY(-3px);
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--mono);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech stack grid */
.tech-grid-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.tech-grid-card h4 {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.tech-chip:hover {
    border-color: var(--border-hover);
    color: var(--primary);
    background: var(--primary-dim);
}

.tech-chip i {
    font-size: 0.85rem;
}

/* ── EXPERIENCE ── */
#experience,
#highlights {
    background: var(--bg);
}

.exp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.exp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.exp-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0, 212, 170, 0.08);
    transform: translateY(-4px);
}

.exp-card:hover::before {
    transform: scaleX(1);
}

.exp-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.exp-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
}

.exp-card .role-text {
    font-size: 0.85rem;
    color: var(--primary);
    font-family: var(--mono);
    margin-bottom: 1.5rem;
}

.exp-card ul {
    list-style: none;
    padding: 0;
}

.exp-card ul li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.6;
}

.exp-card ul li:last-child {
    border-bottom: none;
}

.exp-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.75rem;
    top: 0.65rem;
}

/* ── SKILLS ── */
#skills {
    background: var(--bg2);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.07);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
    color: #f1f5f9;
}

.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── CONTACT ── */
#contact {
    background: var(--bg);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.07);
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-card .sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-family: var(--mono);
}

/* ── FORMS ── */
.form-group {
    margin-bottom: 1rem;
}

.dashboard-input,
input,
textarea,
select {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    font-family: var(--sans);
    font-size: 0.88rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

.dashboard-input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary) !important;
    background: rgba(0, 212, 170, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1) !important;
}

.dashboard-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--text-muted) !important;
}

select.dashboard-input,
select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

select option {
    background: var(--bg2);
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ── STAR RATING ── */
.radio {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-direction: row-reverse;
    margin: 1rem 0 1.5rem;
}

.radio>input {
    position: absolute;
    appearance: none;
    width: 0;
    height: 0;
}

.radio>label {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.radio>label>svg {
    width: 30px;
    height: 30px;
    fill: #1e293b;
    transition: fill 0.2s ease;
}

.radio>label:hover {
    transform: scale(1.2);
}

.radio>label:hover>svg,
.radio>label:hover~label>svg,
.radio>input:checked+label>svg,
.radio>input:checked+label~label>svg {
    fill: var(--accent);
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

/* ── FEEDBACK / RATING SECTION ── */
.rating-section {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
}

/* ── RESUME / BOTTOM ── */
.resume-strip {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.resume-strip p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── LIVE WARNING ── */
.live-warning {
    display: none;
    color: #fb7185;
    background: rgba(251, 113, 133, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 0.75rem;
    border: 1px solid rgba(251, 113, 133, 0.25);
    font-size: 0.85rem;
}

/* ── CHATBOT ── */
.chatbot-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00a884);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
    color: #060910;
    font-size: 1.3rem;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.08) rotate(10deg);
    box-shadow: 0 12px 32px rgba(0, 212, 170, 0.5);
}

/* ── FOOTER ── */
footer {
    padding: 2rem 8%;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.linkedin-footer-btn {
    color: #0077b5 !important;
    font-size: 1.4rem;
    transition: var(--transition);
}

.linkedin-footer-btn:hover {
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── GLASS util (kept for compatibility) ── */
.glass {
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.glass:hover {
    border-color: var(--border-hover);
}

/* ── RESPONSIVE & AUTOFIT ── */
img, video, iframe, canvas, svg {
    max-width: 100%;
    height: auto;
}

pre, code, table, textarea, input, select {
    max-width: 100%;
    word-break: break-word;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
        gap: 3rem;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-right {
        display: flex;
        width: 100%;
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(6, 9, 16, 0.97);
        backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        transition: right 0.4s var(--ease);
        z-index: 1000;
        border-left: 1px solid var(--border);
        padding: 2rem 1rem;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .uiverse-btn {
        margin: 4px 0;
        width: 100%;
        padding: 11px 20px;
        border-radius: 8px;
    }

    .exp-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .resume-strip {
        flex-direction: column;
        text-align: center;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 540px) {
    section {
        padding: 60px 4%;
    }

    .hero {
        padding-top: 80px;
        gap: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }

    .hero-name {
        font-size: clamp(2.2rem, 9vw, 2.8rem);
    }
}
/*
 ── BACKGROUND MOTION PARTICLES (all pages) ── */
#bg-motion {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bgp {
    position: absolute;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    white-space: nowrap;
    will-change: transform, opacity;
    animation: bgp-rise linear infinite;
    opacity: 0;
    user-select: none;
}

@keyframes bgp-rise {
    0%   { transform: translateY(105vh); opacity: 0; }
    6%   { opacity: 1; }
    88%  { opacity: 0.12; }
    100% { transform: translateY(-80px); opacity: 0; }
}

/* ── STAR BUTTON STYLING & ANIMATIONS ── */
.star-btn, button.star-btn, a.star-btn, .phone-btn, .chatbot-toggle, #chatbot-send {
    position: relative;
    overflow: visible !important;
    transition: all 0.3s ease-in-out;
}

.star-1, .star-2, .star-3, .star-4, .star-5, .star-6 {
    position: absolute;
    opacity: 0;
    pointer-events: none !important;
    user-select: none !important;
    transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01);
}

.chatbot-container, #chatbot-toggle, #menu-toggle {
    transform: translateZ(0);
    will-change: transform;
}

.star-1 {
    top: 20%;
    left: 20%;
    width: 25px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
    transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96);
}

.star-2 {
    top: 45%;
    left: 45%;
    width: 15px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
}

.star-3 {
    top: 40%;
    left: 40%;
    width: 5px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
}

.star-4 {
    top: 20%;
    left: 40%;
    width: 8px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
}

.star-5 {
    top: 25%;
    left: 45%;
    width: 15px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
}

.star-6 {
    top: 5%;
    left: 50%;
    width: 5px;
    height: auto;
    filter: drop-shadow(0 0 0 #fffdef);
    z-index: -5;
}

.uiverse-btn:hover, .btn-primary:hover, .star-btn:hover, .phone-btn:hover, .chatbot-toggle:hover, #chatbot-send:hover {
    box-shadow: 0 0 25px rgba(0, 212, 170, 0.45);
}

/* Desktop Mouse Hover Star Animations */
@media (hover: hover) and (pointer: fine) {
    .uiverse-btn:hover .star-1, .btn-primary:hover .star-1, .star-btn:hover .star-1, .phone-btn:hover .star-1, .chatbot-toggle:hover .star-1, .chatbot-toggle.active .star-1, #chatbot-send:hover .star-1, button:hover .star-1, a:hover .star-1 {
        opacity: 1 !important;
        top: -80%;
        left: -30%;
        width: 25px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }

    .uiverse-btn:hover .star-2, .btn-primary:hover .star-2, .star-btn:hover .star-2, .phone-btn:hover .star-2, .chatbot-toggle:hover .star-2, .chatbot-toggle.active .star-2, #chatbot-send:hover .star-2, button:hover .star-2, a:hover .star-2 {
        opacity: 1 !important;
        top: -25%;
        left: 10%;
        width: 15px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }

    .uiverse-btn:hover .star-3, .btn-primary:hover .star-3, .star-btn:hover .star-3, .phone-btn:hover .star-3, .chatbot-toggle:hover .star-3, .chatbot-toggle.active .star-3, #chatbot-send:hover .star-3, button:hover .star-3, a:hover .star-3 {
        opacity: 1 !important;
        top: 55%;
        left: 25%;
        width: 5px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }

    .uiverse-btn:hover .star-4, .btn-primary:hover .star-4, .star-btn:hover .star-4, .phone-btn:hover .star-4, .chatbot-toggle:hover .star-4, .chatbot-toggle.active .star-4, #chatbot-send:hover .star-4, button:hover .star-4, a:hover .star-4 {
        opacity: 1 !important;
        top: 30%;
        left: 80%;
        width: 8px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }

    .uiverse-btn:hover .star-5, .btn-primary:hover .star-5, .star-btn:hover .star-5, .phone-btn:hover .star-5, .chatbot-toggle:hover .star-5, .chatbot-toggle.active .star-5, #chatbot-send:hover .star-5, button:hover .star-5, a:hover .star-5 {
        opacity: 1 !important;
        top: 25%;
        left: 115%;
        width: 15px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }

    .uiverse-btn:hover .star-6, .btn-primary:hover .star-6, .star-btn:hover .star-6, .phone-btn:hover .star-6, .chatbot-toggle:hover .star-6, .chatbot-toggle.active .star-6, #chatbot-send:hover .star-6, button:hover .star-6, a:hover .star-6 {
        opacity: 1 !important;
        top: 5%;
        left: 60%;
        width: 5px;
        filter: drop-shadow(0 0 10px #fffdef);
        z-index: 20;
    }
}

/* Touch active star burst (temporary burst on mobile tap) */
.star-active .star-1 { opacity: 1 !important; top: -80%; left: -30%; width: 25px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }
.star-active .star-2 { opacity: 1 !important; top: -25%; left: 10%; width: 15px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }
.star-active .star-3 { opacity: 1 !important; top: 55%; left: 25%; width: 5px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }
.star-active .star-4 { opacity: 1 !important; top: 30%; left: 80%; width: 8px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }
.star-active .star-5 { opacity: 1 !important; top: 25%; left: 115%; width: 15px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }
.star-active .star-6 { opacity: 1 !important; top: 5%; left: 60%; width: 5px; filter: drop-shadow(0 0 10px #fffdef); z-index: 20; }

.fil0 {
    fill: #fffdef;
}

/* ── iOS MODAL & VIDEO PLAYER STYLES ── */
.ios-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ios-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ios-modal-card {
    background: #0f172a;
    border: 1px solid rgba(244, 114, 182, 0.35);
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    color: #f8fafc;
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.ios-modal-overlay.active .ios-modal-card {
    transform: scale(1);
}

.ios-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.ios-modal-close:hover {
    background: rgba(244, 114, 182, 0.3);
}

.ios-modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f472b6;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.ios-steps-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ios-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-step-num {
    background: #f472b6;
    color: #0f172a;
    font-weight: 800;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ios-watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 1rem;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

.ios-watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.5);
}

.ios-video-container {
    display: none;
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.ios-video-container.active {
    display: block;
}

.ios-video-container video {
    width: 100%;
    max-height: 380px;
    display: block;
}

/* ── INTERACTIVE TERMINAL & QUICK ACTION BUTTONS ── */
.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-quick-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.term-btn {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--primary);
    font-family: var(--mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.term-btn:hover {
    background: var(--primary);
    color: #060910;
    box-shadow: 0 0 12px var(--primary-glow);
    transform: translateY(-1px);
}

#terminal-body {
    max-height: 380px;
    overflow-y: auto;
    cursor: text;
}

.t-active-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.4rem;
    padding: 0;
    background: transparent;
    border: none;
}

.t-input-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    flex: 1;
    min-height: 22px;
}

.t-mirror-text {
    visibility: hidden;
    white-space: pre;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}

.t-cursor-block {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
    pointer-events: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #e2e8f0;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none !important;
    padding: 0;
    margin: 0;
    caret-color: transparent !important;
}

.terminal-input::placeholder {
    color: #475569;
    font-size: 0.82rem;
    font-family: var(--mono);
}

/* ── RESUME MODAL VIEWER ── */
.resume-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.resume-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.resume-modal-card {
    background: #0d1117;
    border: 1px solid rgba(0, 212, 170, 0.35);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s var(--ease);
    overflow: hidden;
}

.resume-modal-overlay.active .resume-modal-card {
    transform: scale(1);
}

.resume-modal-header {
    padding: 14px 20px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.resume-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.resume-modal-close:hover {
    background: rgba(239, 68, 68, 0.4);
}

.resume-modal-body {
    flex: 1;
    width: 100%;
    background: #1f2937;
}

.resume-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── UIVERSE.IO LETTER BOX BUTTON DESIGN ── */
.uiverse-box-btn {
    display: inline-flex;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
}

.uiverse-box-btn .button {
    display: flex;
    gap: 2px;
}

.uiverse-box-btn .box {
    width: 24px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    transition: all .4s ease;
    cursor: pointer;
    position: relative;
    background: var(--primary);
    border-radius: 4px;
    overflow: hidden;
    text-transform: uppercase;
}

.uiverse-box-btn .box::before {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    background: #0f0f0f;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform .35s ease;
    color: var(--primary);
    border-radius: 4px;
}

.uiverse-box-btn .box:nth-child(even)::before {
    transform: translateY(-100%);
}

.uiverse-box-btn:hover .box::before {
    transform: translateY(0);
}

/* ── NAVBAR UIVERSE LETTER BOX BUTTONS ── */
.nav-box-link {
    margin: 0 2px;
}

.nav-box-link .box {
    width: 20px;
    height: 28px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.nav-box-link .box::before {
    background: var(--primary);
    color: #060910;
    font-weight: 800;
}

.nav-box-link.active .box {
    background: rgba(0, 212, 170, 0.18);
    border-color: var(--primary);
    color: var(--primary);
}

.nav-resume-box .box {
    background: var(--primary);
    color: #060910;
    border-color: var(--primary);
}

.nav-resume-box .box::before {
    background: #0f0f0f;
    color: var(--primary);
}

/* ── UIVERSE TEXT STROKE BUTTON HOVER ANIMATION (by satyamchaudharydev) ── */
.uiverse-text-btn {
  margin: 0 4px;
  height: 36px;
  background: transparent;
  padding: 0 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  --border-right: 4px;
  --text-stroke-color: rgba(255, 255, 255, 0.65);
  --animation-color: #37FF8B;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--sans);
  font-weight: 700;
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}

.uiverse-text-btn .actual-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
  white-space: nowrap;
}

.uiverse-text-btn .hover-text {
  position: absolute;
  box-sizing: border-box;
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-text-stroke: 1px var(--animation-color);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.uiverse-text-btn:hover .hover-text,
.uiverse-text-btn.active .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 18px var(--animation-color));
}

.uiverse-text-btn.nav-resume-stroke {
  --animation-color: #00D4AA;
  --text-stroke-color: rgba(0, 212, 170, 0.8);
}

/* ── UIVERSE SOCIAL ICON BUTTONS (.Btn) ── */
.Btn {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 7px;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none;
}

.Btn .svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  letter-spacing: 0.8px;
  border-radius: 10px;
  transition: all .3s;
  border: 1px solid rgba(156, 156, 156, 0.466);
}

.Btn .BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  z-index: -1;
  border-radius: 9px;
  pointer-events: none;
  transition: all .3s;
}

.Btn.linkedin-btn .BG {
  background: linear-gradient(45deg, #0077b5 0%, #00a0dc 50%, #004471 100%);
}

.Btn.email-btn .BG {
  background: linear-gradient(45deg, #00d4aa 0%, #10b981 50%, #059669 100%);
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  background-color: rgba(156, 156, 156, 0.466);
}

/* ── UIVERSE SPLASH BUTTON DESIGN (.button-splash) ── */
.button-splash {
  --white: #ffe7ff;
  --purple-100: #f4b1fd;
  --purple-200: #d190ff;
  --purple-300: #c389f2;
  --purple-400: #8e26e2;
  --purple-500: #5e2b83;
  --radius: 14px;

  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--sans);
  background: transparent;
  border: 0;
  position: relative;
  width: 180px;
  height: 48px;
  display: inline-block;
  text-decoration: none;
}

.button-splash .bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  filter: blur(1px);
}
.button-splash .bg::before,
.button-splash .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) * 1.1);
  background: var(--purple-500);
}
.button-splash .bg::before {
  filter: blur(5px);
  transition: all 0.3s ease;
  box-shadow:
    -5px 4px 0 0 rgb(115 75 155 / 40%),
    -10px 8px 0 0 rgb(115 75 155 / 30%);
}

.button-splash .wrap {
  border-radius: inherit;
  overflow: hidden;
  height: 100%;
  transform: translate(3px, -3px);
  padding: 2px;
  background: linear-gradient(
    to bottom,
    var(--purple-100) 0%,
    var(--purple-400) 100%
  );
  position: relative;
  transition: all 0.3s ease;
}

.button-splash .content {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  height: 100%;
  gap: 8px;
  border-radius: calc(var(--radius) * 0.85);
  font-weight: 600;
  transition: all 0.3s ease;
  color: #fff;
  background: linear-gradient(
    to bottom,
    var(--purple-300) 0%,
    var(--purple-400) 100%
  );
}

.button-splash:hover .wrap {
  transform: translate(5px, -5px);
}

/* ── MODERN COMPREHENSIVE BUTTON DESIGN SYSTEM ── */

/* 1. Navigation Buttons & Glass Tab Links */
.beautiful-button,
nav .nav-links a,
#main-nav .nav-links a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(17, 24, 39, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(0.78rem, 1vw, 0.88rem) !important;
  letter-spacing: 0.02em !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: clamp(6px, 0.8vw, 8px) clamp(13px, 1.3vw, 18px) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin: 0 3px !important;
  overflow: hidden !important;
  -webkit-text-stroke: 0 !important;
}

.beautiful-button::before,
nav .nav-links a::before,
#main-nav .nav-links a::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transition: left 0.5s ease !important;
  pointer-events: none !important;
}

.beautiful-button:hover::before,
nav .nav-links a:hover::before,
#main-nav .nav-links a:hover::before {
  left: 100% !important;
}

.beautiful-button:hover,
nav .nav-links a:hover,
#main-nav .nav-links a:hover {
  background: rgba(0, 212, 170, 0.12) !important;
  border-color: rgba(0, 212, 170, 0.5) !important;
  color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.25) !important;
}

.beautiful-button:active,
nav .nav-links a:active,
#main-nav .nav-links a:active {
  transform: translateY(0) scale(0.97) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Active Nav State */
.beautiful-button.active,
nav .nav-links a.active,
#main-nav .nav-links a.active {
  background: rgba(17, 24, 39, 0.85) !important;
  border: 1px solid var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.45) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

/* Navbar Resume Highlight Button (.nav-resume-btn) */
.beautiful-button.nav-resume-btn,
nav .nav-links a.nav-resume-btn,
#main-nav .nav-links a.nav-resume-btn {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.18) 0%, rgba(124, 58, 237, 0.28) 100%) !important;
  border: 1px solid rgba(0, 212, 170, 0.6) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.25) !important;
  border-radius: 10px !important;
}

.beautiful-button.nav-resume-btn:hover,
nav .nav-links a.nav-resume-btn:hover,
#main-nav .nav-links a.nav-resume-btn:hover {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%) !important;
  color: #060910 !important;
  border-color: #00d4aa !important;
  box-shadow: 0 0 25px rgba(0, 212, 170, 0.55), 0 0 15px rgba(124, 58, 237, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

/* 2. Primary CTAs & Simulation Buttons (.uiverse-btn, .btn-primary, .btn-large) */
.uiverse-btn,
.btn-primary {
  position: relative !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  background: linear-gradient(135deg, #00d4aa 0%, #00b894 40%, #7c3aed 100%) !important;
  background-size: 200% 200%;
  color: #060910 !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: clamp(0.82rem, 1.05vw, 0.95rem) !important;
  letter-spacing: 0.01em;
  border: none !important;
  border-radius: 12px !important;
  padding: clamp(8px, 1vw, 11px) clamp(18px, 1.8vw, 24px) !important;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.38) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
  margin: 0 4px;
}

.uiverse-btn::after,
.btn-primary::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent) !important;
  transition: left 0.5s ease !important;
  pointer-events: none !important;
}

.uiverse-btn:hover::after,
.btn-primary:hover::after {
  left: 100% !important;
}

.uiverse-btn:hover,
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.6), 0 0 18px rgba(124, 58, 237, 0.4) !important;
  color: #060910 !important;
}

.uiverse-btn:active,
.btn-primary:active {
  transform: translateY(1px) scale(0.98) !important;
  box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3) !important;
}

.btn-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #060910 !important;
  box-shadow: 0 0 8px #060910 !important;
  animation: btn-dot-pulse 1.8s infinite ease-in-out !important;
}

@keyframes btn-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* 3. Terminal Quick Action Buttons (.term-btn) */
.term-btn {
  background: rgba(0, 212, 170, 0.08) !important;
  border: 1px solid rgba(0, 212, 170, 0.35) !important;
  color: var(--primary) !important;
  font-family: var(--mono) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.term-btn:hover {
  background: var(--primary) !important;
  color: #060910 !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px var(--primary-glow) !important;
  transform: translateY(-2px) !important;
}

.term-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

/* 4. Simulation Tab & Config Buttons (.config-tab-btn) */
.config-tab-btn {
  background: rgba(17, 24, 39, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  font-family: var(--mono) !important;
  font-size: 0.8rem !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  position: relative;
}

.config-tab-btn:hover {
  color: #e2e8f0 !important;
  border-color: rgba(0, 212, 170, 0.4) !important;
  background: rgba(0, 212, 170, 0.08) !important;
  transform: translateY(-1px);
}

.config-tab-btn.active {
  color: var(--primary) !important;
  background: rgba(0, 212, 170, 0.14) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 14px rgba(0, 212, 170, 0.3) !important;
  font-weight: 600 !important;
}

/* 5. Slack Action Console Buttons (.slack-btn, .slack-btn-primary) */
.slack-btn {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.slack-btn:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.slack-btn-primary {
  background: linear-gradient(135deg, var(--primary), #00b894) !important;
  color: #060910 !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 212, 170, 0.35) !important;
}

.slack-btn-primary:hover {
  background: linear-gradient(135deg, #00efc2, #00d4aa) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.55) !important;
  transform: translateY(-2px) !important;
}

/* 6. Modal Close Buttons (.resume-modal-close, .ios-modal-close) */
.resume-modal-close,
.ios-modal-close {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(4px);
}

.resume-modal-close:hover,
.ios-modal-close:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45) !important;
}

/* 7. Chatbot Send & Trigger Buttons */
#chatbot-send {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  border: none !important;
  color: #ffffff !important;
  width: 38px;
  height: 38px;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(0, 212, 170, 0.35) !important;
}

#chatbot-send:hover {
  transform: scale(1.08) translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 212, 170, 0.55) !important;
}

#chatbot-send:active {
  transform: scale(0.95) !important;
}

/* ── FOOTER & BLOOM GLASS ORB BUTTONS (.bloom-container by Smit-Prajapati) ── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(6, 9, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-social-blooms {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bloom-social-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.bloom-social-btn .bloom-container {
  position: relative;
  transition: all 0.3s ease-in-out;
  border: none;
  background: none;
  transform: scale(0.48);
  transform-origin: center center;
  margin: -16px -18px;
}

.bloom-social-btn .bloom-container .button-container-main {
  width: 90px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-content: center;
  border-right: 5px solid white;
  border-left: 5px solid rgba(128, 128, 128, 0.147);
  transform: rotate(-45deg);
  transition: all 0.5s ease-in-out;
}

.bloom-social-btn .bloom-container .button-container-main .button-inner {
  height: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
  box-shadow: rgba(100, 100, 111, 0.5) -10px 5px 10px 0px;
  transition: all 0.5s ease-in-out;
}

.bloom-social-btn .bloom-container .button-container-main .button-inner .back {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(60deg, rgb(1, 85, 103) 0%, rgb(147, 245, 255) 100%);
}

.bloom-social-btn.linkedin-bloom .bloom-container .button-container-main .button-inner .back {
  background: linear-gradient(60deg, #004471 0%, #00a0dc 100%);
}

.bloom-social-btn.gmail-bloom .bloom-container .button-container-main .button-inner .back {
  background: linear-gradient(60deg, #991b1b 0%, #ef4444 100%);
}

.bloom-social-btn .bloom-container .button-container-main .button-inner .front {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(60deg, rgb(0, 103, 140) 0%, rgb(58, 209, 233) 100%);
  display: grid;
  place-content: center;
}

.bloom-social-btn.linkedin-bloom .bloom-container .button-container-main .button-inner .front {
  background: linear-gradient(60deg, #0077b5 0%, #38bdf8 100%);
}

.bloom-social-btn.gmail-bloom .bloom-container .button-container-main .button-inner .front {
  background: linear-gradient(60deg, #dc2626 0%, #f87171 100%);
}

.bloom-social-btn .bloom-container .button-container-main .button-inner .front .svg {
  fill: #ffffff;
  opacity: 0.85;
  width: 24px;
  aspect-ratio: 1;
  transform: rotate(45deg);
  transition: all 0.2s ease-in;
}

.bloom-social-btn .bloom-container .button-container-main .button-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.888) 100%);
  transform: translate(0%, -50%) rotate(0deg);
  transform-origin: bottom center;
  opacity: 0.25;
  transition: all 0.5s ease-in-out;
}

/* BLOOM GLOW LIGHTS - HIDDEN BY DEFAULT, SHOWN ONLY ON HOVER */
.bloom-social-btn .bloom-container .bloom {
  height: 1px;
  width: 1px;
  position: absolute;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.bloom-social-btn .bloom-container .bloom1 {
  top: 10px;
  right: 20px;
  box-shadow: rgb(255, 255, 255) 0px 0px 10px 10px, rgb(255, 255, 255) 0px 0px 20px 20px;
}

.bloom-social-btn .bloom-container .bloom2 {
  bottom: 10px;
  left: 20px;
  box-shadow: rgba(255, 255, 255, 0.5) 0px 0px 10px 10px, rgba(255, 255, 255, 0.5) 0px 0px 30px 20px;
}

/* HOVER STATE EFFECTS */
.bloom-social-btn:hover .bloom-container {
  transform: scale(0.62);
}

.bloom-social-btn:hover .bloom-container .bloom {
  opacity: 1;
}

.bloom-social-btn:hover .bloom-container .button-container-main .button-glass {
  opacity: 1;
  transform: translate(0%, -40%);
}

.bloom-social-btn:hover .bloom-container .button-container-main .button-inner .front .svg {
  opacity: 1;
  filter: drop-shadow(0 0 10px white);
}

.bloom-social-btn:active .bloom-container {
  transform: scale(0.38);
}

/* OPTIMIZATIONS FOR 0.5 vCPU / 512MB RAM LOW RESOURCE EXECUTION */
@supports (content-visibility: auto) {
  section, footer, .card, .project-card, .skill-card, .exp-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
  }
}

/* GLOBAL MOBILE RESPONSIVENESS & OVERFLOW CONTAINMENT */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem !important;
  }
  .nav-links {
    max-width: 100vw;
    overflow-y: auto;
  }
  .hero-section, section, footer, main, .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }
  .grid, .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }
  pre, code, table, .table-wrap, .terminal-card {
    max-width: 100% !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }
}

