/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --robert-blue: #1e3a8a;
    --robert-accent: #06438c;
    --text-gray: #6b7280;
    --bg-gray-50: #f9fafb;
    --bg-gray-100: #f3f4f6;
    --bg-gray-800: #1f2937;
    --bg-gray-900: #111827;
    --bg-blue-50: #dbeafe;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

/* Visually hidden class for SEO */
.visuallyhidden {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(0px 0px 99.9% 99.9%);
    clip-path: inset(0px 0px 99.9% 99.9%);
    overflow: hidden;
    height: 1px;
    width: 1px;
    padding: 0;
    border: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--robert-blue) 0%, var(--robert-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    transition: color 0.3s;
    white-space: nowrap;
    margin: 0 16px;
}

.nav-links .nav-link:first-child {
    margin-left: 0;
}

.nav-links .nav-link:last-child {
    margin-right: 0;
}

.nav-link:hover {
    color: var(--robert-blue);
}

.cta-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--robert-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
}

.cta-button.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .cta-button.desktop-only {
        display: flex;
    }
}

.cta-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cta-button span {
    display: inline-flex;
    align-items: center;
}

.cta-button:hover {
    background: var(--robert-blue);
    transform: scale(1.05);
}

.icon {
    width: 20px;
    height: 20px;
}

