/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --primary-color: #07aec1; /* The bright cyan from your buttons */
    --secondary-color: #A020F0; /* Vibrant Purple */
    --dark-grey: #1a1a1a;
    --light-grey: #2a2a2a;
    --text-color: #e0e0e0;
}


/* --- UPDATED TYPOGRAPHY --- */
body {
    background-color: #121212;
    color: var(--text-color);
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.7;
}

body.home-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(45deg, rgba(160, 32, 240, 0.1), rgba(7, 174, 193, 0.1)), url('/images/cta-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.home-bg-loaded::before {
    opacity: 1;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0px;
    color: #ffffff;
}

h1 { font-size: 4rem; line-height: 1.1; }
h2 { font-size: 2.5rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }


section {
    padding: 80px 5%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- UPDATED: HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #030a14;
    border-bottom: 1px solid #172a45;
    /* Updated padding for safe areas */
    padding: 20px 5%;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-left: calc(5% + env(safe-area-inset-left));
    padding-right: calc(5% + env(safe-area-inset-right));
}

header .logo img {
    width: 100px;
    height: auto;
    display: block;
}

header .desktop-nav {
    display: flex;
    gap: 30px;
}

header .desktop-nav a {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

header .desktop-nav a:hover,
header .desktop-nav a.active {
    color: var(--primary-color);
}


/* --- DEFINITIVE HERO SECTION STYLES --- */
.hero-final {
    position: relative; 
    display: flex;
    align-items: center;
    min-height: 90vh;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; max-width: 500px; margin-bottom: 30px; }

.btn-primary {
    background-color: var(--primary-color);
    color: #121212;
    padding: 15px 35px;
    font-size: 1rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.projection-screen,
.goggle-device {
    position: relative;
    overflow: hidden;
}

.projection-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    animation: fadeToBlack 15s linear infinite;
    z-index: 2;
}

@keyframes fadeToBlack {
    0% { opacity: 1; }
    5% { opacity: 1; }
    10% { opacity: 0; }
    90% { opacity: 0; }
    95% { opacity: 1; }
    100% { opacity: 1; }
}

.projection-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.fade-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeToBlack 15s linear infinite;
}

.fade-content img {
    height: 10%;
    width: auto;
}

.fade-content span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.goggle-device {
    width: 70%;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
}

.panning-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/hero-background.jpg');
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: 0 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

#goggle-viewfinder {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    width: 90%;
    left: 5%;
    height: 60%;
    top: 20%;
}

#goggle-viewfinder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    animation: fadeToBlack 15s linear infinite;
    z-index: 2;
}

.goggle-mask {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    object-fit: contain;
}

.starfield-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/images/starfield.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    opacity: 0.5;
    animation: starfieldPan 180s linear infinite;
}

@keyframes starfieldPan {
    0% {
        background-position: 0 50%;
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    95% {
        opacity: 0.5;
    }
    100% {
        background-position: -2100px 50%;
        opacity: 0;
    }
}

/* --- GRADIENT CANVAS & MAIN SECTIONS --- */
.gradient-canvas {
    background-image: linear-gradient(180deg, 
        rgba(10, 25, 47, 0.95), 
        rgba(160, 32, 240, 0.15), 
        rgba(7, 174, 193, 0.15), 
        rgba(3, 10, 20, 0.95)
    );
}

.featured-work {
    background-color: transparent;
    position: relative;
    padding: 0;
}

.featured-work-container {
    padding: 160px 5% 80px 5%;
}

.work-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    display: block;
    text-decoration: none;
    background-color: #172a45; 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.work-card:hover .card-content h3 {
    color: var(--primary-color);
}

.work-card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    text-align: left;
}

.card-content h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    transition: color 0.3s ease;
}

.card-content p {
    color: #a8b2d1;
    margin: 0;
    font-size: 1rem;
}

.work-testimonial {
    max-width: 800px;
    margin: 100px auto 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.work-testimonial q {
    display: block;
    font-family: 'Source Sans Pro', serif;
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    border: none;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #a8b2d1;
}

.work-testimonial span {
    font-size: 1rem;
    color: var(--text-color);
    font-style: normal;
}

.work-testimonial strong {
    font-weight: 600;
    color: #ffffff;
}

.work-testimonial q {
    position: relative;
    z-index: 2;
}

.work-testimonial q::before {
    content: '“';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: serif;
    font-size: 20rem;
    color: var(--primary-color);
    opacity: 0.05;
    z-index: 1;
}

.features {
    background-image: linear-gradient(135deg, 
        rgba(160, 32, 240, 0.15), 
        rgba(7, 174, 193, 0.15)
    );
    max-width: 1200px;
    margin: 80px auto;
    border-radius: 12px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.features h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    text-align: left;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 32, 240, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 12px;
}

.feature-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-item img {
    height: 80px;
    flex-shrink: 0;
}

.feature-item h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.3;
}

