:root {
    --navy: #1A1A1A;
    --light-navy: #2C2C2C;
    --lightest-navy: #334155;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --white: #e6f1ff;
    --green: #06b6d4;
    --green-tint: rgba(6, 182, 212, 0.1);
    --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Fira Mono', monospace;
    --fz-xxs: 12px;
    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;
    --border-radius: 4px;
    --nav-height: 100px;
    --nav-scroll-height: 70px;
    --tab-height: 42px;
    --tab-width: 120px;
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --hamburger-width: 30px;
    --ham-before: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
    --ham-before-active: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
    --ham-after: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    --ham-after-active: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: var(--navy);
    color: var(--slate);
    font-family: var(--font-sans);
    font-size: var(--fz-md);
    line-height: 1.5;
}

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
}

.section-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    font-size: clamp(26px, 5vw, var(--fz-heading));
    white-space: nowrap;
}

.section-heading span {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
    font-weight: 400;
    margin-right: 10px;
}

.section-heading::after {
    content: '';
    display: block;
    position: relative;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

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

.loader-logo {
    width: 100px;
    height: 100px;
    color: var(--green);
    animation: fadeIn 2s ease-in-out;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--green);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    mix-blend-mode: difference;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 11;
    padding: 0px 50px;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
}

.header.scrolled {
    height: var(--nav-scroll-height);
    transform: translateY(0px);
    background-color: rgba(26, 26, 26, 0.85);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    color: var(--lightest-slate);
    z-index: 12;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--green);
    width: 42px;
    height: 42px;
    font-family: var(--font-mono);
    font-size: var(--fz-heading);
    line-height: 1;
    text-decoration: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--green);
    border-radius: var(--border-radius);
}

.logo-text {
    font-size: 20px;
    font-weight: 500;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    color: var(--lightest-slate);
    counter-reset: item 0;
    z-index: 12;
}

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

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    margin: 0 5px;
    position: relative;
    counter-increment: item 1;
}

.nav-item a {
    padding: 10px;
    text-decoration: none;
    color: var(--lightest-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    transition: var(--transition);
}

.nav-item a:hover {
    color: var(--green);
}

.nav-item a span {
    margin-right: 5px;
    color: var(--green);
    font-size: var(--fz-xxs);
    text-align: right;
}

.nav-button {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.resume-button {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.resume-button:hover {
    background-color: var(--green-tint);
}

.menu-button {
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-right: -15px;
    padding: 15px;
    border: 0;
    background-color: transparent;
    color: inherit;
    text-transform: none;
    transition-timing-function: linear;
    transition-duration: 0.15s;
    transition-property: opacity, filter;
}

.hamburger {
    display: inline-block;
    position: relative;
    width: var(--hamburger-width);
    height: 24px;
}

.hamburger-inner {
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--hamburger-width);
    height: 2px;
    border-radius: 4px;
    background-color: var(--green);
    transition: transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    transform: rotate(0deg);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
    position: absolute;
    left: auto;
    right: 0;
    width: var(--hamburger-width);
    height: 2px;
    border-radius: 4px;
    background-color: var(--green);
    transition-timing-function: ease;
    transition-duration: 0.15s;
    transition-property: transform;
}

.hamburger-inner::before {
    width: 120%;
    top: -10px;
    opacity: 1;
    transition: var(--ham-before);
}

.hamburger-inner::after {
    width: 80%;
    bottom: -10px;
    transform: rotate(0deg);
    transition: var(--ham-after);
}

.menu-button.active .hamburger-inner {
    transform: rotate(225deg);
}

.menu-button.active .hamburger-inner::before {
    width: 100%;
    top: 0;
    opacity: 0;
    transition: var(--ham-before-active);
}

.menu-button.active .hamburger-inner::after {
    width: 100%;
    bottom: 0;
    transform: rotate(-90deg);
    transition: var(--ham-after-active);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 50px 10px;
    width: min(75vw, 400px);
    height: 100vh;
    outline: 0;
    background-color: var(--light-navy);
    box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
    z-index: 9;
    transform: translateX(100vw);
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateX(0vw);
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    counter-reset: item 0;
}

.mobile-nav-item {
    position: relative;
    margin: 0 auto 20px;
    counter-increment: item 1;
    font-size: clamp(var(--fz-sm), 4vw, var(--fz-lg));
}

.mobile-nav-item a {
    display: inline-block;
    text-decoration: none;
    color: var(--lightest-slate);
    width: 100%;
    padding: 3px 20px 20px;
}

.mobile-nav-item a span {
    display: block;
    color: var(--green);
    font-size: var(--fz-sm);
    margin-bottom: 5px;
}

.mobile-nav-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Main Content */
.main {
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
    min-height: 100vh;
    padding: 0 150px;
}

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

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.hero-greeting {
    margin: 0 0 30px 4px;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-sm), 5vw, var(--fz-md));
    font-weight: 400;
}

