:root {
  --bg-primary: #f6fbff;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --accent-blue: #1c93fb;
  --accent-purple: #01c1b8;
  --accent-coral: #44d6c9;
  --text-primary: #0c2a33;
  --text-secondary: #55727e;
  --border-soft: rgba(23, 148, 196, 0.26);
  --shadow-lg: 0 26px 90px rgba(33, 109, 154, 0.18);
  --shadow-card: 0 16px 50px rgba(33, 109, 154, 0.15);
  --max-width: 1180px;
  font-size: 16px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden; /* prevent accidental horizontal scroll */
}

/* Disable body overlay for video background */
body::before {
  display: none;
}

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

/* Hard stop any element from exceeding viewport width on mobile */
html, body, section, nav, footer, .container, .nav-container {
    max-width: 100vw;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* Video Background */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -10;
}

/* Disable all aurora elements */
.aurora-layer,
.aurora-background,
.aurora,
.aurora-1,
.aurora-2,
.aurora-3 {
  display: none !important;
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  .bg-video { 
    display: none; 
  }
  
  body::before {
    display: none;
  }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #01c1b8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 50px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.gradient-text {
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 193, 184, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 193, 184, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #01c1b8;
    border: 2px solid #01c1b8;
}

.btn-secondary:hover {
    background: #01c1b8;
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(1, 193, 184, 0.2);
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 100;
}

/* Ensure dropdowns don’t create overflow */
.demo-widget, .selector-dropdown, .dropdown-menu {
    max-width: 100%;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.live-badge {
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-header h3 {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.demo-dialogue {
    margin-bottom: 1.5rem;
}

.dialogue-text {
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left; /* ensure dialogue text is left-aligned */
}

.dialogue-icon {
    font-size: 0.875rem;
    opacity: 0.7;
}

.demo-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    flex: 1;
    background: rgba(1, 193, 184, 0.3);
    transition: all 0.3s ease;
}

.progress-bar.active {
    background: #01c1b8;
}

.progress-bar.gradient {
    background: linear-gradient(90deg, #01c1b8 0%, #1c93fb 100%);
}

.demo-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

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

.metric-label {
    color: #4a5568;
    font-size: 0.875rem;
}

.metric-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 0.875rem;
}

.demo-selector {
    text-align: center;
    position: relative;
}

.selector-title {
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Prevent parent .hero-content{text-align:center} from centering widget text */
.hero-visual .demo-widget,
.hero-visual .demo-widget .demo-dialogue,
.hero-visual .demo-widget .dialogue-text {
    text-align: left;
}

.selector-dropdown {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(1, 193, 184, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.selector-dropdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #01c1b8;
}

.selector-dropdown i:first-child {
    color: #01c1b8;
}

.selector-dropdown span {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
}

.selector-dropdown i:last-child {
    color: #4a5568;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.selector-dropdown.open {
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.selector-dropdown.open i:last-child {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(1, 193, 184, 0.2);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

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

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(1, 193, 184, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(1, 193, 184, 0.1);
}

.dropdown-item.selected {
    background: rgba(1, 193, 184, 0.15);
    color: #01c1b8;
}

.dropdown-item i {
    color: #01c1b8;
    font-size: 0.875rem;
}

.dropdown-item.selected i {
    color: #01c1b8;
}

.dropdown-item span {
    color: #2d3748;
    font-weight: 500;
}

.dropdown-item.selected span {
    color: #01c1b8;
}

.demo-buttons {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.demo-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.primary-btn {
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 193, 184, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 193, 184, 0.6);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.service-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #4a5568;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #01c1b8;
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text { max-width: 560px; }
.about-label { display:inline-block; text-transform:uppercase; letter-spacing:.35em; font-size:.78rem; color:#4a5568; margin-bottom:1rem; }
.about-title { font-size:2.8rem; line-height:1.15; color:#2d3748; margin-bottom:1rem; }
.about-description { font-size:1.1rem; color:#4a5568; margin-bottom:0; line-height:1.7; }

.about-panel { background: rgba(255,255,255,.8); backdrop-filter: blur(10px); border:1px solid rgba(0,0,0,.06); border-radius:20px; padding:2rem; color:#2d3748; }
.about-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; margin-bottom:1rem; }
.about-card { background: rgba(255,255,255,.9); border:1px solid rgba(0,0,0,.06); border-radius:16px; padding:1.25rem 1.5rem; display:flex; flex-direction:column; gap:.5rem; }
.about-card-label { text-transform:uppercase; letter-spacing:.3em; font-size:.75rem; color:#718096; }
.about-card-value { font-size:2rem; font-weight:700; color:#2d3748; }
.about-footnote { color:#4a5568; font-size:.95rem; }

/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #4a5568;
}

.contact-item i {
    color: #01c1b8;
    font-size: 1.2rem;
}

.contact-widget {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.widget-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(1, 193, 184, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #01c1b8;
    background: rgba(1, 193, 184, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #01c1b8;
    background: rgba(1, 193, 184, 0.05);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #01c1b8 0%, #1c93fb 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    position: relative;
    min-height: 500px;
}

.tab-panel {
    display: none;
    padding: 2.5rem;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

.calendar-container {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Cal embed wrapper safety */
#my-cal-inline-consultation {
    width: 100% !important;
    max-width: 100% !important;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.contact-form {
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #01c1b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo-image {
    height: 35px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo-image:hover {
    transform: scale(1.05);
}

.footer-logo p {
    color: #a0aec0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #01c1b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 5rem 0 2rem;
        overflow-y: auto;
        z-index: 1001;
        min-height: fit-content;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.5rem;
        padding: 1rem 0;
        font-weight: 500;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }

    .demo-widget {
        max-width: 100%;
        padding: 1.5rem;
    }

    .demo-buttons {
        flex-direction: column;
    }

    .demo-btn {
        width: 100%;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Stack the about metric bubbles to avoid overflow */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .widget-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: 1px solid rgba(1, 193, 184, 0.1);
    }

    .tab-btn:last-child {
        border-bottom: none;
    }

    .tab-panel {
        padding: 1.5rem;
    }

    .calendar-container {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

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