:root {
    --bg-gradient-1: #1a1a2e;
    --bg-gradient-2: #16213e;
    --bg-gradient-3: #0f3460;
    --text-color: #ffffff;
    --tagline-color: #a0a0a0;
    --name-gradient-1: #00d2ff;
    --name-gradient-2: #3a7bd5;
}

[data-theme="light"] {
    --bg-gradient-1: #e8f4f8;
    --bg-gradient-2: #d4e5ed;
    --bg-gradient-3: #b8d4e3;
    --text-color: #1a1a2e;
    --tagline-color: #555555;
    --name-gradient-1: #0077b6;
    --name-gradient-2: #023e8a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: color 0.5s ease;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
    z-index: -1;
    transition: background 0.5s ease;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

/* Top Navigation - Center */
.top-nav-center {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 30px;
}

/* Top Navigation - Right (Theme Toggle) */
.top-nav-right {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-btn:hover {
    opacity: 1;
    text-shadow: 0 0 20px var(--text-color), 0 0 40px var(--text-color);
    transform: scale(1.05);
}

[data-theme="light"] .nav-btn {
    color: var(--text-color);
}

[data-theme="light"] .nav-btn:hover {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 50%;
    transition: all 0.4s ease;
    z-index: 2;
}

.slider-icon {
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.slider-icon.moon {
    opacity: 0.3;
}

.slider-icon.sun {
    opacity: 1;
}

/* When checked (light mode) */
input:checked + .slider {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

input:checked + .slider::before {
    transform: translateX(28px);
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

input:checked + .slider .moon {
    opacity: 1;
}

input:checked + .slider .sun {
    opacity: 0.3;
}

.theme-switch:hover .slider {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .theme-switch:hover .slider {
    background: rgba(0, 0, 0, 0.12);
}

.theme-transition-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
    transform: translate(50%, -50%);
    transition: none;
    opacity: 1;
}

.theme-transition-overlay.expanding {
    transition: width 1s ease-in-out, height 1s ease-in-out;
}

.theme-transition-overlay.fading {
    transition: opacity 0.5s ease-out;
    opacity: 0;
}

.theme-transition-overlay.to-light {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e5ed 50%, #b8d4e3 100%);
}

.theme-transition-overlay.to-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 60;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.greeting {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.name {
    font-weight: 700;
    background: linear-gradient(90deg, var(--name-gradient-1), var(--name-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.8rem;
    color: var(--tagline-color);
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.5s ease;
}

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

@media (max-width: 768px) {
    .greeting {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .hero {
        position: fixed;
        top: 15%;
        left: 50%;
        transform: translateX(-50%);
        padding: 1rem;
    }
    .social-links {
        bottom: 20px;
    }
}

.social-links {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    z-index: 60;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .social-link {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .social-link:hover {
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .social-links {
        bottom: 20px;
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}
