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

/* Responsive images by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SVG responsive behavior */
svg {
    max-width: 100%;
    height: auto;
}

/* Video responsive behavior */
video {
    max-width: 100%;
    height: auto;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo positioning */
.logo {
    display: flex;
    align-items: center;
    color: #1e40af;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
}

/* Logo image responsive sizing */
.logo img {
    height: auto;
    max-width: 120px;
    vertical-align: middle;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);
    border-radius: 8px;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.logo-icon::before {
    content: 'G';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a {
    color: #0f2153e6;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
    background: #3b82f6;
}

.nav-links a.active {
    color: white;
    background: #3b82f6;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(59, 130, 246, 0.1);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: #3b82f6;
    color: white;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 50%);
    z-index: 1;
}

.hero-banner .container {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-banner .highlight {
    font-weight: 700;
    color: #93c5fd;
}

.hero-banner p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Supply Chain Graph Container */
.supply-chain-section {
    padding: 80px 0;
    background: #f8fafc;
}

.supply-chain-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 300;
}

.supply-chain-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#supply-chain-graph {
    width: 100%;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin: 0 auto;
    display: block;
}

/* Graph Controls */
.graph-controls {
    text-align: center;
    margin-bottom: 30px;
}

.graph-controls button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.graph-controls button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.graph-controls button.active {
    background: #1e40af;
}

/* Video Background */
video#heroVideo {
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 1550px) {
    video#heroVideo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Main Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 40px;
}

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

.hero-video:not([src]) {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 58, 138, 0.7));
    z-index: -1;
}

/* Hero Layout with Chatbot */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Hero Chatbot Section */
.hero-chatbot-section {
    flex: 0 0 500px;
    max-width: 500px;
    background: white;
    padding: 0.5rem;
    border-radius: 30px;
}

.chat-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 20px;
    max-height: 600px;
    min-height: 500px;
    overflow-y: auto;
    position: relative;
    width: 100%;
    scroll-behavior: smooth;
}

/* Custom scrollbar for chat container */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    z-index: -1;
}

