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

/* Prevent horizontal overflow on mobile */
html, body {
    width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Ensure all sections respect viewport width */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Constrain all containers */
.container, .hero-container, .nav-container, .installation-content, .contact-content, .footer-content {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.8;
    color: #e2e8f0;
    overflow-x: hidden;
    background: #0a0a0a;
    min-width: 320px;
    -webkit-overflow-scrolling: touch;
    font-weight: 300;
    letter-spacing: -0.005em;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

section {
    transition: all 0.6s ease-in-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 200, 200, 0.1);
    z-index: 1000;
    transition: all 0.6s ease;
}

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

.nav-logo h2 {
    color: rgb(0, 200, 200);
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0;
    padding: 8px 12px;
    border-radius: 6px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: rgb(0, 200, 200);
    background: rgba(0, 200, 200, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger:hover {
    background: rgba(0, 200, 200, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: #00c8c8;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: transparent !important;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.hero-container {
    max-width: 100vw;
    width: 100vw;
    margin: 0;
    padding: 0 5vw;
    display: block;
    background: transparent !important;
}

.hero-content {
    width: 100%;
    max-width: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.hero-xtitle {
    font-size: 1.2rem;
    font-weight: 50;
    margin-top: -2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: rgb(0, 200, 200);
    opacity: 0.9;
    letter-spacing: 0.01em;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 4rem;
    color: #94a3b8;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0;
    max-width: 450px;
    text-align: left !important;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    letter-spacing: 0;
    min-height: 48px;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: rgb(0, 200, 200);
    color: #ffffff;
    border: 1px solid rgb(0, 200, 200);
}

.btn-primary:hover {
    background: rgba(0, 200, 200, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 200, 0.3);
}

.btn-secondary {
    background: transparent;
    color: rgb(0, 200, 200);
    border: 1px solid rgb(0, 200, 200);
}

.btn-secondary:hover {
    background: rgba(0, 200, 200, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    display: none !important;
}

.hero-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.floating-card {
    background: rgba(24,24,24,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    border-radius: 18px;
    padding: 1.5rem;
    width: 280px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 1.8s ease;
    animation: subtleFloat 6s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    margin: 0;
    z-index: 1;
    transform: scale(0.98);
    height: 0;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 200, 200, 0.3);
    box-shadow: 0 20px 40px rgba(0, 200, 200, 0.2);
}

.floating-card:nth-child(2) {
    animation-delay: -3s;
}

.floating-card:nth-child(3) {
    animation-delay: -6s;
}

.floating-card.carousel-center {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 3;
    transform: scale(1);
    height: auto;
}

.floating-card.carousel-top {
    opacity: 0.7;
    pointer-events: none;
    visibility: visible;
    z-index: 2;
    transform: translateY(-40%) scale(0.96);
    height: auto;
}

.floating-card.carousel-bottom {
    opacity: 0.7;
    pointer-events: none;
    visibility: visible;
    z-index: 2;
    transform: translateY(40%) scale(0.96);
    height: auto;
}

.floating-card.carousel-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 1;
    transform: scale(0.98);
    height: 0;
    margin: 0;
}

.card-header {
    height: 60px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #f8fafc;
    text-align: left;
    margin-top: auto;
}

.line {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.line.short {
    width: 60%;
}

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

/* Features Section */
.features {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.07) 0%, rgba(255,255,255,0.04) 100%);
    border: 1.5px solid rgba(0, 200, 200, 0.13);
    border-left: 5px solid #00c8c8;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s, border-color 0.35s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 32px 0 rgba(0,200,200,0.10), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    z-index: 1;
}

/* Remove swipe gradient effect on feature cards */
.feature-card::before {
    display: none !important;
}

.feature-card:hover::before {
    display: none !important;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.045);
    border-color: #00c8c8;
    box-shadow: 0 0 32px 0 rgba(0,200,200,0.18), 0 8px 32px 0 rgba(0,200,200,0.18);
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.13) 0%, rgba(255,255,255,0.09) 100%);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 1rem;
    color: #94e3e8;
    line-height: 1.7;
    font-weight: 400;
}

/* Installation Section */
.installation-section {
    padding: 6rem 0;
    background: rgba(0, 200, 200, 0.02);
}

.installation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.installation-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #94a3b8;
    line-height: 1.8;
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: none;
    border: 2px solid #00c8c8;
    color: #00c8c8;
    font-size: 1.3rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    display: block;
}