.hero-name {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    color: var(--lightest-slate);
}

.hero-subtitle {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 30px 0;
    color: var(--slate);
}

.hero-description {
    margin: 20px 0 0;
    max-width: 540px;
    color: var(--slate);
    font-size: var(--fz-lg);
}

.hero-button {
    margin-top: 50px;
}

.cta-button {
    color: var(--green);
    background-color: transparent;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    padding: 1.25rem 1.75rem;
    font-size: var(--fz-sm);
    font-family: var(--font-mono);
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--green-tint);
}

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

.about-text {
    color: var(--slate);
}

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

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0 10px;
    padding: 0;
    margin: 20px 0 0 0;
    overflow: hidden;
    list-style: none;
}

.skills-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: var(--fz-sm);
    line-height: 12px;
}

.about-image {
    position: relative;
    max-width: 300px;
}

.image-wrapper {
    display: block;
    position: relative;
    width: 100%;
    border-radius: var(--border-radius);
    background-color: var(--green);
}

.image-wrapper::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--navy);
    mix-blend-mode: screen;
}

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

.image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background-color: var(--green);
    opacity: 0.25;
    z-index: -1;
    transform: translate(20px, 20px);
    transition: var(--transition);
}

.image-wrapper:hover .image-background {
    transform: translate(15px, 15px);
}

.image-placeholder {
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--light-navy);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-placeholder span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 50px;
    color: var(--green);
}

/* Experience Section */
.experience-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.experience-tabs {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: var(--tab-height);
    border: none;
    border-bottom: 2px solid var(--lightest-navy);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    color: var(--green);
    background-color: var(--light-navy);
}

.tab-button.active {
    color: var(--green);
    border-bottom: 2px solid var(--green);
}

.tab-content {
    width: 100%;
    height: auto;
    padding-top: 10px;
}

.tab-panel {
    display: none;
    width: 100%;
    height: auto;
}

.tab-panel.active {
    display: block;
}

.experience-item {
    max-width: 700px;
    margin-bottom: 30px;
}

.experience-title {
    font-size: var(--fz-xxl);
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--lightest-slate);
}

.experience-place {
    font-size: var(--fz-lg);
    color: var(--green);
    font-weight: 400;
    margin-bottom: 5px;
}

.experience-date {
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    color: var(--light-slate);
    margin-bottom: 20px;
}

.experience-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.experience-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--slate);
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: var(--fz-sm);
}

/* Skills in Experience Tab */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category-title {
    font-size: var(--fz-lg);
    color: var(--lightest-slate);
    margin-bottom: 20px;
}

.skill-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    color: var(--light-slate);
    margin-bottom: 5px;
}

.skill-bar {
    height: 5px;
    background-color: var(--lightest-navy);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--green);
    border-radius: var(--border-radius);
    width: 0;
    transition: width 1s ease-in-out;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 100px;
    width: 100%;
}

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

.project-card.featured .project-content {
    grid-column: 1 / 7;
    grid-row: 1 / -1;
    z-index: 2;
}

