@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    position: relative;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #333;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: #888;
}

/* Sections */
section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #4ecdc4;
}

/* Achievements */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-card i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

/* Skills */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Contact */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #4ecdc4;
    transform: translateY(-5px);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.profile-image {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}

/* Enter Screen Styles */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: matrix-grid 20s linear infinite;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.8) 100%),
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 0, 0.1) 0px,
            rgba(0, 255, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px
        );
    animation: matrix-scan 8s linear infinite;
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, 
            rgba(0, 255, 0, 0.1) 0%,
            rgba(0, 255, 0, 0.05) 50%,
            rgba(0, 255, 0, 0.1) 100%
        );
    animation: rain 20s linear infinite;
    pointer-events: none;
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 255, 0, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 255, 0, 0.05) 25%, transparent 25%);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    animation: circuit-pulse 4s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
    z-index: 2;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    animation: glitch-bg 0.3s infinite;
    pointer-events: none;
    z-index: 3;
}

.enter-content {
    position: relative;
    z-index: 4;
    width: 80%;
    max-width: 800px;
}

.terminal-window {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 255, 0, 0.03) 50%,
        transparent 100%
    );
    animation: scan 2s linear infinite;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-buttons span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-buttons span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    color: #888;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 3rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.enter-button {
    background: transparent;
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: rgba(0, 255, 0, 0.5);
    padding: 1.5rem 4rem;
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.enter-button:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.4);
    color: rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
    transform: scale(1.02);
}

.enter-button i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: rgba(0, 255, 0, 0.5);
}

.enter-button:hover i {
    transform: translateX(5px);
    color: rgba(0, 255, 0, 0.8);
}

/* Animations */
@keyframes matrix-grid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 20px;
    }
}

@keyframes matrix-scan {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes rain {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes circuit-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(20px);
    }
}

@keyframes glitch-bg {
    0% {
        background: transparent;
    }
    2% {
        background: rgba(0, 255, 0, 0.1);
    }
    4% {
        background: transparent;
    }
    6% {
        background: rgba(0, 255, 0, 0.1);
    }
    8% {
        background: transparent;
    }
    10% {
        background: rgba(0, 255, 0, 0.1);
    }
    12% {
        background: transparent;
    }
}

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

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #666 }
}

/* Main Content Styles */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Godly Entrance Animation */
.godly-entrance {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.godly-entrance.active {
    display: block;
    opacity: 1;
}

.portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(0, 255, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    animation: portal-expand 3s ease-in-out forwards;
}

.portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 0, 0.2) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 0, 0.2) 50%, transparent 100%);
    animation: portal-scan 2s linear infinite;
}

.portal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            transparent 49%,
            rgba(0, 255, 0, 0.1) 50%,
            transparent 51%
        );
    animation: portal-lines 0.5s linear infinite;
}

.portal-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border: 2px solid rgba(0, 255, 0, 0.5);
    animation: frame-expand 3s ease-in-out forwards;
}

.portal-frame::before,
.portal-frame::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 0, 0.5);
    animation: frame-glow 1s ease-in-out infinite alternate;
}

.portal-frame::before {
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.portal-frame::after {
    bottom: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 0, 0.8);
    animation: particle-float 2s ease-in-out infinite;
}

@keyframes portal-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    20% {
        width: 200px;
        height: 300px;
        opacity: 1;
    }
    80% {
        width: 800px;
        height: 1200px;
        opacity: 1;
    }
    100% {
        width: 1600px;
        height: 2400px;
        opacity: 0;
    }
}

@keyframes frame-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }
    20% {
        width: 220px;
        height: 320px;
        opacity: 1;
    }
    80% {
        width: 820px;
        height: 1220px;
        opacity: 1;
    }
    100% {
        width: 1620px;
        height: 2420px;
        opacity: 0;
    }
}

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

@keyframes portal-lines {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes frame-glow {
    0% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    }
}

@keyframes particle-float {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

/* Graveyard Animation */
.graveyard-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.graveyard-scene.active {
    display: block;
    opacity: 1;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, #0a0a0a, #000);
    transform-origin: bottom;
    animation: ground-rise 3s ease-in-out forwards;
}

.ground::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(139, 0, 0, 0.3) 0%, transparent 50%);
    animation: blood-pulse 2s ease-in-out infinite;
}

.gravestone {
    position: absolute;
    bottom: 40%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 100px;
    height: 150px;
    background: #1a1a1a;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
    animation: gravestone-rise 3s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.gravestone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(139, 0, 0, 0.1) 50%, transparent 100%);
    animation: blood-drip 3s ease-in-out infinite;
}

.gravestone-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 90px;
    background: #e0e0e0;
    clip-path: polygon(
        0% 20%, 20% 0%, 80% 0%, 100% 20%,
        100% 100%, 80% 100%, 60% 80%, 40% 80%, 20% 100%, 0% 100%
    );
    animation: hand-emerge 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    transform-origin: bottom center;
}

