/* =========================================================================
   PORTFOLIO — Engineering Minimalism
   Inspired by rejouice.com & icomat.co.uk
   ========================================================================= */

/* --- Font Face: Lay Grotesk --- */
@font-face {
    font-family: 'Lay Grotesk';
    src: url('fonts/laygrotesk-trial-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lay Grotesk';
    src: url('fonts/laygrotesk-trial-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lay Grotesk';
    src: url('fonts/laygrotesk-trial-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lay Grotesk';
    src: url('fonts/laygrotesk-trial-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lay Grotesk';
    src: url('fonts/laygrotesk-trial-black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --font-primary: 'Lay Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bg-light: #FAFAFA;
    --bg-dark: #0A0A0A;
    --text-dark: #1A1A1A;
    --text-dark-secondary: #6B6B6B;
    --text-light: #F0F0F0;
    --text-light-secondary: #888888;
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: 0.6s var(--ease);
}

/* --- Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
    font-size: 16px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.grid-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 5vw 5vw;
}

main {
    position: relative;
    z-index: 2;
    background: var(--bg-light);
}

section {
    padding: 12rem 0;
    position: relative;
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-dark-secondary);
    margin-bottom: 4rem;
}

.section-dark .section-title {
    color: var(--text-light-secondary);
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */
h1, h2, h3 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2.5rem 0;
    transition: all var(--transition);
}

header.scrolled {
    padding: 1.5rem 0;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.nav-links {
    display: flex;
    background: #000;
    padding: 0.4rem;
    border-radius: 100px;
}

.nav-link {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    padding: 0.7rem 1.4rem;
    border-radius: 100px;
    transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.nav-cta .btn {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
    z-index: 1001;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-dark);
    transition: all var(--transition);
}

.mobile-link:hover {
    opacity: 0.5;
    transform: translateX(10px);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 0 40px 0;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 10rem);
    max-width: 1400px;
    text-align: center;
}

.hero-title em {
    font-style: normal;
    color: var(--text-dark-secondary);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-top: 2rem;
    color: var(--text-dark-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-actions {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--bg-light);
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-outline-accent {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-outline-accent:hover {
    background: var(--text-dark);
    color: var(--bg-light);
    border-color: var(--text-dark);
}

/* =========================================================================
   ABOUT - Word Reveal
   ========================================================================= */
.statement-text {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.statement-text .word {
    display: inline-block;
}

/* About Details responsive grid */
.about-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-light);
    padding-top: 4rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-highlights li {
    display: flex;
    gap: 1rem;
    line-height: 1.6;
    color: var(--text-dark-secondary);
}

.about-highlights strong {
    color: var(--text-dark);
}

.about-profile-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

/* =========================================================================
   SKILLS - Pinned
   ========================================================================= */
.skills-pinned {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.skills-pinned-track {
    display: flex;
    gap: 3rem;
    padding: 0 4rem;
}

.skill-category {
    min-width: 450px;
    height: 550px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition);
}

.skill-category:hover {
    border-color: #000;
    transform: scale(1.02);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dark-secondary);
}

/* =========================================================================
   PROJECTS
   ========================================================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.project-card:hover {
    border-color: #000;
    transform: translateY(-15px);
}

.section-dark .project-card {
    background: rgba(255,255,255,0.03);
    border-color: var(--border-dark);
}

.section-dark .project-card .project-title {
    color: #fff;
}

.project-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dark-secondary);
    margin-bottom: 2rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-dark-secondary);
}

/* Experience cards (dark section) */
.exp-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    border-radius: 32px;
    padding: 4rem;
    transition: all var(--transition);
}

.exp-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.exp-card .project-title {
    color: #fff;
}

.exp-card .project-subtitle {
    color: var(--text-light-secondary);
}

.exp-card .tag {
    border-color: var(--border-dark);
    color: var(--text-light-secondary);
}

.exp-card strong {
    color: var(--text-light);
}

/* Project cards (dark section) */
.proj-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    border-radius: 32px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.proj-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.proj-card .project-title {
    color: #fff;
}

.proj-card .project-subtitle {
    color: var(--text-light-secondary);
}

.proj-card .project-desc {
    color: var(--text-light-secondary);
}

.proj-card .tag {
    border-color: var(--border-dark);
    color: var(--text-light-secondary);
}

.proj-card a {
    color: #fff;
    transition: opacity var(--transition);
}

.proj-card a:hover {
    opacity: 0.5;
}

/* Certification items */
.cert-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition);
}

.cert-item:hover {
    border-color: var(--text-dark);
}

/* =========================================================================
   FOOTER - SlideReveal
   ========================================================================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    color: #fff;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-info .logo-text {
    font-size: clamp(3rem, 12vw, 15rem);
    display: block;
    line-height: 0.8;
    margin-bottom: 4rem;
    font-weight: 900;
}

.social-link {
    font-size: 2.5rem;
    margin: 0 1.5rem;
    opacity: 0.4;
    transition: all var(--transition);
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .hero-title { font-size: 8vw; }
    .project-card { padding: 3rem; }
    .skill-category { min-width: 400px; padding: 3rem; }
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
}

@media (max-width: 768px) {
    main { margin-bottom: 0 !important; }
    footer { position: relative; height: auto; padding: 6rem 2rem; z-index: 3; }
    
    .nav-links, .nav-cta { display: none; }
    .menu-btn { display: block; }
    .nav-container { padding: 0 1.5rem; }

    section { padding: 6rem 0; }
    
    .about-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
    .project-card, .proj-card, .exp-card { padding: 1.5rem; border-radius: 20px; }
    .project-title { font-size: 1.3rem; }
    .project-subtitle { margin-bottom: 1rem; }

    .skills-pinned { height: auto; overflow: visible; padding: 4rem 0; }
    .skills-pinned-track { 
        flex-direction: column; 
        padding: 0 1.5rem;
        gap: 1rem;
        width: 100%;
        transform: none !important; 
    }
    .skill-category { 
        min-width: 100%; 
        height: auto; 
        padding: 2rem; 
        border-radius: 20px;
    }

    .hero-section { padding: 120px 1.5rem 40px 1.5rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    
    .statement-text { font-size: 1.8rem; line-height: 1.2; }

    .footer-info .logo-text { font-size: 2.5rem; line-height: 1; }

    .container { padding: 0 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .hero-title { font-size: 2.2rem; }
    .statement-text { font-size: 1.5rem; }
    .project-card, .proj-card, .exp-card { padding: 1.2rem; }
}
