:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Glassmorphism base */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Glow effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), 0 0 60px rgba(59, 130, 246, 0.05);
}

.glow-blue-text {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.glow-blue-border {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1), inset 0 0 15px rgba(59, 130, 246, 0.03);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.25), 0 0 80px rgba(59, 130, 246, 0.08);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Moving gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #0a0a1a 0%, #0f172a 30%, #1e293b 60%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(0.5deg); }
    66% { transform: translateY(6px) rotate(-0.3deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes orbitReverse {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(-360deg) translateX(60px) rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

@keyframes pingSlow {
    0% { transform: scale(1); opacity: 0.6; }
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

.animate-ping-slow {
    animation: pingSlow 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.floating-assistant-launch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.96);
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.floating-assistant-launch:hover {
    color: #fff;
    transform: translateY(-1px);
}

.floating-assistant-launch:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 5px;
}

.floating-assistant-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.96;
    white-space: nowrap;
}

.floating-assistant-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.24);
    color: #1d4ed8;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-assistant-avatar-wrap::before {
    position: absolute;
    z-index: -1;
    inset: -4px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    content: "";
    animation: assistantHalo 2.8s ease-in-out infinite;
}

.floating-assistant-launch:hover .floating-assistant-avatar-wrap {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.floating-assistant-status-dot {
    position: absolute;
    right: 0.1rem;
    top: 0.1rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
    z-index: 2;
}

.floating-assistant-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-assistant-icon.is-open {
    background: transparent;
    border-radius: 50%;
}

.floating-assistant-svg {
    width: 1.55rem;
    height: 1.55rem;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.25));
}

@keyframes assistantHalo {
    0%, 100% { opacity: 0.32; transform: scale(0.98); }
    50% { opacity: 0.82; transform: scale(1.04); }
}

.assistant-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.55rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.7rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.assistant-feedback:hover {
    color: #e2e8f0;
    background: transparent;
}

.floating-assistant-wrap {
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vh, 1.75rem);
}

.assistant-panel {
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(4.75rem, 10vh, 6rem);
    width: min(24rem, calc(100vw - 2rem));
    height: min(70vh, 35rem);
    height: min(70dvh, 35rem);
    max-height: calc(100dvh - 6rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 14, 24, 0.58);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.assistant-panel-header,
.assistant-service-strip,
.assistant-input-area {
    background: transparent;
}

.assistant-panel-header {
    border-color: rgba(255, 255, 255, 0.1);
}

.assistant-icon-control {
    border: 1px solid transparent;
    background: transparent;
    color: rgba(226, 232, 240, 0.72);
}

.assistant-icon-control:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
}

.assistant-text-input {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.assistant-text-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 641px) and (max-width: 1023px) {
    .floating-assistant-wrap {
        right: 1.5rem;
        bottom: 1.5rem;
    }

    .assistant-panel {
        right: 1.5rem;
        bottom: 5.5rem;
        width: min(24rem, calc(100vw - 3rem));
        height: min(68dvh, 34rem);
    }
}

