:root {
    --bg-color: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

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

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

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

/* Slides Container */
.slides-container {
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.slides-container::-webkit-scrollbar {
    display: none;
}

/* Individual Slide */
.slide {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    scroll-snap-align: start;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.05) 0%, transparent 40%);
}

.content-wrapper {
    width: 100%;
    max-width: 960px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Section */
.slide-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.slide-header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.slide-header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent-color);
    margin: 0;
}

.slide-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
}

/* Core Competency & Tech Stack (legacy, keep for other slides) */
.core-competency {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.core-competency p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tech-stack {
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 12px 12px 0;
}

.tech-stack p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.slide-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.slide-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    padding: 0.4rem 1rem;
    border: 2px dashed var(--text-secondary);
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    right: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

/* =============================================
   PROFILE SLIDE — Hero Redesign
   ============================================= */

.profile-slide {
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 80% at 5% 50%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 95% 10%, rgba(79, 70, 229, 0.07) 0%, transparent 60%),
        #f8faff;
}

/* Background Decoration */
.profile-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.deco-circle-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-gradient);
    top: -150px;
    right: -100px;
}

.deco-circle-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    bottom: -100px;
    left: 30%;
}

.deco-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* Two-column layout */
.profile-layout {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 2rem 0;
}

/* LEFT COLUMN */
.profile-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.profile-badge {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

.profile-name {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text-primary);
    margin: 0;
}

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

.profile-tagline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
}

.profile-tagline strong {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-competencies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.competency-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
}

.competency-tag:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--accent-color);
}

.profile-tech-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tech-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    white-space: nowrap;
}

.tech-items {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    line-height: 1.5;
}

/* RIGHT COLUMN */
.profile-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.stat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.stat-num {
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-unit {
    font-size: 1.8rem;
}

.stat-desc {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.profile-focus-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--accent-gradient);
    border-radius: 16px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.focus-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.focus-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.focus-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.focus-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.focus-sub {
    font-size: 0.82rem;
    opacity: 0.78;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.profile-domains {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.domain-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

/* --- Modern Split STAR Layout (Left: STAR, Right: Visual) --- */
.star-grid {
    display: flex;
    flex-direction: row;
    gap: 3.5rem;
    flex: 1;
    min-height: 0;
    align-items: flex-start;
    padding-top: 2rem;
}

.star-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 55%;
    justify-content: flex-start;
}

.star-card {
    background: rgba(37, 99, 235, 0.03);
    border: none;
    border-left: 4px solid rgba(37, 99, 235, 0.2);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem 1rem 1.5rem;
    box-shadow: none;
    transition: border-left-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.star-card:hover {
    transform: translateX(4px);
    border-left-color: var(--accent-color);
    background: rgba(37, 99, 235, 0.06);
}

.star-item {
    display: flex;
    flex-direction: column;
}

.star-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.star-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Visual Section - Right Side */
.star-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    width: 40%;
}

.process-flow-viz {
    width: 100%;
    height: 100%;
    max-height: 550px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.process-flow-viz img, .process-flow-viz svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer Tags */
.tech-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    font-size: 0.7rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Profile Slide Special Layout */
#slide-1 .content-wrapper {
    justify-content: center;
}

#slide-1 .star-content {
    grid-template-columns: 1fr;
}

#slide-1 .key-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.metric-value {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Print Optimization for PDF */
@media print {
    @page {
        size: landscape;
        margin: 0;
    }

    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        overflow: visible !important;
    }

    .slides-container {
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
    }

    .slide {
        height: 100vh !important;
        page-break-after: always;
        page-break-inside: avoid;
        padding: 2rem !important;
        background: white !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .slide:last-of-type {
        page-break-after: auto;
    }

    /* Hide UI Elements */
    .nav-bar, #chat-widget, .chat-widget, [class*="chat"], .laser-pointer, .nav-dot, #chat-toggle-btn, #chat-window {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .star-card {
        background: rgba(37, 99, 235, 0.04) !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid rgba(37, 99, 235, 0.4) !important;
    }

    .process-flow-viz {
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    .star-text {
        font-size: 10pt;
    }

    /* Disable animations for PDF generation to prevent faint/invisible text */
    * {
        -webkit-transition: none !important;
        transition: none !important;
        -webkit-animation: none !important;
        animation: none !important;
    }

    .animate-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }