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

body {
    font-family: 'Helvetica', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

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

/* Colors */
:root {
    --primary-green: #9EE860;
    --dark-green: #8AD84B;
    --primary-yellow: #FFD700;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-gray: #333;
    --white: #fff;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-size: 0.85em;
    vertical-align: baseline;
}

.logo-icon {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.nav-cta {
    background: var(--primary-yellow) !important;
    color: var(--dark-gray) !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.nav-cta:hover {
    background: #FFE55C !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: block;
}

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

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.56) contrast(1.0);
    /* Mobile video optimizations */
    -webkit-playsinline: true;
}

.hero-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.56) contrast(1.0);
    z-index: -3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--dark-gray);
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--dark-gray);
    border: 1px solid #ddd;
    font-size: 0.8rem;
    padding: 8px 16px;
}

.btn-outline:hover {
    background: var(--light-gray);
}

/* Technology Section */

.download-section {
    margin-top: 2rem;
}

.download-section p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000;
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #333;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 250px;
    height: 500px;
    background: #000;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.app-interface {
    padding: 20px;
    height: 100%;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-widget {
    display: flex;
    align-items: end;
    gap: 8px;
    height: 100px;
    padding: 10px;
    background: var(--light-gray);
    border-radius: 8px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-green);
    border-radius: 2px;
    min-height: 20px;
}

