/* Global Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/geist@1.3.0/dist/font/sans/geist.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400&display=swap');

/* Variables */
:root {
    --p: #a48fff;
    --pfg: #0f0f1a;
    --s: #2d2b55;
    --sfg: #c4c2ff;
    --bg: #0f0f1a;
}

/* Global Reset & Typography */
html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    font-optical-sizing: auto;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
    background: var(--bg);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Geist Sans', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.font-geist {
    font-family: 'Geist Sans', sans-serif;
}

.font-playfair-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-synthesis: none;
}

/* Utilities */
.headline-gradient {
    background: linear-gradient(90deg, #ffffff 0%, #c4c2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}

/* Hero & Video Styles (from index.php) */
header {
    isolation: isolate;
}

.video-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(56, 189, 248, 0.12) 0%,
            transparent 40%,
            transparent 60%,
            rgba(139, 92, 246, 0.6) 85%,
            rgba(15, 15, 26, 1) 100%);
    mix-blend-mode: soft-light;
}

.video-deepen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(15, 15, 26, 0.15) 0%,
            transparent 20%,
            transparent 70%,
            rgba(15, 15, 26, 0.8) 92%,
            rgba(15, 15, 26, 1) 100%);
    mix-blend-mode: multiply;
}

/* Glass & Card Styles */
.glass-panel {
    background: rgba(24, 26, 38, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-panel-soft {
    background: rgba(24, 26, 38, 0.40);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Alias common glass/card styles found in other pages */
.glass {
    background: rgba(24, 26, 38, 0.52);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.dark-card,
.card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-inset,
.inset {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.soft-divider {
    border-color: rgba(255, 255, 255, 0.10);
}

.sidebar-glass {
    background: rgba(255, 255, 255, 0.015);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styles */
.field {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    outline: none;
}

.field::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.field:focus {
    border-color: rgba(164, 143, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(164, 143, 255, 0.16);
}

.btn-primary {
    background: #D4C5F5;
    color: #5b4d85;
}

.btn-primary:hover {
    background: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
}

/* Animations */
.floaty {
    animation: floaty 7s ease-in-out infinite;
}

.floaty-slow {
    animation: floaty 10s ease-in-out infinite;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 700ms ease-out both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: .75;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

.pulse-dot {
    animation: pulseGlow 2.2s ease-in-out infinite;
}

@keyframes sweep {
    0% {
        transform: translateX(-55%);
        opacity: .35;
    }

    50% {
        opacity: .9;
    }

    100% {
        transform: translateX(155%);
        opacity: .35;
    }
}

.sweep {
    animation: sweep 3.2s ease-in-out infinite;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.glow {
    background-image:
        radial-gradient(980px 520px at 18% 6%, rgba(164, 143, 255, 0.18), transparent 55%),
        radial-gradient(840px 520px at 85% 20%, rgba(196, 194, 255, 0.10), transparent 60%),
        radial-gradient(920px 520px at 68% 92%, rgba(164, 143, 255, 0.10), transparent 55%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 55%);
}

.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Chat Styles (index.php) */
.chat-bubble {
    border-radius: 18px;
    padding: 10px 12px;
    line-height: 1.25;
    font-size: 13px;
    max-width: 230px;
    position: relative;
}

@media (max-width: 768px) {
    .chat-bubble {
        font-size: 12px;
        padding: 8px 10px;
    }
}

.chat-in {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.chat-out {
    background: rgba(164, 143, 255, 0.24);
    border: 1px solid rgba(164, 143, 255, 0.22);
    color: rgba(255, 255, 255, 0.95);
}

.chat-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    animation: bounce 1.1s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.15s;
    opacity: 0.85;
}

.dot:nth-child(3) {
    animation-delay: 0.30s;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0px);
        opacity: .6;
    }

    50% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* Animations (Charts) */
.line-draw {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: drawLine 2.1s ease-out infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 520;
        opacity: 0.75;
    }

    35% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.bar-grow {
    transform-origin: bottom;
    animation: barGrow 2.2s ease-in-out infinite;
}

@keyframes barGrow {
    0% {
        transform: scaleY(0.55);
        opacity: 0.85;
    }

    45% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0.92);
        opacity: 0.95;
    }
}

.bar-grow:nth-child(2) {
    animation-delay: .12s;
}

.bar-grow:nth-child(3) {
    animation-delay: .24s;
}

.bar-grow:nth-child(4) {
    animation-delay: .36s;
}

.bar-grow:nth-child(5) {
    animation-delay: .48s;
}

/* Resume / CV Specific Styles */
.resume-section {
    margin-bottom: 3.5rem;
}

.section-label {
    color: var(--p);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, var(--p), transparent);
    flex-grow: 1;
}

.experience-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(164, 143, 255, 0.1);
    margin-bottom: 2rem;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 0.5rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--p);
    box-shadow: 0 0 10px var(--p);
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--sfg);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(164, 143, 255, 0.1);
    border-color: var(--p);
    color: white;
    transform: translateY(-2px);
}

.avatar-glow {
    position: relative;
}

.avatar-glow::after {
    content: "";
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(164, 143, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(164, 143, 255, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(164, 143, 255, 0.4);
}

/* Mobile Tilt (index.php) */
@media (max-width: 768px) {
    .mobile-tilt {
        transform: perspective(1000px) rotateY(8deg) rotateX(2deg) scale(0.85) !important;
        transform-origin: right center;
    }

    .hero-main-adjust {
        padding-top: 2rem !important;
        padding-bottom: 25rem !important;
    }
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Text POP */
.hero-text-shadow {
    filter: none !important;
}

@media (max-width: 768px) {
    .hero-text-shadow {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }
}

/* Navigation Overrides */
header nav a,
.nav-dark-text {
    color: white !important;
    filter: none !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

header nav a:hover,
.nav-dark-text:hover {
    color: #4f46e5 !important;
    opacity: 1;
}

header nav a.bg-\[\#2d2b55\] {
    box-shadow: 0 4px 15px rgba(45, 43, 85, 0.15);
}

header nav a.bg-\[\#2d2b55\]:hover {
    background-color: #3d3b75 !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
}

/* Animated Arrow Connector */
.arrow-line {
    position: relative;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
    display: flex;
    align-items: center;
}

.arrow-line::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) rotate(45deg);
}

.arrow-pulse {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 24px;
    background: linear-gradient(90deg, transparent, rgba(164, 143, 255, 1), transparent);
    filter: blur(1px);
    animation: arrowSlide 3s infinite linear;
    opacity: 0;
}

@keyframes arrowSlide {
    0% {
        left: -24px;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Stepper Animations */
.step-line-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.step-line-pulse {
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #3b82f6, #a48fff, transparent);
    animation: stepTravel 6s infinite linear;
}

@keyframes stepTravel {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}

.step-node-pulse {
    background: #0f0f1a;
    border-color: rgba(255, 255, 255, 0.1);
    animation: nodePulse 6s infinite;
    z-index: 20;
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0px transparent;
        border-color: rgba(255, 255, 255, 0.1);
        background: #0f0f1a;
        color: rgba(255, 255, 255, 0.4);
    }

    10%,
    40% {
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
        border-color: #3b82f6;
        background: #3b82f6;
        color: white;
    }
}

.step-1-pulse {
    animation-delay: 0s;
}

.step-2-pulse {
    animation-delay: 1.2s;
}

.step-3-pulse {
    animation-delay: 2.4s;
}

.step-4-pulse {
    animation-delay: 3.6s;
}

.step-5-pulse {
    animation-delay: 4.8s;
}

/* Compliance Engine Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse-slow {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

.animate-spin-reverse-slow {
    animation: spin-reverse-slow 20s linear infinite;
}

/* Premium Magnetic CTA Styling */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-border-wrapper {
    position: relative;
    padding: 1.5px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.cta-spinning-gradient {
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(from 0deg,
            rgba(255, 255, 255, 0.1) 0,
            rgba(255, 255, 255, 0.1) 20%,
            #a48fff 40%,
            #4f46e5 50%,
            #a48fff 60%,
            rgba(255, 255, 255, 0.1) 80%,
            rgba(255, 255, 255, 0.1) 100%);
    animation: spin-conic 3s linear infinite;
    z-index: 0;
    filter: blur(1px);
}

@keyframes spin-conic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-inner {
    position: relative;
    z-index: 1;
    background: #0d0d16;
    border-radius: 9999px;
    padding: 16px 48px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}

.cta-inner:hover {
    background: #151525;
    box-shadow: inset 0 0 20px rgba(164, 143, 255, 0.1);
}

.cta-inner span {
    letter-spacing: -0.02em;
}

/* Staggered entry animation */
#mobile-menu {
    visibility: hidden;
}

#mobile-menu .mobile-link {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

#mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.15s;
}

#mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.2s;
}

#mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.25s;
}

#mobile-menu.active .mobile-link:nth-child(5) {
    transition-delay: 0.3s;
}

#mobile-menu.active .mobile-link:nth-child(6) {
    transition-delay: 0.35s;
}

#mobile-menu.active .mobile-link:last-child {
    transition-delay: 0.4s;
}