/* =============================================
   CINEMATIC/STORYTELLING PORTFOLIO STYLES
   ============================================= */

/* Base */
.cinematic-portfolio {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* =============================================
   HEADER OVERRIDE - Fully Transparent
   ============================================= */

.cinematic-portfolio .header {
    background: transparent !important;
    backdrop-filter: none !important;
}

.cinematic-portfolio .header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Dropdown with blue background when active */
.cinematic-portfolio .dropdown-nav {
    background: transparent !important;
    backdrop-filter: none !important;
}

.cinematic-portfolio .dropdown-nav.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
}

.cinematic-portfolio .dropdown-nav.active {
    background: linear-gradient(135deg, #1a4070 0%, #0d2847 100%) !important;
    backdrop-filter: blur(20px) !important;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c8ff00 0%, #1a4070 100%);
    width: 0;
    transition: width 0.1s ease;
}

/* =============================================
   CINEMATIC HERO - Fullscreen with Parallax
   ============================================= */

.cinematic-hero {
    height: 80vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(26, 64, 112, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.cinematic-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.cinematic-title .line {
    display: block;
    color: #fff;
    animation: titleSlide 1s ease backwards;
}

.cinematic-title .line:nth-child(1) {
    animation-delay: 0.2s;
}

.cinematic-title .highlight {
    color: #c8ff00;
    text-shadow: 0 0 40px rgba(200, 255, 0, 0.5);
    animation-delay: 0.4s;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cinematic-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease 0.6s backwards;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    animation: fadeIn 1.5s ease 1s backwards;
}

.scroll-down span {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow i {
    font-size: 1.2rem;
    color: #c8ff00;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* =============================================
   HORIZONTAL SCROLL SECTION
   ============================================= */

.horizontal-section {
    background: #0a0a0a;
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.horizontal-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c8ff00 #1a1a1a;
}

.horizontal-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.horizontal-wrapper::-webkit-scrollbar-thumb {
    background: #c8ff00;
    border-radius: 4px;
}

.horizontal-container {
    display: flex;
    gap: 40px;
    padding: 20px 60px 40px;
    width: max-content;
}

/* Horizontal Card */
.horizontal-card {
    width: 450px;
    flex-shrink: 0;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.horizontal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: rgba(200, 255, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #c8ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #c8ff00;
    z-index: 10;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.horizontal-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(200, 255, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.horizontal-card:hover .card-play {
    opacity: 1;
}

.card-play i {
    font-size: 1.8rem;
    color: #000;
    margin-left: 5px;
}

.card-info {
    padding: 30px;
}

.card-tag {
    display: inline-block;
    padding: 6px 18px;
    background: #c8ff00;
    color: #000;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 15px;
}

.card-tag-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.card-tag-basic {
    background: #555;
    color: #fff;
}

.card-tag-eco {
    background: #10b981;
    color: #fff;
}

.card-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.card-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta i {
    color: #c8ff00;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta-cinematic {
    padding: 150px 0;
    background: linear-gradient(135deg, #1a4070 0%, #0a1628 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-cinematic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(200,255,0,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-cinematic .container {
    position: relative;
    z-index: 2;
}

.cta-cinematic h2 {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
}

.cta-cinematic p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.btn-cinematic {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #c8ff00 0%, #a5d700 100%);
    color: #000;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(200, 255, 0, 0.3);
}

.btn-cinematic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(200, 255, 0, 0.5);
    gap: 20px;
}

/* =============================================
   PROJECT MODAL
   ============================================= */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: #0a0a0a;
    border: 2px solid rgba(200, 255, 0, 0.2);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    animation: modalZoomIn 0.4s ease;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(200, 255, 0, 0.1);
    border: 2px solid rgba(200, 255, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #c8ff00;
    border-color: #c8ff00;
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.3rem;
    color: #c8ff00;
    transition: color 0.3s ease;
}

.modal-close:hover i {
    color: #000;
}

.modal-content {
    display: flex;
    height: 90vh;
    max-height: 800px;
}

.modal-gallery {
    flex: 1.2;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-image-main {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-details {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
    background: #0a0a0a;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-tag {
    display: inline-block;
    padding: 8px 25px;
    background: linear-gradient(135deg, #c8ff00 0%, #a5d700 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.modal-service {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
    padding: 30px;
    background: rgba(200, 255, 0, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(200, 255, 0, 0.1);
}

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

.info-item i {
    font-size: 1.3rem;
    color: #c8ff00;
    width: 30px;
}

.info-item div {
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.info-item strong {
    color: #fff;
    font-weight: 700;
}

.info-item span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.modal-description {
    margin-bottom: 30px;
}

.modal-description h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.modal-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.modal-services {
    margin-bottom: 35px;
}

.modal-services h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.modal-services ul {
    list-style: none;
    padding: 0;
}

.modal-services li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(200, 255, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-services li:last-child {
    border-bottom: none;
}

.modal-services li i {
    color: #c8ff00;
    font-size: 1rem;
}

.modal-cta {
    margin-top: 35px;
}

.modal-cta .btn-primary {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
}

.modal-cta .btn-primary:hover {
    gap: 15px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .cinematic-title {
        font-size: 4rem;
    }

    .section-title h2 {
        font-size: 3rem;
    }

    .horizontal-card {
        width: 400px;
    }

    .modal-content {
        flex-direction: column;
        height: auto;
    }

    .modal-details {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .cinematic-title {
        font-size: 3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }

    .horizontal-container {
        padding: 20px 30px 40px;
    }

    .horizontal-card {
        width: 350px;
    }

    .cta-cinematic h2 {
        font-size: 2.5rem;
    }

    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-details {
        padding: 30px;
    }

    .modal-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cinematic-title {
        font-size: 2.2rem;
    }

    .cinematic-subtitle {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .horizontal-container {
        padding: 20px 20px 40px;
    }

    .horizontal-card {
        width: 300px;
    }

    .card-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .cta-cinematic {
        padding: 100px 0;
    }

    .cta-cinematic h2 {
        font-size: 2rem;
    }

    .cta-cinematic p {
        font-size: 1.1rem;
    }

    .btn-cinematic {
        padding: 18px 40px;
        font-size: 1rem;
    }

    .modal-details {
        padding: 25px;
    }

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

    .modal-info {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