.metrics-row {
    display: flex;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    flex: 1;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.metric-label {
    font-size: 0.7rem;
    color: var(--medium-gray);
    text-transform: uppercase;
}

.qr-code {
    text-align: center;
}

.qr-placeholder {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border: 2px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.qr-placeholder i {
    font-size: 2rem;
    color: var(--medium-gray);
}

.qr-code p {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

/* About Section */
.about {
    padding: 0 0 60px 0;
    background: var(--white);
}

.section-header {
    text-align: left;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    margin-top: -8px;
    line-height: 1.1;
}

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

.about-pillar {
    text-align: center;
    padding: 1.5rem;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.3s ease;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--medium-gray);
}

.about-pillar:hover .tech-icon {
    background: var(--primary-green);
}

.about-pillar:hover .tech-icon i {
    color: var(--white);
}

.about-pillar h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: left;
}

.about-pillar h2 span {
    color: var(--primary-yellow);
    font-weight: normal;
}

.about-pillar p {
    color: black;
    line-height: 1.6;
    text-align: left;
    font-size: 18px;
}

/* Demo Section */
.demo {
    padding: 0;
    background-image: url('intento-parallax-background.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 500px;
    overflow: hidden;
    /* Ensure background is visible on all devices */
    min-height: 400px;
}

.demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.demo-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.demo-content h2 {
    font-size: 3rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.1;
    text-transform: none;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 3;
}

.demo-image {
    width: 100vw;
    height: 450px;
    min-height: 450px;
    object-fit: cover;
    display: block;
    margin: 0;
}

.demo-button {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dashboard-button {
    text-align: center;
}

/* Services Green Section */
.services-green {
    padding: 60px 0 120px 0;
    background: white;
    border-bottom: 1px solid #1f2937;
}

.services-content {
    margin: 0 auto;
    text-align: left;
}

.services-content p {
    color: black;
    line-height: 1.6;
    font-size: 18px;
    max-width: 900px;
}

/* Integration Section */
.integrations {
    padding: 60px 0;
    background: var(--white);
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    justify-items: center;
}

.integration-item {
    width: 100px;
    height: 100px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.integration-item:hover {
    background: var(--primary-green);
    transform: translateY(-5px);
}

.integration-icon i {
    font-size: 2.5rem;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

.integration-item:hover .integration-icon i {
    color: var(--dark-gray);
}

/* Contact Green Section */
.contact-green {
    padding: 60px 0 80px 0;
    background: var(--primary-green);
}

.contact-green .section-header h2 {
    color: var(--dark-gray);
}

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

.contact-item {
    text-align: center;
    padding: 2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    padding: 60px 0 120px 0;
    background: var(--white);
}

.contact-content {
    margin: 0 auto;
}

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

.contact-info-section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    margin-top: -8px;
    line-height: 1.1;
}

.contact-info-section p {
    color: black;
    line-height: 1.6;
    font-size: 18px;
    max-width: 400px;
}

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

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail-item h4 {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-item p {
    color: var(--medium-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-detail-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail-item a:hover {
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.form-submit .btn {
    background: var(--primary-yellow);
    color: var(--dark-gray);
    border: 2px solid var(--primary-yellow);
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.form-submit .btn:hover {
    background: #FFE55C;
    border-color: #FFE55C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Footer */
.footer {
    background: #0a0f13;
    color: var(--white);
    padding: 60px 0 120px;
}

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

.footer-brand {
    margin-top: -1.5rem;
}

.footer-brand .logo-section {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.footer-brand h3 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    font-family: Arial, sans-serif;
}

.footer-brand p {
    color: #aaa;
    line-height: 1.6;
    margin-top: 0rem;
}

.footer-contact {
    text-align: right;
}

#copyright {
    margin-top: 2.5rem;
}

.footer-contact h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-yellow);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: right;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Mobile video fallback */
    .hero-video-background video {
        display: none; /* Hide video on mobile to save bandwidth */
    }

    .hero-fallback {
        opacity: 1; /* Show fallback image instead */
        z-index: -2;
    }

    /* Reduce animations on mobile for performance */
    .about-pillar,
    .service-item,
    .contact-item {
        animation: none; /* Disable animations on mobile */
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .integration-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .demo-image {
        height: 450px;
        min-height: 450px;
    }

    .demo-button {
        bottom: 20px;
    }

    /* Mobile demo section fixes */
    .demo {
        background-attachment: scroll; /* Fix for mobile parallax issues */
        height: 400px; /* Increased height on mobile */
    }

    .demo-content h2 {
        font-size: 1.8rem; /* Smaller font size for mobile */
        padding: 0 15px; /* Add padding for better text spacing */
        line-height: 1.2;
    }

    /* Mobile paragraph text sizes */
    .about-pillar p,
    .services-content p,
    .contact-info-section p {
        font-size: 16px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
    }

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

    .demo-image {
        height: 450px;
        min-height: 450px;
    }

    .demo-button {
        bottom: 15px;
    }

    /* Smaller mobile demo section */
    .demo {
        height: 350px; /* Increased height on small screens */
    }

    .demo-content h2 {
        font-size: 1.4rem; /* Even smaller font for very small screens */
        padding: 0 10px;
    }

    /* Smaller mobile paragraph text */
    .about-pillar p,
    .services-content p,
    .contact-info-section p {
        font-size: 14px !important;
    }
}

/* Hide about pillar paragraphs on very small screens */
@media (max-width: 400px) {
    .about-pillar p {
        display: none;
    }
}

/* iPhone specific fixes */
@media (max-width: 390px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

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

    .container {
        padding: 0 10px;
    }

    /* iPhone demo section optimization */
    .demo {
        height: 300px !important; /* Increased height for iPhone */
    }

    .demo-content h2 {
        font-size: 1.2rem !important; /* Smallest font for iPhone */
        padding: 0 5px !important;
        line-height: 1.3 !important;
    }

    /* iPhone paragraph text */
    .about-pillar p,
    .services-content p,
    .contact-info-section p {
        font-size: 13px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-pillar,
.service-item,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force animations back on for users who prefer motion */
@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    .about-pillar,
    .service-item,
    .contact-item {
        animation: fadeInUp 0.6s ease-out;
    }
}

/* Mobile Navigation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px) !important;
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px) !important;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
        display: none;
    }

    .nav-menu.active {
        left: 0 !important;
        transform: translateX(0) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-menu a {
        padding: 0.75rem;
        display: block;
        margin: 0.5rem 0;
        color: var(--dark-gray) !important;
        text-shadow: none !important;
        font-weight: 600;
    }

    .nav-menu a:hover {
        color: var(--primary-yellow) !important;
        background-color: rgba(255, 215, 0, 0.1);
        border-radius: 4px;
    }

    .nav-cta {
        background: var(--primary-yellow) !important;
        color: var(--dark-gray) !important;
        padding: 12px 24px !important;
        border-radius: 4px !important;
        margin: 1rem auto !important;
        width: fit-content;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3) !important;
    }
}

