/* ToBid SaaS Hub - Modern CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #1e3c72 50%, #0f2027 75%, #203a43 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles */
.main-nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.login-btn {
    background: linear-gradient(45deg, #f97316, #ea580c);
    padding: 10px 20px !important;
    border-radius: 25px;
    font-weight: 600;
}

.login-btn:hover {
    background: linear-gradient(45deg, #ea580c, #c2410c);
    color: white !important;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.active .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    color: #1f2937;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Header Section */
.header {
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.8));
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ffffff;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23ffffff;stop-opacity:0"/></radialGradient></defs><circle cx="200" cy="300" r="100" fill="url(%23a)"/><circle cx="800" cy="200" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/></svg>') no-repeat center/cover;
    opacity: 0.3;
    z-index: -1;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f97316, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h2 {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 500;
}

.slogan {
    font-size: 1.2rem;
    color: #f97316;
    margin-bottom: 40px;
    font-weight: 600;
}

.header-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: linear-gradient(45deg, #f97316, #ea580c);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    cursor: pointer;
}

.cta-btn:hover {
    background: linear-gradient(45deg, #ea580c, #c2410c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    border: 2px solid #f97316;
    color: #f97316;
}

.cta-btn.secondary:hover {
    background: #f97316;
    color: white;
}

/* Section Styles */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #ffffff;
    font-weight: 700;
}

/* Card Grid */
.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card b {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
}

.card span {
    display: block;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 14px;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.app-link:hover {
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Highlight Section */
.highlight {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.preview-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.hub-demo-container {
    text-align: center;
}

.hub-preview {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hub-preview:hover {
    transform: scale(1.05);
}

.preview-area ul {
    list-style: none;
    font-size: 1.1rem;
    line-height: 2;
    color: #e2e8f0;
}

.video-demo {
    text-align: center;
    margin-top: 40px;
}

.video-demo h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.video-demo video {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.demo-form {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-submit {
    width: 100%;
    margin-top: 20px;
}

.alternative-contact {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-link {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

.phone-link:hover {
    text-decoration: underline;
}

.mini {
    font-size: 14px;
    color: #cbd5e1;
    text-align: center;
    margin-top: 30px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9), rgba(30, 60, 114, 0.8));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section a:hover {
    color: #f97316;
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.footer-description {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 500;
}

/* Language Selector */
#language-selector-container {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

#language-selector {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    font-weight: 500;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.nav-menu.mobile-active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(30, 60, 114, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu.mobile-active .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
}

.nav-menu.mobile-active .nav-dropdown-content {
    position: static;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.nav-menu.mobile-active .nav-dropdown.active .nav-dropdown-content {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.mobile-active {
        display: flex;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header h2 {
        font-size: 1.2rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .header-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .card-row {
        grid-template-columns: 1fr;
    }
    
    .preview-area {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    .header {
        padding: 80px 15px 40px;
    }
    
    .header h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .header h2 {
        font-size: 1rem;
    }
    
    .slogan {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .card {
        padding: 20px;
    }
    
    .card img {
        width: 50px;
        height: 50px;
    }
    
    .card b {
        font-size: 1.1rem;
    }
    
    .demo-form {
        padding: 30px 20px;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .hub-preview {
        max-width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #f97316;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .main-nav,
    .nav-toggle,
    .header-buttons,
    .cta-btn,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card,
    .demo-form,
    .highlight {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}