/* ---- DESIGN SYSTEM ---- */
:root {
    --bg-dark: #07090e;
    --bg-slate: #0d111b;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --primary-muted: rgba(56, 189, 248, 0.1);
    --text-white: #f1f5f9;
    --text-slate: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-heavy: rgba(15, 23, 42, 0.9);
    --border: rgba(148, 163, 184, 0.15);
    --border-bright: rgba(148, 163, 184, 0.3);
    --nav-height: 70px;
    --font-head: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
    transition: background 0.3s ease;
}

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

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #fff);
    z-index: 10;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ---- RESETS ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- DECORATIONS ---- */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.3;
    animation: floating 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: rgba(56, 189, 248, 0.15);
}

.blob-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    background: rgba(56, 189, 248, 0.1);
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 20%;
    background: rgba(255, 255, 255, 0.03);
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* ---- NAV ---- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 100%;
    margin: 0;
}

.glass-nav {
    display: flex;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-slate);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-white);
}

.btn-sm {
    text-decoration: none;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* ---- HERO ---- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.container-full {
    max-width: 1400px !important;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 80px 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    margin-top: 60px;
    /* Offset for nav bar */
}

/* Side Brand Marker */
.editorial-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    position: relative;
    z-index: 5;
}

.vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: var(--primary);
    opacity: 0.3;
}

.vertical-marker {
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--primary));
}

.vertical-marker-long {
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.6;
}

/* Main Area */
.hero-title-main {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-top: 0.5rem;
}

/* Bio Sidebar Card */
/* Welcome Notice Element */
.editorial-welcome {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.welcome-inner {
    max-width: 450px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 2.5rem;
    opacity: 0.4;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: simple-pulse 2s infinite;
}

@keyframes simple-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.welcome-message {
    font-family: var(--font-head);
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 400;
    color: var(--text-white);
    letter-spacing: -1.5px;
}

.welcome-message span {
    display: inline-block;
}

.welcome-message .italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary);
    font-weight: 300;
    letter-spacing: 0;
}

.hero-btns-v {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 3.5rem;
}

.hero-btns-row {
    flex-direction: row !important;
    flex-wrap: wrap;
}

.hero-btns-row .btn-primary,
.hero-btns-row .btn-secondary {
    width: auto !important;
    min-width: 200px;
}

.mb-4 {
    margin-bottom: 1rem;
}


.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-glow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-subline {
    font-size: 1.1rem;
    color: var(--text-slate);
    line-height: 1.8;
}

/* ---- hero spotlight: featured content ---- */
.hero-spotlight {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hero-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.hero-spotlight:hover {
    background: var(--primary-muted);
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.spotlight-new {
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spotlight-new::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 50%;
    animation: pulse-dark 2s infinite;
}

@keyframes pulse-dark {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.spotlight-text {
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-spotlight svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.hero-spotlight:hover svg {
    transform: translateX(4px);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* ---- SCROLL INDICATOR ---- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-slate);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}

.mouse {
    width: 22px;
    height: 38px;
    border: 2px solid var(--border-bright);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--primary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 16px 32px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary {
    display: flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* ---- NARRATIVE PROFILE OVERHAUL (MINIMALIST) ---- */
.narrow-container {
    max-width: 900px;
    margin: 0 auto;
}

.profile-flow {
    padding-left: 20px;
}

.flow-container {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    position: relative;
}


.flow-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 40px;
    position: relative;
    align-items: flex-start;
}


/* Subtle Vertical Line */
.flow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 2px;
    transform: translateX(-50%);


    height: 100%;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(56, 189, 248, 0.05) 100%);
    opacity: 0.2;
}

.flow-index {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--bg-dark);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary-glow);
    margin-top: 10px;
    justify-self: center;
}



