:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0f0f0f;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-dark: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-color: rgba(99, 102, 241, 0.3);
    --divider: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.lang-status {
    font-size: 0.7rem;
    color: #ff6b6b;
    margin-left: 5px;
    font-weight: 500;
}

.lang-option[data-ready="false"] {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.lang-option[data-ready="false"]:hover {
    background-color: transparent !important;
}

.experience-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.skill-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
}

.progress-fill[data-skill="html"] { background: #e34f26; }
.progress-fill[data-skill="css"] { background: #1572b6; }
.progress-fill[data-skill="javascript"] { background: #f7df1e; }
.progress-fill[data-skill="typescript"] { background: #3178c6; }
.progress-fill[data-skill="react"] { background: #61dafb; }
.progress-fill[data-skill="nextjs"] { background: #000000; }
.progress-fill[data-skill="vue"] { background: #4fc08d; }
.progress-fill[data-skill="vite"] { background: #646cff; }
.progress-fill[data-skill="nodejs"] { background: #339933; }
.progress-fill[data-skill="express"] { background: #339933; }
.progress-fill[data-skill="php"] { background: #777bb4; }
.progress-fill[data-skill="laravel"] { background: #ff2d20; }
.progress-fill[data-skill="python"] { background: #3776ab; }
.progress-fill[data-skill="ruby"] { background: #cc342d; }
.progress-fill[data-skill="databases"] { background: #00758f; }
.progress-fill[data-skill="linux"] { background: #fcc624; }
.progress-fill[data-skill="windows"] { background: #00adef; }
.progress-fill[data-skill="debian"] { background: #a80030; }
.progress-fill[data-skill="wsl"] { background: #4d92d6; }
.progress-fill[data-skill="vscode"] { background: #007acc; }
.progress-fill[data-skill="wincp"] { background: #ff9900; }
.progress-fill[data-skill="heidisql"] { background: #4e5d9d; }
.progress-fill[data-skill="shell"] { background: #4eaa25; }
.progress-fill[data-skill="powershell"] { background: #012456; }
.progress-fill[data-skill="paymenter"] { background: #00d4aa; }
.progress-fill[data-skill="directadmin"] { background: #002C62; }
.progress-fill[data-skill="cpanel"] { background: #ff6c2c; }
.progress-fill[data-skill="cyberpanel"] { background: #0072c6; }
.progress-fill[data-skill="whmcs"] { background: #004de6; }
.progress-fill[data-skill="stripe"] { background: #635bff; }
.progress-fill[data-skill="keyhelp"] { background: #00a1e0; }
.progress-fill[data-skill="pterodactyl"] { background: #006973; }
.progress-fill[data-skill="pelican"] { background: #1fb9eb; }
.progress-fill[data-skill="openpanel"] { background: #00b4d8; }

.progress-percent {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--accent);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.lang-btn:hover {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
}

.chevron-icon {
    width: 16px;
    height: 16px;
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    display: none;
    min-width: 150px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.3s ease;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.2);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0f2e 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
}

#heroDescription {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: var(--accent);
    color: white;
}

.cta-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.cta-btn.secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.skills {
    padding: 6rem 0;
    background: var(--bg-tertiary);
}

.skills h2, .systems h2, .software h2, .thirdparty h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.skill-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.skill-description {
    color: var(--text-secondary);
}

.social {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.social h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.social-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.social-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.social-icon svg {
    width: 48px;
    height: 48px;
}

.social-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-card:hover .social-link {
    color: var(--accent);
}

.contact {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0f2e 100%);
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

footer {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-legal {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.footer-legal a {
    color: var(--accent);
    text-decoration: none;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* Skills Tabs */
.skills-tabs {
    margin-top: 2rem;
}

.tabs-header {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-content {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
        display: none;
    }

    .nav-content.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--divider);
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    #heroDescription {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        justify-content: center;
    }

    .about h2,
    .skills h2,
    .systems h2,
    .software h2,
    .thirdparty h2,
    .social h2,
    .contact h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .tabs-header {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}