/* ============================================================
   ROOT – custom palette
============================================================ */
:root {
    --primary-dark: #000936;
    --secondary-muted: #B3C9E8;
    --white-base: #FFFFFF;
    --white-pure: #FFFFFF;
    --shadow-heavy: rgba(0, 9, 54, 0.18);
    --shadow-soft: rgba(0, 9, 54, 0.04);
    --border-soft: rgba(179, 201, 232, 0.20);
    --radius-card: 56px;
    --radius-link: 80px;
    --logo-size: 250px;
    --drop-height: 20px;
    --float-duration: 3s;
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white-base);
    padding: 24px;
    margin: 0;
}

/* ============================================================
   CARD – gradient: white top → #B3C9E8 bottom
============================================================ */
.card {
    max-width: 540px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 25%, #B3C9E8 100%);
    border-radius: var(--radius-card);
    padding: 56px 44px 42px;
    box-shadow: 
        0 60px 120px -32px var(--shadow-heavy),
        0 20px 48px -16px var(--shadow-soft);
    border: 1px solid rgba(179, 201, 232, 0.25);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(2px);
}

.card:hover {
    box-shadow: 0 80px 160px -36px var(--shadow-heavy);
    transform: translateY(-6px) scale(1.004);
}

/* decorative glowing orbs (keep for depth) */
.card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 70% 30%, rgba(179, 201, 232, 0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 70%, rgba(0, 9, 54, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   PARTICLES – simple fade out before reaching the logo
============================================================ */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    bottom: -10px;
    animation: particleFadeOut var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 6px rgba(0, 9, 54, 0.05);
}

.particle-1 { 
    width: 6px; height: 6px; background: rgba(0, 9, 54, 0.25);
    left: 8%; --duration: 5.5s; --delay: 0s;
}
.particle-2 { 
    width: 8px; height: 8px; background: rgba(179, 201, 232, 0.40);
    left: 18%; --duration: 6.5s; --delay: 1.2s;
}
.particle-3 { 
    width: 5px; height: 5px; background: rgba(0, 9, 54, 0.20);
    left: 28%; --duration: 5.0s; --delay: 0.6s;
}
.particle-4 { 
    width: 7px; height: 7px; background: rgba(179, 201, 232, 0.35);
    left: 38%; --duration: 5.8s; --delay: 2.0s;
}
.particle-5 { 
    width: 5px; height: 5px; background: rgba(0, 9, 54, 0.22);
    left: 62%; --duration: 5.2s; --delay: 0.3s;
}
.particle-6 { 
    width: 9px; height: 9px; background: rgba(179, 201, 232, 0.30);
    left: 72%; --duration: 6.2s; --delay: 1.8s;
}
.particle-7 { 
    width: 6px; height: 6px; background: rgba(0, 9, 54, 0.18);
    left: 82%; --duration: 5.4s; --delay: 2.5s;
}
.particle-8 { 
    width: 7px; height: 7px; background: rgba(179, 201, 232, 0.38);
    left: 92%; --duration: 6.0s; --delay: 0.9s;
}
.particle-9 { 
    width: 5px; height: 5px; background: rgba(0, 9, 54, 0.20);
    left: 13%; --duration: 4.8s; --delay: 1.5s;
}
.particle-10 { 
    width: 8px; height: 8px; background: rgba(179, 201, 232, 0.32);
    left: 23%; --duration: 5.6s; --delay: 3.0s;
}
.particle-11 { 
    width: 6px; height: 6px; background: rgba(0, 9, 54, 0.15);
    left: 33%; --duration: 5.1s; --delay: 0.5s;
}
.particle-12 { 
    width: 7px; height: 7px; background: rgba(179, 201, 232, 0.35);
    left: 67%; --duration: 5.9s; --delay: 2.2s;
}
.particle-13 { 
    width: 5px; height: 5px; background: rgba(0, 9, 54, 0.22);
    left: 77%; --duration: 5.3s; --delay: 1.0s;
}
.particle-14 { 
    width: 8px; height: 8px; background: rgba(179, 201, 232, 0.28);
    left: 87%; --duration: 6.3s; --delay: 2.8s;
}
.particle-15 { 
    width: 6px; height: 6px; background: rgba(0, 9, 54, 0.18);
    left: 45%; --duration: 4.6s; --delay: 0.2s;
}

/* ===== Simple fade out animation – no horizontal drift ===== */
@keyframes particleFadeOut {
    0%   { 
        opacity: 0; 
        transform: translateY(0px) scale(0.3) rotate(0deg);
        bottom: -10px;
    }
    8%   { 
        opacity: 1; 
        transform: translateY(12px) scale(1.2) rotate(6deg);
    }
    25%  { 
        opacity: 1; 
        transform: translateY(35px) scale(1.1) rotate(15deg);
    }
    45%  { 
        opacity: 0.9; 
        transform: translateY(58px) scale(1.0) rotate(25deg);
    }
    60%  { 
        opacity: 0.6; 
        transform: translateY(78px) scale(0.85) rotate(35deg);
    }
    78%  { 
        opacity: 0.25; 
        transform: translateY(105px) scale(0.55) rotate(50deg);
    }
    100% { 
        opacity: 0; 
        transform: translateY(140px) scale(0.15) rotate(70deg);
        bottom: 110%;
    }
}

/* ============================================================
   HEADER – LOGO
============================================================ */
.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    width: var(--logo-size);
    height: var(--logo-size);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: dropSlowRise var(--float-duration) ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper:hover {
    animation-play-state: paused;
    transform: scale(1.04);
}

@keyframes dropSlowRise {
    0%   { transform: translateY(0px) scale(1); }
    25%  { transform: translateY(var(--drop-height)) scale(0.97); }
    100% { transform: translateY(0px) scale(1); }
}

.logo-wrapper .ring {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 9, 54, 0.15);
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 9, 54, 0.12) 25%,
        rgba(0, 9, 54, 0.35) 50%,
        rgba(0, 9, 54, 0.12) 75%,
        transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringSpin 6s linear infinite;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 9, 54, 0.06);
    pointer-events: none;
}

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

