:root {
    --primary-font: 'Inter', sans-serif;
    --serif-font: 'Cormorant Garamond', serif;
    --title-font: 'Bebas Neue', sans-serif;
    --text-color: #111111;
    --bg-color: #f4f4f4;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --accent-color: #000000;
}

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

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden; 
    height: 100vh;
    width: 100vw;
}

.background {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    filter: contrast(1.1) brightness(0.9);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    z-index: -1;
    pointer-events: none;
}

.navigation {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 30px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
}

/* Click zones for easier navigation */
.click-zone {
    position: fixed;
    top: 0;
    width: 10vw;
    height: 100vh;
    z-index: 50;
    cursor: pointer;
}
.click-zone.left {
    left: 0;
    cursor: w-resize;
}
.click-zone.right {
    right: 0;
    cursor: e-resize;
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18vh 40px 40px;
}

.title-slide, .footer-slide {
    align-items: center;
    padding-top: 40px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 60; 
}

/* Typography elements */
.eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #444;
}

.title {
    font-family: var(--title-font);
    font-size: 4rem;
    line-height: 0.85;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
    font-style: italic;
    font-family: var(--serif-font);
    letter-spacing: 0.5px;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 30px 0;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 450px;
    margin-bottom: 30px;
    font-weight: 400;
}

.contact-info p {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.main-hero {
    width: 100%;
    max-width: 500px;
}

/* Experience */
.experience-slide {
    align-items: center;
}

.newspaper-grid {
    width: 100%;
    max-width: 850px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    position: relative;
    padding: 30px; /* Override default glass-card padding */
}

.grid-header {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.section-title {
    font-family: var(--title-font);
    font-size: 2.8rem;
    letter-spacing: 1px;
    line-height: 1;
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 5px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newspaper-grid::after {
    content: '';
    position: absolute;
    top: 100px;
    bottom: 30px;
    left: 50%;
    width: 1px;
    background: rgba(0,0,0,0.15);
}

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

.job h3 {
    font-family: var(--title-font);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 2px;
    line-height: 1;
}

.job .role {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.job .date {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.job .desc {
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 400;
}

.separator {
    width: 100%;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.skills-box {
    padding: 5px 0;
}

.skills-box h3 {
    font-family: var(--title-font);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    line-height: 1;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    font-size: 0.85rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
    font-weight: 400;
}

.skills-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #888;
}

/* Title slides */
.title-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    padding: 60px 80px;
}

.huge-title {
    font-family: var(--title-font);
    font-size: 3.5rem;
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.title-card p {
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
}

.scroll-hint {
    margin-top: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #555;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Projects */
.project-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    height: 75vh;
    gap: 40px;
    align-items: stretch;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visual-link {
    flex: none; /* Do not force it to take 1.2 width */
    height: 100%;
    width: auto; /* Hug the image width */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: center; /* Center vertically if image is smaller */
}

.visual-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.project-visual {
    /* Default for videos */
    flex: 1.2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 60;
}

/* Override project-visual for visual-links to hug the image tightly */
a.project-visual.visual-link {
    flex: none;
    background: transparent;
}

.pdf-visual {
    background: #fff;
}

.project-number {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.project-title {
    font-family: var(--title-font);
    font-size: 3rem;
    line-height: 0.9;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 400;
}

.view-btn {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.view-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.video-visual video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.preview-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    background-color: transparent;
    border-radius: 12px;
}

/* CSS Fake Covers for PDFs and LinkedIn */
.css-cover {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* LinkedIn Cover */
.linkedin-cover {
    background: #f3f2ef;
    padding: 40px;
    justify-content: center;
}

.li-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.li-avatar {
    width: 50px;
    height: 50px;
    background: #0a66c2;
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--title-font);
}

.li-meta {
    display: flex;
    flex-direction: column;
}

.li-meta strong {
    font-size: 1.1rem;
    color: #000;
}

.li-meta span {
    font-size: 0.8rem;
    color: #666;
}

.li-body {
    background: #fff;
    padding: 0 20px 20px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.li-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}

.li-image {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px dashed #ccc;
}

/* PDF Covers */
.pdf-cover {
    padding: 60px;
    background: #fdfdfd;
    background-image: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    justify-content: space-between;
}

.alternate-cover {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pdf-tag {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    display: inline-block;
    align-self: flex-start;
}

.pdf-title-box {
    margin: auto 0;
}

.pdf-title-box h1 {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    line-height: 1.1;
    color: #111;
    margin-bottom: 20px;
}

.pdf-title-box p {
    font-family: var(--primary-font);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: #555;
}

.pdf-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.mt-4 { margin-top: 40px; }
.contact-links {
    display: flex;
    gap: 20px;
}

@media (max-width: 900px) {
    .newspaper-grid {
        grid-template-columns: 1fr;
    }
    .newspaper-grid::after {
        display: none;
    }
    .project-container {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .project-visual {
        min-height: 400px;
    }
    .title {
        font-size: 6rem;
    }
    .pdf-title-box h1 {
        font-size: 2.5rem;
    }
}

/* Audio Button */
.audio-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    font-family: var(--primary-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.wink-text {
    display: block;
    margin-top: 15px;
    font-family: var(--serif-font);
    font-size: 1rem;
    font-style: italic;
    color: #333;
    letter-spacing: 0.5px;
}
