body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden; /* Hide scrollbars */
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #000;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    clip-path: inset(0 0 0 0);
    z-index: 1;
}

.bg-video:not(.active) {
    z-index: 0;
    visibility: hidden;
}

.bg-video.active {
    z-index: 2;
    visibility: visible;
}

.bg-video.wipe-up {
    animation: videoWipeUp 0.8s ease-out forwards;
}

.bg-video.wipe-down {
    animation: videoWipeDown 0.8s ease-out forwards;
}

@keyframes videoWipeDown {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes videoWipeUp {
    from {
        clip-path: inset(100% 0 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px;
    z-index: 10;
    gap: 20px;
}

.header-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.hamburger-menu {
    cursor: pointer;
    padding: 10px;
    z-index: 11;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.hamburger-menu .line {
    width: 30px;
    height: 4px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hamburger-menu .line:first-child {
    transform-origin: top left;
}

.hamburger-menu .line:nth-child(2) {
    transition: opacity 0.3s ease;
}

.hamburger-menu .line:last-child {
    transform-origin: bottom left;
}

/* X animation when menu is active */
.hamburger-menu.active .line:first-child {
    transform: rotate(45deg) translate(6px, 4px);
}

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

.hamburger-menu.active .line:last-child {
    transform: rotate(-45deg) translate(6px, -4px);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.nav-menu.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-weight: 500;
}

.nav-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
}

.navigation-arrows {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.arrow {
    width: 0;
    height: 0;
    border-style: solid;
    cursor: pointer;
    margin: 20px 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    opacity: 1;
}

.arrow:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.arrow:active {
    transform: scale(0.95);
}

.arrow.up {
    border-width: 0 15px 25px 15px;
    border-color: transparent transparent #fff transparent;
}

.arrow.down {
    border-width: 25px 15px 0 15px;
    border-color: #fff transparent transparent transparent;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.card {
    display: none;
    background-color: transparent;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
}

.card.active {
    display: flex;
    animation: wipeDown 0.8s ease-out forwards;
}

.card.wipe-up {
    animation: wipeUp 0.8s ease-out forwards;
}

.card.wipe-down {
    animation: wipeDown 0.8s ease-out forwards;
}

@keyframes wipeDown {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes wipeUp {
    from {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.card-image {
    flex: 0 0 300px;
    margin-right: 60px;
    display: flex;
    align-items: center;
}

.card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.card-content {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.card-content h2 {
    font-size: 8rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Impact', 'Arial Black', sans-serif;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    line-height: 0.9;
}

.card-content p {
    display: none;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    .header-logo {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }
    
    .card {
        padding: 30px 20px;
        width: 95%;
    }
    
    .card.active {
        flex-direction: column;
    }

    .card-image {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .card-content {
        align-items: center;
        text-align: center;
    }
    
    .card-content h2 {
        font-size: 5rem;
    }
    
    .navigation-arrows {
        left: 15px;
        top: 80px;
        transform: none;
        display: flex;
        flex-direction: row;
        gap: 20px;
        z-index: 100;
    }
    
    .arrow {
        margin: 0;
    }
    
    .arrow.up {
        border-width: 0 14px 24px 14px;
    }
    
    .arrow.down {
        border-width: 24px 14px 0 14px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }
    
    .header-logo {
        font-size: 0.9rem;
        letter-spacing: 0.03em;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-content h2 {
        font-size: 3.5rem;
    }
    
    .navigation-arrows {
        left: 12px;
        top: 70px;
        gap: 18px;
        z-index: 100;
    }
    
    .arrow.up {
        border-width: 0 12px 20px 12px;
    }
    
    .arrow.down {
        border-width: 20px 12px 0 12px;
    }
}

/* Work Page Specific Styles */
.project-card {
    justify-content: center;
}

.project-card .card-content {
    max-width: 800px;
}

.project-card .card-content h2 {
    font-size: 5rem;
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 20px;
}

.propaganda-bar {
    width: 100%;
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 50%, #cc0000 100%);
    box-shadow: 
        0 6px 0 #990000,
        0 12px 0 #660000,
        0 18px 30px rgba(0, 0, 0, 0.9),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 25px 0 35px 0;
    padding: 30px 40px;
    border: 3px solid #8b0000;
}

.propaganda-bar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(180deg, #990000 0%, #8b0000 100%);
    border-left: 3px solid #8b0000;
    border-right: 3px solid #8b0000;
}

.propaganda-bar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(0deg, #660000 0%, #8b0000 100%);
    border-left: 3px solid #8b0000;
    border-right: 3px solid #8b0000;
}

.project-card .card-content p.project-description {
    display: block;
    font-size: 1.3rem;
    line-height: 1.7;
    margin: 0;
    padding: 25px 30px;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.9),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.4"/></svg>'),
        rgba(0, 0, 0, 0.5);
    background-blend-mode: overlay;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.loading {
    color: #fff;
    font-size: 1.5rem;
    text-align: center;
    padding: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.no-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 50px;
}

.no-projects h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.no-projects p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .project-card .card-content h2 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .project-card .card-content h2 {
        font-size: 3rem;
    }
    
    .propaganda-bar {
        margin: 20px 0 30px 0;
        padding: 25px 30px;
        border-width: 2px;
    }
    
    .propaganda-bar::before,
    .propaganda-bar::after {
        height: 8px;
        border-width: 2px;
    }
    
    .propaganda-bar::before {
        top: -8px;
    }
    
    .propaganda-bar::after {
        bottom: -8px;
    }
    
    .project-card .card-content p.project-description {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 20px 25px;
    }
    
    .project-link {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-card .card-content h2 {
        font-size: 2rem;
    }
    
    .propaganda-bar {
        margin: 15px 0 25px 0;
        padding: 20px 25px;
        border-width: 2px;
    }
    
    .propaganda-bar::before,
    .propaganda-bar::after {
        height: 6px;
        border-width: 2px;
    }
    
    .propaganda-bar::before {
        top: -6px;
    }
    
    .propaganda-bar::after {
        bottom: -6px;
    }
    
    .project-card .card-content p.project-description {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 15px 20px;
    }
    
    .project-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
