/* --- Twice Class Car Tracker Main Stylesheet --- */
:root {
    --primary-color: #ffffff;
    --accent-color: #0313ff;
    --background-color: transparent;
    --card-bg: #000000;
    --text-color: #000000;
    --light-text: #ffffff;
    --shadow: 0 6px 12px rgba(235, 10, 10, 0.167);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    margin: 0.75rem;
}

.btn:hover, .btn:focus { background: #333; transform: translateY(-2px); }

.request-quote { text-align: center; margin-top: 0.5rem; }

.quote-btn {
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.quote-btn:hover, .quote-btn:focus { background: #1e9e4e; transform: translateY(-2px); }

.section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 50vh;
    padding: 2rem 0;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.section > .container { position: relative; z-index: 2; }

/* Remove overlay for Header, Pricing and Contact sections */
.header.section::before, #pricing.section::before, #contact.section::before { display: none; }

.header {
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    position: relative;
}

.header-content { padding: 2rem 0; margin-top: 0; background: none !important; }

.header-content h1 { 
    font-size: 2.5rem; 
    color: var(--light-text); 
    font-weight: 700; 
    margin-top: -2rem !important; /* Move title upward */
}
.header-content p { font-size: 1.2rem; color: var(--light-text); margin-top: 0.5rem; }

/* Enforce vertical alignment for homepage hero title */
.header.section .container .header-content h1 {
    margin-top: -2rem !important; /* Move title upward */
}

.header-content h1 { 
    font-size: 2.5rem; 
    color: var(--light-text); 
    font-weight: 700; 
    margin-top: -2rem !important; /* Move title upward */
}
.header-content p { font-size: 1.2rem; color: var(--light-text); margin-top: 0.5rem; }

/* Add more space below logo for quote page header */
.header .container h2,
.header .container .content-item[data-content-animate][data-delay="0"] {
    margin-top: 6rem !important;
    padding-top: 2.5rem !important;
}

/* Chrome-specific fix for quote page header overlap */
.header .container {
    padding-top: 7.5rem !important;
    margin-top: 0 !important;
}
@media (max-width: 768px) {
    .header .container {
        padding-top: 5.5rem !important;
        margin-top: 0 !important;
    }

    .header-content h1 { font-size: 2rem; }
    .header-content p { font-size: 1rem; }
}

/* Fading Words Styles */
.fading-words { margin-top: 1rem; min-height: 3rem; display: flex; justify-content: center; align-items: center; }
.fade-text { font-size: 1.2rem; color: var(--light-text); text-align: center; opacity: 0; animation: fadeInOut 5s infinite; }
@keyframes fadeInOut { 0%{opacity:0;} 10%{opacity:1;} 90%{opacity:1;} 100%{opacity:0;} }

/* Ensure consistent white color for typing effect text */
.fading-words, #fadingWords {
    color: #fff !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
    border: none !important;
    opacity: 1 !important;
}
/* Remove any animation or flicker */
.fade-text {
    color: #fff !important;
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
}
/* Ensure no temporary color changes */
@keyframes fadeInOut {
    0% { opacity: 1; color: #fff; }
    100% { opacity: 1; color: #fff; }
}

/* Header Animation Image (animation.gif) */
.header-animation { 
    width: 100%; 
    text-align: center; 
    background: transparent; 
    padding: 20px 0; 
    margin-top: -1rem;
    margin-bottom: 0;
}
.header-animation img { 
    max-width: 280px; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
    transform: translateY(-30px) !important; 
    margin-bottom: 0 !important;
}

/* Download App Image (dl-png.png) */
.download-app { 
    margin-top: -2rem; 
    text-align: center; 
    position: relative;
    z-index: 2;
}
.download-app img { 
    width: 220px; 
    height: auto; 
    display: block; 
    margin: 0 auto;
    transform: translateY(-15px); /* Move closer to gif by default */
}

/* Mobile specific positioning for download app image */
@media (max-width: 600px) {
    .download-app { 
        margin-top: -3rem !important; 
        text-align: center;
        position: relative;
        z-index: 1;
    }
    .download-app img { 
        width: 280px; 
        margin: 0 auto; 
        display: block;
        transform: translateY(-15px); /* Move even closer to gif */
    }
    .header-animation { 
        margin-top: -1.5rem !important;
        margin-bottom: 0 !important; 
        padding: 15px 0;
    }
    .header-animation img { 
        max-width: 240px;
        margin-bottom: 0 !important; 
        transform: translateY(-20px) !important;
    }
}

/* Tablet specific positioning */
@media (min-width: 601px) and (max-width: 1023px) {
    .download-app { 
        margin-top: -2.5rem !important; 
    }
    .download-app img { 
        width: 350px; 
        margin: 0 auto; 
        transform: translateY(-20px); /* Move closer to gif */
    }
    .header-animation { 
        margin-top: -1rem !important;
        padding: 25px 0;
    }
    .header-animation img { 
        max-width: 260px;
        transform: translateY(-25px) !important;
    }
}

/* Desktop-only: Increase download app image size and position */
@media (min-width: 1024px) {
    .download-app { 
        margin-top: -2.5rem !important; 
    }
    .download-app img { 
        width: 420px; 
        height: auto; 
        margin: 0 auto;
        transform: translateY(-25px); /* Move closer to gif on desktop */
    }
    .header-animation { 
        margin-top: -1.5rem !important;
        padding: 30px 0;
    }
    .header-animation img { 
        max-width: 300px;
        transform: translateY(-30px) !important;
    }
}

#about, #about h2, .about-us-content p, #why-choose-us h2, #why-choose-us .why-choose-us-content p, #why-choose-us .why-choose-us-content ul, #why-choose-us .why-choose-list li, #why-choose-us .why-choose-list li strong { color: #fff; }

.about-us-container, .why-choose-us-container { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.about-us-content, .why-choose-us-content { flex: 1; }
.about-us-image, .why-choose-us-image { flex: 1; max-width: 400px; }
.about-us-image img, .why-choose-us-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }

#why-choose-us .why-choose-list li, #why-choose-us .why-choose-list li strong { color: #ffffff; }

.why-choose-us-container { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; visibility: visible; opacity: 1; }
.why-choose-us-content { flex: 1; }
.why-choose-us-image { flex: 1; max-width: 400px; }
.why-choose-us-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }

.ceo-md {
    text-align: center;
    margin-top: 2rem;
}

.ceo-md img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.ceo-caption {
    font-size: 1rem;
    color: #ffffff;
    margin-top: 0.5rem;
    font-style: italic;
}

.why-choose-list { list-style: none; padding: 0; margin-top: 1rem; }

.why-choose-list li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.why-choose-list li strong {
    font-weight: 600;
}

.why-choose-list .check-emoji {
    position: absolute;
    left: 0;
    top: 0.2rem;
}

/* Services Section */
#services .card, #pricing .card {
    background: #000c; color: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow);
    transition: transform 0.3s; text-align: center; font-weight: 500; display: flex; flex-direction: column; align-items: center; height: 100%; opacity: 0.8;
}
#pricing .card { background: rgba(255,255,255,0.9); color: #333; }
#pricing .card h3, #pricing .card p { color: #000; }
#pricing .price { font-size: 2.2em; font-weight: 700; color: #ffae00; margin: 1rem 0; }
#pricing .card ul li { color: #333; padding: 0.5rem 0; text-align: center; }

#contact { color: #333; background: #fff; }
#contact h2, #contact p { color: #333; }

/* --- Pricing Hero Overlay Fix --- */
.pricing-hero, .pricing-hero .container, .pricing-hero > * { background: none !important; box-shadow: none !important; position: relative; z-index: 10; }
.pricing-section { margin-top: 0 !important; padding-top: 0 !important; }

/* --- Breadcrumb Hide on Desktop (All Pages) --- */
@media (min-width: 769px) { .breadcrumb { display: none !important; } }

/* Media Queries */
@media (max-width: 768px) {
    .about-us-container, .why-choose-us-container { flex-direction: column; gap: 1rem; }
    .about-us-image, .why-choose-us-image { max-width: 100%; }
    .why-choose-list li { font-size: 0.85rem; padding-left: 1.5rem; }
    .why-choose-list .check-emoji { top: 0.1rem; }
    .ceo-md img { max-width: 250px; }
    .header .container { padding-top: 5.5rem !important; }
    .header-content h1 { font-size: 2rem; }
    .header-content p { font-size: 1rem; }
    .fading-words { min-height: 2.5rem; }
    .fade-text { font-size: 1rem; }
    .header { min-height: 50vh; }
    .header-content { margin-top: 0; }
    .header-animation { padding: 15px 0; }
    .header-animation img { max-width: 220px; margin: 5px auto 0 auto; transform: translateY(-15px) !important; }
    .request-quote { margin-top: 0.5rem; }
    .download-app { margin-top: -2.5rem !important; }
    .download-app img { width: 320px; margin: 0 auto; transform: translateY(-20px); }
    .section { position: relative; z-index: 1; }
    .pricing-intro p { font-size: 1rem; }
    .section h2 { font-size: 1.8rem; }
    .card { padding: 1rem; }
    .card h3 { font-size: 1.2rem; }
    .card p { font-size: 0.85rem; }
    .price { font-size: 1.8em; }
    #why-choose-us { padding: 2rem 0; }
}

/* Services Card Images - Removed */
.card-image { display: none; }

/* Section Styles */
.section h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.card { padding: 1.5rem; border-radius: 12px; box-shadow: var(--shadow); transition: transform 0.3s; text-align: center; font-weight: 500; display: flex; flex-direction: column; align-items: center; height: 100%; opacity: 0.8; }
.card:hover { transform: translateY(-5px); }
.card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; font-weight: 600; }

/* Pricing Section Intro */
.pricing-intro { text-align: center; max-width: 800px; margin: 0 auto 2rem; }

/* Floating WhatsApp Icon */
/* WhatsApp Floating Button - reusable for all pages */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.whatsapp-float .whatsapp-label {
    background: #25d366;
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 1em;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 0.2em;
}
.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}
.whatsapp-float a:hover {
    background: #1ebe57;
}
.whatsapp-float i {
    font-size: 2rem;
    color: #fff;
}
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 16px;
        right: 12px;
    }
    .whatsapp-float .whatsapp-label {
        font-size: 0.97rem;
        padding: 0.25em 0.7em;
    }
    .whatsapp-float a {
        width: 46px;
        height: 46px;
    }
    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* Footer Sections Styling */