.gravestone-hand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(139, 0, 0, 0.4) 50%, transparent 100%);
    animation: blood-stain 2s ease-in-out infinite;
}

.gravestone-hand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(139, 0, 0, 0.3) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(139, 0, 0, 0.3) 50%, transparent 100%);
    animation: hand-glow 2s ease-in-out infinite;
}

.bone {
    position: absolute;
    bottom: 40%;
    width: 30px;
    height: 100px;
    background: #e0e0e0;
    opacity: 0;
    animation: bone-rise 3s ease-in-out forwards;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.bone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
}

.bone::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(139, 0, 0, 0.2) 50%, transparent 100%);
    animation: blood-stain 2s ease-in-out infinite;
}

.skeleton-hand {
    position: absolute;
    bottom: 40%;
    width: 40px;
    height: 60px;
    background: #e0e0e0;
    opacity: 0;
    animation: hand-rise 3s ease-in-out forwards;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.skeleton-hand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
}

.skeleton-hand::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(139, 0, 0, 0.3) 50%, transparent 100%);
    animation: blood-stain 2s ease-in-out infinite;
}

.fog {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent),
        repeating-linear-gradient(
            0deg,
            transparent 0%,
            rgba(139, 0, 0, 0.1) 50%,
            transparent 100%
        );
    animation: fog-rise 3s ease-in-out forwards;
}

.blood-splatter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 40%, rgba(139, 0, 0, 0.2) 0%, transparent 50%);
    animation: blood-splatter 3s ease-in-out forwards;
    pointer-events: none;
}

@keyframes ground-rise {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes gravestone-rise {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes bone-rise {
    0% {
        transform: translateY(100%) rotate(var(--rotation));
        opacity: 0;
    }
    50% {
        transform: translateY(0) rotate(var(--rotation));
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(var(--rotation));
        opacity: 1;
    }
}

@keyframes hand-rise {
    0% {
        transform: translateY(100%) rotate(var(--rotation));
        opacity: 0;
    }
    50% {
        transform: translateY(0) rotate(var(--rotation));
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotate(var(--rotation));
        opacity: 1;
    }
}

@keyframes fog-rise {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blood-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes blood-drip {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes blood-stain {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-3px) scale(1.05);
    }
}

@keyframes blood-splatter {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes hand-emerge {
    0% {
        transform: translate(-50%, -50%) scale(0) translateY(100px);
        opacity: 0;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 100%, 0% 100%
        );
    }
    15% {
        transform: translate(-50%, -50%) scale(0.2) translateY(80px);
        opacity: 0.2;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 90%, 0% 90%
        );
    }
    30% {
        transform: translate(-50%, -50%) scale(0.4) translateY(60px);
        opacity: 0.4;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 70%, 0% 70%
        );
    }
    45% {
        transform: translate(-50%, -50%) scale(0.6) translateY(40px);
        opacity: 0.6;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 50%, 0% 50%
        );
    }
    60% {
        transform: translate(-50%, -50%) scale(0.8) translateY(20px);
        opacity: 0.8;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 30%, 0% 30%
        );
    }
    75% {
        transform: translate(-50%, -50%) scale(0.9) translateY(10px);
        opacity: 0.9;
        clip-path: polygon(
            0% 100%, 100% 100%, 100% 15%, 0% 15%
        );
    }
    90% {
        transform: translate(-50%, -50%) scale(0.95) translateY(5px);
        opacity: 0.95;
        clip-path: polygon(
            0% 20%, 20% 0%, 80% 0%, 100% 20%,
            100% 100%, 80% 100%, 60% 80%, 40% 80%, 20% 100%, 0% 100%
        );
    }
    100% {
        transform: translate(-50%, -50%) scale(1) translateY(0);
        opacity: 1;
        clip-path: polygon(
            0% 20%, 20% 0%, 80% 0%, 100% 20%,
            100% 100%, 80% 100%, 60% 80%, 40% 80%, 20% 100%, 0% 100%
        );
    }
}

@keyframes hand-glow {
    0%, 100% {
        opacity: 0.3;
        filter: blur(3px);
    }
    50% {
        opacity: 0.5;
        filter: blur(5px);
    }
}

/* New Dust Particles Effect */
.dust-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.dust-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dust-rise 2s ease-out infinite;
}

/* Ground Cracking Effect */
.ground-crack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: transparent;
    animation: ground-crack 5s ease-in-out forwards;
}

.ground-crack::before,
.ground-crack::after {
    content: '';
    position: absolute;
    background: rgba(139, 0, 0, 0.3);
    animation: crack-spread 5s ease-in-out forwards;
}

