* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1512;
    --bg-card: #2a2520;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #3f3f46;
    --transition: all 0.3s ease;
}
body.light-mode {
    --bg-primary: #f9f9f9;
    --bg-secondary: #f5f5f5;
    --bg-card: #f0f0f0;
    --accent-red: #dc2626;
    --accent-red-hover: #b91c1c;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --border-color: #dddddd;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    overflow-x: hidden;
    position: relative;
}
/* Starry Background – generated purely with CSS */
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;                      /* behind video & overlay */
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
    background:
        /* Large distant stars */
        radial-gradient(2px 2px at 20% 30%, #fff, rgba(255,255,255,0) 80%),
        radial-gradient(1.5px 1.5px at 45% 60%, #eee, rgba(255,255,255,0) 80%),
        radial-gradient(2.2px 2.2px at 70% 15%, #fff, rgba(255,255,255,0) 80%),
        radial-gradient(1.8px 1.8px at 10% 80%, #ddd, rgba(255,255,255,0) 80%),
        /* Medium stars */
        radial-gradient(1.2px 1.2px at 35% 40%, #fff8, rgba(0,0,0,0) 70%),
        radial-gradient(1.4px 1.4px at 55% 75%, #fff9, rgba(0,0,0,0) 70%),
        radial-gradient(1px 1px at 85% 25%, #fff, rgba(255,255,255,0) 80%),
        /* Small dense stars – more of them */
        radial-gradient(0.8px 0.8px at 15% 10%, white 40%, transparent 70%),
        radial-gradient(0.9px 0.9px at 28% 55%, white 40%, transparent 70%),
        radial-gradient(0.7px 0.7px at 62% 38%, white 40%, transparent 70%),
        radial-gradient(1px 1px at 78% 82%, white 40%, transparent 70%),
        radial-gradient(0.6px 0.6px at 40% 90%, white 50%, transparent 80%),
        radial-gradient(0.8px 0.8px at 90% 45%, white 40%, transparent 70%);
    background-color: transparent;
    background-size: 180% 180%, 160% 160%, 200% 200%, 140% 140%, 220% 220%;
    background-position: 0% 0%, 30% 40%, 70% 10%, 10% 70%, 50% 50%;
    animation: drift 120s linear infinite;
}

body:not(.light-mode) .stars {
    opacity: 0.85;                    /* slightly softer than 1 */
}

/* Gentle slow drift for realism */
@keyframes drift {
    0%   { background-position: 0% 0%, 30% 40%, 70% 10%, 10% 70%, 50% 50%; }
    100% { background-position: 120% 120%, 150% 160%, 190% 130%, 130% 190%, 170% 170%; }
}

/* Optional: subtle twinkle on some stars (more natural variation) */
.stars::before,
.stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: 210% 210%, 190% 190%, 170% 170%;
    background-position: 20% 20%, 60% 70%, 80% 30%;
    opacity: 0.6;
    animation: twinkle-layer 18s infinite ease-in-out alternate;
}

@keyframes twinkle-layer {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 0.85; }
}
body.large-font { font-size: 18px; }
body.no-animations * { animation: none !important; transition: none !important; }
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo-container { display: flex; align-items: center; gap: 1rem; }
.logo-placeholder {
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.5rem;
}
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--text-primary); }
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent-red); }
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: var(--transition);
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-primary); transition: var(--transition); }
.settings-panel {
  position: fixed;
  top: 0;
  right: -360px;            /* hide fully */
  width: 360px;
  height: 100vh;

  background: #0f0f0f;
  color: #fff;

  padding: 20px;
  box-sizing: border-box;

  overflow-y: auto;
  overflow-x: hidden;

  transition: right 0.35s ease;
  z-index: 10001;
}
.settings-panel::-webkit-scrollbar {
  width: 6px;
}

.settings-panel::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.settings-panel::-webkit-scrollbar-track {
  background: transparent;
}

.settings-panel.open {
  right: 0;
}

