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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    background-image:
        linear-gradient(to bottom, rgba(247, 241, 232, 0.75), rgba(255, 255, 255, 0) 18rem),
        radial-gradient(circle at top left, rgba(0, 0, 0, 0.04), transparent 28rem);
}

/* Constants */
:root {
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #8b8b8b;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --bg-accent: #f7f1e8;
    --accent: #000000;
    --surface-border: rgba(0, 0, 0, 0.14);
    --container-wide: 1400px;
    --container-content: 1100px;
}

a {
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

img {
    display: block;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--text-primary);
}

.nav-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left, .nav-right {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-link {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.2rem;
}

/* Hover Micro-animation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.nav-link[aria-current="page"]::after {
    width: 100%;
}

.logo {
    font-weight: 900;
    font-size: 2.5rem;
    letter-spacing: -0.05em;
    flex: 0 1 auto;
    text-align: center;
    text-transform: uppercase;
}

.social-icon {
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 0.5;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.mobile-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu {
    display: flex; /* Keep it flex to maintain structure */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    flex-direction: column;
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f4ee 100%);
    border-top: 2px solid var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 0;
    gap: 1.5rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-link-mobile {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.5rem 0;
}

.mobile-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 90px);
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 500px);
    gap: 4rem;
    justify-content: space-between;
    align-items: center;
    padding: 5.5rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: left;
    margin-bottom: 0;
    z-index: 2;
}

.hero-kicker,
.section-kicker {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 5vw, 4.25rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.hero-description {
    max-width: 36rem;
    margin-top: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0.9rem 1.35rem;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    background-color: rgba(255, 255, 255, 0.92);
}

.hero-action:hover {
    transform: translateY(-2px);
}

.hero-action-primary {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.hero-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #f4f4f4 0%, #ece5da 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 20px 20px 0px 0px var(--text-primary); /* Bold Brutalist shadow */
}

.hero-image-container::before {
    content: '';
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    z-index: 2;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-container:hover .hero-image {
    transform: scale(1.03);
}

/* Footer Section */
.footer {
    border-top: 3px solid var(--text-primary);
    padding: 4rem 2rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.footer-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.footer-col {
    font-weight: 400;
}

.footer-col p {
    font-size: 1rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact {
    text-align: right;
}

.whatsapp-link {
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.whatsapp-link:hover {
    color: #cccccc;
    transform: translateY(-2px);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 4.5rem;
    }

    .hero-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    
    .logo {
        font-size: 2rem;
    }

    .nav-left {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 3rem 1.5rem 4rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-image-container {
        box-shadow: 10px 10px 0px 0px var(--text-primary);
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .contact {
        text-align: center;
    }
}

/* --- RESUME PAGE STYLES --- */
.resume-main {
    max-width: var(--container-content);
    margin: 4rem auto;
    padding: 0 2rem;
}

.resume-section {
    padding: 3.5rem 0;
}

.resume-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.resume-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.resume-summary {
    margin-top: 2rem;
    font-size: 1.15rem;
    line-height: 1.85;
    max-width: 46rem;
    color: var(--text-secondary);
}

.resume-divider {
    border: none;
    border-top: 4px solid var(--text-primary);
    margin: 0.5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--surface-border);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.job-role {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.job-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.job-location {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.job-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 0.9rem;
    max-width: 42rem;
}

.job-bullets {
    list-style: none;
    padding: 0;
}

.job-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.job-bullets li::before {
    content: "\25A0";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skills-list li {
    border: 2px solid var(--text-primary);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background-color: rgba(247, 241, 232, 0.8);
}

/* Media Queries for Resume */
@media (max-width: 768px) {
    .resume-main {
        margin: 2rem auto;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 2.5rem;
    }
    
    .split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-date {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* --- PLAYGROUND PAGE STYLES --- */
.playground-main {
    max-width: var(--container-content);
    margin: 4rem auto;
    padding: 0 2rem;
}

.playground-section {
    padding: 3.5rem 0;
}

.playground-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.playground-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.playground-divider {
    border: none;
    border-top: 4px solid var(--text-primary);
    margin: 2rem 0;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 6rem;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--surface-border);
}

.project-card.has-media {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.project-card:last-child {
    margin-bottom: 0;
}

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

.project-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1;
}

.project-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-tech li {
    border: 2px solid var(--text-primary);
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background-color: rgba(247, 241, 232, 0.85);
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.project-link {
    display: inline-block;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    align-self: flex-start;
    padding-bottom: 0.25rem;
}

.project-link:hover {
    transform: translateY(-2px);
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--text-primary);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-link:hover::after {
    width: 100%;
}

.project-images {
    width: 100%;
    position: relative;
    background: linear-gradient(145deg, #f4f4f4 0%, #ece5da 100%);
    aspect-ratio: 16/10;
    overflow: hidden;
    box-shadow: 15px 15px 0px 0px var(--text-primary); /* Bold Brutalist shadow */
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #b8b0a3;
    background: linear-gradient(145deg, rgba(247, 241, 232, 0.95), rgba(240, 240, 240, 0.95));
    box-shadow: 15px 15px 0px 0px var(--text-primary);
}

.placeholder-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #6f6a63;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
    user-select: none;
}

.project-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-images:hover .project-img-main {
    transform: scale(1.03);
}

/* Media Queries for Playground */
@media (max-width: 1024px) {
    .project-card,
    .project-card.has-media {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }

    .project-info {
        order: 1; /* Text on top */
    }

    .project-images {
        order: 2; /* Image below */
    }
}

@media (max-width: 768px) {
    .playground-main {
        margin: 2rem auto;
    }
    
    .project-card {
        margin-bottom: 4rem;
    }
    
    .project-images {
        box-shadow: 10px 10px 0px 0px var(--text-primary);
    }
}


