/* ===================================
   GEMINI-INSPIRED PERSONAL SITE
   Clean, refined, purposeful design
   =================================== */

/* ===================================
   RESET & BASE
   =================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   DESIGN TOKENS
   =================================== */

:root {
    /* Deep, sophisticated background */
    --color-void: #000000;
    --color-deep: #020408;
    --color-dark: #050a14;

    /* Gemini-inspired gradient colors - vibrant but refined */
    --color-blue-royal: #4169E1;
    --color-blue-bright: #5B8EFF;
    --color-indigo: #667EEA;
    --color-purple: #7C3AED;
    --color-violet: #A78BFA;
    --color-lavender-light: #DDD6FE;

    /* Text - crisp whites */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #E2E8F0;
    --color-text-muted: #94A3B8;

    /* Typography - refined and sophisticated */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 900;

    /* Spacing - generous and refined */
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Motion - purposeful and elegant */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ===================================
   BODY & LAYOUT
   =================================== */

body {
    font-family: var(--font-family);
    background: var(--color-void);
    color: var(--color-text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Subtle vignette for depth */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    z-index: 10;
}

/* ===================================
   GEMINI GRADIENT ORBS
   Circular foundation with energy flow
   =================================== */

.gradient-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Gradient mesh overlay for extra depth */
.gradient-orbs::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.05) 25%, rgba(124, 58, 237, 0.03) 45%, rgba(124, 58, 237, 0.01) 60%, transparent 80%),
        radial-gradient(ellipse at 80% 20%, rgba(65, 105, 225, 0.08) 0%, rgba(65, 105, 225, 0.05) 25%, rgba(65, 105, 225, 0.03) 45%, rgba(65, 105, 225, 0.01) 60%, transparent 80%),
        radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.05) 0%, rgba(167, 139, 250, 0.03) 30%, rgba(167, 139, 250, 0.015) 55%, rgba(167, 139, 250, 0.005) 70%, transparent 90%);
    animation: meshRotate 50s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes meshRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Primary orb - sharp electric blue transitioning to diffuse purple */
.orb-1 {
    width: 800px;
    height: 800px;
    top: -20%;
    right: -15%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(91, 142, 255, 0.7) 0%,
        rgba(124, 58, 237, 0.5) 25%,
        rgba(124, 58, 237, 0.3) 45%,
        rgba(124, 58, 237, 0.15) 65%,
        rgba(124, 58, 237, 0.05) 80%,
        transparent 100%
    );
    filter: blur(100px);
    animation: drift-1 50s ease-in-out infinite, colorShift1 35s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Secondary orb - deep purple with blue gradient */
.orb-2 {
    width: 700px;
    height: 700px;
    bottom: -15%;
    left: -10%;
    background: radial-gradient(
        circle at 70% 70%,
        rgba(124, 58, 237, 0.6) 0%,
        rgba(65, 105, 225, 0.4) 30%,
        rgba(65, 105, 225, 0.25) 50%,
        rgba(65, 105, 225, 0.12) 70%,
        rgba(65, 105, 225, 0.04) 85%,
        transparent 100%
    );
    filter: blur(110px);
    animation: drift-2 60s ease-in-out infinite, colorShift2 40s ease-in-out infinite;
    mix-blend-mode: screen;
}

/* Accent orb - subtle violet glow */
.orb-3 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(167, 139, 250, 0.35) 0%,
        rgba(167, 139, 250, 0.2) 35%,
        rgba(167, 139, 250, 0.1) 55%,
        rgba(167, 139, 250, 0.04) 70%,
        transparent 85%
    );
    filter: blur(90px);
    animation: pulse 18s ease-in-out infinite, colorShift3 30s ease-in-out infinite;
    mix-blend-mode: screen;
}

@keyframes drift-1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(-5%, 8%) scale(1.05) rotate(90deg);
    }
    50% {
        transform: translate(-8%, 15%) scale(1.12) rotate(180deg);
    }
    75% {
        transform: translate(3%, -5%) scale(0.95) rotate(270deg);
    }
}

@keyframes drift-2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    30% {
        transform: translate(10%, -8%) scale(1.08) rotate(-90deg);
    }
    60% {
        transform: translate(-12%, 10%) scale(0.98) rotate(-180deg);
    }
    90% {
        transform: translate(5%, 5%) scale(1.03) rotate(-270deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Color shifting animations for orbs */
@keyframes colorShift1 {
    0%, 100% {
        filter: blur(100px) hue-rotate(0deg);
    }
    33% {
        filter: blur(105px) hue-rotate(10deg);
    }
    66% {
        filter: blur(95px) hue-rotate(-8deg);
    }
}

@keyframes colorShift2 {
    0%, 100% {
        filter: blur(110px) hue-rotate(0deg);
    }
    50% {
        filter: blur(115px) hue-rotate(-12deg);
    }
}

@keyframes colorShift3 {
    0%, 100% {
        filter: blur(90px) hue-rotate(0deg);
    }
    50% {
        filter: blur(95px) hue-rotate(15deg);
    }
}

/* ===================================
   CONTAINER
   =================================== */

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    padding: var(--space-12);
    animation: fadeIn 1.5s var(--ease-out) backwards;
    transition: transform 0.3s var(--ease-out);
}

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

/* ===================================
   CONTENT
   =================================== */

.content {
    text-align: center;
    position: relative;
    perspective: 1000px;
}

/* Subtle depth on hover */
.content:hover .name {
    transform: translateZ(10px);
}

.content:hover .tagline {
    transform: translateZ(5px);
}

/* ===================================
   AVATAR - Refined and tasteful
   =================================== */

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-12);
    position: relative;
    animation: avatarFadeIn 1.8s var(--ease-out) backwards;
}

