:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #333333;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --accent-neon-blue: #f7df1e;
    --accent-neon-purple: #ffb03b;
    --accent-neon-pink: #d4d4d4;

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

    /* Design Tokens */
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --border-radius: 6px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;

    /* Z-indexes */
    --z-nav: 50;
    --z-modal: 100;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-neon-blue) var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 10px 0;
}

a {
    display: inline-block;
    text-decoration: none;
    text-decoration-skip-ink: auto;
    color: inherit;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--accent-neon-blue);
}

ul {
    list-style: none;
}

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

/* Typography Scale */
h1 {
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.1;
    margin: 0;
}

h2 {
    font-size: clamp(30px, 5vw, 60px);
}

h3 {
    font-size: clamp(24px, 4vw, 32px);
}

/* Accent Specific Classes */
.accent-text {
    color: var(--accent-neon-blue);
    font-family: var(--font-mono);
}

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

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

.btn-primary:hover,
.btn-primary:focus {
    background: rgba(247, 223, 30, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.btn-outline:hover {
    border-color: var(--accent-neon-purple);
    color: var(--accent-neon-purple);
    background: rgba(255, 176, 59, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: var(--z-nav);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    height: var(--nav-scroll-height);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(247, 223, 30, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-neon-blue);
    letter-spacing: 1px;
}

.logo a:hover {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
    font-family: var(--font-mono);
    font-size: 13px;
    counter-increment: item 1;
}

.nav-links a {
    padding: 10px;
    position: relative;
}

.nav-links a::before {
    content: "0" counter(item) ".";
    margin-right: 5px;
    color: var(--accent-neon-blue);
    font-size: 12px;
}

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

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

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--accent-neon-blue);
    cursor: pointer;
    z-index: calc(var(--z-nav) + 1);
}

.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(30, 30, 30, 0.97);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-top: 1px solid rgba(247, 223, 30, 0.2);
    border-bottom: 1px solid rgba(247, 223, 30, 0.2);
    gap: 8px;
}

/* Main Layout */
main {
    padding: 0 150px;
}

/* Sections Global */
.section-title {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    white-space: nowrap;
}

.section-title span {
    font-family: var(--font-mono);
    font-size: clamp(16px, 3vw, 20px);
    color: var(--accent-neon-blue);
    margin-right: 10px;
    font-weight: 400;
}

.section-title::after {
    content: "";
    display: block;
    position: relative;
    top: 0;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    position: relative;
}

.hero .greeting {
    font-family: var(--font-mono);
    color: var(--accent-neon-blue);
    margin-bottom: 20px;
}

.hero .name {
    color: var(--text-primary);
}

.hero .role {
    color: var(--text-secondary);
}

.typewriter-container {
    font-family: var(--font-mono);
    font-size: clamp(20px, 4vw, 40px);
    margin: 20px 0;
    color: var(--accent-neon-purple);
    height: 1.2em;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-neon-blue);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero .bio {
    max-width: 540px;
    margin-bottom: 50px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-graphic {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
    z-index: -1;
}

.geometric-shape {
    position: absolute;
    border-radius: 20px;
    background: rgba(247, 223, 30, 0.08);
    border: 1px solid rgba(247, 223, 30, 0.2);
    transform: rotate(45deg);
}

.shape-1 {
    width: 250px;
    height: 250px;
    top: 15%;
    left: 20%;
    animation: float 12s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 25%;
    right: 15%;
    background: rgba(255, 176, 59, 0.05);
    border-color: rgba(255, 176, 59, 0.15);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(45deg);
    }

    50% {
        transform: translate(30px, 30px) rotate(50deg);
    }

    100% {
        transform: translate(0, 0) rotate(45deg);
    }
}

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

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    background-color: var(--accent-neon-blue);
    transition: var(--transition);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-neon-blue);
    border-radius: var(--border-radius);
    z-index: -1;
    transition: var(--transition);
}

.image-wrapper:hover {
    background-color: transparent;
}

.image-wrapper:hover::before {
    top: 15px;
    left: 15px;
}

.avatar-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: var(--accent-neon-blue);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.image-wrapper:hover .avatar-placeholder {
    mix-blend-mode: normal;
    filter: grayscale(0) contrast(1);
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 30px 35px;
    transition: var(--transition);
}

