@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
    font-family: 'Blank Moment Demo';
    src: local('Blank Moment DEMO'), local('Blank Moment Demo'),
         url('https://elusiveinc.com/BlankMomentDEMO.woff2') format('woff2'),
         url('https://elusiveinc.com/Blank%20Moment%20DEMO.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Utility class to apply the font */
.font-blank-moment {
    font-family: 'Blank Moment Demo', 'Poppins', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    box-sizing: border-box;
}

.logo-container {
    width: 100%;
    max-width: 350px; /* Reduced logo size on desktop */
    padding: 0 2rem;
    box-sizing: border-box;
}

header .logo {
    height: 50px;
    width: auto;
}

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

.logo-container .logo {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
    animation: fadeIn 1.5s ease-in-out;
}

.logo-container .logo:hover {
    transform: scale(1.05);
}

.hamburger-menu {
    cursor: pointer;
}

.hamburger-menu .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
}

header .hamburger-menu .line {
    background-color: #fff;
}

body:not(.home-page):not(.objective-page) header .hamburger-menu .line {
    background-color: #333;
}

/* Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: #fff;
    font-size: 2rem;
    margin: 1rem 0;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Home Page */
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
    /* Padding is now handled in media queries for smaller screens */
}

.welcome-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh; /* Full height for desktop hero */
    padding: 2rem;
    box-sizing: border-box;
}

.welcome-section {
    background-color: transparent !important;
}

.welcome-section-bg {
    background-color: rgba(255, 255, 255, 0.5);
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.secondary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
    box-sizing: border-box;
    background-color: transparent;
}

.fade-in-section {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}

.fade-in-section.is-visible {
    opacity: 1;
}

.services-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 0;
    background-color: #fff;
    padding: 2rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

.service-link-item {
    text-align: center;
}

.service-letter {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: rgba(0,0,0,0.8);
    text-decoration: none;
    position: relative;
    text-shadow: -2px -2px 0px rgba(255,0,0,0.5), 2px 2px 0px rgba(0,0,255,0.5);
    transition: transform 0.3s;
    padding-bottom: 4px;
    display: inline-block; /* Ensure the link is an inline block for proper layout */
}

.service-name {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    margin-top: 0.5rem;
    color: #000;
}


.service-letter:hover {
    transform: scale(1.1);
}

.info-text {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.info-heading {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: #000;
    text-transform: uppercase;
    text-shadow: -2px -2px 0px rgba(255,0,0,0.7), 2px 2px 0px rgba(0,0,255,0.7);
    margin-bottom: 2rem;
}

.section-four {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.section-four p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
    color: #000;
    max-width: 900px;
    margin: 0 auto;
}

.sphere-logo-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

.sphere-logo {
    width: 80px;
    height: auto;
    transition: transform 0.3s;
}

.sphere-logo:hover {
    transform: scale(1.1);
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
    font-weight: bold;
}

/* Objective Page */
.objective-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    text-align: center;
}

.objective-content .objective-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    text-shadow: -2px -2px 0px rgba(255,0,0,0.5), 2px 2px 0px rgba(0,0,255,0.5);
    text-align: center;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.frame-wrapper {
    position: relative;
    width: 95vw;
    height: 90vh;
    margin: auto;
}

.frame-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.frame-content-overlay {
    position: absolute;
    top: 18%;
    left: 26%;
    width: 48%;
    height: 64%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    overflow-y: auto;
    padding: 2rem;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.85);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.objective-section {
    background-color: transparent;
    padding: 1.2rem 2rem;
    margin: 0;
    border-radius: 0;
    border: none;
}

.objective-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    text-shadow: -2px -2px 0px rgba(255,0,0,0.5), 2px 2px 0px rgba(0,0,255,0.5);
    margin: 0 0 0.5rem 0;
}

.objective-section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
    max-width: 900px;
    margin: 0.5rem auto;
}

.objective-section p:first-of-type {
    font-style: italic;
}