.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    text-align: center;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
    background: rgba(255, 0, 0, 0.1);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Request Quote Button in Footer */
.request-quote-btn {
    text-align: center;
    margin-top: 2rem;
}

.request-quote-btn .quote-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.request-quote-btn .quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

/* Ensure header background image is visible */
.header.section {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* Ensure header container doesn't have background */
.header .container {
    background: none !important;
    background-color: transparent !important;
}

/* Ensure header content doesn't have background */
.header-content {
    background: none !important;
    background-color: transparent !important;
}

.header-top, .nav-menu, .nav-menu-advanced, .nav-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* --- Navigation: White background and dark text for all pages except homepage --- */
.advanced-nav,
.advanced-nav .nav-container,
.advanced-nav .nav-menu-advanced,
.advanced-nav .dropdown-menu,
.advanced-nav .mobile-menu {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.advanced-nav .nav-link,
.advanced-nav .nav-link i,
.advanced-nav .mobile-nav-link,
.advanced-nav .mobile-nav-link i {
    color: #222 !important;
}
.advanced-nav .nav-link.active,
.advanced-nav .mobile-nav-link.active {
    color: #ff4500 !important;
    font-weight: 700;
}
.advanced-nav .dropdown-menu,
.advanced-nav .mobile-dropdown {
    background: #fff !important;
    color: #222 !important;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.advanced-nav .dropdown-item,
.advanced-nav .mobile-dropdown-item {
    color: #222 !important;
}
.advanced-nav .dropdown-item:hover,
.advanced-nav .mobile-dropdown-item:hover {
    background: #f5f5f5 !important;
    color: #ff4500 !important;
}
.advanced-nav .nav-logo img {
    filter: none !important;
}
.advanced-nav .mobile-menu {
    background: #fff !important;
    color: #222 !important;
}
.advanced-nav .mobile-menu .mobile-nav-link,
.advanced-nav .mobile-menu .mobile-dropdown-item {
    color: #222 !important;
}
.advanced-nav .mobile-menu .mobile-nav-link.active {
    color: #ff4500 !important;
}
.advanced-nav .mobile-menu .mobile-dropdown-item:hover {
    color: #ff4500 !important;
}
.advanced-nav .mobile-menu .dropdown-arrow {
    color: #222 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav,
body:not(.homepage) .advanced-nav .nav-container {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body:not(.homepage) .advanced-nav .nav-logo img {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure nav blends with white background on scroll */
.advanced-nav.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Remove any transparent/dark backgrounds from nav on non-home pages */
body:not(.homepage) .advanced-nav,
body:not(.homepage) .advanced-nav .mobile-menu {
    background: #fff !important;
    color: #222 !important;
}

/* Fix for dropdown arrow color */
.advanced-nav .dropdown-arrow {
    color: #222 !important;
}

/* Fix for nav icons */
.advanced-nav .nav-link i,
.advanced-nav .mobile-nav-link i {
    color: #222 !important;
}

/* Fix for nav active state */
.advanced-nav .nav-link.active,
.advanced-nav .mobile-nav-link.active {
    color: #ff4500 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .nav-logo img {
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .nav-container {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .nav-menu-advanced {
    background: #fff !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .dropdown-menu {
    background: #fff !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .mobile-menu {
    background: #fff !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .mobile-dropdown {
    background: #fff !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .mobile-nav-link,
body:not(.homepage) .advanced-nav .mobile-dropdown-item {
    color: #222 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .mobile-nav-link.active {
    color: #ff4500 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .mobile-dropdown-item:hover {
    color: #ff4500 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .dropdown-arrow {
    color: #222 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .nav-link i,
body:not(.homepage) .advanced-nav .mobile-nav-link i {
    color: #222 !important;
}

/* Remove nav container/card backgrounds except homepage */
body:not(.homepage) .advanced-nav .nav-link.active,
body:not(.homepage) .advanced-nav .mobile-nav-link.active {
    color: #ff4500 !important;
}

/* Make navigation bar and all containers transparent */
.advanced-nav,
.advanced-nav .nav-container,
.advanced-nav .nav-menu-advanced,
.advanced-nav .mobile-menu {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove background from dropdowns and mobile menu */
.advanced-nav .dropdown-menu,
.advanced-nav .mobile-menu,
.advanced-nav .mobile-dropdown {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* --- Fix mobile menu visibility and text color --- */
.mobile-menu,
.advanced-nav .mobile-menu,
.advanced-nav .mobile-menu .mobile-nav-link,
.advanced-nav .mobile-menu .mobile-dropdown-item {
    color: #fff !important;
    background: rgba(0,0,0,0.92) !important;
    z-index: 9999 !important;
}
.advanced-nav .mobile-menu .dropdown-arrow {
    color: #fff !important;
}

/* Optional: Make mobile menu links/text readable on dark backgrounds */
.advanced-nav .mobile-menu,
.advanced-nav .mobile-menu .mobile-nav-link,
.advanced-nav .mobile-menu .mobile-dropdown-item {
    color: #ffffff00 !important;
}

/* Utility: Remove mobile menu footer icons when menu is not active */
.mobile-menu-footer { display: none; }
.mobile-menu.active .mobile-menu-footer { display: block; }

/* Utility: Fix mobile menu not overlapping hero content */
.advanced-nav .mobile-menu { position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px); color: #fff; z-index: 9999; overflow-y: auto; }

/* Utility: Hamburger icon color */
.advanced-nav .mobile-toggle span { background: #fff !important; }

/* Utility: Nav stays above hero */
.advanced-nav { position: fixed; width: 100%; z-index: 10000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* --- Mobile Menu & Animation Styles (migrated from index.html <style> block) --- */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu-footer {
    display: none;
}
.mobile-menu.active .mobile-menu-footer {
    display: block;
}
.advanced-nav {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.advanced-nav.scrolled {
    background: rgba(0,0,0,0.7) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: none;
}
.nav-logo img {
    height: 90px !important;
    max-width: 220px !important;
    width: auto !important;
    margin-top: -12px !important;
}
@media (max-width: 768px) {
    .nav-logo img {
        height: 90px !important;
        max-width: 180px !important;
        margin-top: -19px !important;
    }
}
/* Feature Highlights Section */
.feature-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 180px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.feature-item i {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.feature-item span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    .feature-highlights {
        gap: 1rem;
    }
    .feature-item {
        min-width: 150px;
        padding: 1rem;
    }
    .feature-item i {
        font-size: 2rem;
    }
    .feature-item span {
        font-size: 1rem;
    }
}
/* Fading words animation for hero section */
.fading-words {
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}
.fade-text {
    opacity: 0;
    animation: fadeInOut 5s ease-in-out forwards;
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    15% { opacity: 1; transform: translateY(0); }
    85% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}
.color-cycle {
    animation: colorCycle 3s linear infinite;
    color: #ff4500;
}
@keyframes colorCycle {
    0%   { color: #ff4500; }
    25%  { color: #1e90ff; }
    50%  { color: #ffd700; }
    75%  { color: #32cd32; }
    100% { color: #ff4500; }
}

/* --- Ensure Mobile Menu Works on All Pages --- */
.advanced-nav {
    position: fixed;
    width: 100%;
    z-index: 10000;
    top: 0;
    left: 0;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0,0,0,0.92);
    color: #fff;
    z-index: 9999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.mobile-menu.active {
    transform: translateX(0);
}
.mobile-menu-footer {
    display: none;
}
.mobile-menu.active .mobile-menu-footer {
    display: block;
}
.mobile-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 5px 0;
    background: #fff !important;
    border-radius: 2px;
    transition: all 0.3s;
}
@media (max-width: 768px) {
    .nav-logo img {
        height: 90px !important;
        max-width: 180px !important;
        margin-top: -19px !important;
    }
}

/* --- Figma-Style Advanced Navigation Bar --- */
.figma-nav {
  position: fixed;
  top: 0; left: 0; width: 100vw;
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(12px);
  z-index: 10000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: background 0.3s;
}
.figma-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
}
.figma-logo img {
  height: 60px;
  width: auto;
  display: block;
}
.figma-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.figma-nav-links li {
  position: relative;
}
.figma-nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.figma-nav-links a:hover,
.figma-nav-links .active > a {
  color: #ffd700;
}
.figma-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.figma-dropdown .arrow {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 6px;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.figma-dropdown.open .arrow {
  transform: rotate(-135deg);
}
.figma-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(30,30,40,0.98);
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 0.5rem 0;
  z-index: 10001;
}
.figma-dropdown.open .dropdown-menu {
  display: block;
}
.figma-dropdown .dropdown-menu li a {
  color: #fff;
  padding: 10px 24px;
  display: block;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.figma-dropdown .dropdown-menu li a:hover {
  background: #ffd70022;
  color: #ffd700;
}
.figma-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10002;
}
.figma-hamburger span {
  display: block;
  width: 28px;
  height: 4px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.figma-hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.figma-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.figma-hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.figma-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(20,20,30,0.98);
  z-index: 10001;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 90px;
  transition: transform 0.3s;
  transform: translateX(-100vw);
}
.figma-mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.figma-mobile-menu ul {
  width: 100%;
  list-style: none;
  padding: 0;
}
.figma-mobile-menu li {
  width: 100%;
}
.figma-mobile-menu a {
  color: #fff;
  display: block;
  padding: 18px 32px;
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid #222;
  transition: background 0.2s, color 0.2s;
}
.figma-mobile-menu a:hover {
  background: #ffd70022;
  color: #ffd700;
}
.figma-mobile-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  justify-content: space-between;
}
.figma-mobile-dropdown .arrow {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 6px;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.figma-mobile-dropdown.open .arrow {
  transform: rotate(-135deg);
}
.figma-mobile-dropdown .dropdown-menu {
  display: none;
  background: rgba(30,30,40,0.98);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 0;
  margin: 0;
}
.figma-mobile-dropdown.open .dropdown-menu {
  display: block;
}
.figma-mobile-dropdown .dropdown-menu li a {
  padding: 14px 48px;
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .figma-nav-links {
    display: none;
  }
  .figma-hamburger {
    display: flex;
  }
  .figma-mobile-menu {
    display: flex;
  }
}
@media (min-width: 901px) {
  .figma-nav-links {
    display: flex !important;
  }
  .figma-dropdown {
    position: relative;
  }
  .figma-dropdown .dropdown-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .figma-dropdown.open .dropdown-menu,
  .figma-dropdown:hover .dropdown-menu,
  .figma-dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  .figma-dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}