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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background: #000000;
    min-height: 100vh;
    position: relative;
}

/* 3D Scene Container */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Starfield Background */
.stars, .stars2, .stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    animation: grid-scroll 30s linear infinite;
}

/* Glowing Orbs */
.orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orb-float 25s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06b6d4, transparent);
    top: 10%;
    left: 10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7, transparent);
    top: 50%;
    right: 10%;
    animation-delay: -8s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: 10%;
    left: 50%;
    animation-delay: -16s;
}

.container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: radial-gradient(ellipse at center, rgba(88, 28, 135, 0.3) 0%, rgba(15, 23, 42, 0.8) 50%, #000000 100%);
    z-index: 2;
}

/* Glass Card */
.glass-card {
    position: relative;
    z-index: 10;
    max-width: 65rem;
    width: 100%;
    backdrop-filter: blur(40px) saturate(180%);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.6));
    border-radius: 2.5rem;
    border: 2px solid rgba(34, 211, 238, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 100px rgba(6, 182, 212, 0.2);
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: card-entrance 1s ease-out;
}

.glass-card:hover {
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 150px rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

/* Corner Decorations */
.corner-decoration {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(34, 211, 238, 0.5);
    animation: corner-pulse 2s ease-in-out infinite;
}

.corner-decoration.tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.corner-decoration.tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
    animation-delay: 0.5s;
}

.corner-decoration.bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
    animation-delay: 1s;
}

.corner-decoration.br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
    animation-delay: 1.5s;
}

/* Scan Line */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.8), transparent);
    animation: scan 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

/* Avatar */
.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    animation: avatar-entrance 1.2s ease-out 0.2s both;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #a855f7, #ec4899);
    background-size: 200% 200%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.5);
    animation: avatar-gradient 3s ease infinite;
}

.avatar svg {
    width: 55%;
    height: 55%;
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.avatar-ring {
    position: absolute;
    inset: -12px;
    border: 2px solid rgba(34, 211, 238, 0.5);
    border-radius: 50%;
    animation: ring-rotate 5s linear infinite;
    z-index: 2;
}

.avatar-ring-2 {
    position: absolute;
    inset: -20px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    animation: ring-rotate 7s linear infinite reverse;
    z-index: 1;
}

.avatar-pulse {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(34, 211, 238, 0.6);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
    z-index: 4;
}

/* Content */
.content {
    text-align: center;
}

/* Title */
.title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    animation: title-entrance 1s ease-out 0.3s both;
}

.title-word {
    display: inline-block;
}

.letter {
    display: inline-block;
    background: linear-gradient(135deg, #22d3ee, #a855f7, #ec4899, #22d3ee);
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.5));
}

.title-separator {
    color: #a855f7;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.8));
}

/* Divider */
.divider-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.divider {
    height: 4px;
    width: 150px;
    position: relative;
    border-radius: 9999px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
    overflow: hidden;
}

.divider-inner {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, #22d3ee, #a855f7, transparent);
    animation: divider-slide 3s ease-in-out infinite;
}

/* Bio */
.bio-container {
    margin-bottom: 2rem;
}

.bio-intro {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.8;
    color: #f3f4f6;
    margin-bottom: 1rem;
}

.bio-main, .bio-secondary, .bio-creative {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 1rem;
    text-align: left;
}

.bio-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(34, 211, 238, 0.05);
    border: 2px solid rgba(34, 211, 238, 0.2);
    border-radius: 1rem;
}

.summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #22d3ee;
    margin-bottom: 0.5rem;
}

.summary-text {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    color: #e5e7eb;
    text-align: left;
}

.skill-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.4rem;
    color: #22d3ee;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.2rem;
}

.highlight-cyan { color: #22d3ee; font-weight: 700; }
.highlight-purple { color: #a855f7; font-weight: 700; }
.highlight-pink { color: #ec4899; font-weight: 700; }

.highlight-gradient {
    background: linear-gradient(135deg, #22d3ee, #a855f7, #ec4899);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    animation: gradient-flow 3s linear infinite;
}

.neon-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Email Section */
.email-section {
    margin: 2rem 0;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #67e8f9;
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 1rem;
    border: 2px solid rgba(34, 211, 238, 0.3);
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.email-link:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(34, 211, 238, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}

.email-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    border-radius: 0.5rem;
}

.icon {
    width: 1.2rem;
    height: 1.2rem;
}

/* Discord Button */
.button-section {
    margin: 2rem 0 2.5rem;
}

.discord-button {
    position: relative;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #06b6d4, #a855f7, #ec4899);
    background-size: 200% 200%;
    border: none;
    border-radius: 1.2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 800;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
    animation: button-gradient-shift 3s ease infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.discord-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.6);
}

.discord-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.button-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.skill-category {
    padding: 1.5rem;
    background: rgba(34, 211, 238, 0.05);
    border: 2px solid rgba(34, 211, 238, 0.2);
    border-radius: 1.2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.3);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #22d3ee;
    margin-bottom: 1rem;
}

.category-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 0.5rem;
    color: #67e8f9;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes grid-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes corner-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

@keyframes avatar-entrance {
    from {
        opacity: 0;
        transform: scale(0.8) rotateY(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

@keyframes avatar-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes title-entrance {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes divider-slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes button-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
        border-radius: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .avatar-container {
        width: 100px;
        height: 100px;
    }
    
    .title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }
}

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