.objective-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem auto;
    max-width: 900px;
    text-align: left;
}

.objective-section li {
    color: #fff;
    margin: 0.4rem 0;
    line-height: 1.6;
}

.objective-section strong {
    color: #fff;
}

/* Objective Page Art Styling */
.objective-page .objective-title {
    font-family: 'Blank Moment Demo', 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #f2e7c4;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.25);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-kerning: normal;
    font-feature-settings: "kern" 1, "liga" 1;
    font-synthesis: none;
}
.objective-page .objective-title::after {
    content: '❦';
    display: block;
    margin: 0.35rem auto 0.75rem;
    color: #d8c28f;
    font-size: 1.1rem;
    opacity: 0.9;
}

.objective-page .frame-content-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.52), rgba(0,0,0,0.42));
    border: 1px solid rgba(216, 194, 143, 0.35);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35), 0 8px 24px rgba(0,0,0,0.25);
}

.objective-page .objective-section {
    text-align: center;
}

.objective-page .objective-section p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.15rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga" 1, "kern" 1;
}


@media (max-width: 1024px) {
    .objective-page .objective-section p { font-size: 1.05rem; line-height: 1.65; }
}

@media (max-width: 768px) {
    .objective-page .objective-section p { font-size: 0.98rem; line-height: 1.55; }
}