.feature-item p {
    color: #c5cdd8;
    font-size: 1rem;
    line-height: 1.7;
}

/* Homepage contact form styles */
.contact {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: 'VR';
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30rem;
    color: var(--primary-color);
    opacity: 0.03;
    z-index: 0;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
    color: #a8b2d1;
    position: relative;
    z-index: 1;
}

.contact form {
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
}

.contact label, .contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c5cdd8;
}

.contact input, .contact-form-container input,
.contact textarea, .contact-form-container textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
}

.contact input:focus, .contact-form-container input:focus,
.contact textarea:focus, .contact-form-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(7, 174, 193, 0.3);
}

.contact button, .contact-form-container button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: #121212;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact button:hover, .contact-form-container button:hover {
    background-color: #08c8dd;
    transform: translateY(-2px);
}


/* --- GENERIC PAGE STYLES (Services, Contact, etc.) --- */
.page-hero {
    background-color: #030a14;
    padding: 100px 5%;
    text-align: center;
    border-bottom: 1px solid #172a45;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.page-hero-intro {
    font-size: 1.2rem;
    color: #a8b2d1;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- SERVICES PAGE STYLES --- */
.services-offered {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.services-offered h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-offered > p {
    margin-bottom: 50px;
    color: #a8b2d1;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.service-card {
    background-color: #172a45;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(160, 32, 240, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-card h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.7rem;
}

.service-card p {
    color: #a8b2d1;
    margin-bottom: 0;
}

.secondary-services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.service-column h2 {
    margin-bottom: 15px;
}

.service-column p {
    color: #a8b2d1;
}

.styled-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.styled-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cta-section {
    position: relative;
    padding: 100px 5%;
    text-align: center;
    background-image: linear-gradient(45deg, rgba(160, 32, 240, 0.2), rgba(7, 174, 193, 0.2)), url('/images/cta-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    opacity: 0.5;
}

.cta-section h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 15px;
}

.cta-section p {
    margin-bottom: 30px;
    color: #a8b2d1;
}

/* --- CONTACT PAGE STYLES --- */
.contact-page-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 32, 240, 0.2);
    padding: 50px;
    border-radius: 8px;
}

.contact-details h2, .contact-form-container h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.contact-details p {
    color: #a8b2d1;
    line-height: 1.7;
}

.contact-details h3 {
    font-size: 1.2rem;
    color: #ffffff;
    border-top: 1px solid #334b6c;
    padding-top: 20px;
    margin-top: 30px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-list svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.contact-info-list a {
    color: #a8b2d1;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-info-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-perks {
    padding-left: 5px;
}

.recaptcha-placeholder {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    min-height: 78px;
    margin-bottom: 20px;
}


/* --- ABOUT PAGE STYLES --- */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro-text h2 {
    margin-top: 0;
}

.about-intro-text p {
    color: #a8b2d1;
}

.about-intro-visual img {
    width: 100%;
    border-radius: 8px;
}

.about-intro-visual-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    background-image: radial-gradient(ellipse at center, rgba(7, 174, 193, 0.1), transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.founders-section, .team-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.founders-section h2, .team-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
}

.profile-card {
    background-color: #172a45;
    border-radius: 8px;
    padding: 30px;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
}

.profile-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card h3 {
    margin: 0 0 5px 0;
}

.profile-card h4 {
    margin: 0 0 10px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.profile-card p {
    margin: 0;
    color: #a8b2d1;
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-card h3 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.team-card h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #a8b2d1;
    margin: 0;
}

/* --- PRESS PAGE STYLES --- */
.featured-press-section {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-press-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.featured-press-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-press-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
}

.featured-press-text h3 {
    margin-top: 0;
    font-size: 2rem;
}

.featured-press-text p {
    color: #a8b2d1;
    margin-bottom: 30px;
}

.press-interviews-section {
    padding-top: 80px; 
}

.press-interviews-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 32, 240, 0.2);
    padding: 50px;
    border-radius: 8px;
}
.press-interviews-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

.press-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.press-card {
    background-color: #172a45;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.press-card:hover {
    transform: translateY(-5px);
}

