/* Samsung Browser Dark Mode Prevention - More targeted approach */

/* Import JetBrains Mono font */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;800&display=swap');

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force light color scheme to prevent browser dark mode overrides */
:root {
    color-scheme: light only;
    /* Samsung browser specific overrides */
    -webkit-color-scheme: light only;
    color-scheme: light only !important;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    /* Force white text and black background to prevent system overrides */
    color: #ffffff !important;
    background-color: #000000 !important;
    /* Prevent Samsung browser from applying its own dark mode */
    background: #000000 !important;
    background-image: none !important;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/font_black.svg');
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Background grid pattern - more complex like in Figma */
.background-grid {
    background-image: 
        url('images/font_black.svg'),
        linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px),
        radial-gradient(circle at 40px 40px, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 
        600px 600px,
        80px 80px, 
        80px 80px, 
        80px 80px;
    background-repeat: repeat;
}

/* Background border elements - removed to eliminate white lines */

/* Modern Tech Header Styles */
.tech-header {
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tech-logo-container a {
    transition: all 0.3s ease;
}

.tech-logo-container a:hover {
    transform: translateY(-1px);
}

.tech-nav-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
}

.tech-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-nav-item:hover {
    color: #f9da09;
    background: rgba(249, 218, 9, 0.1);
    transform: translateY(-1px);
}

.tech-nav-item:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f9da09;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tech-nav-item:hover:before {
    width: 80%;
}

.tech-nav-disabled {
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
}

.tech-nav-disabled:hover {
    background: none !important;
    transform: none !important;
}

.tech-nav-disabled:before {
    display: none !important;
}

.tech-cta-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f9da09, #e6c300);
    color: #000;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(249, 218, 9, 0.3);
}

.tech-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 218, 9, 0.4);
    background: linear-gradient(135deg, #e6c300, #d4af00);
}

