:root {
    --color-primary: #3f3f3f;
    --color-secondary: #408278;
    --color-accent: #1c7064;
    
    /* Color Variations */
    --color-primary-light: #408278;
    --color-primary-dark: #3f3f3f;
    --color-secondary-light: #5b998b;
    --color-secondary-dark: #1a5555;
    --color-accent-light: #5b998b;
    --color-accent-dark: #1a5555;

    /* Additional Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #6c757d;
    --color-light-gray: #f8f9fa;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important; 
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-primary);
    overflow-x: hidden;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #000000, #0a0a0a);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
    z-index: 1;
}

.nav-logo img {
    height: 50px;
    width: auto;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    text-align: center;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Nevis Bold', sans-serif;
    font-weight: normal;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex; 
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 2000;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        width: 40px;
        height: 40px;
        justify-content: center;
        align-items: center;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1500;
        transform: translateX(0);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .nav-links a {
        color: white;
        font-size: 1.2rem;
        padding: 15px;
        width: 80%;
        text-align: center;
        border-radius: 4px;
    }
    
    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nevis Bold', sans-serif;
    line-height: 1.2;
}

.hero-content h1 {
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.floating-logo {
    width: 200px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 160px;
    text-align: center;
    background-color: rgba(64, 130, 120, 0.2);
    color: var(--color-white);
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 12px #4082784d;
}

.hero-cta .btn:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(64, 130, 120, 0.8);
}

.hero-cta .btn-secondary {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 160px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(64, 130, 120, 0.3);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* About Section */
.about {
    background-color: var(--color-secondary);
    padding: 3rem 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-bottom: 2rem;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0.4) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.about > * {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    height: auto;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
}

@media screen and (max-width: 768px) {
    .about-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content, .about-video {
        padding: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
}

.about-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    font-weight: 500;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--color-white);
    opacity: 0.8;
}

.about-video {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    height: 70vh; /* Adjust value as needed */
    z-index: 2;
}

.about-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Process Steps */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    max-width: 1000px;
    margin: 4rem auto;
    width: 100%;
    position: relative;
    z-index: 2;
    flex-direction: row;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    font-size: 1.1rem;
    padding: 1rem;
    flex: 1;
    min-width: 120px;
}

.step i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.step-arrow {
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
}

.step-arrow:after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid rgba(255, 255, 255, 0.3);
}

/* Media query for mobile */
@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        padding: 1.5rem;
        margin: 2rem auto;
    }
    
    .step {
        width: 100%;
        padding: 1rem 0;
    }
    
    .step-arrow {
        width: 2px;
        height: 30px;
        margin: 0.5rem 0;
    }
    
    .step-arrow:after {
        top: auto;
        right: -4px;
        bottom: 0;
        transform: rotate(90deg);
    }
}

/* Expertise Section */
.about-expertise {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: stretch;
    max-width: 1000px;
    margin: 4rem auto;
}

@media screen and (max-width: 768px) {
    .about-expertise {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.expertise-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 3rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-content h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-white);
    font-weight: normal;
}

.expertise-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--color-white);
    opacity: 0.8;
}

.expertise-logo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    height: 100%;
    overflow: hidden;
}

.expertise-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    max-width: 800px;
    margin: 4rem auto;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

@media screen and (max-width: 768px) {
    .cta-section {
        padding: 3rem 1.5rem;
    }
    
    .cta-section h3 {
        font-size: 1.6rem;
    }
}

.cta-section h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: normal;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Base Modal Styles */
.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: visible;
    padding: 2rem;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Updated modal.active rule to show the modal */
.modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1rem;     /* Prevent container from touching edges */
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    position: relative;
    padding: 2rem;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 1;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    padding-right: 30px;
}

