/* 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;
}

/* Constants */
:root {
    --text-primary: #000000;
    --text-secondary: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f4;
    --accent: #000000;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-primary);
    z-index: 100;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--text-primary);
}

.nav-container {
    max-width: 1400px;
    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%;
}

.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;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 0.5;
}

.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-color: var(--bg-primary);
    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 10px 20px rgba(0,0,0,0.05);
    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);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    margin-bottom: -4rem; /* Overlap image slightly for bold effect */
    z-index: 2;
    pointer-events: none;
}

.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(2rem, 8vw, 7rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 20px 20px 0px 0px var(--text-primary); /* Bold Brutalist shadow */
}

.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: 1400px;
    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-content {
        margin-bottom: -2rem;
    }
}

@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;
    }

    .hero-content {
        margin-bottom: 2rem;
    }
    
    .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: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.resume-section {
    padding: 3rem 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.2rem;
    line-height: 1.6;
    max-width: 800px;
}

.resume-divider {
    border: none;
    border-top: 4px solid var(--text-primary);
    margin: 1rem 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: 200px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.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-secondary);
    margin-bottom: 1rem;
}

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

.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: "■";
    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;
}

/* Media Queries for Resume */
@media (max-width: 768px) {
    .resume-main {
        margin: 2rem auto;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        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: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.playground-section {
    padding: 3rem 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 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

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

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

.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;
}

.project-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.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::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-color: var(--bg-secondary);
    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: 3px dashed #cccccc;
    background-color: var(--bg-secondary);
    box-shadow: 15px 15px 0px 0px var(--text-primary);
}

.placeholder-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #aaaaaa;
    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 {
        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);
    }
}