.chat-message {
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    animation: slideInFromLeft 0.6s ease-out;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message.ai-message {
    animation: slideInFromRight 0.8s ease-out 0.3s both;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-avatar {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.ai-avatar {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    position: relative;
}

.message-content {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.user-message .message-content p {
    color: #374151;
    margin: 0;
    font-weight: 600;
}

.user-question-box {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-question-box p {
    margin: 0;
    color: #374151;
    font-weight: 400;
    line-height: 1.5;
    font-size: 14px;
}

.ai-message .message-content p {
    color: #1f2937;
    margin: 0;
    font-style: italic;
}

.ai-response-text {
    opacity: 0;
    line-height: 1.6;
    font-size: 14px;
    color: #374151;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Hide empty sections during typing */
.analysis-section:empty,
.comparison-block:empty,
.warning-section:empty,
.impact-section:empty,
.quote-block:empty,
.conclusion:empty {
    display: none !important;
}

/* Claude-style AI Response Formatting */
.ai-response-header {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.analysis-section {
    margin: 20px 0;
    padding: 16px 0;
}

.analysis-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px 0;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.comparison-block {
    padding: 16px 0;
    margin: 12px 0;
}

.spec-group {
    margin-bottom: 16px;
}

.spec-group:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 13px;
}

.spec-note {
    font-style: italic;
    color: #6b7280;
    font-size: 12px;
    margin: 4px 0 6px 0;
}

.ai-response-text ul {
    margin: 6px 0 6px 16px;
    padding: 0;
}

.ai-response-text ol {
    margin: 6px 0 6px 16px;
    padding: 0;
}

.ai-response-text li {
    margin: 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.status-compliant {
    color: #059669;
    font-weight: 500;
}

.status-issue {
    color: #dc2626;
    font-weight: 500;
}

.warning-section {
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.warning-section h4 {
    color: #92400e;
}

.quote-block {
    background: #f1f5f9;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    margin: 12px 0;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    line-height: 1.6;
}

.quote-block em {
    color: #475569;
}

.issues-list {
    margin-top: 8px;
}

.impact-section {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.impact-section h4 {
    color: #0c4a6e;
}

.conclusion {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 14px;
    margin-top: 16px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #1f2937;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.ai-response-text p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.7;
}

.ai-response-text strong {
    font-weight: 600;
    color: #1f2937;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.typing-indicator span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: white;
    margin: 0 1px;
    opacity: 0.4;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0s;
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
        opacity: 1;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Enhanced blink animation for typewriter cursor */
@keyframes blink {
    from, to {
        border-color: #3b82f6;
        opacity: 1;
    }
    50% {
        border-color: transparent;
        opacity: 0.3;
    }
}

@keyframes typingBounce {
    0%, 60%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .highlight {
    font-weight: 700;
    color: #3b82f6;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 12px 25px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

/* Responsive Design for Hero Chatbot */
@media (max-width: 1400px) {
    .hero-chatbot-section {
        flex: 0 0 450px;
        max-width: 450px;
    }
    
    .chat-container {
        max-height: 500px;
        min-height: 400px;
    }
}

@media (max-width: 1200px) {
    .hero-layout {
        gap: 30px;
    }
    
    .hero-chatbot-section {
        flex: 0 0 400px;
        max-width: 400px;
    }
    
    .chat-container {
        padding: 16px;
        max-height: 450px;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero-layout {
        gap: 25px;
    }
    
    .hero-chatbot-section {
        flex: 0 0 350px;
        max-width: 350px;
    }
    
    .chat-container {
        padding: 14px;
        max-height: 400px;
        min-height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2.4rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* Smaller text in analysis sections for tablets */
    .analysis-section h4 {
        font-size: 12px;
    }
    
    .ai-response-text,
    .ai-response-text p,
    .ai-response-text li {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 100px;
        padding-bottom: 60px;
        align-items: flex-start;
    }
    
    #heroVideo {
        display: none;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.95));
    }
    
    .hero-layout {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 30px;
        padding-top: 20px;
        text-align: center;
    }
    
    .hero-chatbot-section {
        flex: none;
        max-width: 100%;
        width: 100%;
        order: 2;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .chat-container {
        max-height: 350px;
        min-height: 250px;
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .analysis-section h4 {
        font-size: 11px;
    }
    
    .ai-response-text,
    .ai-response-text p,
    .ai-response-text li {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 120px;
        padding-bottom: 80px;
        align-items: flex-start;
    }
    
    #heroVideo {
        display: none;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.95));
    }
    
    .hero-layout {
        padding-bottom: 40px;
        padding-top: 20px;
        text-align: center;
    }
    
    .hero-chatbot-section {
        width: 100%;
        max-width: 100%;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .chat-container {
        max-height: 300px;
        min-height: 200px;
        padding: 10px;
        margin-bottom: 25px;
    }
    
    .hero-content {
        margin-bottom: 25px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .message-avatar {
        width: 24px;
        height: 24px;
    }
    
    .message-content {
        font-size: 12px;
    }
    
    .user-question-box {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .analysis-section h4 {
        font-size: 10px;
    }
    
    .ai-response-text,
    .ai-response-text p,
    .ai-response-text li {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        width: 98%;
        padding: 6px 12px;
    }
    
    .logo img {
        max-width: 100px;
        height: auto;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-top: 130px;
        padding-bottom: 100px;
        align-items: flex-start;
    }
    
    #heroVideo {
        display: none;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.95));
    }
    
    .hero-layout {
        padding-bottom: 50px;
        padding-top: 20px;
    }
    
    .hero-chatbot-section {
        width: 100%;
        max-width: 100%;
        margin-bottom: 40px;
        text-align: left;
    }
    
    .chat-container {
        max-height: 280px;
        min-height: 180px;
        padding: 8px;
        margin-bottom: 30px;
    }
    
    .hero-content {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.4rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .message-avatar {
        width: 20px;
        height: 20px;
    }
    
    .user-question-box {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .analysis-section h4 {
        font-size: 9px;
    }
    
    .ai-response-text,
    .ai-response-text p,
    .ai-response-text li {
        font-size: 9px;
    }
    
    .ai-response-header {
        font-size: 12px;
    }
    
    .comparison-block {
        padding: 8px 0;
        margin-bottom: 10px;
    }
    
    .quote-block {
        padding: 8px;
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .warning-section,
    .impact-section {
        padding: 8px;
        margin-bottom: 15px;
    }
}

/* ========================================
   IMAGE PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Prevent layout shift with explicit dimensions */
img[width][height] {
    width: attr(width px);
    height: attr(height px);
}

/* Ensure all images are optimized for performance */
img {
    /* Prevent layout shift */
    max-width: 100%;
    height: auto;

    /* Default to lazy loading (can be overridden) */
    loading: lazy;

    /* Ensure proper display */
    display: block;

    /* Smooth image rendering */
    image-rendering: optimizeQuality;

    /* Prevent dragging on desktop */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Critical images should load immediately */
.logo img,
img[loading="eager"] {
    loading: eager;
}

/* Logo specific optimizations */
.logo img {
    /* Maintain aspect ratio */
    object-fit: contain;

    /* Crisp rendering for logos */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;

    /* Remove any potential layout shift */
    vertical-align: middle;

    /* Inline display for logo in nav */
    display: inline-block;
}

/* Video optimizations */
video {
    /* Maintain aspect ratio */
    object-fit: cover;

    /* Prevent layout shift */
    width: 100%;
    height: 100%;

    /* Performance optimizations */
    preload: metadata;

    /* Accessibility */
    muted: true;
}

/* Hero video specific */
video#heroVideo {
    /* Ensure full coverage */
    min-width: 100%;
    min-height: 100%;

    /* Center the video */
    object-position: center center;

    /* Performance */
    will-change: transform;
}

/* SVG optimizations */
svg {
    /* Prevent layout shift */
    display: block;

    /* Crisp rendering */
    shape-rendering: geometricPrecision;

    /* Remove outline on focus */
    outline: none;
}

/* Responsive behavior maintenance */
@media (max-width: 768px) {
    .logo img {
        max-width: 100px;
        width: auto;
        height: auto;
    }

    /* Ensure video still covers on mobile */
    video#heroVideo {
        object-fit: cover;
        object-position: center center;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 80px;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles for images */
@media print {
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    video {
        display: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    video {
        animation: none;
    }
}

/* Loading states */
img:not([src]) {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

/* Error state for broken images */
img[alt]:after {
    content: "🖼️ " attr(alt);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f3f4f6;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    max-width: 200px;
}


/* Features Section */
.features {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 300;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    margin-top: 80px;
}

.feature-item {
    background: white;
    padding: 50px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
    font-weight: 600;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.8;
    text-align: center;
    font-size: 1.05rem;
}

/* Process Section */
.process {
    padding: 120px 0;
    background: #f8fafc;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    opacity: 0.3;
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 25px;
    transition: transform 0.6s ease;
}

.step-number:hover {
    transform: scale(1.25);
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1f2937;
}

.process-step p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits {
    padding: 120px 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.benefits .section-title {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.benefit-icon {
    font-size: 3rem;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.5);
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #93c5fd;
}

.benefit-item p {
    color: #e2e8f0;
    line-height: 1.7;
}

/* Commodities Section */
.commodities {
    padding: 120px 0;
    background: white;
}

.commodity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.commodity-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.commodity-card:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.commodity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.commodity-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.commodity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e40af;
}

.commodity-card p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Responsive adjustments for commodity grid */
@media (max-width: 1200px) {
    .commodity-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .commodity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Security Section */
.security {
    padding: 120px 0;
    background: #f8fafc;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.security-feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
}

.security-feature h3 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.security-feature p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: #1e40af;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Demo Videos Section */
.demo-videos {
    padding: 120px 0;
    background: #f8fafc;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.video-item {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 600;
}

.video-item p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 20px;
}

.video-learn-more {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.video-learn-more:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Responsive adjustments for video grid */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-item {
        padding: 20px;
    }
}

/* Demo Detail Pages */
.demo-title-section {
    padding: 120px 0 60px 0;
    background: white;
    margin-top: 80px;
    text-align: center;
}

.demo-title-section h1 {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 700;
}

.demo-subtitle {
    font-size: 1.3rem;
    color: #6b7280;
    margin-bottom: 0;
    font-weight: 400;
}

.video-detail-section {
    padding: 80px 0;
    background: white;
}

.video-detail-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-video-container {
    max-width: 900px;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.main-video-container iframe {
    width: 100%;
    height: 506px;
    border: none;
}

.demo-overview {
    padding: 100px 0;
    background: #f8fafc;
}

.demo-overview h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #1e40af;
}

.overview-content {
    max-width: 1000px;
    margin: 0 auto;
}

.overview-section {
    margin-bottom: 50px;
}

.overview-section h3 {
    font-size: 1.8rem;
    color: #1e40af;
    margin-bottom: 20px;
}

.overview-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 15px;
}

.demo-highlights {
    margin-top: 80px;
}

.demo-highlights h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1e40af;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.highlight-item h4 {
    font-size: 1.3rem;
    color: #1e40af;
    margin-bottom: 15px;
}

.highlight-item p {
    color: #6b7280;
    line-height: 1.5;
}

.cta-demo-blue {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-align: center;
}

.cta-demo-blue .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-demo-blue .cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

.cta-buttons .btn-primary {
    background: white;
    color: #1e40af;
    border: 2px solid white;
}

.cta-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #1e40af;
    transform: translateY(-2px);
}

/* Responsive adjustments for demo pages */
@media (max-width: 1024px) {
    .main-video-container iframe {
        height: 400px;
    }
    
    .demo-title-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-video-container iframe {
        height: 300px;
    }
    
    .demo-title-section h1 {
        font-size: 2rem;
    }
    
    .demo-subtitle {
        font-size: 1.1rem;
    }
    
    .demo-title-section {
        padding: 100px 0 40px 0;
    }
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.testimonial {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    border-left: 4px solid #3b82f6;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: #3b82f6;
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 600;
    color: #1e40af;
}

.testimonial-company {
    color: #6b7280;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: #f8fafc;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    color: #1f2937;
    font-weight: 300;
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.required {
    color: #ef4444;
}

/* Footer */
.footer {
    background: #f8fafc;
    color: #6b7280;
    padding: 40px 0;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header {
        width: 95%;
        padding: 12px 16px;
    }

    .feature-grid,
    
    .testimonial-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .process-step::before {
        display: none;
    }

    #supply-chain-graph {
        height: 500px;
    }

/* Additional mobile adjustments for smaller screens */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header {
        width: 98%;
        padding: 10px 12px;
    }

    .feature-grid,
    
    .testimonial-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content h1,
    .hero-banner h1 {
        font-size: 2rem;
    }
}
}

/* Supply Chain Graph Styles */
.supply-chain-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.supply-chain-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 300;
}

#supply-chain-graph {
    height: 800px;
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.graph-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.graph-controls button {
    padding: 12px 24px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.graph-controls button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.graph-controls button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hero-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-align: center;
}

.hero-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-banner p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.floating-btn svg {
    width: 20px;
    height: 20px;
}

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

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    margin: 20px;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 20px 30px 30px;
}

.modal-body p {
    color: #6b7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

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

.btn-modal {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 16px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Demo Form Styles - EverComply Inspired */

.demo-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.demo-form .form-group {
    margin-bottom: 1.5rem;
}

.demo-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.demo-form .required {
    color: #ef4444;
}

.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form select,
.demo-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.demo-form select {
    background-color: white;
    cursor: pointer;
}

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

.demo-form input[type="text"]:focus,
.demo-form input[type="email"]:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.demo-form input:invalid {
    border-color: #ef4444;
}

/* Submit button - matching existing blue scheme */
.demo-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.demo-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.demo-submit-btn:active {
    transform: translateY(0);
}

/* Error and success messages */
.error-message {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.error-visible {
    color: #ef4444;
    opacity: 1;
}

.error-message.success-message {
    color: #10b981;
    opacity: 1;
    font-weight: 600;
}

/* Contact description */
.contact-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Floating CTA enhancements */
.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100px);
}

.floating-cta {
    transition: all 0.3s ease;
}

/* Loading state for submit button */
.demo-submit-btn.loading {
    position: relative;
    color: transparent;
}

.demo-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form validation feedback */
.demo-form input:valid {
    border-color: #10b981;
}

.demo-form input:valid + .validation-check {
    display: inline-block;
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-check {
    display: none;
}

/* Enhanced focus states */
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .demo-form {
        padding: 1rem;
    }
}

/* End Demo Form Styles */
@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }

    .floating-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .floating-btn span {
        display: none;
    }

    .floating-btn {
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }
}
}
/* Athena Overview Video Section */
.athena-overview {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.video-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.video-wrapper video {
    background-color: #000;
}

.video-wrapper video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-wrapper video::-webkit-media-controls-play-button,
.video-wrapper video::-webkit-media-controls-volume-slider,
.video-wrapper video::-webkit-media-controls-timeline {
    filter: brightness(1.2);
}

.video-highlights {
    margin-top: 80px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
}

.highlight-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #1e40af;
    font-weight: 600;
}

.highlight-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments for video section */
@media (max-width: 768px) {
    .athena-overview {
        padding: 80px 0;
    }

    .video-container {
        margin: 0 auto 40px;
    }

    .video-highlights {
        margin-top: 60px;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-item {
        padding: 25px 20px;
    }
}