.flow-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.flow-title {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.flow-institution {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-slate);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.flow-text {
    font-size: 1.15rem;
    color: var(--text-slate);
    line-height: 1.8;
    max-width: 650px;
}

.flow-year {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    padding-top: 2rem;
    white-space: nowrap;
    letter-spacing: 1px;
}


.credentials-minimal-list {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cred-pill {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

/* Jobintech Theme Variant */
.jobintech-variant .flow-label,
.jobintech-variant .flow-year {
    color: #648c1c;
}

.jobintech-variant .flow-index {
    color: #648c1c;
    background: #648c1c;
    box-shadow: 0 0 15px rgba(100, 140, 28, 0.4);
}

.jobintech-variant .flow-institution {
    color: #648c1c;
    opacity: 0.9;
}

/* ---- CERTIFICATES LEDGER (OVERHAULED) ---- */
.cert-ledger {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.cert-item {
    display: flex;
    align-items: center;
    padding: 60px 40px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    background: transparent;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.cert-item:hover::before {
    transform: scaleY(1);
}

.cert-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 50px;
}

.cert-icon-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-right: 40px;
    color: var(--primary);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.cert-item:hover .cert-icon-wrap {
    background: var(--primary-muted);
    border-color: var(--primary-glow);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px var(--primary-glow);
}

.cert-number {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    width: 60px;
    transition: all 0.4s ease;
}

.cert-item:hover .cert-number {
    opacity: 1;
    transform: translateX(-10px);
}

.cert-content {
    flex-grow: 1;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.cert-item:hover .cert-status {
    opacity: 1;
}

.cert-issuer {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-slate);
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.cert-item:hover .cert-issuer {
    color: var(--primary);
}

.cert-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 0.5rem;
}

.cert-meta {
    font-size: 0.95rem;
    color: var(--text-slate);
    font-weight: 500;
    margin-bottom: 2rem;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cert-tags span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-slate);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cert-item:hover .cert-tags span {
    border-color: var(--primary-glow);
    color: var(--text-white);
}

.cert-item.jobintech-variant:hover .cert-tags span {
    border-color: rgba(100, 140, 28, 0.3);
}

.cert-action {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-slate);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.cert-item:hover .cert-action {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

/* Variant: Jobintech Green */
.cert-item.jobintech-variant::before {
    background: #648c1c;
}

.cert-item.jobintech-variant:hover .cert-number,
.cert-item.jobintech-variant:hover .cert-issuer,
.cert-item.jobintech-variant:hover .cert-status,
.cert-item.jobintech-variant:hover .cert-action {
    color: #648c1c;
}

.cert-item.jobintech-variant .cert-icon-wrap {
    color: #648c1c;
}

.cert-item.jobintech-variant:hover .cert-icon-wrap {
    background: rgba(100, 140, 28, 0.1);
    border-color: rgba(100, 140, 28, 0.3);
    box-shadow: 0 0 20px rgba(100, 140, 28, 0.2);
}

/* Hover Interaction Layer */
.cert-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary-muted), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.cert-item.jobintech-variant::after {
    background: linear-gradient(90deg, rgba(100, 140, 28, 0.05), transparent);
}

.cert-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .cert-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 20px;
        gap: 20px;
    }

    .cert-item:hover {
        padding-left: 20px;
    }

    .cert-icon-wrap {
        margin-right: 0;
        margin-bottom: 10px;
        width: 50px;
        height: 50px;
    }

    .cert-title {
        font-size: 1.8rem;
    }

    .cert-action {
        opacity: 0.6;
        transform: translateX(0);
    }
}


.section-desc {
    color: var(--text-slate);
    margin-top: 1rem;
    max-width: 600px;
    font-size: 1.1rem;
}

.cred-pill:hover {
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Utilities */
.mb-12 {
    margin-bottom: 3rem;
}



/* ---- GLOBAL / SECTIONS ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.section-tag-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.5rem;
}

.section-tag {
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.8;
}

.ai-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary);
    cursor: help;
    transition: var(--transition-smooth);
}

.ai-badge:hover {
    background: var(--primary-muted);
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px var(--primary-glow);
}

.ai-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 15px);
    transform: translateY(-50%) translateX(-10px);
    background: #0d111b; /* Matches var(--bg-slate) */
    color: var(--text-white);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
    width: 250px;
    white-space: normal;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-bright);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-muted);
    pointer-events: none;
    z-index: 100;
}

.ai-badge:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent var(--border-bright) transparent transparent;
}



.h2-titles {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.italic-serif {
    font-style: italic;
    font-weight: 300;
    opacity: 0.8;
}

/* ---- PORTFOLIO V3: STRATEGIC REPOSITORY ---- */
.portfolio-grid-v3 {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.portfolio-card-v3 {
    display: flex;
    flex-direction: row;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.4);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    width: 100%;
    align-items: stretch;
    isolation: isolate;
    scroll-margin-top: 120px;
}

.portfolio-card-v3:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.08);
}

.portfolio-card-v3:nth-child(even) {
    flex-direction: row-reverse;
}

.portfolio-card-v3:nth-child(even):hover {
    transform: translateX(-10px);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.08);
}

/* Thumbnail / Document Stack */
.card-thumbnail-v3 {
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 380px;
}

.portfolio-card-v3:nth-child(even) .card-thumbnail-v3 {
    border-right: none;
    border-left: 1px solid var(--border);
}

.card-thumbnail-v3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.card-thumbnail-v3.image-fill {
    padding: 0;
    min-height: 300px;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.portfolio-card-v3:hover .thumbnail-img {
    transform: scale(1.08);
}

.doc-stack {
    position: relative;
    width: 130px;
    height: 180px;
    transition: var(--transition-smooth);
}

.doc-page {
    position: absolute;
    inset: 0;
    background: var(--bg-slate);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.page-bottom {
    transform: rotate(6deg) translate(8px, 8px);
    opacity: 0.3;
}

.page-middle {
    transform: rotate(3deg) translate(4px, 4px);
    opacity: 0.6;
}

.doc-mockup-v3 {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-slate);
    border: 1px solid var(--border-bright);
    border-radius: 4px;
    padding: 18px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5;
    transition: var(--transition-smooth);
}

.portfolio-card-v3:hover .doc-mockup-v3 {
    transform: translateY(-8px) rotate(-1deg);
    border-color: var(--primary);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.6);
}

.portfolio-card-v3:hover .doc-stack {
    transform: rotate(-2deg);
}

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