.project-card.featured .project-image {
    grid-column: 6 / -1;
    grid-row: 1 / -1;
    z-index: 1;
}

.project-card.featured.reverse .project-content {
    grid-column: 7 / -1;
    text-align: right;
    width: 100%;
    box-sizing: border-box;
}

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

.project-content {
    position: relative;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    background-color: var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.project-card.featured .project-content,
.project-card.featured.reverse .project-content {
    background-color: transparent;
    box-shadow: none;
}

.project-overline {
    margin: 10px 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    font-weight: 400;
}

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

.project-description {
    position: relative;
    z-index: 2;
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: var(--light-navy);
    color: var(--light-slate);
    font-size: var(--fz-md);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.project-card.featured .project-description,
.project-card.featured.reverse .project-description {
    background-color: var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-description p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.project-card.featured.reverse .project-description {
    text-align: left;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
}

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

.project-tech-list li {
    margin: 0 20px 5px 0;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    white-space: nowrap;
}

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

.project-links {
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 10px;
    margin-left: -10px;
    color: var(--lightest-slate);
}

.project-card.featured.reverse .project-links {
    justify-content: flex-end;
    margin-left: 0;
    margin-right: -10px;
}

.project-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: var(--lightest-slate);
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--green);
}

.project-image {
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.project-image a {
    width: 100%;
    height: 100%;
    background-color: var(--green);
    border-radius: var(--border-radius);
    vertical-align: middle;
}

.project-image a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0px;
    z-index: 3;
    transition: var(--transition);
    background-color: var(--navy);
    mix-blend-mode: screen;
    border-radius: var(--border-radius);
}

.project-image a:hover::before {
    background-color: transparent;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1) brightness(90%);
}

.project-image:hover img {
    filter: none;
}

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

.contact-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    white-space: nowrap;
}

.contact-heading::before,
.contact-heading::after {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 1px;
    background-color: var(--lightest-navy);
}

.contact-heading::before {
    margin-right: 20px;
}

.contact-heading::after {
    margin-left: 20px;
}

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

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

.contact-button {
    margin-top: 50px;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 70px;
    padding: 15px;
    text-align: center;
}

.footer-social {
    display: none;
}

.social-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.social-list li {
    margin: 0 10px;
}

.social-list a {
    padding: 10px;
    color: var(--light-slate);
    transition: var(--transition);
}

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

.footer-credit {
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    line-height: 1;
}

.footer-credit a {
    padding: 10px;
    color: var(--light-slate);
    text-decoration: none;
}

.footer-year {
    margin-top: 5px;
}

/* Side Elements */
.side-elements {
    width: 40px;
    position: fixed;
    bottom: 0;
    left: 40px;
    right: 40px;
    z-index: 10;
    color: var(--light-slate);
}

.side-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
}

.side-element.left {
    left: 40px;
}

.side-element.right {
    right: 40px;
}

.side-social-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.side-social-list::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--light-slate);
}

.side-social-list li {
    margin-bottom: 10px;
}

.side-social-list a {
    padding: 10px;
    color: var(--light-slate);
    transition: var(--transition);
}

