:root {
    --green: #2d4a3e;
    --green-light: #3d6051;
    --green-dark: #1f332b;
    --cream: #f5f0e6;
    --cream-dark: #e8e0d0;
    --terracotta: #c45c3e;
    --terracotta-light: #d97856;
    --charcoal: #2a2a2a;
    --charcoal-light: #444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--cream);
    color: var(--charcoal);
    cursor: crosshair;
    max-width: 80%;
    margin: 0 auto;
}

::selection {
    background: var(--terracotta);
    color: var(--cream);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, var(--cream) 0%, transparent 100%);
}

.logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--green);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.hero::before {
    content: 'EMBEDDED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Anton', sans-serif;
    font-size: 25vw;
    color: transparent;
    -webkit-text-stroke: 2px var(--cream-dark);
    pointer-events: none;
    white-space: nowrap;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--terracotta);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.2s;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 3px;
    background: var(--terracotta);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-name {
    font-family: 'Anton', sans-serif;
    font-size: clamp(8rem, 10vw, 18rem);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--charcoal);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.4s;
    /* transform: scaleX(1.8);
    transform-origin: left center; */
}

.hero-name .highlight {
    color: var(--green);
    display: inline-block;
    position: relative;
}

.hero-name .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.12em;
    /* background: var(--terracotta); */
    z-index: -1;
}

.hero-bottom {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 3px solid var(--green);
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.6s;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: var(--terracotta);
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--charcoal-light);
    text-transform: uppercase;
}

/* Skills Section */
.skills-section {
    padding: 8rem 3rem;
    background: var(--green);
    color: var(--cream);
}

/* Split Layout for Skills Section */
.split-layout {
    display: flex;
    min-height: 100vh;
    padding: 0;
    gap: 3rem;
}

.split-layout .left-panel {
    width: 30%;
    min-width: 350px;
    max-width: 450px;
    height: 100vh;
    position: sticky;
    top: 0;
    left: 0;
    background: var(--green);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    z-index: 5;
}

.split-layout .left-panel-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: transform, opacity;
}

.split-layout .left-panel .hero-label {
    animation: none;
    opacity: 1;
}

.split-layout .left-panel .hero-name {
    animation: none;
    opacity: 1;
    font-size: clamp(5rem, 10vw, 7rem);
    margin-bottom: 2rem;
}

.split-layout .left-panel .hero-name .highlight {
    margin-top: 1rem;
    color: var(--cream);
    display: inline-block;
    position: relative;
}

.split-layout .left-panel .hero-name .highlight::after {
    /* background: var(--terracotta); */
}

.split-layout .left-panel .hero-stats {
    animation: none;
    opacity: 1;
    /* border-top-color: var(--terracotta); */
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.split-layout .right-panel {
    flex: 1;
    padding: 8rem 3rem;
    background: var(--green);
    color: var(--cream);
}

/* Responsive adjustments for split layout */
@media (max-width: 1024px) {
    .split-layout {
        flex-direction: column;
    }

    .split-layout .left-panel {
        position: relative;
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: auto;
        padding: 4rem 1.5rem;
    }

    .split-layout .right-panel {
        padding: 4rem 1.5rem;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--cream);
}

.section-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    line-height: 0.9;
}

.section-number {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: var(--terracotta-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.skill-item {
    padding: 3rem;
    border: 3px solid var(--cream);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--green);
}

.skill-item:nth-child(1) { border-right: none; border-bottom: none; }
.skill-item:nth-child(2) { border-bottom: none; }
.skill-item:nth-child(3) { border-right: none; }

.skill-item:hover {
    background: var(--cream);
    color: var(--green);
}

.skill-item:hover .skill-index {
    color: var(--terracotta);
}

.skill-item:hover .skill-arrow {
    transform: translate(5px, -5px);
    color: var(--terracotta);
}

.skill-index {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--terracotta-light);
    margin-bottom: 1rem;
}

.skill-name {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 300;
}

.skill-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 300px;
}

.skill-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: var(--cream);
}

/* Projects Section */
.projects-section {
    padding: 8rem 3rem;
    background: var(--cream);
}

/* Projects Section Split Layout */
.projects-section.split-layout {
    background: var(--cream);
    padding: 0;
}

.projects-section.split-layout .left-panel {
    background: var(--cream);
    color: var(--charcoal);
}

.projects-section.split-layout .left-panel .hero-name .highlight {
    color: var(--terracotta);
}

.projects-section.split-layout .left-panel .hero-name .highlight::after {
    /* background: var(--terracotta); */
}

.projects-section.split-layout .left-panel-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.projects-section.split-layout .right-panel {
    background: var(--cream);
    color: var(--charcoal);
    padding: 8rem 3rem;
}

.projects-section .section-header {
    border-bottom-color: var(--green);
}

