/* Servana App Styles */

/* Bootstrap compatibility fixes */
.row {
    --bs-gutter-x: 1.5rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    display: flex;
    flex-wrap: wrap;
}

.col-lg-5 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }
}

.split-border {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
.split-border--top {
    width: calc(100% - 2rem);
    top: .03125rem;
    left: 1rem;
    border-top: 1px solid rgb(255 255 255 / 41%);
}
.split-border:before, .split-border:after {
    content: "";
    width: .5rem;
    height: .5rem;
    display: block;
    position: absolute;
    transition: opacity .3s ease-in-out;
}
.split-border--top:before {
    top: -.0625rem;
    left: -1rem;
    border-top-left-radius: 75%;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
}
.split-border--top:after {
    top: -.0625rem;
    right: -1rem;
    border-top-right-radius: 75%;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

/* Footer Split Border - Gray Version */
.split-border--footer {
    position: relative;
    width: calc(100% - 4rem);
    height: 1px;
    border-top: 1px solid rgb(128 128 128 / 41%);
    margin: 0 2rem 2rem 2rem;
}

.split-border--footer:before {
    content: "";
    width: .5rem;
    height: .5rem;
    display: block;
    position: absolute;
    top: -.0625rem;
    left: -1rem;
    border-top-left-radius: 75%;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
}

.split-border--footer:after {
    content: "";
    width: .5rem;
    height: .5rem;
    display: block;
    position: absolute;
    top: -.0625rem;
    right: -1rem;
    border-top-right-radius: 75%;
    border-top: 1px solid #808080;
    border-right: 1px solid #808080;
}

/* Sleek Tech Footer */
.site-footer {
    margin-top: 5rem;
    color: #6c757d;
    overflow-x: hidden;
}

/* Footer content styling removed - using Bootstrap container-fluid instead */

/* Main Footer Content */
.footer-main {
    padding: 2.5rem 0 1.5rem 0;
}

/* Brand Section */
.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 28px;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Navigation Sections */
.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h6 {
    font-family: 'title2', sans-serif;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ff6b35;
}

/* Contact & Social */
.footer-contact {
    margin-bottom: 1.5rem;
}

.contact-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ff6b35;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 3rem;
    }
    
    .footer-main {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-section {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:first-child {
        margin-bottom: 1rem;
    }
}

/* Custom Font Import */
@font-face {
    font-family: 'TitleFont';
    src: url('../font/titlefont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'title2';
    src: url('../font/Magnetik-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'lazare';
    src: url('../font/LazareGrotesk-Light.woff2') format('woff2');
    font-weight: light;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'lazare';
    src: url('../font/LazareGrotesk-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Base styles */
body {
    font-family: 'Figtree', sans-serif;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
}

.firstpage-hero {
    width: 100%;
    height: 80vh;
    position: relative;
    min-height: 800px;
}

.brand-logo {
    width: 180px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'title2', serif;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container-fluid {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 0;
    padding-top: 4rem; /* Account for fixed navbar height */
}

/* Remove top padding for homepage since navbar is transparent */
body.home .main-content {
    padding-top: 0;
}

/* Remove top padding for investor relations pages since navbar is transparent */
body.investor-relations .main-content {
    padding-top: 0;
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Default nav state for non-home pages */
.main-nav {
    background-color: white;
}

/* Transparent nav for homepage */
body.home .main-nav {
    background-color: rgba(255,255,255,0);
    padding-left: 25px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    padding-right: 25px;
    box-shadow: none;
}

/* Transparent nav for investor relations pages */
body.investor-relations .main-nav {
    background-color: rgba(255,255,255,0);
    padding-left: 25px;
    padding-top: 20px;
    border-bottom: 1px solid rgba(255,255,255,0);
    backdrop-filter: blur(0px);
    padding-right: 25px;
    box-shadow: none;
}

/* Scrolled state for homepage */
body.home .main-nav.scrolled {
    padding: 0px;
    padding-left: 25px;
    padding-top: 20px;
    padding-right: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    height: 100px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.1);
}

/* Scrolled state for investor relations pages */
body.investor-relations .main-nav.scrolled {
    padding: 0px;
    padding-left: 25px;
    padding-top: 20px;
    padding-right: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    height: 100px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.brand-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    position: relative;
}

.brand-logo {
    height: 2rem;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Logo handling */
body.home .logo-white {
    opacity: 1;
}

body.home .logo-color {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

body.home .main-nav.scrolled .logo-white {
    opacity: 0;
}

body.home .main-nav.scrolled .logo-color {
    opacity: 1;
}

/* Default state for non-home */
.logo-white {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-color {
    opacity: 1;
}

/* Menu links */
.menu {
    display: flex;
    gap: 1.5rem;
}

.menu-link {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.menu-link:hover {
    color: #333;
    border-bottom: 2px solid #ccc;
}

.menu-link.active {
    color: #4338ca;
    border-bottom-color: #4338ca;
}

/* Homepage specific styles */
body.home .menu-link {
    color: white;
}

body.home .menu-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

body.home .menu-link.active {
    color: white;
    border-bottom-color: white;
}

/* Scrolled state for homepage menu */
body.home .main-nav.scrolled .menu-link {
    color: #555;
}

body.home .main-nav.scrolled .menu-link:hover {
    color: #333;
    border-bottom-color: #ccc;
}

body.home .main-nav.scrolled .menu-link.active {
    color: #4338ca;
    border-bottom-color: #4338ca;
}

/* Dropdown Menu Styles */
.menu-dropdown {
    position: relative;
    display: inline-block;
}

.menu-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    z-index: 999;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.menu-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    background: var(--white, white);
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0;
    padding-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--gray-700, #333);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-link:hover {
    background: var(--orange-accent, #ffede8);
    border-color: var(--orange-light, #ff8c61);
    color: var(--gray-900, #1a1a1a);
}

.dropdown-link.active {
    background: var(--primary-orange, #ff6b35);
    color: white;
}

.dropdown-link-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dropdown-link-title {
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.15rem;
}

.dropdown-link-desc {
    font-size: 0.8rem;
    color: var(--gray-500, #666);
    display: block;
}

.dropdown-link:hover .dropdown-link-desc,
.dropdown-link.active .dropdown-link-desc {
    color: inherit;
    opacity: 0.8;
}

/* Responsive dropdown positioning */
@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        right: -1rem;
        min-width: 260px;
        left: auto;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
}

.menu-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #555;
}

/* Menu icon for homepage */
body.home .menu-icon {
    color: white;
}

body.home .main-nav.scrolled .menu-icon {
    color: #555;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.mobile-link {
    display: block;
    padding: 0.75rem 0;
    color: #555;
    text-decoration: none;
    font-weight: 500;
}

.mobile-link.active {
    color: #4338ca;
}

/* Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    overflow: hidden;
}

.hero-container.scrolled {
    opacity: 0;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    background-color: #1a1a1a; /* Fallback background while video loads */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#hero-video.loaded {
    opacity: 1;
}

.hero-content {
    position: absolute;
    width: 100%;
    bottom: 20px;
    height: auto;
    left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    min-height: 50px;
    overflow: hidden;
    z-index: 2;
    padding-bottom: 80px;
}
.hero-content .bottom-content {
    position: absolute;
    width: calc(100% - 40px);
    bottom: 0;
    height: 60px;
    margin-left: -10px;
}
.hero-content .bottom-content p {
    font-family: 'lazare', serif;
    color: white;
    text-transform: uppercase;
    font-weight: 100;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 26px;
    margin-left: 15px;
    letter-spacing: 0.5px;
}
.hero-content .bottom-content p.right {
    text-align: right;
    padding-right: 15px;
}
.hero-content h1 {
    font-family: 'title2', serif;
    color: white;
    font-size: 6rem;
    font-weight: 300;
}
.footer-trigger {
    position: absolute;
    width: 100px;
    height: 30px;
    background-color: red;
}
h3.quote {
    font-family: 'lazare', serif;
    color: black;
    font-size: 3rem;
    font-weight: 300;
    margin-top: 15vh;
}
p.desc {
    font-family: 'lazare', serif;
    color: black;
    font-size: 1.3rem;
    font-weight: 300;
    margin-top: 15vh;
}
.hero-content h4 {
    font-family: 'lazare', serif;
    font-weight: light;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
}
.hero-title {
    font-family: 'title2', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    background-color: #4338ca;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.hero-cta:hover {
    background-color: #3730a3;
}

.content-section {
    padding: 4rem 0;
    background-color: white;
    position: relative;
    z-index: 3;
}

/* Footer */
.footer {
    background-color: white;
    border-top: 1px solid #eee;
    height: 100vh;
}

.footer-pusher {
    height: 600px;
}
.footer-pusher.fixedPos {
    height: calc(100vh + 600px);
}
.footer.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.footer-content {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Utility Classes */
.hidden {
    display: none;
}

.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.image-section {
    width: 100%;
    height: 80vh;
    margin-top: 100px;
    padding-left: 100px;
    padding-right: 100px;
    opacity: 0.85;
}
.image-holder {
    width: calc((100% /3) - 50px);
    margin-left: 25px;
    margin-right: 25px;
    height: 100%;
    border-radius: 70px;
    float: left;
    position: relative;
    overflow: hidden;
}

.section-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 70px;
}

.image-holder .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 70px;
    z-index: 1;
    pointer-events: none;
}

/* Banners row (image-section-2) */
.image-section-2 {
    width: 100%;
    height: 70vh;
    min-height: 480px;
    margin-top: 8rem;
    padding-left: 100px;
    padding-right: 100px;
    display: flex;
    gap: 50px;
}

.image-section-2 .image-holder {
    flex: 1 1 0;
    height: 100%;
    border-radius: 40px;
    background-size: auto 120%;
    background-position: center;
    background-repeat: no-repeat;
    will-change: background-size;
    transition: background-size 0.6s ease-in-out;
}

/* Default backgrounds; can be swapped to images later */
.image-section-2 .image-holder:nth-child(1) {
    background-image: url('../img/spell-banner.png');
}

.image-section-2 .image-holder:nth-child(2) {
    background-image: url('../img/userdesk-banner.png');
}

.image-section-2 .image-holder:hover {
    background-size: auto 100%;
}

/* Optional inner meta overlay */
.image-section-2 .image-meta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: start;
    padding: 2rem;
    border-radius: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0.0) 50%);
    z-index: 2;
}

.image-section-2 .meta-content {
    color: #fff;
}

.image-section-2 .meta-title {
    font-family: 'title2', serif;
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
}

.image-section-2 .meta-btn {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.image-section-2 .meta-btn:hover {
    background: #fff;
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .image-section-2 {
        height: 50vh;
        min-height: 380px;
        padding-left: 40px;
        padding-right: 40px;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .image-section {
        height: auto;
        min-height: 0;
        margin-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .image-section .image-holder {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        float: none;
        height: 45vh;
        min-height: 260px;
        border-radius: 28px;
    }

    .image-section .section-video,
    .image-section .image-holder .overlay {
        border-radius: 28px;
    }

    .image-section-2 {
        height: auto;
        min-height: 0;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
    }
    .image-section-2 .image-holder {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        float: none;
        height: 45vh;
        min-height: 280px;
        border-radius: 28px;
    }
    .image-section-2 .image-meta { 
        border-radius: 28px;
        padding: 1.25rem;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }

    /* Ensure hero text block respects side margins on mobile */
    .hero-content {
        width: calc(100% - 40px);
    }
    
    /* Slightly more horizontal padding for content on mobile */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    body.home .main-nav {
        padding: 20px;
    }
    
    body.home .main-nav.scrolled {
        padding: 0px 10px;
    }
    
    /* Adjust main content padding for mobile */
    .main-content {
        padding-top: 5rem; /* Slightly more space on mobile */
    }
    
    body.home .main-content {
        padding-top: 0; /* Keep homepage without padding */
    }
    
    .menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        transform: translate(-1px, 15px) scale(1.5);
    }
    
    .mobile-menu.hidden {
        display: none;
    }
    
    .mobile-menu:not(.hidden) {
        display: block;
        background-color: white;
        border-top: 1px solid #e5e5e5;
        padding: 1rem 0;
    }
    
    .mobile-link {
        display: block;
        color: #555;
        text-decoration: none;
        font-weight: 500;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-link:hover {
        color: #333;
    }
    
    .mobile-link.active {
        color: var(--primary-orange, #ff6b35);
    }
    
    .mobile-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile Dropdown Styles */
    .mobile-dropdown {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-dropdown-trigger {
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        color: #555;
        font-weight: 500;
        padding: 0.75rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: color 0.2s ease;
        font-size: 1rem;
    }
    
    .mobile-dropdown-trigger:hover {
        color: #333;
    }
    
    .mobile-dropdown-trigger.active {
        color: var(--primary-orange, #ff6b35);
    }
    
    .mobile-dropdown-arrow {
        transition: transform 0.2s ease;
    }
    
    .mobile-dropdown-arrow.rotated {
        transform: rotate(180deg);
    }
    
    .mobile-dropdown-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--gray-100, #f5f5f5);
        margin: 0 -1rem;
        padding: 0 1rem;
        border-radius: 8px;
    }
    
    .mobile-dropdown-content.show {
        max-height: 300px;
        padding: 0.5rem 1rem;
    }
    
    .mobile-dropdown-link {
        display: block;
        color: #666;
        text-decoration: none;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        margin-bottom: 0.25rem;
    }
    
    .mobile-dropdown-link:hover {
        background: var(--orange-accent, #ffede8);
        color: var(--gray-900, #1a1a1a);
    }
    
    .mobile-dropdown-link.active {
        background: var(--primary-orange, #ff6b35);
        color: white;
    }
    
    /* Video responsive adjustments */
    #hero-video {
        /* Ensure video covers full screen on mobile */
        min-width: 100vw;
        min-height: 100vh;
    }
    
    .hero-container {
        min-height: 100vh;
        height: 100vh;
    }
    
    .canvas-container {
        /* Prevent any overflow issues on mobile */
        overflow: hidden;
    }
    
    /* Hero content mobile adjustments */
    .hero-content .row {
        min-height: 200px;
        flex-direction: column;
        align-items: start;
    }
    
    .hero-content .col-lg-4 {
        margin-top: 20px;
        align-items: start;
    }
    
    .hero-content .col-lg-4 h4 {
        align-self: start;
    }
}

/* Homepage Specific Styles */
/* For the fade effect */
.content-section {
    position: relative;
    z-index: 5;
    padding-bottom: 15vh; /* Add padding at the bottom of the content section */
    background-color: white; /* Ensure background color is explicitly set */
}

.hero-container {
    transition: opacity 0.1s ease;
    position: relative;
    z-index: 10; 
    min-height: unset !important;
    height: 100vh;
}

.hero-content {
    z-index: 20;
}

/* Override any spacer styles */
.scrollmagic-pin-spacer {
    padding-bottom: 0 !important;
}

/* Add margin-top to the first quote */
h3.quote {
    margin-top: 40vh !important; /* Increased from 30% to 50% of viewport height */
    margin-bottom: 0vh !important; /* Added bottom margin for spacing before image section */
    padding-top: 10vh; /* Additional padding at the top */
}

/* Ensure hero never fully disappears before content is visible */
/* (previous experimental min-opacity property removed; not valid CSS) */

/* Add backface visibility to prevent flicker */
.hero-container, .content-section {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Additional responsive font sizing for hero */
@media (max-width: 767px) {
    h3.quote {
        font-size: 30px !important;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    }
    
    .hero-content h4 {
        font-size: 1.2rem !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
    
    .hero-content h4 {
        font-size: 1.3rem !important;
    }
}

.hero-content .row {
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: end;
}

.hero-content .col-lg-4 {
    display: flex;
    align-items: end;
}

.hero-content .col-lg-4 h4 {
    margin-bottom: 0;
    align-self: end;
} 