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

:root {
    --bg-dark: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --panel-gradient: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border-light: #e2e8f0;
    --accent-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --hover-gray: #f1f5f9;
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 198, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 850px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.panel {
    background: var(--panel-gradient);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-large);
    padding: 50px;
    width: 100%;
    min-height: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.4));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(118, 75, 162, 0.6));
    }
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: underlineExpand 0.8s ease-out 0.3s both;
}

@keyframes underlineExpand {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: rgba(248, 250, 252, 0.5);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.3);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.nav-btn.active {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.nav-btn.active::before {
    left: 0;
}

.main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: sectionFadeIn 0.6s ease-out;
}

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

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.section p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skills {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.skill {
    background: var(--accent-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.skill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.skill:hover::before {
    left: 0;
}

.skill:hover {
    color: var(--text-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.skill span {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-tertiary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 16px;
    text-align: left;
}

.status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.status:hover::before {
    left: 100%;
}

.status.online {
    background: var(--success-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.status.dev {
    background: var(--warning-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.link-card {
    background: transparent;
    padding: 24px;
    border-radius: 16px;
    border: 2px solid rgba(226, 232, 240, 0.3);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-primary);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.link-card span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-time {
    text-align: center;
    margin-top: 50px;
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 255, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.footer-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ff, transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.footer-time span {
    color: #0ff;
    font-weight: 600;
    text-shadow: 0 0 10px #0ff;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        text-shadow: 0 0 10px #0ff;
    }
    to {
        text-shadow: 0 0 20px #0ff, 0 0 30px #0ff;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.skill:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.skill:nth-child(even) {
    animation: float 6s ease-in-out infinite reverse;
}

/* Responsive Design */
@media (max-width: 768px) {
    .panel {
        padding: 40px 30px;
        margin: 10px;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .navigation {
        gap: 6px;
        padding: 6px;
    }
    
    .projects-grid,
    .links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skills {
        gap: 12px;
    }
    
    .skill {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .panel {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 4px;
    }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-dark: #000000;
        --text-light: #333333;
        --border-light: #000000;
    }
}