/* ===== Global Reset & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #020617;
    color: #e2e8f0;
    overflow-x: clip;
    position: relative;
}

/* ===== Animated Background ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Ambient gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 60px 60px 100px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

/* ===== Avatar Section ===== */
.hero-avatar-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    min-width: 320px;
    padding: 20px;
}

.avatar-outer-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 3px solid #38bdf8;
    animation: glow 2.5s infinite alternate;
    top: 160px;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px #38bdf8;
    }
    to {
        box-shadow: 0 0 40px #38bdf8;
    }
}

.avatar-inner-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 
        0 0 40px rgba(56, 189, 248, 0.15),
        0 0 80px rgba(56, 189, 248, 0.05),
        inset 0 0 30px rgba(0,0,0,0.3);
}

.avatar-inner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== Hero Details ===== */
.hero-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.greeting {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.wave {
    display: inline-block;
    animation: waveHand 2.5s infinite;
    transform-origin: 70% 70%;
}

@keyframes waveHand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.hero-name {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    background: linear-gradient(135deg, #f8fafc 0%, #38bdf8 50%, #818cf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease infinite;
}

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

.hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.5;
}

.separator {
    color: #334155;
    margin: 0 4px;
}

/* ===== Role Chips ===== */
.roles-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    padding: 8px 18px;
    border-radius: 25px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.chip i {
    font-size: 12px;
    color: #38bdf8;
}

.chip:hover {
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}

.active-chip {
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.active-chip i {
    color: #4ade80;
}

.active-chip:hover {
    border-color: rgba(74, 222, 128, 0.6);
    background: rgba(74, 222, 128, 0.08);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.15);
}

/* ===== Info Cards ===== */
.info-cards-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.info-card {
    background: #0d1224;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.info-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    flex-shrink: 0;
}

.icon-location {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
}

.icon-expertise {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}

.icon-contact {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.title-red { color: #fb7185; }
.title-purple { color: #c084fc; }
.title-blue { color: #38bdf8; }

.card-desc {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
}

/* ===== CTA Buttons ===== */
.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    color: #e2e8f0;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    transform: translateY(-2px);
}

/* ===== Connect Section ===== */
.hero-connect {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.connect-label {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    color: #94a3b8;
    font-size: 18px;
    text-decoration: none;
    border-radius: 12px;
    background: #0d1224;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-3px);
    color: #e2e8f0;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.social-linkedin {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.3);
}

.social-linkedin:hover {
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.5);
    color: #ffffff !important;
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-arrow {
    animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ===== Reusable Glow Box ===== */
.glow-box {
    border: 1px solid #38bdf8;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(56,189,248,0.4);
    transition: 0.3s;
    position: relative;
}

.glow-box:hover {
    box-shadow:
        0 0 15px #38bdf8,
        0 0 30px rgba(56,189,248,0.7);
}

/* Bottom light effect */
.glow-box::after {
    content: "";
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: -10px;
    height: 12px;
    background: rgba(56,189,248,0.4);
    filter: blur(12px);
    border-radius: 50%;
}

/* Sections */
.section {
    padding: 80px;
}

.card {
    background: #020617;
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #1e293b;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(56,189,248,0.2);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

.delay { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }
.delay3 { animation-delay: 0.9s; }
.delay4 { animation-delay: 1.2s; }

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

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

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

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 24px;
    background: rgba(2, 6, 23, 0.8);
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
    color: #64748b;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {

    .hero {
        padding: 80px 24px 60px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

    .hero-details {
        align-items: center;
    }

    .hero-name {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .roles-chips {
        justify-content: center;
    }

    .info-cards-row {
        flex-direction: column;
    }

    .info-card {
        min-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-avatar-wrap {
        min-width: auto;
    }

    .avatar-inner-container {
        width: 220px;
        height: 220px;
    }

    .avatar-outer-ring {
        width: 260px;
        height: 260px;
        top: 130px;
    }

    .hero-connect {
        margin-top: 40px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-name {
        font-size: 34px;
    }

    .chip {
        font-size: 12px;
        padding: 6px 14px;
    }
}

/* ElevenLabs Floating Widget */
elevenlabs-agent {
    --accent-color: #38bdf8;
    --background: rgba(20, 20, 30, 0.9);
    --border-radius: 18px;
}