@media (max-width: 640px) {
    .floating-assistant-wrap {
        right: 0.9rem;
        bottom: max(0.9rem, env(safe-area-inset-bottom));
    }

    .floating-assistant-label {
        display: none;
    }

    .floating-assistant-avatar-wrap {
        width: 2.65rem;
        height: 2.65rem;
    }

    .floating-assistant-svg {
        width: 1.4rem;
        height: 1.4rem;
    }

    .assistant-panel {
        right: 0.75rem;
        bottom: calc(max(0.9rem, env(safe-area-inset-bottom)) + 3.6rem);
        width: calc(100vw - 1.5rem);
        height: min(70dvh, 34rem);
        max-height: calc(100dvh - 5.25rem - env(safe-area-inset-bottom));
        border-radius: 1rem;
    }

    .assistant-service-strip {
        padding: 0.5rem 0.65rem;
    }

    .assistant-service-chip {
        padding: 0.38rem 0.55rem;
        font-size: 0.62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-assistant-avatar-wrap::before {
        animation: none;
    }

    .floating-assistant-launch,
    .floating-assistant-avatar-wrap {
        transition: none;
    }
}

@keyframes assistantFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

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

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

.animate-orbit-reverse {
    animation: orbitReverse 16s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s ease forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.methodology-step {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.methodology-step:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.24);
}

.methodology-step.visible {
    animation: methodologyStepPulse 8s ease-in-out infinite;
    animation-delay: calc((var(--methodology-step) - 1) * 2s);
}

.methodology-step:nth-child(1) { --methodology-step: 1; }
.methodology-step:nth-child(2) { --methodology-step: 2; }
.methodology-step:nth-child(3) { --methodology-step: 3; }
.methodology-step:nth-child(4) { --methodology-step: 4; }

.methodology-step-number {
    transition: color 0.3s ease;
}

.methodology-step.visible .methodology-step-number {
    animation: methodologyNumberPulse 8s ease-in-out infinite;
    animation-delay: calc((var(--methodology-step) - 1) * 2s);
}

@keyframes methodologyStepPulse {
    0%, 18% {
        border-color: rgba(96, 165, 250, 0.55);
        box-shadow: 0 0 24px rgba(59, 130, 246, 0.12);
    }
    30%, 100% {
        border-color: rgba(59, 130, 246, 0.1);
        box-shadow: none;
    }
}

@keyframes methodologyNumberPulse {
    0%, 18% { color: rgba(96, 165, 250, 0.9); }
    30%, 100% { color: rgba(59, 130, 246, 0.3); }
}

@media (min-width: 1024px) {
    .methodology-step:not(:last-child)::after {
        content: "";
        position: absolute;
        z-index: 2;
        top: 2.7rem;
        left: 100%;
        width: 1.5rem;
        height: 2px;
        transform-origin: left;
        background: linear-gradient(90deg, rgba(96, 165, 250, 0.65), rgba(96, 165, 250, 0.12));
        animation: methodologyConnector 2s ease-in-out infinite;
    }

    .methodology-step:nth-child(2)::after { animation-delay: 2s; }
    .methodology-step:nth-child(3)::after { animation-delay: 4s; }
}

@keyframes methodologyConnector {
    0%, 100% { opacity: 0.35; transform: scaleX(0.35); }
    50% { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .methodology-step.visible,
    .methodology-step.visible .methodology-step-number,
    .methodology-step:not(:last-child)::after {
        animation: none;
    }

    .methodology-step,
    .methodology-step-number {
        transition: none;
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(10, 10, 26, 0.9) !important;
    backdrop-filter: blur(28px) !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Nav dropdown menu */
.nav-dropdown-menu {
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.group-nav:hover .nav-dropdown-menu,
.group-nav:focus-within .nav-dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-chevron {
    transition: transform 0.25s ease, color 0.2s ease;
}

.group-nav:hover .nav-chevron,
.group-nav:focus-within .nav-chevron {
    transform: rotate(180deg);
    color: #60a5fa;
}

/* Hero canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Page Hero Banner */
.page-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.6) 0%, rgba(10, 10, 26, 1) 100%);
    overflow: hidden;
}

/* Tilt card */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s ease;
}

.tilt-card-inner {
    transition: transform 0.2s ease;
}

.tilt-card:hover .tilt-card-inner {
    transform: rotateX(4deg) rotateY(4deg);
}

/* Portfolio filter active */
.filter-btn.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Chat typing */
.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    margin: 0 2px;
    animation: typingDot 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Prompt suggestion chip */
.prompt-chip {
    transition: all 0.2s ease;
    cursor: pointer;
}
.prompt-chip:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    transform: translateY(-1px);
}

.assistant-service-chip {
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: rgba(59, 130, 246, 0.08);
    color: #dbeafe;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s ease;
    cursor: pointer;
}

.assistant-service-chip:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.45);
    transform: translateY(-1px);
}

/* Form success */
.form-success {
    animation: fadeInScale 0.5s ease forwards;
}

/* Mobile menu */
.mobile-menu-open {
    max-height: 800px !important;
    opacity: 1 !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Card hover glow */
.card-hover-glow:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.12), 0 0 60px rgba(59, 130, 246, 0.04);
    transform: translateY(-4px);
}