.ground-crack::before {
    top: 0;
    left: 50%;
    width: 2px;
    height: 0;
    transform-origin: top center;
}

.ground-crack::after {
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    transform-origin: left center;
}

/* Blood Drip Effect */
.blood-drip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: rgba(139, 0, 0, 0.6);
    animation: blood-drip 3s ease-in-out infinite;
}

@keyframes dust-rise {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translate(var(--x), var(--y)) scale(0);
        opacity: 0;
    }
}

@keyframes ground-crack {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes crack-spread {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

@keyframes blood-drip {
    0% {
        height: 0;
        opacity: 0;
    }
    50% {
        height: 20px;
        opacity: 0.8;
    }
    100% {
        height: 0;
        opacity: 0;
    }
}

/* Floating Horror Screen - Enhanced Horror Look */
.floating-screen {
    position: fixed;
    width: 260px;
    height: 120px;
    background: rgba(10, 10, 10, 0.7);
    box-shadow: 0 0 40px 10px rgba(0,0,0,0.7), 0 0 60px 10px #ff000033;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    overflow: hidden;
    border: none;
}

.floating-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/noise.png');
    opacity: 0.25;
    pointer-events: none;
    z-index: 2;
}

.floating-screen::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.07) 0%, transparent 80%),
                radial-gradient(circle at 30% 70%, rgba(255,0,0,0.08) 0%, transparent 80%);
    pointer-events: none;
    z-index: 3;
}

.screen-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Poppins', 'Courier New', monospace;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 8px #ff0000cc);
    z-index: 4;
}

.screen-text {
    position: relative;
    z-index: 5;
    text-shadow: 0 0 12px #ff0000, 0 0 2px #fff, 0 0 24px #000;
    animation: text-flicker 0.7s infinite;
}

.screen-glitch {
    display: none;
}

.screen-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 10px 2px #ff0000;
    animation: scan 2s linear infinite;
    z-index: 6;
}

/* Subtle floating particles */
.floating-screen .horror-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    width: 2px; height: 2px;
    animation: horror-particle-float 4s linear infinite;
    z-index: 10;
}

@keyframes horror-particle-float {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-30px) scale(0.7); }
}

@keyframes text-flicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 0.7; }
    50% { opacity: 0.3; }
    55% { opacity: 0.7; }
}

@keyframes scan {
    0% { top: -2px; }
    100% { top: 100%; }
}

/* Thor Portal Effects */
.bifrost-portal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: 
        radial-gradient(circle at center,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(186, 225, 255, 0.9) 15%,
            rgba(116, 191, 255, 0.7) 30%,
            rgba(30, 144, 255, 0.4) 45%,
            transparent 60%
        );
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.95),
        0 0 100px rgba(186, 225, 255, 0.8),
        0 0 150px rgba(30, 144, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.9);
    z-index: 1000;
    animation: portalOpen 3s forwards;
    opacity: 0;
}

.lightning {
    position: fixed;
    width: 4px;
    height: 300px;
    z-index: 998;
    opacity: 0;
    animation: lightningStrike 0.35s ease-out forwards;
}

.lightning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(186, 225, 255, 0.6),
        0 0 20px rgba(30, 144, 255, 0.4);
    clip-path: polygon(
        45% 0%, 55% 0%, 55% 10%,
        65% 10%, 50% 20%, 60% 20%,
        45% 30%, 55% 30%, 40% 40%,
        50% 40%, 35% 50%, 45% 50%,
        30% 60%, 40% 60%, 25% 70%,
        35% 70%, 20% 80%, 30% 80%,
        15% 90%, 25% 90%, 10% 100%,
        90% 100%, 75% 90%, 85% 90%,
        70% 80%, 80% 80%, 65% 70%,
        75% 70%, 60% 60%, 70% 60%,
        55% 50%, 65% 50%, 50% 40%,
        60% 40%, 45% 30%, 55% 30%,
        40% 20%, 50% 20%, 35% 10%,
        45% 10%
    );
    animation: lightningFlash 0.35s ease-out;
}

.lightning::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(20px);
    animation: lightningGlow 0.35s ease-out;
}

/* Secondary branches for each lightning bolt */
.lightning .branch {
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.9);
    transform-origin: top;
}

@keyframes portalOpen {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0;
    }
}