@keyframes avatarFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

    /* Refined border with gradient */
    border: 3px solid transparent;
    background:
        linear-gradient(var(--color-void), var(--color-void)) padding-box,
        linear-gradient(
            135deg,
            var(--color-lavender-light) 0%,
            var(--color-violet) 50%,
            var(--color-indigo) 100%
        ) border-box;

    /* Subtle glow */
    box-shadow:
        0 8px 32px rgba(167, 139, 250, 0.2),
        0 4px 16px rgba(124, 58, 237, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all 0.4s var(--ease-out);
}

.avatar:hover img {
    transform: scale(1.05);
    box-shadow:
        0 12px 48px rgba(167, 139, 250, 0.3),
        0 6px 24px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ambient glow behind avatar */
.avatar::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.3) 0%,
        rgba(167, 139, 250, 0.15) 40%,
        rgba(167, 139, 250, 0.05) 60%,
        transparent 100%
    );
    filter: blur(30px);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
    animation: avatarGlowPulse 8s ease-in-out infinite;
}

.avatar:hover::before {
    opacity: 1;
}

@keyframes avatarGlowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* ===================================
   TYPOGRAPHY
   =================================== */

.name {
    font-size: clamp(4.5rem, 15vw, 9rem);
    font-weight: var(--font-weight-black);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: var(--space-8);

    /* Sharp to diffuse gradient - Gemini signature */
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 8%,
        rgba(255, 255, 255, 0.5) 12%,
        #FFFFFF 18%,
        #FFFFFF 28%,
        var(--color-lavender-light) 42%,
        var(--color-violet) 58%,
        var(--color-purple) 72%,
        var(--color-indigo) 82%,
        rgba(102, 126, 234, 0.5) 88%,
        rgba(102, 126, 234, 0.15) 92%,
        rgba(102, 126, 234, 0) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    animation: shimmer 22s linear infinite;
    position: relative;
    will-change: background-position;
}

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

/* Enhanced glow - more Gemini-like */
.name::after {
    content: 'Dazer';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 8%,
        rgba(255, 255, 255, 0.5) 12%,
        #FFFFFF 18%,
        #FFFFFF 28%,
        var(--color-lavender-light) 42%,
        var(--color-violet) 58%,
        var(--color-purple) 72%,
        var(--color-indigo) 82%,
        rgba(102, 126, 234, 0.5) 88%,
        rgba(102, 126, 234, 0.15) 92%,
        rgba(102, 126, 234, 0) 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    filter: blur(80px);
    opacity: 0.6;
    animation: shimmer 22s linear infinite, glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        filter: blur(80px);
    }
    50% {
        opacity: 0.8;
        filter: blur(90px);
    }
}

.tagline {
    font-size: clamp(1.125rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0.7;
    position: relative;
    margin-bottom: var(--space-8);
    animation: breathe 11s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(0);
    }
    50% {
        opacity: 0.85;
        transform: translateY(-2px);
    }
}

/* ===================================
   FLOATING PARTICLES
   =================================== */

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.6) 0%,
        rgba(167, 139, 250, 0.3) 40%,
        rgba(167, 139, 250, 0.1) 60%,
        transparent 100%
    );
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(var(--drift-x)) scale(1.5);
    }
}

/* ===================================
   SOCIAL LINK - Refined and minimal
   =================================== */

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-top: var(--space-4);

    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;

    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;

    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}

/* Animated border gradient */
.social-link::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(167, 139, 250, 0.02) 10%,
        rgba(167, 139, 250, 0.08) 20%,
        rgba(167, 139, 250, 0.2) 35%,
        rgba(167, 139, 250, 0.4) 45%,
        rgba(91, 142, 255, 0.4) 55%,
        rgba(91, 142, 255, 0.2) 65%,
        rgba(91, 142, 255, 0.08) 80%,
        rgba(91, 142, 255, 0.02) 90%,
        transparent 100%
    );
    border-radius: 100px;
    opacity: 0;
    animation: borderShimmer 6s linear infinite;
    z-index: -1;
}

@keyframes borderShimmer {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.social-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: all 0.3s var(--ease-out);
}

/* Hover effect */
.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--color-lavender-light) 0%,
        var(--color-violet) 50%,
        var(--color-indigo) 100%
    );
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
}

.social-link:hover {
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(167, 139, 250, 0.15),
        0 4px 12px rgba(124, 58, 237, 0.1);
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.social-link:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

/* ===================================
   RESPONSIVE REFINEMENTS
   =================================== */

@media (max-width: 768px) {
    .container {
        padding: var(--space-6);
    }

    .orb-1 {
        width: 400px;
        height: 400px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
    }

    .orb-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--space-4);
    }

    .name {
        margin-bottom: var(--space-4);
    }

    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(80px);
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .orb,
    .particle,
    .gradient-orbs::before {
        animation: none !important;
    }

    .name::after {
        animation: none !important;
    }

    .tagline,
    .avatar::before,
    .social-link::after {
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    body {
        background: #000;
    }

    .name {
        -webkit-text-fill-color: #fff;
    }

    .tagline {
        color: #fff;
        opacity: 1;
    }
}
