:root {
    /* Futuristic Dark Palette */
    --bg-dark: #0b0c10;
    --bg-panel: rgba(11, 12, 16, 0.7);
    /* Glassmorphism base */
    --primary-neon: #66fcf1;
    --secondary-neon: #45a29e;
    --text-main: #c5c6c7;
    --text-highlight: #ffffff;

    /* Accents */
    --accent-purple: #bb86fc;
    --accent-pink: #cf6679;

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-highlight);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 10px var(--primary-neon);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-neon);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-neon);
}

/* Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.center-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-flex.column {
    flex-direction: column;
}

.neon-text {
    color: var(--primary-neon);
    text-shadow: 0 0 5px rgba(102, 252, 241, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    z-index: 10;
    flex-direction: column;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-neon);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-highlight);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-neon);
    margin-bottom: 1rem;
}

.typewriter {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-purple);
    min-height: 1.6em;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-neon);
    color: var(--bg-dark);
    border: 2px solid var(--primary-neon);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-neon);
    box-shadow: 0 0 20px var(--primary-neon);
}

.btn-outline {
    background: transparent;
    color: var(--text-highlight);
    border: 2px solid var(--text-highlight);
}

.btn-outline:hover {
    background: var(--text-highlight);
    color: var(--bg-dark);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-neon);
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(11, 12, 16, 0.95);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 !important;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-highlight);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-neon);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-neon);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    outline: none;
}

.btn-lang:hover {
    background: var(--primary-neon);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.4);
}

.mobile-toggle {
    display: none;
    color: var(--text-highlight);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Section Header */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.hash {
    color: var(--primary-neon);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-bar, var(--secondary-neon));
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #15161a;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 2rem;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-neon);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 0.9rem;
    color: #8892b0;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--secondary-neon);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-neon);
    box-shadow: 0 0 10px var(--primary-neon);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--secondary-neon);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8892b0;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-neon);
    font-family: var(--font-mono);
}

/* Contact Section */
#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
}

.big-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.social-links a:hover {
    background: var(--primary-neon);
    border-color: var(--primary-neon);
    color: var(--bg-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 252, 241, 0.4);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Mobile */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2.5rem;
    }

    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
    }

    .nav-links {
        display: none;
    }

    /* Add toggle logic later if needed */
    .mobile-toggle {
        display: block;
    }
}