/* --- Basic Setup & Variables --- */
:root {
    --color-black: #000000; 
    --color-white: #FFFFFF;
    --color-pink: #E42C82; 
    --font-primary: 'Poppins', sans-serif;
    --header-height: 80px;
    --hero-overlay-opacity: 0.3; 
    --hero-blur-amount: 5px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-black); color: var(--color-white); font-family: var(--font-primary); line-height: 1.6; }
a, button { -webkit-tap-highlight-color: transparent; }

/* --- Header --- */
header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; }
.header-container { 
    height: 100%; 
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; /* <-- ADDED for positioning context */
}
.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--color-white); 
    text-decoration: none;
    /* --- New styles for layout --- */
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Adjust this value to increase/decrease space between icon and text */
}

.logo svg {
    height: 2.2rem; /* Adjust size of the icon */
    width: auto;
}
/* --- MODIFIED FOR CENTERING --- */
.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.nav-links ul { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--color-white); text-decoration: none; font-weight: 400; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--color-pink); }
.header-right { display: flex; align-items: center; }
.get-quote-btn { background-color: var(--color-pink); color: var(--color-white); padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 500; transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease; border: 2px solid var(--color-pink); }
.get-quote-btn:hover { background-color: transparent; color: var(--color-pink); transform: scale(1.05); }
.mobile-contact { display: none; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; margin-left: 1rem; }
.menu-toggle .bar { width: 25px; height: 3px; background-color: var(--color-white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }

/* --- Main Content --- */
main { padding-top: 0; }
.container { width: 90%; max-width: 1400px; margin: 0 auto; padding: 4rem 0; }
section { display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* --- Hero Section --- */
.new-hero-section { height: 100vh; position: relative; text-align: center; overflow: hidden; padding: 0 2rem; }
.hero-video-background { position: absolute; top: -10px; left: -10px; width: calc(100% + 20px); height: calc(100% + 20px); z-index: 1; }
.hero-video-background .video-grid { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; height: 100%; }
.new-hero-section .video-card { position: relative; pointer-events: none; overflow: hidden; }
.new-hero-section .video-player { position: absolute; top: 50%; left: 50%; width: 300%; height: 120%; transform: translate(-50%, -50%); }
.new-hero-section .video-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.new-hero-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, var(--hero-overlay-opacity)); backdrop-filter: blur(var(--hero-blur-amount)); -webkit-backdrop-filter: blur(var(--hero-blur-amount)); z-index: 2; }
.hero-content { position: relative; z-index: 4; color: var(--color-white); max-width: 900px; }
.hero-content h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-content p { font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 400; color: rgba(255, 255, 255, 0.9); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; background-color: var(--color-pink); color: var(--color-white); padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 2px solid var(--color-pink); transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; }
.hero-cta-button:hover { background-color: transparent; color: var(--color-pink); transform: scale(1.05); }
.hero-cta-button svg { width: 20px; height: 20px; }
.new-hero-section::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 200px; background: linear-gradient(to top, #0f0f0f 20%, transparent 100%); z-index: 3; }

/* --- NEW/FIXED PORTFOLIO SECTION STYLES --- */
.portfolio-section { background-color: #0f0f0f; min-height: 100vh; justify-content: flex-start; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); text-align: center; margin-bottom: 3rem; font-weight: 700; }
.category-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 3rem; margin-bottom: 2rem; text-align: center; font-weight: 600; color: var(--color-pink); }

/* NEW Portfolio Category Navigation */
.portfolio-category-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem; /* Spacing between nav and first category title */
}
.portfolio-category-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.portfolio-category-nav a:hover {
    color: var(--color-white);
    background-color: var(--color-pink);
    border-color: var(--color-pink);
    transform: translateY(-2px);
}
/* END NEW Portfolio Category Navigation */

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; width: 100%; max-width: 1400px; margin: 0 auto; }
.portfolio-item-wrapper { display: flex; flex-direction: column; align-items: center; }
.portfolio-item-wrapper.podcast-wrapper {
    grid-column: span 2;
}
.portfolio-section .video-card { position: relative; transition: transform 0.4s ease-in-out; width: 100%; }
.portfolio-section .video-card:hover { transform: scale(1.04); z-index: 5; }
.portfolio-section .video-card-inner { border-radius: 15px; overflow: hidden; position: relative; z-index: 1; }

/* Video player and aspect ratio handling */
.portfolio-section .video-player { position: relative; height: 0; background-color: #1a1a1a; }
.portfolio-section .video-card.vertical .video-player { padding-top: 177.77%; }
.portfolio-section .video-card.podcast .video-player { padding-top: 56.25%; }
.portfolio-section .video-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Controls Overlay */
.portfolio-section .controls-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.portfolio-section .bottom-controls { display: flex; align-items: center; padding: 10px 15px; width: 100%; background: transparent; transition: opacity 0.3s ease-in-out; opacity: 0; }
.portfolio-section .video-card:hover .bottom-controls { opacity: 1; }
.portfolio-section .progress-bar { flex-grow: 1; height: 4px; background-color: rgba(255, 255, 255, 0.3); border-radius: 2px; cursor: pointer; }
.portfolio-section .progress-filled { width: 0%; height: 100%; background-color: var(--color-pink); border-radius: 2px; }

/* NEW External Mute/Unmute Button */
.external-mute-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.external-mute-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-pink);
    color: var(--color-white);
}
.external-mute-toggle.is-unmuted {
    background-color: var(--color-pink);
    border-color: var(--color-pink);
    color: var(--color-white);
}

/* --- Other Content Sections --- */
.content-section { min-height: auto; padding: 5rem 0; background-color: #0f0f0f; }
.text-container { max-width: 800px; text-align: center; }
.text-container h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--color-white); margin-bottom: 1.5rem; }
.text-container p { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 2.5rem; }
.cta-button { display: inline-block; background-color: var(--color-pink); color: var(--color-white); padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: 600; border: 2px solid var(--color-pink); transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s ease; }
.cta-button:hover { background-color: transparent; color: var(--color-pink); transform: translateY(-3px); }

/* --- Footer --- */
footer { text-align: center; padding: 2rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); background-color: #0f0f0f; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-video-background .video-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
    .hero-video-background .video-player { width: 200%; height: 200%; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100vh; 
        background-color: var(--color-black); 
        display: flex; 
        flex-direction: column; 
        justify-content: center; 
        align-items: center; 
        text-align: center; 
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
        z-index: 1000; 
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links ul { flex-direction: column; gap: 2rem; }
    .nav-links a { font-size: 1.3rem; }
    .mobile-contact { display: block; margin-top: 1rem; }
    .mobile-contact .get-quote-btn { display: inline-block; padding: 10px 35px; font-size: 1.1rem; font-weight: 600; }
    .header-right .desktop-contact { display: none; }
    .menu-toggle { display: flex; z-index: 1001; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portfolio-grid { 
    grid-template-columns: repeat(2, 1fr); /* Changed from 1fr to two columns */
    gap: 1.5rem; /* Reduced gap for smaller screens */
}
.portfolio-item-wrapper.podcast-wrapper {
        grid-column: span 2; /* Ensures podcast videos are still full-width */
    }
}