/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Disable blue tap highlight on mobile */
}

:root {
    /* Color Palette */
    --color-dark: #212121;
    --color-light-gray: #CBCDCC;
    --color-teal: #74D0C3;
    --color-white: #FFFFFF;
    --color-yellow: #F1E454;

    /* Glass Effect */
    --glass-bg: rgba(203, 205, 204, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-primary: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* align-items: center; Removed to prevent top clipping on overflow */
    /* justify-content: center; Removed to prevent top clipping on overflow */
    padding: var(--spacing-md);
    padding-top: max(var(--spacing-md), env(safe-area-inset-top));
    padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    padding-left: max(var(--spacing-md), env(safe-area-inset-left));
    padding-right: max(var(--spacing-md), env(safe-area-inset-right));
}

/* ===================================
   ANIMATED BACKGROUND (Ambient Lamp)
   =================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0f0805;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: ambient-shift 12s ease-in-out infinite alternate;
}

/* Main Warm Lamp Glow (Orange/Gold) */
/* Main Warm Lamp Glow (Orange/Gold) */
.orb-1 {
    width: 90vh;
    height: 90vh;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.35) 0%, rgba(255, 140, 0, 0) 70%);
    top: -15%;
    left: 10%;
    animation-duration: 15s;
}

/* Secondary Deep Warmth (Red/Amber) */
/* Secondary Deep Warmth (Red/Amber) */
.orb-2 {
    width: 80vh;
    height: 80vh;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.2) 0%, rgba(255, 69, 0, 0) 70%);
    bottom: -20%;
    right: -10%;
    top: auto;
    animation-delay: -5s;
    animation-duration: 20s;
}

/* Central Soft Golden Fill */
/* Central Soft Golden Fill */
.orb-3 {
    width: 120vh;
    height: 120vh;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 10s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes ambient-shift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.7;
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
        opacity: 0.6;
    }

    100% {
        transform: translate(10px, -10px) scale(1.05);
        opacity: 0.5;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ===================================
   PROFILE CONTAINER
   =================================== */
.profile-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    /* Uses flexbox margin autoproperty for safe centering */
    animation: fadeInUp 0.8s ease-out;
}

.profile-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* ===================================
   PROFILE HEADER & PHOTO
   =================================== */
.profile-header {
    position: relative;
    padding: var(--spacing-lg);
    padding-bottom: 0;
}

.profile-photo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(116, 208, 195, 0.2) 0%, rgba(241, 228, 84, 0.2) 100%);
}

.profile-photo-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
    /* Deep inner shadow for "inside feel" */
    pointer-events: none;
    z-index: 1;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.active-badge {
    position: absolute;
    z-index: 5;
    top: var(--spacing-md);
    left: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(116, 208, 195, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(116, 208, 195, 1);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(57, 255, 20, 0.4);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-dark);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

/* ===================================
   PROFILE INFO
   =================================== */
.profile-info {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, #39FF14 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.3));
    letter-spacing: 0.02em;
}

.profile-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    position: relative;
    padding-left: var(--spacing-sm);
    display: inline-block;
}

.profile-tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.2em;
    /* Aligns nicely with text visual height */
    background-color: #39FF14;
    /* Neon Green */
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.5);
    border-radius: 2px;
}

/* ===================================
   ACTION BUTTONS
   =================================== */
.action-buttons {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Consistent gap from image */
    padding: 0 var(--spacing-md) var(--spacing-md);
    justify-content: center;
}

.glass-btn {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    overflow: visible;
    /* Restore brackets visibility */
    background:
        linear-gradient(to right, transparent 0%, rgba(255, 215, 0, 0.15) 50%, transparent 100%) no-repeat -200% 0 / 200% 100%,
        /* Shimmer layer */
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
    /* Base glass layer */
    animation: bgShimmer 5s infinite linear;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    /* More rounded as seen in image */
    height: 56px;
    min-width: 0;
    /* Clear previous min-width */
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    /* Remove underline */
    -webkit-user-drag: none;
    /* Prevent dragging */
    user-select: none;
}

/* Liquid glass shine effect */
.glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

@keyframes bgShimmer {
    0% {
        background-position: -200% 0, 0 0;
    }

    20% {
        background-position: 200% 0, 0 0;
    }

    100% {
        background-position: 200% 0, 0 0;
    }
}