/* Mobile Tech Header */
.tech-mobile-header {
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tech-mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-mobile-menu-button:hover {
    background: rgba(249, 218, 9, 0.2);
    color: #f9da09;
}

.tech-mobile-menu {
    margin-top: 12px;
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease-out;
}

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

.tech-mobile-menu-content {
    padding: 16px;
}

.tech-mobile-menu-item {
    display: block;
    padding: 12px 16px;
    margin: 4px 0;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-mobile-menu-item:hover {
    background: rgba(249, 218, 9, 0.1);
    color: #f9da09;
}

.tech-mobile-menu-disabled {
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
}

.tech-mobile-menu-disabled:hover {
    background: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.tech-mobile-cta-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f9da09, #e6c300);
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-mobile-cta-button:hover {
    background: linear-gradient(135deg, #e6c300, #d4af00);
    transform: translateY(-1px);
}

/* Legacy header styles - keeping for compatibility */
.header-nav > div {
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-nav > div:hover {
    background-color: #f9da09;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 218, 9, 0.3);
}

.header-nav > div:hover span {
    color: black;
    transition: color 0.3s ease;
}



/* Robot images styling */
.robot-large {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.robot-xlarge {
    width: 200px;
    height: 350px;
    object-fit: contain;
}

.robot-bubble-size {
    width: 180px;
    height: 200px;
    object-fit: contain;
}

.robot-medium {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.robot-small {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.robot-header {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.robot-mirrored {
    transform: scaleX(-1);
}

/* Process arrows */
.process-arrow {
    position: relative;
}

.process-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: rgba(255,255,255,0.6);
}

.process-connection {
    position: relative;
}

.process-connection::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    transform: translateY(-50%);
}

.process-connection::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 32px);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: rgba(255,255,255,0.4);
}

/* CTA Button hover effects */
.cta-button {
    background-color: black;
    border: 1px solid #6b7280;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f9da09;
    border-color: #f9da09;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 218, 9, 0.3);
}

/* Large background text gradient - horizontal single line */
.large-text-bg {
    background: linear-gradient(180deg, transparent 11.94%, rgba(255,255,255,0.75) 109.89%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    font-size: clamp(200px, 25vw, 400px);
    letter-spacing: -0.04em;
}

/* Code background text gradient */
.code-background {
    background: linear-gradient(180deg, #727272 66.856%, rgba(114,114,114,0) 89.141%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Full width header */
.header-nav {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* Particles.js animation */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: -2;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.animate-fade-in.fade-in {
    opacity: 1;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.animate-slide-left.slide-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.animate-slide-right.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile menu styles */
.mobile-menu-button {
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(107, 114, 128, 0.5);
}

.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu-item {
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .large-text-bg {
        font-size: clamp(80px, 15vw, 200px);
        text-align: center;
    }
    
    .header-nav {
        flex-wrap: wrap;
    }
    
    .robot-large {
        width: 100px;
        height: 100px;
    }
    
    .robot-medium {
        width: 80px;
        height: 80px;
    }
    
    .robot-small {
        width: 60px;
        height: 60px;
    }

    /* Tech header mobile adjustments */
    .tech-header {
        padding: 8px 16px;
        margin: 0 8px;
        border-radius: 12px;
    }

    .tech-mobile-header {
        padding: 8px 12px;
        margin: 0 8px;
        border-radius: 10px;
    }

    /* Adjust main content padding for new floating header */
    main {
        padding-top: 80px; /* Account for floating header height */
    }

    /* Smaller navigation container on mobile */
    .tech-nav-container {
        padding: 4px;
    }

    .tech-nav-item {
        padding: 6px 12px;
        font-size: 14px;
    }

    .tech-cta-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Mobile text centering */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
    }

    p {
        text-align: center !important;
    }

    .text-left {
        text-align: center !important;
    }

    /* Specific sections that should remain centered */
    section {
        text-align: center;
    }

    /* Chat bubbles and specific content blocks */
    .bg-gray-900 {
        text-align: center;
    }

    /* Process steps and cards */
    .grid > div {
        text-align: center;
    }

    /* Override any left-aligned text on mobile */
    .animate-on-scroll {
        text-align: center !important;
    }
} 

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 0;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 16px;
    max-width: 90%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 40px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Service Card Styles */
.service-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #333;
    border-radius: 16px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: #ffcc02;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 204, 2, 0.1) 0%, rgba(255, 204, 2, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Pricing Card Styles */
.pricing-card {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card.selected {
    border-color: #ffcc02 !important;
    box-shadow: 0 10px 30px rgba(255, 204, 2, 0.3);
    transform: translateY(-8px);
}

.pricing-card.selected::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffcc02, #f9da09);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.3;
}

.pricing-card.selected .pricing-card-badge {
    background: linear-gradient(135deg, #ffcc02, #f9da09);
    color: black;
}

/* Contact Form Styles */
.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 204, 2, 0.2);
}

.contact-form button:hover {
    box-shadow: 0 8px 25px rgba(255, 204, 2, 0.3);
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px 0;
    }
    
    .modal-content {
        max-width: 95%;
        min-height: calc(100vh - 20px);
        border-radius: 12px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
}

/* Animation for modal content */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active .modal-content > div {
    animation: modalSlideIn 0.4s ease 0.1s both;
}

/* Custom Notification Styles */
.notification-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.notification {
    background: linear-gradient(135deg, #2d4a22 0%, #3d5a32 100%);
    border: 2px solid #4ade80;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: auto;
    max-width: 90vw;
    width: auto;
    min-width: 300px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.success {
    background: linear-gradient(135deg, #2d4a22 0%, #3d5a32 100%);
    border-color: #4ade80;
}

.notification.error {
    background: linear-gradient(135deg, #4a222d 0%, #5a323d 100%);
    border-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-icon.success {
    color: #4ade80;
}

.notification-icon.error {
    color: #ef4444;
}

.notification-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    flex-grow: 1;
}

.notification-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 20px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    .notification {
        min-width: auto;
        width: 100%;
        padding: 16px 20px;
    }
    
    .notification-text {
        font-size: 14px;
    }
}

/* Comprehensive Android Dark Mode Prevention */
/* Specifically ensure gradient text remains visible */
.bg-gradient-to-b {
    background: linear-gradient(180deg, #ffffff 0%, #9ca3af 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Ensure Tailwind color classes remain correct */
.text-yellow-500 {
    color: #f9da09 !important;
}

.text-gray-300 {
    color: #d1d5db !important;
}

.text-white {
    color: #ffffff !important;
}

/* Prevent any auto-color adjustments but allow normal styling */
* {
    -webkit-text-fill-color: unset !important;
}

/* Ensure CTA buttons maintain black text */
.tech-cta-button {
    color: #000 !important;
}

.tech-mobile-cta-button {
    color: #000 !important;
}

/* Additional safeguards for mobile devices - but more specific */
@media (max-width: 768px) {
    body {
        color: #ffffff !important;
        background-color: #000000 !important;
    }
    
    /* Only override main content text, not navigation or buttons */
    main h1, main h2, main h3, main h4, main h5, main h6, 
    main p, main span:not(.tech-cta-button span):not(.tech-mobile-cta-button span) {
        color: inherit !important;
    }
}

/* Samsung Browser Dark Mode Prevention */
/* Use a more specific approach targeting Samsung Internet browser */

/* Force yellow elements to stay yellow (safe for all browsers) */
.text-yellow-500, .tech-nav-item:hover {
    color: #f9da09 !important;
}

/* Ensure CTA button backgrounds remain yellow (safe for all browsers) */
.tech-cta-button, .tech-mobile-cta-button {
    background: linear-gradient(135deg, #f9da09, #e6c300) !important;
    background-color: #f9da09 !important;
    color: #000000 !important;
}