.icon-small {
    width: 16px;
    height: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu .nav-link {
    display: block;
    padding: 8px 0;
}

.mobile-cta {
    width: 100%;
    margin-top: 16px;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom right, var(--bg-gray-50), var(--bg-blue-50));
    position: relative;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 24px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--robert-blue) 0%, var(--robert-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.primary-button {
    background: var(--robert-accent);
    color: white;
    font-size: 18px;
    padding: 16px 32px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-button.desktop-only {
    display: none;
}

.primary-button.mobile-only {
    display: none;
}

@media (min-width: 768px) {
    .primary-button.desktop-only {
        display: inline-flex;
    }
    
    .primary-button.mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .primary-button.mobile-only {
        display: flex;
    }
    
    .primary-button.desktop-only {
        display: none !important;
    }
}

.primary-button:hover {
    background: var(--robert-blue);
}

.secondary-button {
    background: transparent;
    color: var(--robert-blue);
    border: 2px solid var(--robert-blue);
    font-size: 16px;
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.secondary-button:hover {
    background: var(--robert-blue);
    color: white;
}

.secondary-button svg {
    width: 20px;
    height: 20px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--robert-blue);
    margin: 0 auto 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
}

.hero-media {
    position: relative;
    max-width: 512px;
    margin: 0 auto;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #000;
}

.video-thumbnail:hover {
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.video-thumbnail:active {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.video-thumbnail:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 1);
}

.play-button svg {
    width: 48px;
    height: 48px;
    color: var(--robert-accent);
    margin-left: 4px;
    fill: currentColor;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 90vh;
    display: flex;
    justify-content: center;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.3s;
}

.close-button:hover {
    opacity: 0.7;
}

.close-button svg {
    width: 32px;
    height: 32px;
}

#modalVideo {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
}

/* Media Features Section */
.media-features {
    padding: 80px 0;
    background: var(--bg-gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 24px;
}

.section-description {
    font-size: 20px;
    color: var(--text-gray);
    max-width: 768px;
    margin: 0 auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.media-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.media-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.media-image {
    height: 192px;
    overflow: hidden;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-image:hover img {
    transform: scale(1.1);
}

.media-content {
    padding: 24px;
}

.media-source {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--robert-accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.media-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.media-description {
    color: var(--text-gray);
    margin-bottom: 16px;
}

.media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--robert-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.media-link:hover {
    color: var(--robert-accent);
}

.media-cta {
    background: linear-gradient(to right, var(--robert-blue), var(--robert-accent));
    padding: 32px;
    border-radius: 16px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
}

.cta-button-white {
    background: white;
    color: var(--robert-blue);
    border: none;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button-white svg {
    width: 20px;
    height: 20px;
}

.cta-button-white:hover {
    background: var(--bg-gray-100);
    transform: scale(1.05);
}

/* Money Explained Section */
.money-explained {
    padding: 80px 0;
    background: white;
}

.video-carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 64px;
    margin-top: 64px;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        cursor: auto;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-padding: 0 5vw;
    }
    
    .carousel-wrapper::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    .carousel-track {
        padding: 0 5vw;
        display: flex;
        gap: 16px; /* Reduced gap for mobile */
    }
}

.carousel-wrapper.grabbing {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 24px;
    padding: 0 24px;
    transition: transform 0.3s ease-out;
}

.video-item {
    flex-shrink: 0;
    width: 400px;
}

@media (max-width: 768px) {
    .video-item {
        width: calc(100vw - 32px); /* Full width minus gaps */
        max-width: 400px;
        scroll-snap-align: start;
        scroll-snap-stop: always; /* Forces stop at each item */
    }
}

/* For actual mobile devices (not desktop mobile view) */
@media (max-width: 768px) and (pointer: coarse) {
    .carousel-wrapper {
        scroll-snap-type: x mandatory;
        scroll-snap-stop: always; /* More aggressive snapping */
    }
    
    .video-item {
        width: calc(90vw - 10vw); /* Account for padding */
        scroll-snap-align: center;
    }
}

.video-container {
    position: relative;
    background: black;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.carousel-video {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.9);
}

.video-play-button.playing {
    opacity: 0;
}

.video-play-button.playing:hover {
    opacity: 1;
}

.video-play-button svg {
    width: 32px;
    height: 32px;
    color: var(--robert-accent);
}

.video-info {
    margin-top: 16px;
    padding: 0 8px;
    display: none;
}

.video-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.video-description {
    font-size: 14px;
    color: var(--text-gray);
}

.carousel-gradient-left,
.carousel-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 10;
}

.carousel-gradient-left {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.carousel-gradient-right {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.money-cta-simple {
    text-align: center;
    margin-top: 64px;
}

.cta-text {
    color: var(--text-gray);
    margin-bottom: 32px;
    font-size: 16px;
}

/* Technical Capabilities Section */
.technical-capabilities {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-gray-800), var(--bg-gray-900));
    color: white;
}

.technical-capabilities .section-title {
    color: white;
}

.text-accent {
    color: var(--robert-accent);
}

.technical-capabilities .section-description {
    color: #d1d5db;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.capability-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s;
}

.capability-card:hover {
    border-color: rgba(13, 93, 189, 0.6);
}

.parallax-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.2;
    background-image: url('assets/robert_the_swiss_robot.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.1) contrast(0.9);
    width: 300%;
    height: 240%;
    transition: transform 0.3s ease-out;
    transform: translateY(-10%); /* Initial position to prevent flash */
}

.parallax-bg[data-index="0"] {
    left: 0%;
    top: -10%;
}

.parallax-bg[data-index="1"] {
    left: -100%;
    top: -10%;
}

.parallax-bg[data-index="2"] {
    left: -200%;
    top: -10%;
}

.parallax-bg[data-index="3"] {
    left: 0%;
    top: -110%;
}

.parallax-bg[data-index="4"] {
    left: -100%;
    top: -110%;
}

.parallax-bg[data-index="5"] {
    left: -200%;
    top: -110%;
}


.card-content {
    position: relative;
    z-index: 10;
    padding: 32px;
}

.capability-icon {
    width: 48px;
    height: 48px;
    color: var(--robert-accent);
    margin-bottom: 16px;
}

.capability-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

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

.capability-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    color: #d1d5db;
}

.capability-features li::before {
    content: "•";
    color: var(--robert-accent);
    margin-right: 8px;
}

.robot-builder-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.builder-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.builder-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
}

.builder-description {
    color: #d1d5db;
    margin-bottom: 24px;
}

.builder-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--robert-accent);
}

.stat-label {
    color: #d1d5db;
}

.builder-cta-box {
    background: linear-gradient(to bottom right, var(--robert-blue), var(--robert-accent));
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(13, 93, 189, 0.3);
}

.cta-box-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}