.press-card a {
    display: block;
    text-decoration: none;
}

.press-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.press-card.video-card .press-card-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
}

.press-card-content {
    padding: 20px;
}

.press-card-content h4 {
    margin: 0 0 5px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    color: #a8b2d1;
    font-weight: 400;
}

.press-card-content h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.4;
}

.press-card:hover h3 {
    color: var(--primary-color);
}

.press-kit-section {
    max-width: 900px;
    margin: 0 auto;
}

.press-kit-section h2 {
    text-align: center;
    color: #ffffff;
    margin-top: 80px;
}

.accordion {
    margin-bottom: 15px;
}
.accordion-button {
    background-color: rgba(7, 174, 193, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid rgba(7, 174, 193, 0.3);
    border-radius: 5px;
    text-align: left;
    outline: none;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.accordion-button:hover, .accordion-button.active {
    background-color: rgba(7, 174, 193, 0.2);
}

.accordion-button::after {
    content: '+';
    color: var(--primary-color);
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion-button.active::after {
    content: "−";
}

.accordion-panel {
    padding: 0 18px;
    background-color: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-panel ul {
    padding-top: 20px;
    padding-bottom: 10px;
}

/* --- DEMOS PAGE STYLES --- */
.demos-page-section {
    max-width: 1400px;
    margin: 0 auto;
}

.demos-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #a8b2d1;
}

.filter-btn {
    background: none;
    border: 1px solid #4d4d4d;
    color: #a8b2d1;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #121212;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.select-button {
    background-color: #333333;
    border: 1px solid #4d4d4d;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.select-button span::after {
    content: ' ▼';
    font-size: 0.8em;
    margin-left: 10px;
}

.select-dropdown {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.select-dropdown a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.select-dropdown a:hover {
    background-color: var(--primary-color);
    color: #121212;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.demo-card {
    background-color: #172a45;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    color: inherit;
    text-decoration: none;
    /* UPDATED: Added box-shadow to the transition for the new glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.demo-card:hover {
    /* UPDATED: Added a scale effect and a brand-colored glow */
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 10px rgba(7, 174, 193, 0.4);
}

.demo-card-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* NEW: Add overflow hidden for the zoom effect */
    overflow: hidden;
}

.demo-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* NEW: Add a transition for the zoom effect */
    transition: transform 0.3s ease;
}

/* NEW: Add a zoom effect to the image on card hover */
.demo-card:hover .demo-card-thumbnail img {
    transform: scale(1.05);
}

.demo-card-thumbnail::after {
    content: '►';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* UPDATED: Increased size and refined transition */
    font-size: 60px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}

.demo-card:hover .demo-card-thumbnail::after {
    opacity: 0.9;
    /* UPDATED: Added a subtle scale to the play icon */
    transform: translate(-50%, -50%) scale(1.1);
}

.demo-card-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: #121212;
    padding: 3px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 3px;
}

.demo-card-content {
    padding: 15px;
}

.demo-card-content h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #ffffff;
    /* NEW: Add a transition for the color change */
    transition: color 0.3s ease;
}

/* NEW: Change title color on hover */
.demo-card:hover .demo-card-content h3 {
    color: var(--primary-color);
}

.no-results-message {
    text-align: center;
    font-size: 1.2rem;
    color: #a8b2d1;
    padding: 50px;
}

#load-more-sentinel {
    height: 50px;
}

/* --- LIGHTBOX STYLES --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background-color: #121212;
    padding: 20px;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.lightbox-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.lightbox-container h3 {
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
}

.lightbox-container p {
    color: #a8b2d1;
    margin: 0;
}

/* --- VIEWING GUIDE PAGE --- */
.viewing-guide-section {
    max-width: 1200px;
    margin: 0 auto;
}

.viewing-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.viewing-method-card {
    background-color: #172a45;
    border-radius: 8px;
    border: 1px solid rgba(160, 32, 240, 0.2);
    height: 100%;
}

.viewing-method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #334b6c;
}

.viewing-method-header svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.viewing-method-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.viewing-method-content {
    padding: 20px;
    font-size: 1rem;
    color: #a8b2d1;
}

.viewing-method-content h4 {
    margin-top: 30px;
    color: #ffffff;
}
.viewing-method-content ol {
    padding-left: 20px;
}

/* --- LEGAL PAGES (TERMS, PRIVACY) --- */
.legal-content-section {
    padding-bottom: 100px;
}

.legal-text-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 50px;
    border-radius: 8px;
}

.legal-text-container h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #334b6c;
}