/* Smooth image zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

.img-zoom:hover img {
    transform: scale(1.12);
}

/* Section and element spacing */
section, [id] {
    scroll-margin-top: 90px;
}

/* FAQ accordion */
.faq-item {
    transition: all 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 0.75rem;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #60a5fa;
}
.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* Responsive tweaks */
.country-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.1rem;
    padding: 0.8rem 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 86px;
}

.country-card:hover,
.country-card.active {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.country-card-inner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    height: 100%;
}

.flag-badge {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.flag-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.country-panel {
    animation: fadeInUp 0.35s ease;
}

.application-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 1.5rem 1rem;
    background: rgba(4, 12, 25, 0.72);
    backdrop-filter: blur(5px);
}

.application-overlay[hidden] {
    display: none;
}

.application-dialog {
    position: relative;
    width: min(100%, 42.5rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2.5rem;
    border: 1px solid #d7e3ef;
    border-radius: 1rem;
    background: #fff;
    color: #0b315c;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.application-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #64748b;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.application-close:hover {
    color: #0b315c;
}

.application-heading {
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.application-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #58718c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.application-kicker::before {
    width: 1.5rem;
    height: 2px;
    background: #f59e0b;
    content: "";
}

.application-heading h2 {
    color: #0b315c;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.08;
}

.application-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1rem;
}

.application-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.45rem;
    color: #0b315c;
    font-size: 0.8rem;
    font-weight: 500;
}

.application-field-wide {
    grid-column: 1 / -1;
}

.application-field input,
.application-field select,
.application-field textarea {
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #d5d5d5;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.65rem 0.75rem;
    color: #0b315c;
    font: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.application-field input:focus,
.application-field select:focus,
.application-field textarea:focus {
    border-color: #1684c7;
    box-shadow: 0 0 0 3px rgba(22, 132, 199, 0.12);
}

.application-field input[type="file"] {
    min-height: 2.5rem;
    border-style: dashed;
    padding: 0.45rem 0.6rem;
}

.application-field textarea {
    min-height: 5.25rem;
    resize: vertical;
}

.application-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.application-submit,
.application-cancel {
    min-height: 2.7rem;
    border-radius: 0.5rem;
    padding: 0.7rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.application-submit {
    background: linear-gradient(110deg, #075a9b, #1684c7);
    color: #fff;
    box-shadow: 0 8px 18px rgba(14, 116, 184, 0.2);
}

.application-submit:hover {
    transform: translateY(-1px);
    background: linear-gradient(110deg, #064d85, #0878ba);
}

.application-cancel {
    border: 1px solid #d7e0e9;
    background: #fff;
    color: #0b315c;
}

.application-cancel:hover {
    border-color: #9fb3c8;
    background: #f8fafc;
}

.application-note {
    margin-top: 0.85rem;
    color: #8295aa;
    font-size: 0.72rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .application-dialog {
        padding: 1.5rem;
    }

    .application-heading h2 {
        font-size: 2.25rem;
    }

    .application-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .application-field-wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .application-field input,
    .application-field select,
    .application-field textarea,
    .application-submit,
    .application-cancel,
    .application-close {
        transition: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
}

.hero-visual {
    position: relative;
    width: 28rem;
    height: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.hero-logo-core {
    position: relative;
    z-index: 3;
    width: 7rem;
    height: 7rem;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.2), 0 0 80px rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hero-role {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.role-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.8);
}

.role-ai {
    top: 1.8rem;
    right: 2.5rem;
}

.role-php {
    left: 1.8rem;
    top: 7rem;
    animation-delay: 0.7s;
}

.role-app {
    left: 1.2rem;
    bottom: 6.4rem;
    animation-delay: 1.4s;
}

.role-fullstack {
    right: 1.3rem;
    bottom: 7.3rem;
    animation-delay: 2s;
}

@media (max-width: 1024px) {
    .hero-visual {
        width: 22rem;
        height: 22rem;
    }

    .hero-role {
        font-size: 0.62rem;
        padding: 0.6rem 0.8rem;
    }
}
