/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode styles */
[data-theme="dark"] body {
    background: #1a1a1a;
    color: #ffffff;
}

/* Container */
.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* Main content */
.content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}


/* Subtitle with typing animation */
.subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    margin-top: 1rem;
    animation: fadeIn 1.5s ease-out 0.6s both;
}

.typing-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    margin-left: 2px;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 2s ease-out 1s both;
}

.footer p {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .footer p {
    color: #666;
}

/* Spinner container */
.spinner-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
}

/* Spinner */
.spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.3);
    border-right-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

[data-theme="dark"] .spinner {
    border-top-color: rgba(255, 255, 255, 0.3);
    border-right-color: rgba(255, 255, 255, 0.3);
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

[data-theme="dark"] .dark-mode-toggle {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Subtle background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
    transition: background 0.3s ease;
}

[data-theme="dark"] body::before {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    animation: backgroundShiftDark 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    }
    50% {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    }
}

@keyframes backgroundShiftDark {
    0%, 100% {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }
    50% {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .name {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .footer {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
}

/* Ultra-minimal hover effects */
.name:hover {
    transition: all 0.3s ease;
    transform: scale(1.02);
}

/* Mouse follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease-out;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.mouse-follower::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #007bff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
