﻿/* 
   MF Film Production - Professional Dark Theme 
   Redesigned 2026 - High Contrast & Clean Layout
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #E50914;
    --primary-dark: #b20710;
    --bg-body: #050505;
    --bg-surface: #121212;
    --bg-card: #181818;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border-light: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(229, 9, 20, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-main: 'Roboto', 'Noto Sans TC', sans-serif;
    --nav-height: 90px;
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s ease;
}

a:hover { color: var(--primary-color); }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================
   Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* =========================================
   Navigation
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ccc;
    padding: 10px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active { color: #fff; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown */
.nav-item { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-surface);
    min-width: 220px;
    padding: 10px 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Nav Right Buttons */
.nav-right { display: flex; gap: 15px; }

.btn-special {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-special:hover, .btn-special.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

.mobile-only-btn {
    display: none;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0 !important;
    padding-top: var(--nav-height);
    overflow: hidden; /* Ensure video doesn't spill out */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3), rgba(5,5,5,0.9));
    z-index: 1;
}

/* Remove old pseudo-element if we use .hero-overlay div, 
   or keep it if we want double overlay. 
   Let's remove the old ::before to avoid confusion since we added a div. */

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   Buttons
   ========================================= */
.cta-button, .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.cta-button {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.secondary-button {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
}

.secondary-button:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   Cards & Content Overrides
   ========================================= */
/* Force consistent styling for cards even with inline styles */
.card, .job-card, .course-card, .service-card, .pricing-card, .budget-item {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover, .job-card:hover, .course-card:hover, .service-card:hover, .pricing-card:hover, .budget-item:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-card) !important;
    border-color: var(--primary-color) !important;
}

.card-icon, .service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Portfolio Grid - Redesigned */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); /* Larger, cinematic columns */
    gap: 40px;
}

/* Homepage Specific Grid Override */
.home-recent-works {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 100%;
    gap: 0;
    margin: 0;
}

.home-recent-works .portfolio-item {
    border-radius: 0;
    border: none;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-color);
}

/* Video & Image Wrapper (16:9) */
.video-wrapper, .portfolio-image-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.video-wrapper iframe, 
.portfolio-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.portfolio-image-wrapper img {
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

/* Portfolio Info Card */
.portfolio-info {
    padding: 25px;
    background: var(--bg-card);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.portfolio-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Remove old overlay styles as we are unifying the design */
.portfolio-thumb {
    width: 100%;
    height: 100%;
}

/* =========================================
   Forms
   ========================================= */
form {
    background-color: var(--bg-card) !important;
    padding: 40px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-light) !important;
}

.form-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea,
.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 6px;
    color: #fff !important;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* Fix for date input icon color in dark mode */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Fix for dropdown options in dark mode */
select option {
    background-color: #181818; /* Dark background for options */
    color: #fff; /* White text */
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-light);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.footer-col h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #111;
    color: #555;
    font-size: 0.85rem;
}

/* =========================================
   Process Steps (Timeline Style)
   ========================================= */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    counter-reset: step-counter;
}

.step {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.step p {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* =========================================
   Blog List (Film School)
   ========================================= */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure link style doesn't mess up */
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.blog-thumb {
    width: 40%;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img { transform: scale(1.05); }

.blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: color 0.3s;
}

.blog-card:hover .blog-title { color: var(--primary-color); }

.blog-excerpt {
    color: #ccc;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .blog-card { flex-direction: column; }
    .blog-thumb { width: 100%; height: 200px; min-width: auto; }
}

/* =========================================
   Video Container (Portfolio)
   ========================================= */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: background 0.3s;
}

.video-placeholder:hover::before { background: rgba(0,0,0,0.2); }

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 2;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}

.video-placeholder:hover .play-btn {
    transform: scale(1.1);
    background: #ff0a16;
}

/* =========================================
   Budget Planning (Discount)
   ========================================= */
.budget-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.budget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.budget-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card);
}

.budget-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.budget-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.budget-content p { margin-bottom: 0; }

@media (max-width: 768px) {
    .budget-card { flex-direction: column; gap: 20px; }
    .budget-card:hover { transform: translateY(-5px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0,0,0,0.8);
        z-index: 999;
        border-left: 1px solid var(--border-light);
    }

    .nav-links.active { right: 0; }
    
    .nav-right { display: none; } /* JS will clone these */

    .nav-item { width: 100%; }
    .nav-link { 
        display: block; 
        width: 100%; 
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-link::after { display: none; }

    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255,255,255,0.03);
        width: 100%;
        min-width: auto;
        box-shadow: none;
        margin-top: 0;
        border: none;
        display: none;
        opacity: 1;
        visibility: visible;
        padding-left: 15px;
    }
    
    .drodisplay: block;
        pdown-menu.show { display: block; }
    
    /* Mobile Buttons (Cloned via JS) */
    .mobile-only-btn {
        margin-top: 20px;
        width: 100%;
    }
    
    .mobile-only-btn .nav-link {
        text-align: center;
        border: 1px solid var(--primary-color) !important;
        border-radius: 50px;
        color: var(--primary-color);
        padding: 10px !important;
        margin-bottom: 10px;
    }

    .mobile-only-btn .nav-link::after {
        display: none !important;
        content: none !important;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-header h2 { font-size: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* =========================================
   Portfolio Filter
   ========================================= */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}


/* =========================================
   Pricing / Discount Page
   ========================================= */
.pricing-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, rgba(229, 9, 20, 0.1), var(--bg-card));
}

.pricing-card.featured::before {
    content: '熱門推薦';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
}

.pricing-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 4px;
}

.pricing-detail-section {
    margin-bottom: 80px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.pricing-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.pricing-detail-header h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
}

.pricing-detail-price {
    font-size: 1.8rem;
    font-weight: bold;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.detail-content h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.detail-content ul {
    list-style: none;
    margin-bottom: 20px;
}

.detail-content ul li {
    margin-bottom: 8px;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.detail-content ul li::before {
    content: '';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.note-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #aaa;
}

.note-box h5 {
    color: #fff;
    margin-bottom: 10px;
}


/* Portfolio Thumbnail Styles */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(229, 9, 20, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}


/* =========================================
   Partner Logos
   ========================================= */
.partner-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.partner-grid img {
    height: 60px;
    width: auto;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 4px;
    opacity: 0.8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-grid img:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* =========================================
   Multi-step Form Styles
   ========================================= */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 33.33%;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.step-item.completed .step-circle {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: bold;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Form Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 10px;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =========================================
   Page Header (Specific for Form Page)
   ========================================= */
.page-header {
    padding: 140px 0 60px; /* Account for fixed nav */
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, var(--bg-body));
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
    letter-spacing: 2px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: 1.5px; /* Increased letter spacing as requested */
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.8;
}