.cta-list {
    list-style: none;
    margin-bottom: 24px;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.bullet {
    color: white;
}

.cta-button-white-full {
    width: 100%;
    background: white;
    color: var(--robert-blue);
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.cta-button-white-full:hover {
    background: var(--bg-gray-100);
    transform: scale(1.05);
}

/* Event Booking Popup */
.event-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.event-popup.active {
    transform: translateY(0);
}

.event-popup-content {
    padding: 20px 24px;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.event-popup-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-left: auto;
}

.event-popup-close:hover {
    background: var(--bg-gray-100);
    color: var(--black);
}

.event-popup-close svg {
    width: 20px;
    height: 20px;
}

.event-popup-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.event-popup-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--robert-blue) 0%, var(--robert-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-popup-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.event-popup-text {
    flex: 1;
}

.event-popup-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: var(--black);
}

.event-popup-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.4;
}

.event-popup-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.event-popup-cta {
    background: var(--robert-accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.event-popup-cta svg {
    width: 16px;
    height: 16px;
}

.event-popup-cta:hover {
    background: var(--robert-blue);
    transform: scale(1.05);
}

.event-popup-later {
    background: transparent;
    color: var(--text-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.event-popup-later:hover {
    background: var(--bg-gray-100);
    color: var(--robert-blue);
}

@media (max-width: 640px) {
    .event-popup-content {
        padding: 16px;
        padding-right: 48px; /* Make room for close button */
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-popup-left {
        gap: 12px;
    }
    
    .event-popup-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .event-popup-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .event-popup-title {
        font-size: 15px;
        line-height: 1.2;
    }
    
    .event-popup-description {
        display: none;
    }
    
    .event-popup-buttons {
        display: flex;
        gap: 8px;
        width: 100%;
    }
    
    .event-popup-cta,
    .event-popup-later {
        flex: 1;
        padding: 8px 16px;
        font-size: 13px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .event-popup-close {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 4px;
        margin: 0;
    }
    
    .event-popup-close svg {
        width: 18px;
        height: 18px;
    }
}

/* Contact Popup */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
}

.contact-popup.active {
    display: block;
}

.contact-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.contact-popup-close:hover {
    background: var(--bg-gray-100);
    color: var(--black);
}

.contact-popup-close svg {
    width: 24px;
    height: 24px;
}

.contact-popup-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}

.contact-popup-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 16px;
}

/* Success Overlay */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-content {
    text-align: center;
    padding: 32px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #065f46;
}

.success-text {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 360px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0; /* Prevent overflow */
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--robert-accent);
    box-shadow: 0 0 0 3px rgba(6, 67, 140, 0.1);
}

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

.contact-submit-btn {
    background: var(--robert-accent);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn:hover:not(:disabled) {
    background: var(--robert-blue);
    transform: scale(1.02);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

@media (max-width: 640px) {
    .contact-popup-content {
        padding: 32px 24px;
        width: 95%;
    }
    
    .contact-popup-title {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-submit-btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background: var(--bg-gray-900);
    color: white;
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: bold;
}

.footer-description {
    color: #9ca3af;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--robert-accent);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #9ca3af;
}

.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--robert-accent);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    color: #9ca3af;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--robert-accent);
    transform: scale(1.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Utility Classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Desktop specific adjustments */
@media (min-width: 1024px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
        max-width: 1280px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-text {
        max-width: 600px;
    }
    
    .hero-media {
        position: relative;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
    }
}

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .builder-content {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .robot-builder-section {
        padding: 20px;
        margin: 0;
        border-radius: 16px;
    }
    
    .builder-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat {
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }
}

/* Show mobile menu on tablets and phones */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.desktop-only {
        display: none;
    }
    
    .cta-button.desktop-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
    }
    
    .feature-item p {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
    }
    
    .media-cta {
        flex-direction: column;
        text-align: center;
    }
    
    .video-item {
        width: 100%;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .builder-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .robot-builder-section {
        padding: 24px;
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .builder-title {
        font-size: 24px;
    }
    
    .builder-description {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .builder-stats {
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .builder-cta-box {
        padding: 24px;
    }
    
    .cta-box-title {
        font-size: 18px;
    }
    
    .cta-list {
        font-size: 14px;
    }
    
    .cta-list li {
        margin-bottom: 8px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}