/* Services Page */
.services-content {
    padding: 8rem 2rem 2rem;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-item {
    text-align: center;
    flex: 0 0 300px; /* Control the width of the items */
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-item h3 {
    transition: transform 0.3s;
}

.service-item:hover h3 {
    transform: translateY(-5px);
}

/* Service Detail Pages */
.service-detail-content {
    display: flex;
    padding: 8rem 2rem 2rem;
    gap: 2rem;
}

.service-detail-text {
    flex: 1;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #333;
    text-decoration: underline;
}

.service-detail-image {
    flex: 1;
}

/* Service Detail Title */
.service-detail-text h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(0,0,0,0.8);
    text-shadow: -2px -2px 0px rgba(255,0,0,0.5), 2px 2px 0px rgba(0,0,255,0.5);
    margin: 0 0 1rem 0;
}

.service-detail-text h2 .service-letter {
    margin-right: 0;
    padding-bottom: 0;
    text-shadow: inherit;
    transition: none;
}

.service-detail-text h2 .service-letter:hover {
    transform: none;
}

/* Clients Page */
.clients-content {
    padding: 8rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.client-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}

.client-item:hover img {
    transform: scale(1.1);
}

/* Modal */
.modal-content-wide {
    display: flex;
    gap: 2rem;
    max-width: 900px;
}

.modal-text-content {
    flex: 1;
}

.modal-client-logo {
    width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.modal-image-container {
    flex: 1.5;
}

.modal-image-container img {
    width: 100%;
    height: auto;
}

.modal-image-gallery {
    flex: 1.5;
    display: flex;
    overflow-x: auto;
    gap: 1rem;
}

.modal-image-gallery img {
    width: 80%;
    height: auto;
    flex-shrink: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Page */
.contact-content {
    padding: 8rem 2rem 2rem;
}

.map-container {
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
}

.contact-info {
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
}

form input, form textarea, form button {
    margin-bottom: 1rem;
    padding: 0.8rem;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #f2f2f2;
}

/* Large screens */
@media (min-width: 1600px) {
    .clients-content {
        max-width: 1400px;
    }
    .client-item img {
        max-height: 120px;
    }
}

/* Responsive */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .home-content {
        padding-top: 80px; /* Add padding back to push content below header */
    }
    .welcome-section {
        height: calc(100vh - 80px); /* Adjust height to account for padding */
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .welcome-section-bg {
        width: 70%;
    }
    .logo-container {
        max-width: 400px;
    }
    .services-links {
        max-width: 700px;
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .welcome-section-bg {
        width: 90%;
    }
    .logo-container {
        max-width: 300px;
    }
    .services-links {
        flex-direction: row;
        justify-content: space-around;
        padding: 2rem 1rem;
    }
    .service-name {
        display: none;
    }
    .service-letter {
        font-size: 2rem;
    }
    .info-text {
        width: 90%;
    }
    .service-detail-content {
        flex-direction: column;
    }
}

/* Objective Page responsive overrides */
@media (max-width: 1024px) {
    .objective-content {
        height: 100vh;
        padding: 0 0.5rem;
    }
    .objective-content .objective-title {
        font-size: 1.6rem;
        margin: 0 0 0.5rem 0;
    }
    .frame-wrapper {
        width: 92vw;
        height: 80vh;
    }
    .frame-content-overlay {
        top: 20%;
        left: 25%;
        width: 50%;
        height: 60%;
        padding: 1.5rem;
    }
    .objective-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 768px) {
    .objective-content {
        height: 100vh;
        padding: 0 0.5rem;
    }
    .objective-content .objective-title {
        font-size: 1.25rem;
        margin: 0 0 0.25rem 0;
    }
    .frame-wrapper {
        width: 100vw;
        height: 85vh;
    }
    .frame-content-overlay {
        top: 22%;
        left: 28%;
        width: 44%;
        height: 56%;
        padding: 1rem;
    }
    .objective-section p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Brush-stroke text effect */
.brush-line,
.brush-line-alt {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: transparent;
    background: linear-gradient(90deg, #fff6d6 0%, #e8d49e 50%, #fff6d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 0.6px rgba(0,0,0,0.22);
    text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 2px 10px rgba(0,0,0,0.25);
    filter: url(#brushify);
}

/* Swash of paint behind the first line */
.brush-swash { position: relative; display: inline-block; }
.brush-swash::before {
    content: '';
    position: absolute;
    left: -6%;
    right: -6%;
    top: 58%;
    height: 0.55em;
    background:
      radial-gradient(60% 120% at 10% 50%, rgba(255,239,200,0.95), rgba(232,212,158,0.85) 60%, rgba(232,212,158,0) 72%),
      linear-gradient(90deg, rgba(232,212,158,0.9), rgba(255,239,200,0.7));
    filter: blur(0.6px) saturate(1.05);
    opacity: 0.9;
    transform: rotate(-1.5deg);
    border-radius: 0.25em;
    z-index: 0;
}

/* Ensure the paint sits behind the glyphs */
.brush-swash { z-index: 1; }

@media (max-width: 1024px) {
    .brush-line, .brush-line-alt { -webkit-text-stroke: 0.5px rgba(0,0,0,0.22); }
}
@media (max-width: 768px) {
    .brush-line, .brush-line-alt { -webkit-text-stroke: 0.45px rgba(0,0,0,0.2); }
}

/* Clients modal mobile layout fixes */
@media (max-width: 768px) {
  .modal {
    padding: 4vh 0;
    -webkit-overflow-scrolling: touch;
  }
  .modal-content {
    width: 92vw;
    max-width: none;
    margin: 0 auto;
    border-radius: 8px;
    padding: 16px;
  }
  /* Stack complex two-column modal contents */
  .modal .modal-content {
    display: block !important;
    max-width: 92vw !important;
  }
  .modal .modal-content .modal-client-logo {
    width: 72px;
    height: auto;
  }
  .modal .modal-content h2 {
    font-size: 1.15rem;
    margin-top: 0.5rem;
  }
  .modal .modal-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  /* Galleries and images */
  .modal .modal-content .modal-image-gallery {
    gap: 0.5rem;
  }
  .modal .modal-content .modal-image-gallery img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
  }
  .modal .modal-content img {
    max-width: 100%;
    height: auto;
  }
  /* Close button positioning on mobile */
  .modal .close-button {
    position: absolute !important;
    top: 8px !important;
    right: 12px !important;
    float: none !important;
    font-size: 28px;
  }
}
