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

:root {
    --dark-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.65);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.page-transitioning {
    opacity: 0;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
}

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

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: floatSmooth 25s infinite ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.4), transparent);
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 118, 163, 0.3), transparent);
    bottom: -200px;
    right: -200px;
    animation-delay: 8s;
}

.circle-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.35), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

@keyframes floatSmooth {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.2;
    }
    33% { 
        transform: translate(50px, -40px) scale(1.1); 
        opacity: 0.25;
    }
    66% { 
        transform: translate(-40px, 50px) scale(0.95); 
        opacity: 0.15;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(25px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    cursor: pointer;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
}

.hamburger {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 11px 13px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu Overlay - Full Width Dropdown */
.menu-overlay {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: height 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
}

.menu-overlay.active {
    height: auto;
    padding: 1.5rem 0;
    opacity: 1;
    visibility: visible;
    transition: height 0.35s ease, opacity 0.35s ease, visibility 0s linear 0s;
}

.menu-content {
    width: 100%;
    max-width: 600px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.menu-overlay.active .menu-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.9rem 1.3rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.menu-item:active {
    transform: translateX(3px) scale(0.98);
}

.menu-item .menu-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
    opacity: 0.9;
}

.menu-item:hover .menu-icon {
    transform: rotate(5deg) scale(1.1);
    opacity: 1;
}

/* Main Content - Push Down When Menu Opens */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 120px;
    position: relative;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.container.menu-open {
    transform: translateY(180px);
}

.profile-section {
    text-align: center;
    max-width: 600px;
    animation: fadeInUp 0.8s ease;
}

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

/* Profile Frame */
.profile-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.profile-glow {
    display: none;
}

.profile-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    box-shadow: 
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 0 0 4px var(--card-border),
        0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.profile-frame:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 
        0 0 0 3px rgba(0, 0, 0, 0.8),
        0 0 0 4px rgba(255, 255, 255, 0.3),
        0 15px 50px rgba(0, 0, 0, 0.6);
}

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

/* Name Text */
.name-text {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 1rem 0;
    color: white;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.letter {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.letter:hover {
    transform: translateY(-10px) scale(1.15);
    color: #e0e0e0;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2.5rem 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.tag:hover::before {
    width: 300px;
    height: 300px;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tag:active {
    transform: translateY(-6px) scale(1.02);
}

.tag-icon {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.tag:hover .tag-icon {
    transform: rotate(360deg) scale(1.2);
}

/* Subtitle */
.subtitle {
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.subtitle:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem 1.5rem;
    }

    .container {
        padding-top: 100px;
    }

    .name-text {
        font-size: 3.5rem;
    }
    
    .profile-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .tags {
        flex-direction: column;
        align-items: center;
    }

    .tag {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .menu-item {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .name-text {
        font-size: 3rem;
    }

    .profile-wrapper {
        width: 160px;
        height: 160px;
    }

    .menu-item {
        font-size: 1.1rem;
        padding: 0.9rem 1.3rem;
    }
}