/* Remove the ::after pseudo-element shimmer to avoid conflicts */
/* Glossy highlight/Shimmer container removed as we use background animation now */
.glass-btn::after {
    display: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Corner brackets - top-left */
.glass-btn {
    --bracket-size: 12px;
    --bracket-thickness: 2px;
}

/* Individual button corner brackets */
.glass-btn {
    position: relative;
}

.glass-btn .bracket-tl,
.glass-btn .bracket-br {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.glass-btn .bracket-tl {
    top: -4px;
    left: -4px;
    width: var(--bracket-size);
    height: var(--bracket-size);
    border-top: var(--bracket-thickness) solid #FF8C00;
    /* Dark Orange */
    border-left: var(--bracket-thickness) solid #FF8C00;
    border-radius: 8px 0 0 0;
    opacity: 0.8;
}

.glass-btn .bracket-br {
    bottom: -4px;
    right: -4px;
    width: var(--bracket-size);
    height: var(--bracket-size);
    border-bottom: var(--bracket-thickness) solid #FF8C00;
    border-right: var(--bracket-thickness) solid #FF8C00;
    border-radius: 0 0 8px 0;
    opacity: 0.8;
}

.glass-btn:hover .bracket-tl,
.glass-btn:hover .bracket-br {
    opacity: 1;
    border-color: var(--color-yellow);
    animation: bracketPulse 0.3s ease;
}

@keyframes bracketPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.glass-btn:hover {
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 100%);
    /* Orange hover */
    border-color: rgba(255, 140, 0, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(255, 140, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* Press effect */
.glass-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-icon-only {
    padding: 0;
    width: 84px;
    /* Rectangular as seen in image */
    flex: 0 0 84px;
    height: 56px;
}

/* Hide brackets for icon-only buttons as requested */
.btn-icon-only .bracket-tl,
.btn-icon-only .bracket-br {
    display: none;
}

.btn-icon-only svg {
    width: 18px;
    height: 18px;
    color: #FFA500;
    /* Orange icon */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
}

.btn-consult {
    flex: 1;
    height: 56px;
    padding: 0 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: rgba(255, 140, 0, 0.35);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-consult:hover {
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.35) 0%, rgba(255, 215, 0, 0.25) 100%);
    border-color: rgba(255, 140, 0, 0.6);
}

.arrow-icon {
    transition: transform var(--transition-normal);
    position: relative;
    z-index: 1;
}

.btn-consult:hover .arrow-icon {
    transform: translateX(4px);
}

.btn-consult svg {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
}

/* ===================================
   OVERVIEW SECTION
   =================================== */
.overview-section {
    padding: var(--spacing-lg) var(--spacing-md);
    /* Reduced horizontal padding */
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px var(--spacing-sm);
    background: rgba(241, 228, 84, 0.1);
    border: 1px solid rgba(241, 228, 84, 0.3);
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    color: var(--color-yellow);
    margin-bottom: var(--spacing-md);
}

.section-badge svg {
    color: var(--color-yellow);
}

.overview-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    text-align: left;
    /* Reverted from justify to prevent weird gaps/breaks */
}

.mission-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

/* ===================================
   INLINE STATS
   =================================== */
.stats-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Group items to the left */
    flex-wrap: nowrap;
    gap: 2rem;
    /* Comfortable spacing between stats */
    padding: var(--spacing-md);
    background: rgba(116, 208, 195, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(116, 208, 195, 0.1);
    width: 100%;
    /* Ensure full width usage */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    /* Natural width, no stretching */
    text-align: left;
    /* Global Left Align as requested */
    min-width: 0;
    /* Allow shrinking if absolutely necessary */
    white-space: nowrap;
    /* Prevent text wrap inside item */
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 0.85rem;
    color: var(--color-teal);
    font-weight: 700;
    font-family: var(--font-display);
}

.stat-divider {
    display: none;
    /* User requested removal */
}

/* ===================================
   QUICK ANSWERS SECTION
   =================================== */
.quick-answers-section {
    padding: var(--spacing-lg) var(--spacing-md);
    /* Match overview padding */
    padding-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 1.25rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-normal);
}

.accordion-header:hover {
    color: var(--color-teal);
}

.accordion-number {
    font-size: 0.75rem;
    color: var(--color-yellow);
    font-weight: 700;
    min-width: 1.25rem;
    align-self: flex-start;
    /* Keeps number at the top line */
    margin-top: 2px;
    /* Visual adjustment for alignment */
}

.accordion-title {
    flex: 1;
    letter-spacing: 0.02em;
    line-height: 1.4;
    /* Better for multiline */
    white-space: normal;
    /* Allow wrapping */
}

.accordion-icon {
    transition: transform var(--transition-normal);
    color: var(--color-teal);
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin-left: 2.25rem;
    /* Aligns answers perfectly under title text */
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
    padding-right: var(--spacing-lg);
    /* Visual balance */
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-item.active {
    background: rgba(116, 208, 195, 0.05);
    border-color: rgba(116, 208, 195, 0.2);
}

/* ===================================
   FOOTER
   =================================== */
.profile-footer {
    padding: var(--spacing-md) var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-label {
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 4px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 480px) {
    body {
        padding: var(--spacing-sm);
    }

    .profile-name {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    /* Fix Consult Button Compression - Standardized with Desktop */
    .action-buttons {
        gap: 10px;
        padding: 0 var(--spacing-sm) var(--spacing-md);
    }

    .btn-icon-only {
        width: 72px;
        /* Slightly scaled for small screens but same ratio */
        flex: 0 0 72px;
        height: 52px;
    }

    .btn-consult {
        padding: 0 0.8rem;
        font-size: 0.8rem;
        height: 52px;
    }

    .btn-consult svg {
        width: 18px;
        height: 18px;
    }

    .stats-inline {
        justify-content: flex-start;
        padding: var(--spacing-sm);
        gap: 1.5rem;
    }

    .overview-section,
    .quick-answers-section {
        padding: var(--spacing-sm);
        /* Align closer to left edge */
    }

    .stat-label {
        font-size: 0.5rem;
        letter-spacing: 0;
    }

    .stat-value {
        font-size: 0.7rem;
        /* Smaller value text */
    }

    .stat-item {
        /* text-align: left; Inherited from global */
        flex: 0 1 auto;
        /* Allow auto width on mobile to save space */
        min-width: auto;
    }

    /* .stat-divider rules removed as it is hidden globally */

    .accordion-header {
        padding: 0.875rem 0.75rem;
        gap: 0.5rem;
    }

    .accordion-title {
        font-size: 0.75rem;
        /* Base size, clamp will handle scaling */
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}