/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #131313;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-gray: #666666;
    --accent: #000000;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.body-start {
    padding-top: 0;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--dark-bg);
    padding: 25px 0;
    transition: all 0.3s ease;
}

.navigation-items {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--white);
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

.heading-4-white {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    margin: 0;
}

.navigation-wrap {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navigation-menu {
    display: flex;
    gap: 30px;
}

.navigation-item {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
    position: relative;
}

.navigation-item:hover {
    opacity: 0.6;
}

.navigation-item.active {
    opacity: 1;
}

.menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-icon {
    width: 22px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.section-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.introduction {
    padding: 180px 0 120px;
    max-width: none;
}

.heading-jumbo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--white);
}

.p-introduction {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 950px;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 80px 40px;
    padding: 60px 0 120px;
}

.work-card {
    text-decoration: none;
    color: var(--white);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-8px);
}

.work-card:hover .card-cover-image {
    filter: brightness(1.1);
}

.card-cover-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: filter 0.3s ease;
    background-color: #2a2a2a;
}

.work-card .heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--white);
}

.paragraph-default {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer-wrap {
    padding: 60px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.footer-link {
    color: var(--white);
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    opacity: 0.6;
}

.footer-icon {
    width: 24px;
    height: 24px;
    color: var(--white);
}

/* Special Link Styles */
a.paragraph-link {
    text-decoration: none;
    color: black;
    box-shadow: inset 0 -2px 0 0 black;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    padding: 0 3px;
    box-sizing: border-box;
}

a.paragraph-link:hover {
    border: none;
    box-shadow: inset 0 -30px 0 0 black;
    color: #FFF;
}

a.paragraph-link-inverted {
    text-decoration: none;
    color: white;
    box-shadow: inset 0 -2px 0 0 white;
    transition: all 0.2s ease-in-out;
    padding: 0 3px;
    box-sizing: border-box;
}

a.paragraph-link-inverted:hover {
    border: none;
    box-shadow: inset 0 -30px 0 0 white;
    color: #000;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navigation-items {
        padding: 0 20px;
    }

    .navigation-menu {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .navigation-menu.active {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--dark-bg);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .section-wide {
        padding: 0 20px;
    }

    .introduction {
        padding: 120px 0 80px;
    }

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

    .footer-wrap {
        padding: 40px 20px 60px;
    }
}

@media screen and (max-width: 520px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-card {
    animation: fadeIn 0.6s ease forwards;
}

.work-card:nth-child(1) { animation-delay: 0.1s; }
.work-card:nth-child(2) { animation-delay: 0.2s; }
.work-card:nth-child(3) { animation-delay: 0.3s; }
.work-card:nth-child(4) { animation-delay: 0.4s; }
.work-card:nth-child(5) { animation-delay: 0.5s; }
.work-card:nth-child(6) { animation-delay: 0.6s; }

/* About Page Styles */
.div-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-section {
    padding: 180px 0 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-wrap h3.heading.about {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.about-wrap .paragraph-default {
    font-size: 20px;
    line-height: 1.6;
    color: var(--white);
}

.about-me-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin: 80px 0;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    max-height: 600px;
}

.about-text-wrap .paragraph-default {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.heading-2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 500;
    margin: 80px 0 60px;
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.skillset-wrap {
    padding: 0;
}

.skillset-wrap .heading-4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
}

.skillset-wrap .p-body-2 {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 768px) {
    .about-section {
        padding: 120px 0 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-me-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 60px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 80px;
    }

    .div-narrow {
        padding: 0 20px;
    }
}

/* Utility Classes */
.dropshadow {
    -webkit-filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.08));
    filter: drop-shadow(0px 12px 20px rgba(0, 0, 0, 0.08));
}

/* Video Support */
.mp4 video {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

video::-internal-media-controls-overlay-cast-button {
    display: none;
}
