:root {
    --bg-white: #FFFFFF;  
    --bg-offwhite: #F8F8F8; 
    --text-primary: #222222; 
    --text-secondary: #7B7B7B; 
    --accent-green: #7cb69d; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; 
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    margin: 0;
}

/* SECTIONS */
section {
    padding: 60px 7% 50px;
    min-height: 100vh;
    background-color: var(--bg-offwhite); 
    border-bottom: #cdcdcd 1px solid;
}

/* NAVIGATION BAR - START */
nav {
    background: var(--bg-offwhite);
    padding: 1.2rem 5%;
    position: fixed;
    width: 100%;
    border-bottom: #c5c5c5 1px solid;
    opacity: .95;
    z-index: 1000;
    top: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 90px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase; 
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
}
/* NAVIGATION BAR - END */

/* HERO CONTAINER - START */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 100px; 
    max-width: 1200px;
    width: 100%;
}

/* LEFT SIDE IMAGE */
.hero-image {
    width: 420px; 
    height: 520px;
    border: #bababa 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: transform 0.3s ease;
}

.hero-image img {
    width: 400px; 
    height: 500px;
    object-fit: cover;
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: transform 0.3s ease;
}

/* RIGHT SIDE TEXT */
.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-text h1 span {
    color: var(--accent-green);
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* HERO CONTAINER - END */

/* HERO CONTAINER - START */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 100px; 
    max-width: 1200px;
    width: 100%;
}

/* LEFT SIDE IMAGE */
.hero-image {
    width: 420px; 
    height: 520px;
    border: #bababa 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: transform 0.3s ease;
}

.hero-image img {
    width: 400px; 
    height: 500px;
    object-fit: cover;
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: transform 0.3s ease;
}

/* RIGHT SIDE TEXT */
.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-text h1 span {
    color: var(--accent-green);
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* HERO CONTAINER - END */

/* ABOUT CONTAINER - START */
.about {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    display: flex;
    gap: 100px; 
    max-width: 1200px;
    width: 100%;
}

/* LEFT SIDE IMAGE */
.about-image img {
    width: 350px; 
    height: 440px;
    border-radius: 10px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

/* RIGHT SIDE TEXT */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.about-text h1 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: lighter;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    line-height: 1.5;
}

/* ABOUT CONTAINER - END */

/* WORK CONTAINER - START */

.filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

.filter-box {
    background-color: var(--bg-white);
    border: 1px solid #cdcdcd;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    gap: 5px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 5px;
}

.filter-btn.active {
    background-color: var(--accent-green);
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

.works {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    flex-direction: column;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 20px;
}

/* WORK - TILES */
.tile-image {
    width: 100%;
    aspect-ratio: 16 / 11; 
    border-radius: 8px;
    cursor: pointer;
    background-color: #eee;
    border: #e2e2e2 2px solid;
}

.tile-image img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 10px;
}

.tile-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This keeps the 16:9 ratio we set earlier */
    display: block;
}

.work-tile {
    cursor: pointer;
}

.work-tile h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-block: 20px;
    letter-spacing: 1px;
}

.work-tile:hover h3 {
    text-decoration: underline;  
}

/* WORK - MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(113, 113, 113, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    display: flex;
    background: #fff;
    padding: 30px;
    width: 80%;
    height: 70%;
    gap: 20px;
}

.modal-image {
    display: flex;
    flex: 6;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

#modalVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.modal-content img {
    object-fit: contain;
    width: 100%;
}

.modal-text {
    display: flex;
    flex: 4;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.modal-text h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.modal-text p {
    font-size: 1rem;
    color: rgb(88, 88, 88);
    line-height: 1.6;
    letter-spacing: .5px;
    font-weight: lighter;
    
}

.preview-btn {
    color: rgb(0, 0, 254);
    text-decoration: none;
}

.preview-btn:hover {
    color: rgb(100, 100, 245);
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 15px;  
    right: 20px;   
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #666; 
}

/* WORK CONTAINER - END */

/* CONTACT SECTION - START */

.contact-section {
    padding: 120px 10%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    gap: 80px;
}

/* Left Side Styling */
.contact-left {
    flex: 1;
}

.contact-left h2 {
    font-size: 4rem;
    color: #222222; /* Primary */
    line-height: 1.1;
    margin-top:  0;
    margin-bottom: 25px;
    border: none; /* Removing the border we had earlier for a cleaner look */
    padding: 0;
}

.contact-left h2 span {
    color: #7B7B7B; /* Secondary */
}

.contact-left p {
    font-size: 1.1rem;
    color: #7B7B7B;
    max-width: 450px;
    line-height: 1.8;
}

/* Right Side Styling */
.contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 47px;
}

.contact-item small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7B7B7B;
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.contact-item a {
    font-size: 1.8rem;
    color: #222222;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2ecc71; /* A subtle green pop on hover */
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #222222;
    border-bottom: 1px solid #7B7B7B;
    padding-bottom: 2px;
}

/* CONTACT SECTION - START */

/* BUTTON */
.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-green);
    transform: translateY(-3px);
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    
    section {
        padding: 80px 5% 40px; 
        height: auto; 
        min-height: auto;
    }

    /* NAVIGATION */
    .nav-links {
        gap: 20px; 
    }
    
    .nav-links a {
        font-size: 0.7rem;
    }

    /* HERO SECTION */
    .hero {
        height: auto;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        height: auto !important; 
        min-height: 0 !important;
        gap: 40px !important;
    }

    .hero-image {
        width: 120px !important; 
        height: 180px !important;
    }

    .hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .hero-text {
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.6rem!important;
    }

    .hero-text p {
        font-size: 1rem!important;
    }

    /* ABOUT SECTION */
    .about {
        height: auto;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        gap: 20px !important;
        text-align: center;
    }

    .about-image {
        display: flex;
        width: 100%;
        margin-left: 0;

    }

    .about-image img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }


    .about-text {
        text-align: left !important;
        gap: 0 !important;
        text-align: center;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .modal-content {
        flex-direction: column; 
        width: 100%;
        height: 100%;
        overflow-y: auto; 
    }

    .modal-image {
        width: 100%;
    }

    .modal-text h2 {
        font-size: 1.5rem;
    }

    /* CONTACT SECTION */
    .contact-section {

        padding: 80px 5% 40px; 
    }

    .contact-container {
        flex-direction: column;
        gap: 50px;
    }

    .contact-left h2 {
        font-size: 2.5rem;
    }

    .contact-item a {
        font-size: 1.5rem !important;
        word-break: break-all; 
    }

    .social-links a{
        font-size: 1.4rem !important;
    }
}

/* TABLET VIEW */
@media (max-width: 1024px) {

    .hero-container {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        height: auto; 
        gap: 60px;    
    }

    .hero-image {
        width: 300px !important; 
        height: 370px !important;
        flex: none;
    }

    .hero-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .hero-text h1 {
        font-size: 2.8rem; /* Shrink text slightly so it fits next to the image */
    }

    .about-container {
        gap: 40px;
    }

    .about-image img {
        width: 280px;
        height: auto;
    }


    .works-grid {
        gap: 25px;
    }

    .contact-left h2 {
        font-size: 3rem;
    }
    
    .contact-item a {
        font-size: 1.5rem;
    }
}