:root {
    --bbdo-red: #ff0000;
    --white: #ffffff;
    --black: #000000;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

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

img,
video {
    max-width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-primary);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

header.scrolled {
    padding: 0.5rem 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

header.on-dark {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -2px;
    z-index: 1001;
}

.logo img {
    max-height: 45px;
    width: auto;
    transition: max-height 0.3s ease;
}

header.scrolled .logo img {
    max-height: 45px;
}

.logo a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

header.on-dark .logo a {
    color: var(--white);
}

.burger-menu {
    cursor: pointer;
    width: 30px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

header.on-dark .burger-line {
    background-color: var(--white);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #cc0000 0%, #660000 100%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3.5rem;
    color: var(--white);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.4s ease;
}

.menu-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.menu-content {
    width: 85%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-left {
    flex: 1;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-link {
    font-size: 3rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.menu-link:hover {
    color: #ffcccc;
    transform: translateX(15px);
}

.menu-link.active {
    color: var(--white);
    background: linear-gradient(to right, #ff0000, transparent);
    -webkit-background-clip: text;
    background-clip: text;
}

.menu-right {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding-top: 3rem;
}

.info-section h3 {
    font-size: 1.4rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section p {
    font-size: 1.1rem;
    font-family: 'Nexa', sans-serif;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #660000;
    background-color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 900;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    background-color: #ffcccc;
}


@media (max-width: 992px) {
    header {
        padding: 1.5rem 1rem;
    }

    .menu-content {
        flex-direction: column;
        gap: 3rem;
        width: 90%;
        padding: 6rem 0 3rem;
        height: 100%;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .menu-link {
        font-size: 2.2rem;
    }

    .menu-right {
        flex: none;
        width: 100%;
        flex-direction: column;
        gap: 2.5rem;
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 1.5rem;
    }

    header.scrolled {
        padding: 0.8rem 1.5rem;
    }

    .logo img {
        max-width: 140px;
        max-height: 35px;
    }

    .menu-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .menu-link {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }

    .info-section h3 {
        font-size: 1.2rem;
    }

    .info-section p {
        font-size: 1rem;
    }
}

.main-footer {
    background-color: #0d0d0f;
    color: var(--white);
    padding-top: 1rem;
    position: relative;
    z-index: 10;
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem 1rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 10rem;
}

.footer-headline {
    font-size: 1.5rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-bottom: 3rem;
    color: #f0f0f0;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    background-color: #1a1a1c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--bbdo-red);
    transform: translateY(-5px);
}

.footer-subtitle {
    font-size: 0.8rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bullet {
    color: var(--bbdo-red);
    font-size: 1rem;
}

.pill-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-width: 400px;
}

.btn-pill {
    padding: 0.3rem 0.8rem;
    background-color: #1a1a1c;
    color: #999;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.72rem;
    font-family: 'Nexa', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1.5rem;
    }

    .footer-column {
        text-align: left;
    }

    .footer-headline {
        margin-bottom: 2rem;
    }

    .footer-subtitle {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.btn-pill:hover {
    background-color: #2a2a2c;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-info p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.footer-bottom {
    background-color: var(--bbdo-red);
    padding: 0.5rem 4rem;
}

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

.copyright {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.privacy-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.portfolio-page {
    background-color: var(--black);
    color: var(--white);
}

.portfolio-hero {
    padding: 150px 4% 80px;
}

.portfolio-hero h1 {
    font-size: clamp(2rem, 18vw, 6rem);
    text-align: center;
    font-family: 'nexa';
    color: var(--bbdo-red);
    font-weight: 950;
    text-transform: uppercase;
    line-height: 0.8;
    letter-spacing: 2px;
    margin: 0;
}



.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 30px;
    row-gap: 40px;
    padding: 0 4% 120px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
}

.portfolio-item.span-3 {
    grid-column: span 3;
}

.portfolio-item.span-2 {
    grid-column: span 2;
}

.portfolio-image-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.boximg {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 4% 100px;
}

@media (max-width: 768px) {
    .boximg {
        grid-template-columns: 1fr;
        padding-bottom: 50px;
    }
}

.boximg .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.boximg .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.boximg .project-image img:hover {
    transform: scale(1.05);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.portfolio-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.portfolio-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.portfolio-line {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    flex-grow: 1;
    min-width: 30px;
}

.portfolio-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media (max-width: 1024px) {
    .portfolio-hero h1 {
        letter-spacing: -4px;
    }

    .portfolio-grid {
        column-gap: 20px;
        row-gap: 40px;
    }

    .portfolio-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 5% 60px;
    }

    .portfolio-hero h1 {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 5% 60px;
    }

    .portfolio-item.span-3,
    .portfolio-item.span-2 {
        grid-column: span 1;
    }

    .portfolio-image-box {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 480px) {
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .btn-more {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

.portfolio-footer {
    display: flex;
    justify-content: center;
    padding: 0 4% 120px;
}






.btn-more {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 2px solid var(--white);
    border-radius: 100px;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--white);
    color: var(--black);
}


.portfolio-item.hidden {
    display: none;
}

.portfolio-item.reveal-item {
    animation: fadeInUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}