@font-face {
    font-family: 'proxima-nova';
    src: url('https://use.typekit.net/af/d7ff92/00000000000000007735e609/31/l?subset_id=2&fvd=n4&v=3') format('woff2'),
         url('https://use.typekit.net/af/d7ff92/00000000000000007735e609/31/d?subset_id=2&fvd=n4&v=3') format('woff'),
         url('https://use.typekit.net/af/d7ff92/00000000000000007735e609/31/a?subset_id=2&fvd=n4&v=3') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

@font-face {
    font-family: 'amador';
    src: url('https://use.typekit.net/af/2ef718/00000000000000007735b4e4/31/l?subset_id=2&fvd=n4&v=3') format('woff2'),
         url('https://use.typekit.net/af/2ef718/00000000000000007735b4e4/31/d?subset_id=2&fvd=n4&v=3') format('woff'),
         url('https://use.typekit.net/af/2ef718/00000000000000007735b4e4/31/a?subset_id=2&fvd=n4&v=3') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-stretch: normal;
    font-display: swap;
}

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

:root {
    --primary-color: #fff;
    --secondary-color: #ccc;
    --background-color: #000;
    --text-color: #fff;
    --text-light: #aaa;
    --border-color: #333;
    --font-sans: 'proxima-nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'amador', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 13px;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1000;
    padding: 0;
    height: 140px;
}

.navbar.scrolled {
    background-color: transparent;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.12em;
    transition: color 0.3s ease;
    text-transform: none;
    font-family: 'Times New Roman', Times, serif;
    position: relative;
}

.main-nav a:hover {
    color: var(--text-color);
}

.main-nav a.active {
    color: var(--text-color);
    text-decoration: none;
}

.siteTitle {
    display: flex;
    align-items: center;
}

.siteTitle a {
    display: block;
}

#logo {
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

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

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

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

main {
    margin-top: 0;
}

/* Intro Section */
.intro-section {
    background-color: var(--background-color);
    padding: 4rem 0;
    min-height: 60vh;
}

.intro-title {
    font-family: var(--font-serif);
    font-size: 96px;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: 0em;
    color: var(--text-color);
}

.intro-body {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
}

.intro-body p {
    margin-bottom: 1rem;
}

/* Portfolio Section */
.folio-section {
    background-color: var(--background-color);
    padding: 0;
    min-height: 100vh;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.portfolio-item {
    background-color: var(--background-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.portfolio-image-wrapper {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111;
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover .portfolio-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.project-title {
    text-align: center;
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .project-title {
    transform: translateY(0);
}

.project-title h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 96px;
    font-weight: 400;
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: 0em;
    color: var(--text-color);
}

.contact-section {
    padding: 4rem 0;
}

.cv-section {
    padding: 4rem 0;
}

.cv-content,
.contact-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 380px;
    text-align: left;
    orphans: 3;
    widows: 3;
    text-wrap: pretty;
    hyphens: none;
    letter-spacing: 0.01em;
    padding-top: 2rem;
}

.cv-content h3 {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 400;
    margin-top: 4rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 0em;
    color: var(--text-color);
}

.cv-content h3:first-of-type {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.cv-content p {
    margin-bottom: 1.5rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cv-content p:first-of-type {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cv-content a,
.contact-content a {
    color: var(--text-color);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-content p:first-of-type {
    margin-bottom: 2rem;
}

.cv-content a:hover,
.contact-content a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.project-modal.guinness-project .modal-overlay {
    background-color: #ffffff;
}

.modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
    padding-bottom: 120px;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
    opacity: 0.8;
    font-family: var(--font-sans);
}

.modal-close:hover {
    opacity: 1;
}

.project-modal.guinness-project .modal-close {
    color: #000;
}

.modal-body {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    padding-top: 2rem;
}

.modal-text {
    color: #fff;
    padding-right: 2rem;
    display: block;
    width: 100%;
    min-width: 300px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.modal-text p {
    color: #fff !important;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
}

.project-modal.guinness-project .modal-text p {
    color: #000 !important;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 96px;
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: 0em;
    color: #fff;
}

.modal-description {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.8;
    color: #fff;
    font-weight: 500;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-images img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    filter: brightness(0.85) contrast(1.1);
}

.project-modal.guinness-project .modal-text {
    color: #000;
}

.project-modal.guinness-project .modal-title {
    color: #000;
}

.project-modal.guinness-project .modal-description {
    color: #000;
}

.modal-images.guinness-project img {
    filter: none;
}

.modal-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    background-color: transparent;
    z-index: 1002;
}

.modal-nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 18px;
    padding: 12px 24px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    min-width: 80px;
}

.modal-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.modal-nav-index {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
}

.project-modal.guinness-project .modal-navigation {
    background-color: transparent;
}

.project-modal.guinness-project .modal-nav-btn {
    color: #000;
    border-color: rgba(0, 0, 0, 0.3);
}

.project-modal.guinness-project .modal-nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .main-nav ul {
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 17px;
    }

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

    .portfolio-item {
        border-right: none;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-text {
        padding-right: 0;
    }

    .modal-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 100px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    }

    main {
        margin-top: 0;
    }

    .nav-container {
        padding: 0 15px;
        justify-content: center;
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 15px;
    }

    .main-nav {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        padding: 0;
    }

    .main-nav a {
        font-size: 18px;
    }

    .siteTitle {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    #logo {
        max-height: 75px;
    }

    .intro-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 48px;
    }

    .cv-content {
        padding-left: 0;
    }

    .project-title h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        padding: 2rem 1rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .portfolio-title {
        font-size: 1.3rem;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 36px;
    }
    
    .modal-description {
        font-size: 18px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--text-color);
    color: var(--background-color);
}

/* Ensure all text is white */
.intro-body p,
.cv-content p,
.contact-content p {
    color: var(--text-color);
    font-weight: 500;
}

/* Image Loading */
.portfolio-image {
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image.loaded {
    opacity: 1;
}

/* Footer */
.footer {
    position: relative;
    background-color: #000;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-text-box {
    text-align: left;
    max-width: 400px;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 18px;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.footer-body-copy {
    font-family: var(--font-sans);
}

.footer-button {
    display: block;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.footer-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.thriller-logo-img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.thriller-studios-title {
    font-family: var(--font-serif);
    font-size: 1.4em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .thriller-logo {
        font-size: 48px;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-text-box {
        text-align: center;
    }
    
    .footer-text {
        text-align: left;
    }
    
    .thriller-logo-img {
        max-width: 168px;
    }
}