body.light-mode .settings-panel {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

body.light-mode .settings-panel::-webkit-scrollbar-thumb {
  background: #ccc;
}

body.light-mode .settings-panel::-webkit-scrollbar-track {
  background: transparent;
}

.settings-overlay.active { display: block; }
.settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.settings-header h2 { color: var(--text-primary); }
.close-settings {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.setting-item { margin-bottom: 2rem; }
.setting-item label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-weight: 500; }
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 30px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}
input:checked + .toggle-slider { background-color: var(--accent-red); }
input:checked + .toggle-slider:before { transform: translateX(30px); }
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    background: none;
}

/* Video – behind everything */
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -3;                      /* deepest layer */
}

/* Stars – between video & overlay */
.stars {
    z-index: -2;
}

/* Dark overlay/tint */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: -1;
}

/* Content on top */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}
.hero-content { max-width: 900px; position: relative; z-index: 1; }
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}
.hero h1 span { color: var(--accent-red); }
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}
.btn-primary { background: var(--accent-red); color: white; }
.btn-primary:hover { background: var(--accent-red-hover); transform: translateY(-2px); box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3); }
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-red);
}
.btn-secondary:hover { background: var(--accent-red); color: white; transform: translateY(-2px); }
/* Sections */
.section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.section-title p { color: var(--text-secondary); font-size: 1.1rem; }
/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    border-color: var(--accent-red);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}
.service-card h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.5rem; }
.service-card p { color: var(--text-secondary); line-height: 1.8; }
/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    margin: 4rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--accent-red); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-secondary); font-size: 1.1rem; }
/* Portfolio Grid */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.portfolio-item.hidden { display: none; }
.portfolio-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-red);
}
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: white; font-size: 1.5rem; margin-bottom: 0.5rem; }
.portfolio-overlay p { color: rgba(255, 255, 255, 0.9); text-align: center; }
/* Testimonials */
.testimonials-slider { max-width: 800px; margin: 0 auto; position: relative; padding: 2rem 0; }
.testimonial {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: none;
}
.testimonial.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.testimonial-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}
.testimonial-author { font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.testimonial-company { color: var(--accent-red); }
.testimonials-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--accent-red); width: 30px; border-radius: 6px; }
/* Contact Form */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #ffffff;
}
body.light-mode .contact-icon {
    background: var(--bg-primary);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}