@keyframes lightningStrike {
    0% {
        transform: translate(-50%, -50%) scale(0.1) translateZ(-100px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    10% {
        transform: translate(-50%, -50%) scale(1) translateZ(0);
        opacity: 0.8;
    }
    15% {
        opacity: 1;
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) translateZ(200px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2) translateZ(300px);
    }
}

@keyframes lightningFlash {
    0% {
        opacity: 0;
        transform: scaleX(1);
    }
    5% {
        opacity: 1;
        transform: scaleX(1.2);
    }
    10% {
        opacity: 0.8;
        transform: scaleX(1);
    }
    15% {
        opacity: 1;
        transform: scaleX(1.1);
    }
    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes lightningGlow {
    0% {
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    40% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
    }
}

/* Atmospheric effects */
.thunder-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    z-index: 997;
    animation: thunderFlash 0.35s ease-out;
    pointer-events: none;
}

@keyframes thunderFlash {
    0% {
        background: rgba(255, 255, 255, 0);
    }
    5% {
        background: rgba(255, 255, 255, 0.4);
    }
    10% {
        background: rgba(255, 255, 255, 0.2);
    }
    15% {
        background: rgba(255, 255, 255, 0.3);
    }
    100% {
        background: rgba(255, 255, 255, 0);
    }
}

/* Lightning positions with realistic angles and timing */
.lightning:nth-child(1) { 
    top: 40%; 
    left: 45%; 
    transform: rotate(15deg) scale(0.9);
    animation-delay: 0.1s;
}
.lightning:nth-child(2) { 
    top: 35%; 
    right: 48%; 
    transform: rotate(-20deg) scale(1.1);
    animation-delay: 0.2s;
}
.lightning:nth-child(3) { 
    top: 42%; 
    left: 52%; 
    transform: rotate(5deg) scale(1);
    animation-delay: 0.15s;
}
.lightning:nth-child(4) { 
    top: 38%; 
    right: 43%; 
    transform: rotate(-10deg) scale(0.95);
    animation-delay: 0.25s;
}
.lightning:nth-child(5) { 
    top: 45%; 
    left: 49%; 
    transform: rotate(0deg) scale(1.05);
    animation-delay: 0.18s;
}

.thunder-sound {
    display: none;
}

/* Background Video Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(1.5px);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Profile Card Styles */
.profile-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35vw;
    min-width: 400px;
    max-width: 550px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translate(-50%, -50%) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.profile-card .profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.profile-card .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-card .profile-image:hover img {
    transform: scale(1.1);
}

.profile-card .profile-name {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-card .about-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-card .about-text p {
    margin-bottom: 0.8rem;
}

.profile-card .about-text p:last-child {
    margin-bottom: 0;
}

.profile-card .social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.profile-card .social-link {
    color: #ffffff;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    padding: 0.5rem;
}

.profile-card .social-link:hover {
    opacity: 1;
    transform: translateY(-5px);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-card {
        width: 90%;
        min-width: unset;
        max-width: none;
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .profile-card .profile-image {
        width: 140px;
        height: 140px;
        margin: 0 auto 1.5rem;
    }

    .profile-card .profile-name {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .profile-card .about-text {
        font-size: 1rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .profile-card .social-links {
        gap: 2rem;
    }

    .profile-card .social-link {
        font-size: 1.8rem;
    }

    /* Enter Screen Mobile Adjustments */
    .enter-button {
        padding: 1.2rem 3rem;
        font-size: 1.6rem;
    }

    .terminal-window {
        width: 90%;
        margin: 0 auto;
    }

    .terminal-body {
        padding: 2rem 1rem;
    }

    /* Video Background Mobile Adjustments */
    #bgVideo {
        object-fit: cover;
        height: 100%;
        width: 100%;
    }

    /* Thor Portal Effects Mobile Adjustments */
    .bifrost-portal {
        transform: scale(0.7);
    }

    .lightning {
        transform: scale(0.8);
    }

    /* Music Player Mobile Position */
    .music-player {
        top: 10px;
        right: 10px;
    }

    .music-toggle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .profile-card {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .profile-card .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-card .profile-name {
        font-size: 1.8rem;
    }

    .profile-card .about-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .profile-card .social-links {
        gap: 1.5rem;
    }

    .profile-card .social-link {
        font-size: 1.6rem;
    }

    .enter-button {
        padding: 1rem 2.5rem;
        font-size: 1.4rem;
    }
}

/* Landscape Mode Fixes */
@media (max-height: 480px) and (orientation: landscape) {
    .profile-card {
        position: relative;
        transform: none;
        top: 0;
        left: 0;
        margin: 2rem auto;
        width: 85%;
    }

    .profile-card .profile-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
    }

    .profile-card .profile-name {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .profile-card .about-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .profile-card .social-links {
        gap: 1.5rem;
    }

    .profile-card .social-link {
        font-size: 1.4rem;
    }
}

/* Fix for notched phones */
@supports (padding: max(0px)) {
    .profile-card {
        padding-left: max(1.5rem, env(safe-area-inset-left));
        padding-right: max(1.5rem, env(safe-area-inset-right));
    }

    .music-player {
        right: max(10px, env(safe-area-inset-right));
        top: max(10px, env(safe-area-inset-top));
    }
}
