:root {
    --primary: #4285f4;
    --primary-dark: #1a73e8;
    --primary-darker: #0d5ec1;
    --secondary: #00c6ff;
    --dark: #1a1a1a;
    --darker: #121212;
    --darkest: #0a0a0a;
    --light: #f5f5f5;
    --gray: #444;
    --surface: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.android-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

/* Header Styles */
header {
    padding: 30px 0;
    position: relative;
    z-index: 10;
}

/* Reserve space for header when injected via templating to avoid CLS */
#header-placeholder { min-height: 110px; display: block; contain: layout style; }

/* Mobile navigation height consistency */
@media (max-width: 780px) {
    #header-placeholder { min-height: 90px; }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulse 3s infinite;
    will-change: box-shadow, transform;
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    will-change: color, width;
}

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

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

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

.nav-cta {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    will-change: transform, box-shadow;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

/* FAQ Hero Section */
.faq-hero-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 48px 40px 44px;
    margin: 40px auto 40px;
    max-width: 1000px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
    will-change: transform;
    contain: content;
    content-visibility: auto;
}

.faq-hero-card::before, .faq-hero-card::after {
    content: '';
    position: absolute;
    width: 220px; 
    height: 220px;
    background: radial-gradient(circle at center, rgba(66,133,244,0.18), transparent 70%);
    top: -60px; 
    left: -40px;
    filter: blur(2px);
}

.faq-hero-card::after { 
    top: auto; 
    bottom: -70px; 
    left: auto; 
    right: -50px; 
    background: radial-gradient(circle at center, rgba(0,198,255,0.18), transparent 70%); 
}

.faq-hero-card h1 {
    font-family: 'Google Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-hero-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Card Styles */
.faq-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(66, 133, 244, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    will-change: transform;
    contain: content;
    content-visibility: auto;
}

.faq-card:nth-child(2) { animation-delay: 0.1s; }
.faq-card:nth-child(3) { animation-delay: 0.2s; }
.faq-card:nth-child(4) { animation-delay: 0.3s; }
.faq-card:nth-child(5) { animation-delay: 0.4s; }
.faq-card:nth-child(6) { animation-delay: 0.5s; }
.faq-card:nth-child(7) { animation-delay: 0.6s; }

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 26px rgba(66, 133, 244, 0.18);
    border-color: rgba(66, 133, 244, 0.35);
}

.faq-card h2 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-card h2 i {
    font-size: 1.5rem;
}

.faq-content {
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Item Styles */
.faq-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light);
}

.faq-item p {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item ul {
    margin: 15px 0;
    padding-left: 20px;
}

.faq-item li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.faq-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-item a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Contact Card Special Styling */
.faq-contact {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(0, 198, 255, 0.1));
    border-color: rgba(66, 133, 244, 0.3);
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Footer styles */
footer {
    background: var(--darker);
    padding: 60px 0 30px;
    position: relative;
    border-radius: 40px 40px 0 0;
    margin-top: 50px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: -1;
    border-radius: 40px 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: all 0.3s ease;
    will-change: background, transform;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.45); }
    60% { box-shadow: 0 0 0 12px rgba(66, 133, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
}


@media (max-width: 480px) {
    .faq-hero-card h1 {
        font-size: 1.8rem;
    }
    .faq-hero-card { 
        padding: 40px 28px 38px;
        margin: 30px 16px 40px;
    }
    
    .faq-card {
        padding: 15px;
    }
    
    .faq-card h2 {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
    }
    
    .mobile-project-name {
        font-size: 1.6rem;
    }
}

/* Performance optimizations */
.faq-card, .btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Respect reduced-motion and disable entrance animations */
@media (prefers-reduced-motion: reduce) {
    .faq-card { animation: none !important; opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* Copyright link styles */
.copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

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