.doc-badge-v3 {
    font-size: 0.5rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 2px 6px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.doc-icon {
    color: var(--primary);
    opacity: 0.6;
}

.doc-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doc-line-v3 {
    height: 2px;
    background: var(--border);
    border-radius: 1px;
}

.doc-line-v3.primary {
    background: var(--primary);
    opacity: 0.4;
}

.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }

/* Card Info */
.card-info-v3 {
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.25rem;
}

.p-num-v3 {
    font-family: var(--font-head);
    font-weight: 900;
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0.4;
    font-style: italic;
}

.card-type {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 4px 10px;
    border-radius: 50px;
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.veripulse-badge {
    color: #ff5e5e;
    background: rgba(255, 94, 94, 0.1);
    border-color: rgba(255, 94, 94, 0.3);
}

.card-info-v3 h3 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.card-info-v3 p {
    color: var(--text-slate);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.card-tags span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-slate);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.portfolio-card-v3:hover .card-tags span {
    border-color: var(--primary-glow);
    color: var(--text-white);
}

/* Card Footer */
.card-footer-v3 {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.read-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-slate);
    opacity: 0.6;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
}

.portfolio-card-v3:hover .view-btn {
    color: var(--primary);
    gap: 14px;
}


/* ---- /* ---- CONTACT V2: STRATEGIC CALL ---- */
.contact-v2 {
    background: radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    padding-bottom: 80px;
    /* Reduced to sit closer to the bottom */
}

.contact-flow-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.availability-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

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

.h2-titles-v2 {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.h2-titles-v2 span {
    color: var(--primary);
    font-style: italic;
    font-weight: 300;
}

.contact-subtitle-v2 {
    font-size: 1.2rem;
    color: var(--text-slate);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.contact-hero-link {
    margin-bottom: 5rem;
    width: 100%;
}

.main-email-link {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -2px;
    display: inline-flex;
    align-items: center;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding-bottom: 10px;
}

.main-email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.main-email-link:hover {
    color: var(--primary);
}

.main-email-link:hover::after {
    width: 100%;
}

.main-email-link svg {
    opacity: 0.3;
    transition: all 0.4s ease;
}

.main-email-link:hover svg {
    opacity: 1;
    transform: translate(10px, -10px);
}

.contact-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
    width: 100%;
}

.social-link-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-slate);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.social-link-v2 svg {
    transition: transform 0.3s ease;
}

.social-link-v2:hover svg {
    transform: translateY(-2px);
}

.social-link-v2:hover {
    color: var(--primary);
}

.social-divider {
    width: 1px;
    height: 15px;
    background: var(--border);
}



/* ---- GLASS ---- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

/* ---- ANIMATIONS ---- */
.reveal,
.reveal-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- BACK TO TOP ---- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px var(--primary-glow);
}

/* ---- CONTACT HUB POLISH ---- */
.contact-hub-card {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-hub-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.contact-hub-card:hover::after {
    opacity: 1;
}

/* ---- RESPONSIVE POLISH ---- */
@media (max-width: 1200px) {
    .portfolio-grid-v3 {
        gap: 30px;
    }

    .card-thumbnail-v3 {
        padding: 50px 30px;
        width: 320px;
    }
    
    .card-info-v3 {
        padding: 40px;
    }

    .hero-title-main {
        font-size: 5rem;
    }

    .editorial-grid {
        grid-template-columns: 80px 1fr;
    }

    .editorial-welcome {
        grid-column: span 2;
        padding-left: 0;
        margin-top: 10px;
        order: 3;
    }
}

@media (max-width: 768px) {
    .portfolio-grid-v3 {
        gap: 24px;
    }

    .portfolio-card-v3,
    .portfolio-card-v3:nth-child(even) {
        flex-direction: column;
    }

    .portfolio-card-v3:hover,
    .portfolio-card-v3:nth-child(even):hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.08);
    }

    .card-thumbnail-v3,
    .card-thumbnail-v3.image-fill {
        width: 100%;
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--border);
        min-height: 250px;
    }

    .portfolio-card-v3:nth-child(even) .card-thumbnail-v3 {
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .card-info-v3 {
        padding: 30px;
    }

    .h2-titles-v2 {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .main-email-link {
        font-size: 1.5rem;
        letter-spacing: 0;
        gap: 15px;
    }

    .main-email-link svg {
        width: 24px;
        height: 24px;
    }

    .contact-social-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .social-divider {
        display: none;
    }

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

    .editorial-side {
        display: none;
    }

    .hero-title-main {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .editorial-welcome {
        margin-top: 30px;
    }

    .h2-titles {
        font-size: 2.5rem;
    }

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

/* ---- EASTER EGG ---- */
.thank-you-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 2s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    padding: 30px 0;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    margin-top: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.thank-you-message.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* ---- FEATURED HIGHLIGHT (NIS2) ---- */
.featured-highlight {
    border-color: var(--primary-glow) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        border-color: var(--primary-glow);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
    }
    100% {
        border-color: var(--primary);
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.3);
    }
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: badge-float 4s ease-in-out infinite;
}

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

.featured-highlight .p-num-v3 {
    opacity: 1;
    color: var(--primary);
}

.featured-highlight h3 {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}