.contact-details h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.contact-details p { color: var(--text-secondary); }
.contact-form {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}
.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}
.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    display: block;
}
.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}
/* Map Section */
.map-container { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; margin-top: 3rem; }
.map-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}
.cities-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    overflow-y: auto;
    max-height: 500px;
}
.cities-list ul {
    list-style: none;
    columns: 2;
    gap: 2rem;
}
.cities-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.content-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    border-color: var(--accent-red);
}
.content-card h3 { color: var(--text-primary); margin-bottom: 1rem; font-size: 1.5rem; }
.content-card p { color: var(--text-secondary); line-height: 1.8; }
/* Client Logos */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.client-logo {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3/2;
    transition: var(--transition);
}
.client-logo:hover { border-color: var(--accent-red); transform: translateY(-5px); }
.client-logo-placeholder { font-size: 2rem; color: var(--text-muted); }
/* Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .nav-menu.active { left: 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .cta-buttons { flex-direction: column; }
    .contact-container { grid-template-columns: 1fr; }
    .map-container { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 2rem; }
}
html, body { height: 100%; }
body { box-sizing: border-box; }

/* PIPO AI Chatbot CSS (Professional, Smooth Animations - Hidden by Default) */
:root {
    --pipo-bg: #0a0a0a;
    --pipo-text: #e0e0e0;
    --pipo-glass: rgba(10, 10, 10, 0.9);
    --pipo-accent: #dc2626; /* Red to match site */
    --pipo-accent-glow: #b91c1c;
    --pipo-border: rgba(220, 38, 38, 0.3);
    --pipo-shadow: 0 10px 30px rgba(220, 38, 38, 0.15);
    --pipo-user-bg: #dc2626;
}
body.light-mode {
    --pipo-bg: #f8f8ff;
    --pipo-text: #333;
    --pipo-glass: rgba(248, 248, 255, 0.95);
    --pipo-border: rgba(220, 38, 38, 0.2);
    --pipo-shadow: 0 8px 25px rgba(220, 38, 38, 0.1);
    --pipo-user-bg: #ef4444;
}
/* Toggle Button with Subtle Hover */
.pipo-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--pipo-glass);
    border: 2px solid var(--pipo-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--pipo-shadow);
    z-index: 5000;
    transition: all 0.3s ease-in-out;
}
.pipo-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    border-color: var(--pipo-accent);
}
.pipo-toggle img, .pipo-toggle svg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}
.pipo-toggle:hover img, .pipo-toggle:hover svg {
    box-shadow: 0 0 10px var(--pipo-accent);
}
/* Chat Container (Hidden by default: translateY(100%) pushes it completely off-screen) */
.pipo-container {
    position: fixed;
    bottom: 100%; /* Start from bottom of screen to ensure hidden */
    right: 20px;
    width: 450px; /* Increased width */
    height: 550px; /* Fixed height, no increase */
    background: var(--pipo-glass);
    backdrop-filter: blur(20px);
    border: 2px solid var(--pipo-border);
    border-radius: 20px;
    box-shadow: var(--pipo-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%); /* Additional push down - ensures completely hidden */
    transition: all 0.4s ease-in-out; /* Smooth slide up */
    z-index: 999999;
    visibility: hidden; /* Extra layer: invisible until open */
    opacity: 0; /* Fade in effect */
}
.pipo-container.open { 
    bottom: 20px; 
    transform: translateY(0); 
    visibility: visible; 
    opacity: 1; 
}
/* Header */
.pipo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid var(--pipo-border);
    position: relative;
}
.pipo-header img, .pipo-header svg {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}
.pipo-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.3em;
    font-weight: bold;
    color: var(--pipo-text);
}
.pipo-header button {
    background: none;
    border: none;
    color: var(--pipo-text);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}
.pipo-header button:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}
/* Messages Area */
.pipo-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--pipo-accent) transparent;
}
.pipo-messages::-webkit-scrollbar { width: 6px; }
.pipo-messages::-webkit-scrollbar-track { background: transparent; }
.pipo-messages::-webkit-scrollbar-thumb { background: var(--pipo-accent); border-radius: 3px; }
.pipo-message {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
    word-wrap: break-word;
}
.pipo-user {
    background: var(--pipo-user-bg);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}
.pipo-bot {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--pipo-border);
    border-bottom-left-radius: 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.pipo-bot::before { content: 'AI'; margin-right: 8px; font-size: 0.8em; color: var(--pipo-accent); font-weight: bold; }
/* Input */
.pipo-input {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--pipo-border);
    background: rgba(0, 0, 0, 0.05);
    align-items: center;
}
.pipo-input input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 25px;
    border: 1px solid var(--pipo-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--pipo-text);
    font-size: 1em;
    transition: all 0.3s ease-in-out;
}
.pipo-input input:focus {
    outline: none;
    border-color: var(--pipo-accent);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
    background: rgba(255, 255, 255, 0.08);
}
.pipo-input input::placeholder { color: rgba(224, 224, 224, 0.5); }
.pipo-input button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--pipo-accent);
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pipo-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
/* Mic Button */
.pipo-mic-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--pipo-accent);
    color: #fff;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pipo-mic-btn:hover:not(.listening) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.pipo-mic-btn.listening {
    background: #dc2626;
}
.pipo-mic-btn svg { width: 24px; height: 24px; }