.logo-wrapper .aura {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at center, 
        rgba(0, 9, 54, 0.05) 0%, 
        transparent 70%
    );
    animation: auraPulse 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes auraPulse {
    0%   { opacity: 0.3; transform: scale(0.8); }
    50%  { opacity: 0.6; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

.logo-wrapper .shine {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 40%,
        rgba(0, 9, 54, 0.06) 50%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shineRotate 8s linear infinite;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes shineRotate {
    0%   { transform: rotate(0deg) scale(1.02); opacity: 0.2; }
    50%  { transform: rotate(180deg) scale(1.04); opacity: 0.5; }
    100% { transform: rotate(360deg) scale(1.02); opacity: 0.2; }
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0, 9, 54, 0.08));
    transition: filter 0.6s ease;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.logo-wrapper:hover img {
    filter: drop-shadow(0 20px 48px rgba(0, 9, 54, 0.15));
}

.logo-fallback {
    font-size: 60px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* ============================================================
   PROFILE
============================================================ */
.profile {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 8px;
    margin-top: 8px;
}

.profile .name {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.profile .title {
    font-size: 17px;
    font-weight: 500;
    color: var(--secondary-muted);
    letter-spacing: 10px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--secondary-muted), #7a8fb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.85;
}

/* ============================================================
   LINKS – transparent with soft blurred shadow effect
============================================================ */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 40px 0 30px;
    position: relative;
    z-index: 1;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 18px;
    background: transparent;
    padding: 18px 28px;
    border-radius: var(--radius-link);
    text-decoration: none;
    color: var(--primary-dark);
    border: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: linkReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: left center;
    opacity: 0;
    box-shadow: 
        0 0 0 1px rgba(0, 9, 54, 0.12),
        0 4px 20px -8px rgba(0, 9, 54, 0.06);
}

.link-item:nth-child(1) { animation-delay: 0.06s; }
.link-item:nth-child(2) { animation-delay: 0.12s; }
.link-item:nth-child(3) { animation-delay: 0.18s; }
.link-item:nth-child(4) { animation-delay: 0.24s; }
.link-item:nth-child(5) { animation-delay: 0.30s; }
.link-item:nth-child(6) { animation-delay: 0.36s; }
.link-item:nth-child(7) { animation-delay: 0.42s; }
.link-item:nth-child(8) { animation-delay: 0.48s; }
.link-item:nth-child(9) { animation-delay: 0.54s; }

@keyframes linkReveal {
    0%   { opacity: 0; transform: translateX(-36px) scale(0.94); }
    60%  { opacity: 1; transform: translateX(6px) scale(1.01); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.link-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-link);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.10),
        rgba(179, 201, 232, 0.05)
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.link-item:hover::before {
    opacity: 1;
}

.link-item:hover {
    transform: translateX(12px) scale(1.02);
    box-shadow: 
        0 0 0 2px rgba(0, 9, 54, 0.25),
        0 12px 40px -12px rgba(0, 9, 54, 0.18);
    background: rgba(255, 255, 255, 0.10);
}

.link-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-muted);
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 9, 54, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-item:hover .link-icon {
    background: var(--secondary-muted);
    transform: scale(0.86) rotate(-8deg) translateY(-3px);
    box-shadow: 0 12px 36px rgba(179, 201, 232, 0.30);
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.3);
}