.side-social-list a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.side-email {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.side-email a {
    margin: 20px auto;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: var(--fz-xxs);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    color: var(--light-slate);
    text-decoration: none;
    transition: var(--transition);
}

.side-email a:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.side-email::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto;
    background-color: var(--light-slate);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Touch Device Styles */
.touch-device a,
.touch-device button,
.touch-device .resume-button,
.touch-device .cta-button {
    transition: transform 0.2s ease;
}

.touch-device a:active,
.touch-device button:active,
.touch-device .resume-button:active,
.touch-device .cta-button:active {
    transform: scale(0.95);
}

.touch-device .project-card:hover .project-image::before {
    background-color: transparent;
}

.touch-device .tab-button {
    -webkit-tap-highlight-color: transparent;
}

.touch-device .mobile-nav-item a {
    padding: 10px 20px 20px;
    font-size: var(--fz-lg);
}

/* Enhanced touch styles */
.touch-device * {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.touch-device .project-image.touch-active::before {
    background-color: transparent;
}

.touch-device .project-card {
    transition: transform 0.2s ease;
}

/* Reduced motion for better performance on mobile */
.reduce-motion * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

.reduce-motion .section-hidden {
    opacity: 1;
    transform: none;
}

/* Improved focus styles for accessibility */
:focus {
    outline: 2px dashed var(--green);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px dashed var(--green);
    outline-offset: 3px;
}

/* Media Queries */
@media (max-width: 1080px) {
    .main {
        padding: 0 100px;
    }
}

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

    .header {
        padding: 0 25px;
    }

    .nav-links {
        display: none;
    }

    .nav-button {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .about-content {
        display: block;
    }

    .about-image {
        margin: 50px auto 0;
    }

    .project-card.featured .project-content,
    .project-card.featured .project-image,
    .project-card.featured.reverse .project-content,
    .project-card.featured.reverse .project-image {
        grid-column: 1 / -1;
    }

    .project-card.featured .project-content,
    .project-card.featured.reverse .project-content {
        padding: 40px 40px 30px;
        z-index: 5;
        background-color: var(--light-navy);
        border-radius: var(--border-radius);
        box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .project-card.featured .project-image {
        height: 100%;
        opacity: 0.25;
    }

    .project-description,
    .project-card.featured .project-description,
    .project-card.featured.reverse .project-description {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--light-navy);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .project-card.featured.reverse .project-content {
        text-align: left;
    }

    .project-card.featured.reverse .project-tech-list {
        justify-content: flex-start;
    }

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

    .project-card.featured.reverse .project-links {
        justify-content: flex-start;
        margin-left: -10px;
        margin-right: 0;
    }

    .side-elements {
        display: none;
    }

    .footer-social {
        display: block;
        width: 100%;
        max-width: 270px;
        margin: 0 auto 10px;
    }
    
    /* Improve tab navigation on mobile */
    .tab-list {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .tab-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .tab-button {
        min-width: 120px;
    }
}

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

    .hero-greeting {
        font-size: var(--fz-sm);
    }

    .hero-name,
    .hero-subtitle {
        font-size: 40px;
    }

    .hero-description {
        font-size: var(--fz-md);
    }

    .section-heading {
        font-size: 24px;
    }
    
    .section-heading::after {
        width: 100px;
    }

    .project-description {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .project-content {
        padding: 25px 15px;
    }
    
    .project-card.featured .project-content {
        padding: 25px;
    }
    
    .project-title {
        font-size: var(--fz-xl);
    }
    
    .project-tech-list li {
        font-size: var(--fz-xxs);
        margin: 0 10px 5px 0;
    }

    .contact-title {
        font-size: 40px;
    }
    
    /* Improve mobile menu */
    .mobile-menu {
        width: 100%;
        padding: 50px 40px;
    }
    
    .mobile-nav-item {
        margin: 0 auto 15px;
    }
    
    /* Improve tab experience on small screens */
    .tab-list {
        display: flex;
        overflow-x: auto;
        margin-bottom: 20px;
    }
    
    .tab-button {
        flex: 0 0 auto;
        padding: 0 15px;
    }
    
    .tab-panel {
        padding: 15px;
    }
    
    /* Adjust skills list for better mobile display */
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    /* Improve footer spacing */
    .footer {
        padding: 15px 0;
    }
    
    /* Adjust cursor for touch devices */
    .cursor, .cursor-follower {
        display: none;
    }
}

/* Add specific styles for very small screens */
@media (max-width: 350px) {
    .hero-name,
    .hero-subtitle {
        font-size: 32px;
    }
    
    .hero-description,
    .about-text p {
        font-size: var(--fz-sm);
    }
    
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: var(--fz-xxs);
    }
    
    .section-heading {
        font-size: 20px;
    }
}
.project-logo {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}