.step-text img {
    margin-top: 1rem;
}

.installation-visual {
    display: flex;
    justify-content: center;
}

.installation-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    cursor: pointer;
}

.installation-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.installation-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 200, 200, 0.2);
}

.installation-image:hover img {
    transform: scale(1.03);
}

.installation-caption {
    margin-top: 1rem;
    margin-left: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.6;
    font-weight: 300;
}

/* Toolbar Section */
.toolbar-section {
    margin-top: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toolbar-image {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.toolbar-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: contain;
}

.toolbar-image:hover img {
    transform: scale(1.0);
}

.toolbar-caption {
    margin-top: 0;
    margin-left: 1rem;
    align-self: flex-start;
    text-align: left;
}

.installation-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.1), rgba(0, 200, 200, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.installation-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

.placeholder-text {
    color: rgba(0, 200, 200, 0.6);
    font-size: 1.1rem;
    z-index: 1;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Screenshot Gallery */
.screenshot-gallery {
    padding: 6rem 0;
    background: #0a0a0a;
}

.screenshot-gallery .container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.screenshot-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.screenshot-item:nth-child(even) {
    direction: rtl;
}

.screenshot-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
    cursor: pointer;
    position: relative;
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
    opacity: 1;
}

.screenshot-image:hover {

    box-shadow: 0 30px 60px rgba(0, 200, 200, 0.2);
}

.screenshot-image:hover img {
    transform: scale(1.005);
}

.screenshot-info {
    direction: ltr;
    padding: 2rem 0;
}

.screenshot-info h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.screenshot-info p {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.screenshot-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.screenshot-features li {
    color: #e2e8f0;
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.screenshot-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(0, 200, 200);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    top: 50%;
    transform: translateY(-50%);
}

.modal img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: rgb(0, 200, 200);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 200, 200, 0.1);
    padding: 3rem 0 1rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    color: rgb(0, 200, 200);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: rgb(0, 200, 200);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Video Showcase */
.video-showcase {
    margin-bottom: 4rem;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
}

.video-overlay h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero-cards-container {
        gap: 1.5rem;
    }
    
    .floating-card {
        width: 260px;
        height: 180px;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 30px;
    }
}

