@font-face {
    font-family: 'MontserratLocal';
    src: url('../assets/fonts/Montserrat-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratLocal';
    src: url('../assets/fonts/Montserrat-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --bg-dark: #33312c;
    --bg-light: #d9dc98;
    --text-dark: #33312c;
    --text-light: #d9dc98;
    --font-main: 'MontserratLocal', 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-main);
    overflow-x: hidden;
    background-color: var(--bg-dark); /* Fallback */
}

/* Scrollytelling Canvas Sections */
.scrolly-section {
    position: relative;
    height: 300vh; /* Adjust for scroll duration */
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
}

canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* Overlays on Canvas */
.logo-fixed {
    position: absolute;
    top: 40px;
    left: 50px;
    z-index: 20;
}

.logo {
    height: 80px;
}

.title-overlay.center {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
}

.text-center {
    text-align: center;
}

.huge-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 8rem;
    line-height: 0.8;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: -2px;
}

.quote-overlay {
    position: absolute;
    z-index: 10;
}

.quote-overlay.bottom-left {
    bottom: 50px;
    left: 80px;
}

.quote-overlay.bottom-right {
    bottom: 50px;
    right: 80px;
    text-align: right;
}

.quote-overlay p {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 400;
}

.chat-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: none;
    padding: 12px 40px;
    font-family: var(--font-main);
    font-size: 1.6rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.3s;
    display: inline-block;
    text-decoration: none;
}

.chat-btn:hover {
    opacity: 0.8;
}

/* Content Blocks */
.content-block {
    padding: 150px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.content-block .container {
    width: 100%;
}

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

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

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

.block-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 10rem;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 60px;
    letter-spacing: -3px;
    margin-left: -5px;
}

.block-text {
    max-width: 900px;
    margin-left: 0;
}

.block-text p {
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.block-text ul {
    list-style-position: inside;
    margin-top: 20px;
}

.block-text ul li {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-family: var(--font-main);
    color: var(--text-light);
    font-weight: 900;
    font-size: 1.9rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.portfolio-overlay p {
    color: #fff;
    font-size: 1rem;
    margin: 0;
}

/* Social Links */
.social-links {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

.huge-social {
    display: block;
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    color: var(--text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.social-divider {
    border: none;
    height: 4px;
    background-color: var(--bg-light);
    width: 300px;
    margin: 10px auto;
}

/* Footer */
.site-footer {
    padding: 40px 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer p {
    font-size: 1.4rem;
}

.site-footer a {
    color: var(--text-light);
    text-decoration: none;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .huge-title { font-size: 5rem; }
    .block-title { font-size: 5rem; }
    .huge-social { font-size: 5rem; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .logo-fixed {
        left: 20px;
        top: 20px;
    }
    .title-overlay {
        /* Additional properties */
    }
    .huge-title { font-size: 4rem; transform: scaleY(1.2); }
    .block-title { font-size: 3rem; transform: scaleY(1.2); }
    .huge-social { font-size: 3rem; transform: scaleY(1.2); }
    .content-block { padding: 60px 20px; }
    .quote-overlay.bottom-left, .quote-overlay.bottom-right {
        bottom: 30px;
        left: 20px;
        right: 20px;
        text-align: left;
    }
    .social-divider { width: 80%; }
    .footer-content {
        flex-direction: column-reverse;
        gap: 10px;
        text-align: center;
    }
    .logo { height: 40px; }
    .quote-overlay p { font-size: 1.2rem; }
    .chat-btn { font-size: 1.2rem; padding: 10px 30px; }
    .block-text p, .block-text ul li { font-size: 1.2rem; }
    .portfolio-overlay h3 { font-size: 1.4rem; }
    .site-footer p { font-size: 1rem; white-space: nowrap; }
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-light);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
