* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0a0a0a;
    --secondary-black: #121212;
    --tertiary-black: #1a1a1a;
    --primary-red: #dc143c;
    --dark-red: #9c0b28;
    --light-red: #ff244e;
    --white: #ffffff;
    --gray: #888888;
    --light-gray: #cccccc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary-black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 20, 60, 0.1);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-red);
    box-shadow: 0 0 8px rgba(220, 20, 60, 0.7);
    transition: width 0.1s ease-out;
    z-index: 1001;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.red-text {
    color: var(--primary-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .name {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
}

.hero-title .profession {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin: 2rem 0;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    background: var(--light-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.red-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-red), transparent);
    margin: 0.5rem auto 0;
    animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* Section Styles */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--secondary-black);
}

.about {
    padding: 0 !important;
}

.about-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-top: 2px solid rgba(220, 20, 60, 0.3);
    border-bottom: 2px solid rgba(220, 20, 60, 0.3);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--secondary-black);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 20, 60, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Works Section */
.works {
    background: var(--secondary-black);
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--tertiary-black);
    color: var(--light-gray);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.works-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #e63946, #c1121f);
    border-color: #e63946;
}

.filter-btn:hover {
    border-color: #e63946;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.work-item[data-category="video"] {
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
    min-width: 320px;
    min-height: calc(320px * 16 / 9);
    width: 100%;
    height: auto;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.work-item[data-category="video"] .work-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.work-item[data-category="video"] iframe {
    min-height: 100% !important;
    min-width: 100% !important;
    flex: 1;
}

@media (min-width: 992px) {
    .work-item[data-category="video"] {
        max-width: 350px;
    }
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.video-play-icon i {
    color: white;
    font-size: 1.8rem;
    margin-right: -3px;
}

.work-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: #e63946;
}

.work-type {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 15px;
}

.work-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.work-item video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

.work-item video::-webkit-media-controls {
    object-fit: contain;
}

.work-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.15);
}

.work-image {
    width: 100%;
    height: 100%;
    background: var(--tertiary-black);
    background: linear-gradient(135deg, var(--tertiary-black) 0%, var(--secondary-black) 100%);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    background-color: var(--tertiary-black);
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    pointer-events: none;
}

.work-overlay {
    display: none;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.work-info {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-item:hover .work-info {
    transform: translateY(0);
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #e63946;
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    border: none;
}

.work-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.work-info span {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-black);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    min-height: 85px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-black);
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.3rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-text p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--tertiary-black);
    text-align: center;
    color: var(--gray);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .work-item[data-category="video"] {
        max-width: 100%;
        margin: 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-black);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title .name {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-description {
        margin: 2rem auto;
    }
}

@media screen and (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}