/* Reset & Base Styles */
:root {
    --bg-color: #050505;
    --card-bg: #101015;
    --text-color: #ffffff;
    --text-secondary: #a0a0b0;
    --primary-color: #00f2ff;
    --secondary-color: #7000ff;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Glow */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(112, 0, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 242, 255, 0.1), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    height: 80px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(16, 16, 21, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    padding-top: 100px;
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu[aria-hidden="false"] {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.mobile-nav-links a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    text-align: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: var(--primary-color);
    color: #000;
}

.cta-button.primary:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.cta-button.secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

.cta-button.small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.step-number {
    position: absolute;
    left: -2.6rem;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}

.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    margin-top: 3rem;
    text-align: left;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .label {
    display: block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    min-height: 44px;
    display: inline-block;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet Responsive (481px - 768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo img {
        height: 60px;
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .process {
        padding: 4rem 0;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .step-number {
        left: -2.3rem;
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-card {
        padding: 2rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Mobile Responsive (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo img {
        height: 50px;
    }

    .site-header {
        padding: 0.8rem 0;
    }

    .mobile-menu {
        width: 100%;
        right: -100%;
    }

    .hero {
        min-height: 70vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        padding: 1rem 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
    }

    .process {
        padding: 3rem 0;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .step-number {
        left: -1.8rem;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-container p {
        font-size: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-item {
        margin-bottom: 1.25rem;
    }

    .contact-item span,
    .contact-item a {
        font-size: 0.95rem;
    }

    footer {
        padding: 2rem 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

/* Vapi AI Widget Responsive Styles */
vapi-widget {
    z-index: 998 !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure widget button is below mobile menu */
vapi-widget::part(button) {
    z-index: 998 !important;
}

/* Ensure widget chat window is below mobile menu */
vapi-widget::part(chat-window) {
    z-index: 998 !important;
}

/* Mobile optimizations for Vapi widget */
@media (max-width: 768px) {
    vapi-widget {
        /* Ensure widget doesn't overlap with mobile menu toggle */
        bottom: 20px !important;
        right: 20px !important;
    }

    vapi-widget::part(button) {
        /* Optimize button size for mobile touch targets */
        min-width: 56px !important;
        min-height: 56px !important;
    }

    vapi-widget::part(chat-window) {
        /* Make chat window responsive on mobile */
        max-width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 100px) !important;
        bottom: 90px !important;
        right: 16px !important;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    vapi-widget {
        bottom: 16px !important;
        right: 16px !important;
    }

    vapi-widget::part(button) {
        min-width: 52px !important;
        min-height: 52px !important;
    }

    vapi-widget::part(chat-window) {
        /* Full width on very small screens */
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 80px) !important;
        left: 12px !important;
        right: 12px !important;
        bottom: 80px !important;
    }
}