.link-item:hover .link-icon i {
    animation: iconFloat 0.7s ease;
}

@keyframes iconFloat {
    0%   { transform: scale(1) rotate(0); }
    30%  { transform: scale(1.2) rotate(-6deg); }
    60%  { transform: scale(0.85) rotate(4deg); }
    100% { transform: scale(1) rotate(0); }
}

.link-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-info .label {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.link-item:hover .link-info .label {
    color: var(--primary-dark);
}

.link-info .sub {
    font-size: 13px;
    color: rgba(0, 9, 54, 0.5);
    font-weight: 400;
    margin-top: 3px;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.link-item:hover .link-info .sub {
    color: rgba(0, 9, 54, 0.55);
    opacity: 1;
}

.link-arrow {
    color: rgba(0, 9, 54, 0.25);
    font-size: 15px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

.link-item:hover .link-arrow {
    transform: translateX(12px) scale(1.15);
    color: var(--secondary-muted);
    opacity: 1;
}

/* ============================================================
   FOOTER – text color darker version of #B3C9E8
============================================================ */
.footer {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1.5px solid rgba(179, 201, 232, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    position: relative;
    z-index: 1;
    animation: footerReveal 0.9s ease 0.7s forwards;
    opacity: 0;
}

@keyframes footerReveal {
    to { opacity: 1; transform: translateY(0); }
}

.footer .copy {
    font-size: 13px;
    color: #7A9BBF;
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0.85;
}

.footer .social-mini {
    display: flex;
    gap: 22px;
    align-items: center;
}

.footer .social-mini a {
    color: var(--secondary-muted);
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    opacity: 0.5;
}

.footer .social-mini a:hover {
    color: var(--primary-dark);
    transform: translateY(-5px) scale(1.12);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 520px) {
    .card { 
        padding: 40px 22px 30px; 
        border-radius: 40px; 
    }
    .logo-wrapper { 
        width: 180px;
        height: 180px;
    }
    .logo-wrapper .ring { inset: -14px; border-width: 1.2px; }
    .logo-wrapper .aura { inset: -24px; }
    .logo-wrapper .shine { inset: -10px; }
    .logo-fallback { font-size: 48px; }
    .header-logo { margin-bottom: 36px; }
    .profile .name { font-size: 28px; margin-bottom: 10px; }
    .profile .title { font-size: 15px; letter-spacing: 6px; }
    .links { margin: 32px 0 24px; gap: 12px; }
    .link-item { padding: 15px 20px; gap: 16px; }
    .link-icon { width: 46px; height: 46px; font-size: 17px; }
    .link-info .label { font-size: 14px; }
    .link-info .sub { font-size: 12px; }
    .footer { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .particle-3, .particle-6, .particle-9, .particle-12, .particle-14 { display: none; }
}

@media (max-width: 380px) {
    .card { 
        padding: 32px 16px 24px; 
    }
    .logo-wrapper { 
        width: 140px;
        height: 140px;
    }
    .logo-wrapper .ring { inset: -10px; border-width: 1px; }
    .logo-wrapper .aura { inset: -18px; }
    .logo-wrapper .shine { inset: -8px; }
    .header-logo { margin-bottom: 28px; }
    .profile .name { font-size: 24px; margin-bottom: 8px; }
    .profile .title { font-size: 13px; letter-spacing: 4px; }
    .links { margin: 24px 0 18px; gap: 10px; }
    .link-item { padding: 12px 16px; gap: 12px; }
    .link-icon { width: 40px; height: 40px; font-size: 15px; }
    .footer { margin-top: 22px; }
    
    .particle-2, .particle-5, .particle-8, .particle-11, .particle-15 { display: none; }
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--secondary-muted);
    color: var(--primary-dark);
}