.projects-section .section-title {
    color: var(--charcoal);
}

.projects-section .section-number {
    color: var(--terracotta);
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 3px solid var(--cream-dark);
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-item:hover {
    padding-left: 2rem;
    background: linear-gradient(90deg, var(--green-light) 0%, transparent 50%);
}

.project-item:hover .project-title {
    color: var(--cream);
}

.project-item:hover .project-number {
    color: var(--terracotta-light);
}

.project-item:hover .project-meta {
    color: var(--cream-dark);
}

.project-number {
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    color: var(--charcoal-light);
    transition: color 0.3s ease;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    color: var(--charcoal);
    font-weight: 300;
}

.project-meta {
    font-size: 0.75rem;
    color: var(--charcoal-light);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

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

.tag {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--cream-dark);
    color: var(--green);
    border: none;
    transition: all 0.3s ease;
}

.project-item:hover .tag {
    background: var(--terracotta);
    color: var(--cream);
}

/* Tech Stack */
.tech-section {
    padding: 8rem 3rem;
    background: var(--terracotta);
    color: var(--cream);
}

.tech-section .section-header {
    border-bottom-color: var(--cream);
}

.tech-section .section-number {
    color: var(--cream);
    opacity: 0.6;
}

.tech-marquee {
    overflow: hidden;
    padding: 2rem 0;
    flex: 1;
}

.hero .tech-marquee {
    margin-top: 0;
    padding: 0;
    border-left: 3px solid var(--green);
    padding-left: 4rem;
}

.tech-track {
    display: flex;
    gap: 4rem;
    animation: marquee 100s linear infinite;
    will-change: transform;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tech-item {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-item:hover {
    opacity: 1;
}

.tech-divider {
    opacity: 1;
}

/* Tech items in hero section */
.hero .tech-item {
    color: var(--charcoal);
    font-size: 2rem;
}

.hero .tech-divider {
    color: var(--terracotta);
}

/* Tech items in tech section */
.tech-section .tech-item {
    color: var(--cream);
}

.tech-section .tech-divider {
    color: var(--green);
}

/* Experience Section */
.experience-section {
    padding: 8rem 3rem;
    background: var(--cream-dark);
    color: var(--charcoal);
}

.experience-section .section-header {
    border-bottom-color: var(--green);
}

.experience-section .section-number {
    color: var(--terracotta);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.experience-item {
    padding: 3rem;
    border: 3px solid var(--green);
    border-right: none;
    background: var(--cream);
    transition: all 0.3s ease;
}

.experience-item:last-child {
    border-right: 3px solid var(--green);
}

.experience-item:hover {
    background: var(--green);
    color: var(--cream);
}

.experience-item:hover .exp-year {
    color: var(--terracotta-light);
}

.experience-item:hover .exp-company {
    color: var(--terracotta-light);
}

.experience-item:hover .exp-desc {
    color: var(--cream-dark);
}

.exp-year {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    color: var(--terracotta);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.exp-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.exp-company {
    font-size: 0.8rem;
    color: var(--green);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.exp-desc {
    font-size: 0.85rem;
    color: var(--charcoal-light);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Contact */
.contact-section {
    padding: 8rem 3rem;
    background: var(--green);
    color: var(--cream);
    text-align: center;
}

.contact-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(6rem, 14vw, 12rem);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    padding: 1rem 3rem;
    background: var(--cream);
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 3px solid var(--cream);
}

.contact-link:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--cream);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding: 2rem 3rem;
    background: var(--charcoal);
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--cream-dark);
    letter-spacing: 0.1em;
}

.footer-quote span {
    color: var(--terracotta-light);
}

/* Floating Element */
.deco-circle {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 80px;
    height: 80px;
    border: 3px solid var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: 0.7rem;
    color: var(--green);
    letter-spacing: 0.1em;
    z-index: 50;
    background: var(--cream);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.deco-circle:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--cream);
    transform: rotate(90deg);
}

/* Tablet/iPad */
@media (max-width: 1024px) and (min-width: 768px) {
    /* Header */
    .header {
        padding: 1.5rem 2rem;
    }

    .logo img { height: 45px; }
    .nav {
        gap: 1.5rem;
    }
    .nav a {
        font-size: 0.7rem;
    }

    /* Hero */
    .hero {
        padding: 7rem 2rem 4rem;
    }

    .hero-label {
        font-size: 0.75rem;
    }

    .hero-name {
        font-size: clamp(5rem, 18vw, 7rem);
    }
    .hero-bottom {
        gap: 3rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .tech-item { font-size: 1rem !important; }

    .tech-track {
        display: flex;
        gap: 1rem;
        animation: marquee 7s linear infinite;
        will-change: transform;
    }

    /* Split Layout - Keep side-by-side but adjust proportions */
    
    .split-layout .left-panel {
        min-width: 300px;
        max-width: 380px;
        padding: 5rem 0rem 0rem 2.5rem !important;
    }
    .split-layout .left-panel .hero-name {
        font-size: clamp(2rem, 5vw, 6rem) !important;
    }
    .split-layout .right-panel {
        padding: 0rem 2rem 5rem !important;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skill-item {
        border-right: 3px solid var(--cream) !important;
        border-bottom: none !important;
    }
    .skill-item:last-child {
        border-bottom: 3px solid var(--cream) !important;
    }

    /* Projects */
    .project-item {
        grid-template-columns: 80px 1fr auto;
        gap: 2rem;
    }

    /* Experience */
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .experience-item:nth-child(2) {
        border-right: 3px solid var(--green);
    }

    /* Contact */
    .contact-title {
        font-size: clamp(4rem, 10vw, 8rem);
    }
    .contact-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    /* Tech items */
    .tech-item {
        font-size: 2.5rem;
    }
    .hero .tech-item {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Header */
    .header {
        padding: 1rem;
        background: var(--cream);
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
        padding: 0rem;
    }

    body {
        max-width: 100%;
    }

    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        color: var(--cream);
        font-size: 1rem;
        padding: 0;
    }

    .nav a::after {
        background: var(--terracotta);
    }
    
    .logo {
        padding-top: 1rem;
    }

    .logo img { height: 25px; }

    /* Hero */
    .hero {
        max-width: 100%;
        padding: 6rem 1.5rem 3rem;
    }

    .hero-label {
        font-size: 0.55rem;
    }

    .hero-name {
        font-size: clamp(4rem, 15vw, 8rem);
    }

    .hero-bottom {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .hero-stats {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
    }
    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.5rem;
    }

    .hero .tech-marquee {
        border-left: none;
        border-top: 3px solid var(--green);
        padding-left: 0;
        padding-top: 2rem;
        width: 100%;
    }

    .tech-item { font-size: 1rem !important; }

    .tech-track {
        display: flex;
        gap: 1rem;
        animation: marquee 7s linear infinite;
        will-change: transform;
    }

    /* Split Layout - Stack vertically on mobile */
    .split-layout {
        flex-direction: column;
        gap: 0;
    }

    .split-layout .left-panel {
        position: relative;
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: auto;
        padding: 2rem;
        padding-top: 5rem;
        padding-bottom: 0rem;
    }
    
    .split-layout .right-panel {
        padding: 1rem;
    }

    /* Skills Section */
    .skills-section, .projects-section, .tech-section, .experience-section, .contact-section {
        padding: 1rem;
        padding-bottom: 5rem;   
     }

    .skills-section.split-layout .left-panel .hero-name {
        font-size: 3rem !important;
    }

    .projects-section.split-layout .left-panel {
        padding-bottom: 0.5rem !important;
        padding-top: 6rem !important;
    }

    .projects-section.split-layout .left-panel-content {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .projects-section.split-layout .right-panel {
        padding-top: 2rem !important;
        padding-left: 2rem !important;
    }

    .projects-section.split-layout .left-panel .hero-name {
        font-size: 3rem !important;
        margin-bottom: 0rem !important;
        padding-bottom: 0rem !important;
        line-height: 1.1 !important;
    }

    .projects-section.split-layout .left-panel .hero-name .highlight {
        margin-top: 0rem !important;
        margin-bottom: 0rem !important;
        padding-bottom: 0rem !important;
        padding-top: 0rem !important;
        display: block !important;
    }

    .skills-grid { 
        grid-template-columns: 1fr; 
    }

    .split-layout .right-panel .section-number {
         font-size: 1rem !important;
    }

    .skill-item {
        border-right: 3px solid var(--cream) !important;
        border-bottom: none !important;
        padding: 2.5rem;
    }

    .skill-name {
        font-size: 1.5rem !important;
    }

    .skill-desc {
        font-size: 0.8rem;
    }

    .skill-item:last-child { border-bottom: 3px solid var(--cream) !important; }

    /* Projects Section */
    .projects-section.split-layout {
        margin-bottom: 0;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    .project-number { margin-bottom: 0.5rem; }
    .project-tags {
        display: flex;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    /* Experience Section */
    .experience-grid { grid-template-columns: 1fr; }
    .experience-item {
        border-right: 3px solid var(--green) !important;
        border-bottom: none;
    }
    .experience-item:last-child { border-bottom: 3px solid var(--green); }

    /* Contact Section */
    .contact-section {
        padding-top: 5rem;
    }

    .contact-title { font-size: clamp(3rem, 15vw, 8rem); }
    .contact-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .contact-link {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    /* Hide decorative elements */
    .deco-circle { display: none; }
    .hero::before { 
        top: 42.5%;
        font-size: 50vw; 
    }
}