.legal-text-container h2:first-of-type {
    margin-top: 0;
}

.legal-text-container p, 
.legal-text-container li {
    color: #a8b2d1;
}

.legal-text-container strong {
    color: #ffffff;
}

.legal-text-container ul {
    padding-left: 25px;
}

/* --- 404 ERROR PAGE STYLES --- */
.error-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 180px); /* Full viewport height minus header/footer */
    position: relative;
    overflow: hidden;
}

.error-page-container {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.error-page-container h1 {
    font-size: 10rem;
    line-height: 1;
    margin: 0;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-page-container h2 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.error-page-container p {
    font-size: 1.2rem;
    color: #a8b2d1;
    max-width: 450px;
    margin: 0 auto 30px auto;
}

/* --- UPDATED: FOOTER --- */
footer {
    padding: 40px 5%;
    text-align: center;
    background-color: #030a14;
    border-top: 1px solid #172a45;
    /* Updated padding for safe areas */
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    padding-left: calc(5% + env(safe-area-inset-left));
    padding-right: calc(5% + env(safe-area-inset-right));
}
footer .logo {
    margin-bottom: 20px;
}

footer .logo img {
    width: 100px;
    height: auto;
}

footer .social {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer .social a {
    font-size: 1.2rem;
    color: #aaaaaa;
    transition: color 0.3s ease;
}

footer .social a svg {
    height: 24px;
    width: 24px;
    fill: currentColor;
}

footer .social a:hover {
    color: var(--primary-color);
}

footer p {
    font-size: 0.9rem;
    color: #777777;
}

footer p a {
    color: #aaaaaa;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}


/* --- COMPOSITION & ALIGNMENT TWEAKS --- */
.featured-work h2,
.features h2,
.contact h2 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
    text-align: left;
}
.contact h2 {
    text-align: center;
}

/* --- ANIMATIONS & HELPERS --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fixed-bg {
    background-attachment: fixed;
}

/* --- MOBILE NAVIGATION STYLES --- */
.hamburger-btn {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn span {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 5px;
}

/* --- MOBILE NAVIGATION STYLES --- */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 10, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    pointer-events: none;
    overflow-y: auto;
    box-sizing: border-box;
    /* Updated padding for safe areas */
    padding-top: calc(60px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.mobile-nav-container.is-open {
    transform: translateX(0);
    pointer-events: auto;
}

.mobile-nav-container nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-container nav a {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-decoration: none;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 1360px) {
    .features {
        margin-left: 20px;
        margin-right: 20px;
    }
}


@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-work h2,
    .features h2 {
        text-align: center;
    }

    .custom-shape-divider-bottom-1755913749 {
        display: none;
    }

    /* SERVICES, CONTACT, ABOUT & PRESS PAGE RESPONSIVE */
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-services-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-press-item {
        grid-template-columns: 1fr;
    }

    .press-grid {
        grid-template-columns: 1fr;
    }

    header .desktop-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }
    
    section, .featured-work-container {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .page-hero {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .viewing-methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .demos-page-section .demos-filter-bar.desktop-filters {
        display: none;
    }
    .demos-page-section .mobile-filter-trigger {
        display: block;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column !important;
        text-align: center;
    }

    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-card > div {
        grid-column: 1 / 2;
    }

    .profile-card img {
        margin: 0 auto;
    }
    
    section, .featured-work-container {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .page-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .cta-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .work-testimonial q {
        font-size: 1.5rem;
    }
    .work-testimonial q::before {
        font-size: 12rem;
    }
}

/* Refine mobile menu on short screens (e.g., landscape phones) */
@media (max-height: 450px) {
    .mobile-nav-container nav {
        gap: 20px;
    }
    .mobile-nav-container nav a {
        font-size: 1.5rem;
    }
}

/* --- SHAPE DIVIDER STYLES --- */
.custom-shape-divider-bottom-1755913749 {
    position: absolute;
    top: -135px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 10;
}

.custom-shape-divider-bottom-1755913749 svg {
    position: relative;
    display: block;
    width: calc(139% + 1.3px);
    height: 135px;
}

.custom-shape-divider-bottom-1755913749 .shape-fill {
    fill: rgba(10, 25, 47, 0.95);
}

/* --- ENHANCED MOBILE NAVIGATION ANIMATIONS --- */
.hamburger-btn {
    transition: all 0.3s ease-in-out;
}

.hamburger-btn span {
    transition: all 0.3s ease-in-out;
}

.hamburger-btn.is-open {
    transform: rotate(180deg);
}

.hamburger-btn.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-nav-container nav a {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.mobile-nav-container.is-open nav a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-container.is-open nav a:nth-child(1) { transition-delay: 0.15s; }
.mobile-nav-container.is-open nav a:nth-child(2) { transition-delay: 0.20s; }
.mobile-nav-container.is-open nav a:nth-child(3) { transition-delay: 0.25s; }
.mobile-nav-container.is-open nav a:nth-child(4) { transition-delay: 0.30s; }
.mobile-nav-container.is-open nav a:nth-child(5) { transition-delay: 0.35s; }
.mobile-nav-container.is-open nav a:nth-child(6) { transition-delay: 0.40s; }


/* --- MOBILE NAVIGATION LINK FEEDBACK --- */
.mobile-nav-container nav a {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.2s ease;
}

.mobile-nav-container nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-container nav a:active {
    color: var(--primary-color);
    transform: scale(0.97);
}

/* --- UTILITY CLASSES --- */
body.no-scroll {
    overflow: hidden;
}

/* --- PAGE TRANSITION ANIMATIONS (SWUP) --- */
#swup {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

html.is-animating #swup.is-leaving {
    opacity: 0;
    transform: translateY(10px);
}

html.is-rendering #swup {
    opacity: 0;
    transform: translateY(10px);
}

/* --- IMAGE FADE-IN ON LOAD --- */
img {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* Exclude key logos from this effect so they appear instantly */
header .logo img, footer .logo img, .fade-content img {
    opacity: 1;
    transition: none;
}

img.loaded {
    opacity: 1;
}

/* --- SWUP LOADING INDICATOR --- */
.swup-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 9999;
    transition: width 0.4s ease, opacity 0.3s 0.2s ease;
}

/* --- RESPONSIVE DEMOS FILTER DRAWER --- */
.mobile-filter-trigger {
    display: none;
    margin-bottom: 30px;
}

#open-filters-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(7, 174, 193, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
}

.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.filter-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* --- RESPONSIVE DEMOS FILTER DRAWER --- */
.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 90%;
    max-width: 350px;
    height: 100%;
    background-color: #030a14;
    border-left: 1px solid #172a45;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    /* Updated padding for safe areas */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.filter-drawer.is-open {
    transform: translateX(0);
}

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #172a45;
    flex-shrink: 0;
}

.filter-drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

#close-filters-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.filter-drawer-content {
    padding: 30px 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.filter-drawer-content .filter-group {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 30px;
}

.filter-drawer-content .filter-label {
    margin-bottom: 15px;
    font-weight: 700;
}

.filter-drawer-content .filter-group div,
.filter-drawer-content .filter-group button:not(.select-button) {
    flex-basis: 48%;
}

.filter-drawer-content .custom-select-wrapper {
    width: 100%;
}
.filter-drawer-content .select-button {
    width: 100%;
}

/* --- GLOBAL CUSTOM SCROLLBAR --- */
* {
    scrollbar-width: thin;
    scrollbar-color: #4f4f4f var(--dark-grey);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-grey);
}

::-webkit-scrollbar-thumb {
    background-color: #4f4f4f;
    border-radius: 10px;
    border: 2px solid var(--dark-grey);
    transition: background-color 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-color);
}

/* --- CHOICE/ALERT MODAL STYLES --- */
.choice-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.choice-modal-container {
    background-color: #030a14;
    border: 1px solid #172a45;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.choice-modal-container h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

.choice-modal-container p {
    color: #a8b2d1;
    margin-bottom: 30px;
}

.choice-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.choice-modal-buttons .btn-secondary {
    background: none;
    border: 1px solid #334b6c;
    color: #a8b2d1;
    padding: 15px;
    font-size: 1rem;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choice-modal-buttons .btn-secondary:hover {
    background-color: #172a45;
    color: #ffffff;
}

/* --- ACCESSIBILITY --- */
.skip-to-content-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: var(--dark-grey);
    padding: 10px 15px;
    z-index: 9999;
    font-weight: 700;
    transition: top 0.3s ease;
}
.skip-to-content-link:focus {
    top: 0;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #030a14;
    border-top: 1px solid #172a45;
    padding: 15px 5%;
    z-index: 2000;
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-banner.is-visible {
    display: flex;
}

.cookie-consent-banner p {
    margin: 0;
    color: #a8b2d1;
    text-align: center;
}

.cookie-consent-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-banner .btn-primary {
    padding: 8px 25px; /* A smaller button for the banner */
    flex-shrink: 0;
}