.experience-item:hover {
    border-color: rgba(247, 223, 30, 0.3);
    transform: translateY(-3px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.exp-title {
    font-size: clamp(18px, 3vw, 22px);
    margin: 0 0 6px;
}

.exp-at {
    color: var(--accent-neon-blue);
    font-family: var(--font-mono);
}

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

.exp-period {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.exp-dot {
    font-size: 8px;
    color: var(--accent-neon-blue);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.exp-link {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 4px 8px;
    flex-shrink: 0;
}

.exp-link:hover {
    color: var(--accent-neon-blue);
    transform: translateY(-2px);
}

.exp-desc {
    font-size: 15px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.exp-duties {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.exp-duties li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.exp-duties li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-neon-blue);
    font-size: 13px;
    line-height: 1.6;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--bg-tertiary);
    padding-top: 18px;
    margin: 0;
}

.exp-tech li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-neon-blue);
    background: rgba(247, 223, 30, 0.07);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(247, 223, 30, 0.2);
}

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

.skill-category {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid var(--bg-tertiary);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 223, 30, 0.3);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-family: var(--font-mono);
    transition: var(--transition);
}

.tag:hover {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-neon-blue);
    transform: translateY(-2px);
}

.tag-accent {
    color: var(--accent-neon-blue);
    font-weight: 600;
}

.tag-accent-2 {
    color: var(--accent-neon-purple);
    font-weight: 600;
}

.tag-accent-3 {
    color: var(--accent-neon-pink);
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-card {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
}

.project-image {
    grid-column: 1 / 8;
    grid-row: 1 / -1;
    position: relative;
    z-index: 1;
}

.img-placeholder {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(247, 223, 30, 0.1);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.project-card:hover .img-placeholder::after {
    opacity: 0;
}

.project-card:hover .img-placeholder {
    transform: scale(1.02);
}

.project-info {
    grid-column: 7 / -1;
    grid-row: 1 / -1;
    position: relative;
    z-index: 2;
    text-align: right;
}

.project-overline {
    margin: 10px 0;
    color: var(--accent-neon-blue);
    font-family: var(--font-mono);
    font-size: 13px;
}

.project-title {
    color: var(--text-primary);
    font-size: clamp(24px, 5vw, 28px);
    margin: 0 0 20px;
}

.project-description {
    background-color: var(--bg-secondary);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    border: 1px solid var(--bg-tertiary);
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 25px 0 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
}

.project-tech-list li {
    margin: 0 0 5px 20px;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.project-links a {
    font-size: 20px;
    color: var(--text-primary);
}

.project-links a:hover {
    color: var(--accent-neon-blue);
    transform: translateY(-2px);
}

/* Project Reversed Layout */
.project-reversed .project-info {
    grid-column: 1 / 7;
    text-align: left;
}

.project-reversed .project-image {
    grid-column: 6 / -1;
}

.project-reversed .project-tech-list {
    justify-content: flex-start;
}

.project-reversed .project-tech-list li {
    margin: 0 20px 5px 0;
}

.project-reversed .project-links {
    justify-content: flex-start;
}

/* Image Slider */
.project-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 945;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(247, 223, 30, 0.08);
    transition: var(--transition);
    pointer-events: none;
    border-radius: var(--border-radius);
}

.project-card:hover .slider-overlay {
    opacity: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(247, 223, 30, 0.3);
    color: var(--accent-neon-blue);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    z-index: 3;
    opacity: 0;
}

.project-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(247, 223, 30, 0.15);
    border-color: var(--accent-neon-blue);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-neon-blue);
    transform: scale(1.4);
}

/* Contact Section */
.contact-section {
    text-align: center;
    max-width: 600px;
}

.contact-section .section-title {
    justify-content: center;
}

.contact-section .section-title::after {
    display: none;
}

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

.contact-desc {
    margin-bottom: 50px;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-tertiary);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-neon-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-neon-blue);
    background: rgba(10, 25, 47, 0.5);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    text-align: center;
    min-height: 20px;
}

.form-status--success {
    color: #4ade80;
}

.form-status--error {
    color: #f87171;
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.footer-credit {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive Design (Mobile First) */
@media (max-width: 1080px) {
    main {
        padding: 0 100px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 50px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-graphic {
        opacity: 0.2;
        right: -20%;
    }

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

    .about-image {
        margin-top: 50px;
        width: 70%;
    }

    .project-card,
    .project-reversed {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: flex-start;
    }

    .project-image,
    .project-reversed .project-image {
        grid-column: 1 / -1;
        grid-row: 1;
        opacity: 1;
        height: auto;
    }

    .project-info,
    .project-reversed .project-info {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
        padding: 0;
    }

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

    .project-tech-list li,
    .project-reversed .project-tech-list li {
        margin: 0 15px 5px 0;
    }

    .project-links,
    .project-reversed .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 25px;
    }

    .section-title::after {
        display: none;
    }

    .nav-container {
        padding: 0 25px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }
}