/* Typing Indicator */
.pipo-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    color: var(--pipo-text);
    font-style: italic;
}
.pipo-typing .pipo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pipo-accent);
}
/* Responsive */
@media (max-width: 768px) {
    .pipo-container {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    .pipo-container.open { bottom: 20px; height: 70vh; }
}
/* ===============================
   HERO SECTION – FULL VIDEO ONLY
   =============================== */
/* --- HERO VIDEO: single canonical rule --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* Ensure video covers and sits behind content */
.hero-video-bg {
  position: absolute;
  inset: 0;                 /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;       /* cover without letterbox */
  object-position: center;
  z-index: -1;             /* behind overlays and content */
  pointer-events: none;
  background: #000;        /* fallback while loading */
}


/* If you want stars behind everything: */
.stars { z-index: -2; }

/* Make sure hero overlay (dark tint) sits above video */
.hero::after { z-index: 0; background: rgba(0,0,0,0.55); }
.hero-content { z-index: 1; }



/* Text Content (NO BOX) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    color: #fff;
}

/* Heading */
.hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Highlight word */
.hero-content h1 span:last-child {
    display: block;
    font-weight: 500;
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description */
#hero-description {
    font-size: 1.1rem;
    color: #ddd;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Button Base */
.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s ease;
}

/* Primary Button */
.btn-primary {
    background: #e60000;
    color: #fff;
}

.btn-primary:hover {
    background: #ff1a1a;
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary {
    border: 2px solid #e60000;
    color: #fff;
}

.btn-secondary:hover {
    background: #e60000;
    transform: translateY(-2px);
}

/* ===============================
   MOBILE RESPONSIVE
   =============================== */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    #hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
}
#citiesBox {
  display: none;
}
#citiesBox {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

#citiesBox.open {
  max-height: 2000px;
}


/* Hero content above video */
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-section {
    display: flex;
    flex-direction: column;
}
.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.footer-section a,
.footer-section p {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}
.footer-section a:hover {
    color: var(--accent-red);
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social-icon {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-icon:hover {
    color: var(--accent-red);
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Cities container uses max-height animation; default CLOSED */
#citiesBox {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.35s ease;
  padding: 0 0; /* when closed no extra vertical space */
}

/* Open state - large enough max-height for the content */
#citiesBox.open {
  max-height: 2000px; /* large enough — adjust if you have more content */
  padding: 1.5rem 0;   /* optional spacing when open */
}

/* Center QR section and image */
.qr-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Prefer CSS size instead of inline attributes */
.qr-placeholder img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}
/* Cities wrapper */
.cities-box {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.35s ease;
  padding: 0;
}

/* When opened */
.cities-box.open {
  max-height: 1000px; /* large enough for grid */
  padding: 20px 0;
}

/* Grid layout */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

/* City item styling */
.city-item {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 500;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}


/* Enhanced Contact Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-red);
    border-radius: 2px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-info p:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.contact-form {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), transparent, var(--accent-red));
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.form-group label::before {
    content: '•';
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#sendBtn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--accent-red), #b91c1c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

#sendBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c, var(--accent-red));
}

#sendBtn:active {
    transform: translateY(-1px);
}

#loadingIndicator {
    text-align: center;
    color: var(--accent-red);
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-message {
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #10b981;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Error state for inputs */
input.error, select.error, textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form, .contact-info {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
    }
}


#main-logo {
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
body.no-animations #main-logo { transition: none; } /* keep respecting your animations toggle */



/* Major Cities box - Light Mode Fix */
body.light-mode #citiesBox {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #dddddd;
}

/* City list text */
body.light-mode #citiesBox li,
body.light-mode #citiesBox p,
body.light-mode #citiesBox span {
  color: #111111;
}

/* Button text fix */
body.light-mode #toggleCities {
  color: #111111;
}
/* Better light-mode contrast for important elements */
body.light-mode {
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #555555;
}

body.light-mode .stars {
    opacity: 0 !important;           /* usually no stars in light mode */
}

/* Make sure toggle buttons & icons remain visible */
body.light-mode .pipo-toggle,
body.light-mode .hamburger span {
    border-color: #333;
    background: rgba(0,0,0,0.08);
}