@media (max-width: 900px) {
    .floating-card {
        width: 240px;
        height: 160px;
    }
    
    .hero-cards-container {
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .screenshot-gallery {
        padding: 4rem 0;
    }
    
    .screenshot-item {
        gap: 3rem;
    }
    
    .screenshot-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        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: 1rem 0;
        gap: 0.3rem;
        border-bottom: 1px solid rgba(0, 200, 200, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.3rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2.5rem;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .floating-card {
        width: 100%;
        height: 140px;
        padding: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .contact-card {
        min-width: 200px;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .screenshot-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .screenshot-container.reverse {
        direction: ltr;
    }
    
    .screenshot-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .screenshot-item:nth-child(even) {
        direction: ltr;
    }
    
    .screenshot-info {
        padding: 1rem 0;
        text-align: center;
    }
    
    .screenshot-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .toolbar-image {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .toolbar-caption {
        margin-left: 0;
        margin-top: 1rem;
        text-align: left;
        align-self: flex-start;
    }
    
    .hero-description {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
        font-size: 0.9rem;
        min-height: 52px;
    }
    
    .hero-cards-container {
        max-width: 360px;
        gap: 0.8rem;
    }
    
    .floating-card {
        width: 100%;
        height: 120px;
        padding: 0.8rem;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-container {
        gap: 1.5rem;
    }
    
    .screenshot-container.reverse {
        direction: ltr;
    }
    
    .video-container {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .demo-video {
        border-radius: 0;
    }
    
    .video-overlay h3 {
        font-size: 1.5rem;
    }
    
    .screenshot-item {
        gap: 1.5rem;
    }
    
    .screenshot-info h3 {
        font-size: 1.3rem;
    }
    
    .screenshot-image {
        border-radius: 8px;
    }
    
    .screenshot-image img {
        border-radius: 8px;
    }
    
    .installation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .installation-image {
        border-radius: 8px;
    }
    
    .contact-card {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-details h3 {
        font-size: 1.1rem;
    }
    
    .contact-email {
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links a {
        padding: 8px 0;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-cards-container {
        max-width: 320px;
        gap: 0.6rem;
    }
    
    .floating-card {
        width: 100%;
        height: 100px;
        padding: 0.6rem;
    }
    
    .btn {
        padding: 14px 16px;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-container, .container {
        padding: 0 15px;
    }
    
    .footer-links {
        gap: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .screenshot-item {
        gap: 1rem;
    }
    
    .screenshot-info h3 {
        font-size: 1.2rem;
    }
    
    .screenshot-features li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .floating-card:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .contact-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        background: none;
    }
    
    .hamburger:hover {
        background: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover {
        border-color: rgb(0, 200, 200);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .hamburger {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.floating-card:focus {
    outline: 2px solid rgb(0, 200, 200);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: rgb(0, 200, 200);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

/* Keyboard navigation styles */
.keyboard-navigation *:focus {
    outline: 2px solid rgb(0, 200, 200) !important;
    outline-offset: 2px !important;
}

/* Focus visible styles */
.focus-visible {
    outline: 2px solid rgb(0, 200, 200) !important;
    outline-offset: 2px !important;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 300px;
    word-wrap: break-word;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.notification-error {
    background: #ef4444;
}

.notification-success {
    background: #10b981;
}

.notification-info {
    background: #3b82f6;
}

/* Mobile-specific notification positioning */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Container improvements */
.container, .screenshot-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Image optimization */
.container img,
.screenshot-image img,
.installation-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading styles */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Mobile viewport height fix */
.hero {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Touch-friendly button states */
@media (hover: none) and (pointer: coarse) {
    .btn:active,
    .nav-link:active,
    .floating-card:active,
    .feature-card:active,
    .contact-card:active {
        transform: scale(0.98);
    }
}

/* Improved mobile scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Mobile-specific improvements for better performance */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .floating-card {
        animation: none;
    }
    
    /* Optimize transitions */
    * {
        transition-duration: 0.2s;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
    }
}

/* High contrast and accessibility improvements */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover {
        border-color: rgb(0, 200, 200);
    }
    
    .floating-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    .notification {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
    }
}

/* Print styles */
@media print {
    .navbar, .footer, .hamburger, .notification {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .floating-card {
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
}

/* Feature Overview Background Video */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) saturate(1);
    /* iOS Safari specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Glass-morphism cards for feature overview */
.glass-card {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Slow, elegant glow and border transition */
    transition: border-color 1.8s ease, box-shadow 1.8s ease;
}

.glass-card:hover {
    border-color: rgb(0, 200, 200);
    /* Box-shadow for subtle glow */
    box-shadow: 0 0 20px rgba(0, 200, 200, 0.6), 0 8px 25px rgba(0, 200, 200, 0.3);
}

/* Spacing tweaks */
.features-overview {
    padding: 8rem 0 6rem 0;
    position: relative;
}

.features-overview .section-title {
    margin-bottom: 3rem;
}

/* Remove blue underline/link styling from glass feature cards across states */
.feature-card,
.feature-card:visited,
.feature-card:hover,
.feature-card:focus {
    text-decoration: none !important;
    color: inherit;
}

/* Constrain background video to hero section only on index page */
.hero .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.2);
    /* iOS Safari specific fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* --- Feature Carousel --- */
#feature-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    min-height: 400px;
}

@media (max-width: 900px) {
  #feature-carousel {
    min-height: 300px;
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  #feature-carousel {
    min-height: 200px;
    gap: 0.5rem;
  }
}

/* Ensure command in gallery-description is always bold */
.gallery-description strong {
    font-weight: bold !important;
}

.feature-segment {
    margin-bottom: 4rem;
}

.feature-segment-title {
    margin-bottom: 0;
    font-weight: 700;
    color: #fff;
    margin-left: 2rem;
}

.feature-segment .features-grid {
    margin-top: 0.5rem;
}

.two-column-contact {
  gap: 5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.contact-left {
  flex: 1 1 0;
  max-width: 480px;
  padding-left: 2.5rem;
}
.contact-right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
  max-width: 480px;
}
.contact-description {
    line-height: 2.1;
    margin-bottom: 3.5rem;
}
@media (max-width: 900px) {
  .two-column-contact {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .contact-left, .contact-right {
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    justify-content: center;
  }
  .contact-right {
    justify-content: center;
  }
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.feature-command {
    margin-top: 2rem;
}