:root {
    --bg-color: #0a192f;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    --glass-bg: rgba(17, 34, 64, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

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

.section {
    padding: 100px 0;
    max-width: 1000px;
    margin: 0 auto;
    width: 90%;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(26px, 5vw, 32px);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #233554, transparent);
    margin-left: 20px;
}

.number {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 400;
    margin-right: 10px;
    font-size: 0.8em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-tint);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-primary);
}

.nav-links li a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 150px;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    max-width: 600px;
}

.greeting {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 20px;
}

.name {
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.1;
    color: #e6f1ff;
}

.subtitle {
    font-size: clamp(30px, 6vw, 60px);
    line-height: 1.1;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.description {
    max-width: 500px;
    margin-bottom: 50px;
    color: var(--text-secondary);
    font-size: 18px;
}

.hero-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.glowing-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, rgba(10, 25, 47, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

.code-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 350px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.code-card:hover {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.05);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

pre {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #a8b2d1;
}

.keyword {
    color: #c792ea;
}

.variable {
    color: #82aaff;
}

.string {
    color: #c3e88d;
}

.property {
    color: #f07178;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--accent);
}

.about-img {
    position: relative;
}

.img-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1;
    border-radius: 4px;
    background-color: var(--accent);
    margin: 0 auto;
}

.img-wrapper::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 4px;
    z-index: -1;
    transition: var(--transition);
}

.img-wrapper:hover::after {
    top: 10px;
    left: 10px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #112240;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: bold;
    color: var(--accent);
    border-radius: 4px;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
}

.img-wrapper:hover .avatar-placeholder {
    mix-blend-mode: normal;
    filter: none;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    background-color: #112240;
    padding: 25px;
    border-radius: 4px;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--accent);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.skill-category li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Projects Section */
.project-card {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    margin-bottom: 100px;
}

.project-content {
    grid-column: 1 / 8;
    grid-row: 1 / -1;
    z-index: 2;
    text-align: left;
}

.reverse .project-content {
    grid-column: 6 / -1;
    text-align: right;
}

.project-overline {
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 13px;
    margin-bottom: 10px;
}

.project-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.project-description {
    background-color: #112240;
    padding: 25px;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 15px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    margin-bottom: 20px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-secondary);
}

.reverse .project-tech-list {
    justify-content: flex-end;
}

.project-links {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.reverse .project-links {
    justify-content: flex-end;
}

.project-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
    height: 300px;
    border-radius: 4px;
    background-color: var(--accent);
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.reverse .project-image {
    grid-column: 1 / 8;
}

.project-visual-placeholder {
    width: 100%;
    height: 100%;
    background-color: #233554;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: var(--transition);
    background-size: cover;
    background-position: center;
}

.project-image:hover .project-visual-placeholder {
    mix-blend-mode: normal;
    filter: none;
}

/* Experience Section */
.jobs-container {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
}

.job-tabs {
    display: flex;
    flex-direction: column;
    border-left: 2px solid #233554;
}

.job-tab {
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    padding: 0 20px;
    height: 42px;
    text-align: left;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: -2px;
}

.job-tab:hover,
.job-tab.active {
    color: var(--accent);
    background-color: #112240;
}

.job-tab.active {
    border-left-color: var(--accent);
}

.job-content {
    padding: 0 25px;
}

.job-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.company {
    color: var(--accent);
}

.range {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.job-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 15px;
}

.job-content li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact Section */
#contact {
    text-align: center;
    max-width: 600px;
    margin-bottom: 100px;
}

.big-heading {
    font-size: clamp(40px, 5vw, 60px);
    margin-bottom: 20px;
    color: #e6f1ff;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 50px;
}

.big-btn {
    padding: 1.25rem 1.75rem;
    font-size: 14px;
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 22px;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70vw;
        background-color: #112240;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 0 20px;
        text-align: left;
        padding-top: 100px;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        background-color: #112240;
        padding: 20px;
        border-radius: 4px;
        align-items: flex-start;
    }

    .project-content,
    .reverse .project-content {
        grid-column: auto;
        text-align: left;
        padding: 0;
    }

    .project-description {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .project-image {
        display: none;
    }

    .reverse .project-tech-list,
    .reverse .project-links {
        justify-content: flex-start;
    }

    .jobs-container {
        flex-direction: column;
    }

    .job-tabs {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid #233554;
        margin-bottom: 30px;
        overflow-x: auto;
    }

    .job-tab {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
    }

    .job-tab.active {
        border-bottom-color: var(--accent);
        border-left-color: transparent;
    }
}