/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #444444;
    --accent-color: #00ff88;
    --accent-secondary: #ff6b35;
    --border-color: #222222;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-lg);
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.dot-2 {
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.dot-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.dot-4 {
    top: 70%;
    right: 25%;
    animation-delay: 3s;
}

.dot-5 {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

/* Content */
.content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 600px;
    width: 100%;
}

/* Name Section */
.name-section {
    margin-bottom: var(--spacing-xxl);
}

.name {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.name-underline {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    margin: 0 auto;
    animation: expandLine 1.5s ease-out 1s forwards;
}

/* Mystery Section */
.mystery-section {
    margin-bottom: var(--spacing-xxl);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mystery-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mystery-text:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.contact-item:nth-child(2) {
    animation-delay: 3s;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.contact-value:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* Hidden Message */
.hidden-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--spacing-xl);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hidden-message.show {
    opacity: 1;
    visibility: visible;
}

.hidden-message p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.hidden-message p:last-child {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 3.5s forwards;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 200px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

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

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 0.3s ease-in-out;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s ease-in-out;
    color: var(--accent-secondary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s ease-in-out;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(2px, -2px);
    }
    40% {
        transform: translate(-2px, 2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, -2px);
    }
    40% {
        transform: translate(2px, 2px);
    }
    60% {
        transform: translate(2px, -2px);
    }
    80% {
        transform: translate(-2px, 2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: var(--spacing-md);
    }
    
    .name {
        font-size: clamp(1.5rem, 6vw, 3rem);
        letter-spacing: 0.1em;
    }
    
    .contact-section {
        gap: var(--spacing-md);
    }
    
    .contact-value {
        font-size: 1rem;
    }
    
    .hidden-message {
        margin: var(--spacing-md);
        padding: var(--spacing-lg);
    }
    
    .floating-dot {
        display: none;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: clamp(1.2rem, 5vw, 2.5rem);
    }
    
    .mystery-text {
        font-size: 1rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
    opacity: 0.7;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: var(--accent-secondary);
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}