.modal-body {
    color: var(--color-white);
    opacity: 0.9;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .modal {
        padding: 0;
    }
    
    .modal-overlay {
        align-items: flex-end;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin: 0;
        padding: 1.5rem;
        transform: translateY(100%);
    }
    
    .modal.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb {
    background-color: #408278;
    border-radius: 4px;
}

/* Services Section Modals */
/* Modal Title */
.modal-title {
    font-size: 2rem;
    margin: 0 0 1.5rem 0;
    color: var(--color-white);
    text-align: center;
    padding-right: 30px; /* Make room for close button */
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.modal-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

/* Modal Body and Sections */
.modal-body {
    font-size: 1rem;
    line-height: 1.6;
    display: block;
}
.modal-section {
    margin-bottom: 1.5rem;
}
.modal-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 0.5rem;
}
.modal-section p,
.modal-section ul {
    margin: 0.5rem 0;
}
.modal-section ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.modal-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Close Button */
.close-modal {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem; /* aligns the button to the right */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
    
    .process-cards {
        grid-template-columns: 1fr;
    }
    
    .service-applications {
        grid-template-columns: 1fr;
    }
    
    .service-hero img {
        height: 180px;
        object-fit: cover;
    }
    
    .service-intro p,
    .service-process p {
        font-size: 0.95rem;
    }
    
    .process-card {
        padding: 1.25rem;
    }
    
    .process-card h4 {
        font-size: 1.1rem;
    }
}

/* Modal improvements for mobile */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95% !important;
        padding: 1.5rem !important;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-section h3 {
        font-size: 1.2rem;
    }
    
    .modal-content img,
    .modal-content video {
        max-width: 100%;
    }
}

/* Updated modal styles for better vertical centering on mobile */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: center !important;
        padding: 0.5rem; /* Optional: reduce padding to maximize space */
    }
    .modal-container {
        margin: 1rem auto; 
        max-height: 90vh;
    }
}

/* Services grid layout - with responsive breakpoints */
.services-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media screen and (min-width: 993px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* service card images */
.service-card img.service-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--color-secondary-dark), var(--color-secondary-light)) 1;
    border-radius: 8px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border 0.3s ease, filter 0.3s ease;
    filter: brightness(0.98);
}
.service-card:hover {
    transform: scale(1.02);
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--color-secondary-light), var(--color-secondary-dark)) 1;
    filter: brightness(1.05);
}

.service-card p {
    margin-bottom: .8rem;
}
.service-card .btn-learn-more {
    margin-top: 1rem;
}

.btn-learn-more {
    background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary-light));
    color: var(--color-white);
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-learn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Our Work section */
.work {
    padding: 6rem 0;
    margin-top: 0;
}
.work h2 {
    margin-bottom: 2rem;
    text-align: center;
}
.work-grid {
    gap: 2rem;
    padding: 1 1rem;
}


#services {
    padding-top: 30px;
    padding-bottom: 30px;
}

@font-face {
    font-family: 'Nevis Bold';
    src: url('../assets/fonts/nevis-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Centered Our Services h2 and apply the Nevis Bold font */
.services h2 {
    font-size: 2.8rem;
    text-align: center;
    font-family: 'Nevis Bold', sans-serif;
    margin-bottom: 3rem; 
}

.service-ideal ul.service-applications {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.service-ideal ul.service-applications li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-ideal ul.service-applications li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* NY Outline Image Styling */
.ny-outline-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.ny-outline {
    max-width: 350px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.ny-outline:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile styles for NY outline */
@media screen and (max-width: 768px) {
    .ny-outline {
        max-width: 200px;
    }
}

@media screen and (max-width: 480px) {
    .ny-outline {
        max-width: 180px;
    }
}


/* service modal container */
.modal-container {
    max-width: 90%;
    margin: 3rem auto;        
    max-height: 80vh;        
    overflow-y: auto;        
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Center service modal containers to prevent jumping to top */
#videoProductionModal .modal-container,
#videoPartnershipModal .modal-container,
#socialMediaModal .modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 95%;         /* Increase overall width */
    max-width: 800px;   /* Allow a wider max width */
    max-height: 90vh; /* Optional: constrain height */
    overflow-y: auto;
}

/* Spacing for modal paragraphs */
.modal-paragraph {
    margin-bottom: 1.2em;
}
