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

/* Performance optimizations */
* {
    will-change: auto;
}

/* Optimize animations for performance */
.animated-element {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-gradient-start: #0a0a0f;
    --bg-gradient-end: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(99, 102, 241, 0.3);
}

/* Light Theme Colors */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    --card-bg: rgba(0, 0, 0, 0.02);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(59, 130, 246, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.header-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.lang-switcher {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.lang-btn.active {
    background: var(--accent-primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
}

/* UI Elements Background */
.ui-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.ui-card {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.ui-card:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.ui-card:nth-child(2) {
    top: 25%;
    left: 15%;
    animation-delay: 1s;
}

.ui-card:nth-child(3) {
    top: 40%;
    left: 8%;
    animation-delay: 2s;
}

.ui-card:nth-child(4) {
    top: 55%;
    left: 20%;
    animation-delay: 3s;
}

.ui-card:nth-child(5) {
    top: 70%;
    left: 12%;
    animation-delay: 4s;
}

.ui-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Lightning Bolt */
.lightning-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightning-bolt {
    font-size: 8rem;
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.lightning-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
}

/* Hero Text */
.hero-text {
    text-align: center;
    z-index: 3;
    position: relative;
}

.subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
    color: var(--accent-secondary);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* AI Brain Container */
.ai-brain-container {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.ai-brain {
    font-size: 8rem;
    color: var(--accent-primary);
    text-shadow: 0 0 30px var(--accent-primary);
    animation: brainPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

.brain-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: brainGlow 4s ease-in-out infinite;
}

.brain-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.particle-4 {
    top: 40%;
    right: 40%;
    animation-delay: 4.5s;
}

@keyframes brainPulse {
    0%, 100% { 
        transform: scale(1);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: scale(1.05);
        filter: hue-rotate(20deg);
    }
}

@keyframes brainGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* Problems Section */
.problems {
    padding: 4rem 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

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

.problems-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.problems-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 2rem;
}

.problems-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.problem-icon {
    width: 30px;
    height: 30px;
    background: var(--accent-gradient);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.problem-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Chat Example */
.chat-example {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.chat-name {
    font-weight: 600;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.client-message {
    align-items: flex-start;
}

.business-message {
    align-items: flex-end;
}

.message-text {
    background: var(--card-bg);
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.business-message .message-text {
    background: var(--accent-primary);
    color: white;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hourglass-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

.chat-description {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--accent-primary) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-secondary) 0%, transparent 50%);
    opacity: 0.1;
    pointer-events: none;
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.section-title {
text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 25px;
    border-left: 4px solid #ff4757;
    display: inline-block;
}

.tech-list, .features-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-item, .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before, .feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.tech-item:hover::before, .feature-item:hover::before {
    transform: scaleY(1);
}

.tech-item:hover, .feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-color: var(--accent-primary);
}

.tech-icon, .feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.tech-text, .feature-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

.brain-icon {
    font-size: 8rem;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px var(--accent-primary);
    animation: pulse 3s ease-in-out infinite;
    position: relative;
}

.brain-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 71, 87, 0.1);
    border-radius: 25px;
    border-left: 4px solid #ff4757;
    display: inline-block;
}

/* Interactive Features Section */
.interactive-features {
    padding: 4rem 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
}

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

.interactive-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.interactive-card:hover::before {
    transform: scaleX(1);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-primary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.interactive-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.interactive-card.active .card-content {
    opacity: 1;
    max-height: 500px;
}

.card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--accent-gradient);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hashtags Section */
.hashtags {
    padding: 2rem 0;
    text-align: center;
}

.hashtags-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hashtag {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hashtag:hover {
    color: var(--accent-primary);
    transform: scale(1.05);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    background: var(--card-bg);
    margin: 2rem 0;
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

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

.cta-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-left p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateX(5px);
}

.cta-action {
    text-align: center;
}

.cta-action h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta-button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* Contact Widget */
.contact-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

.contact-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.widget-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-content {
    margin-bottom: 1rem;
}

.widget-position {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.widget-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.widget-phone {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.widget-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.widget-decoration {
    position: relative;
    height: 20px;
}

.decoration-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);
    transform: translateY(-50%);
}

.decoration-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 4px;
}

.decoration-dots span {
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.decoration-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lightning-bolt {
        font-size: 5rem;
    }
    
    .ai-brain {
        font-size: 5rem;
    }
    
    .ai-brain-container {
        width: 250px;
        height: 250px;
    }
    
    .brain-glow {
        width: 200px;
        height: 200px;
    }
    
    .problems-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-benefits {
        grid-template-columns: 1fr;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .hashtags-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-left h2 {
        font-size: 2rem;
    }
    
    .problems-title, .section-title {
        font-size: 2rem;
    }
    
    .brain-icon {
        font-size: 5rem;
    }
}

/* Chat Theme Selector Styles */
.chat-theme-selector {
    margin-top: 2rem;
    text-align: center;
}

.theme-selector-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.theme-btn:hover::before {
    left: 100%;
}

.theme-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.theme-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
    transform: translateY(-2px);
}

.theme-btn i {
    font-size: 1.1rem;
    min-width: 20px;
}

.theme-btn span {
    flex: 1;
    text-align: left;
}

/* Theme-specific colors removed - using consistent styling */

/* Compact Tabs Styles */
.how-it-works-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.tab-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
    transform: translateY(-2px);
}

.tab-btn i {
    font-size: 1rem;
}

.tabs-content {
    position: relative;
    min-height: 300px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Technology Tab - Column Layout */
.tech-columns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.tech-column {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    max-width: 100%;
    justify-content: center;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.tech-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tech-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    margin: 0;
}

/* Features Tab - Two Columns */
.features-columns {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.1);
    border-color: var(--accent-primary);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.85rem;
    margin: 0;
}

/* Integration Tab - Compact Layout */
.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.integration-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.integration-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.step-number {
    width: 35px;
    height: 35px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 0;
}

.integration-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.platform:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.platform i {
    font-size: 2rem;
    color: var(--accent-primary);
}

.platform span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .tech-columns,
    .features-columns {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tech-column {
        flex-direction: column;
        max-width: 100%;
    }
    
    .feature-column {
        max-width: 100%;
    }
    
    .integration-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .platforms {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tabs-container {
        padding: 0 1rem;
    }
    
    .tech-item,
    .feature-item,
    .step {
        padding: 1rem;
    }
    
    .platforms {
        grid-template-columns: 1fr;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Responsive design for header navigation */
@media (max-width: 1024px) {
    .header-nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .header-nav {
        order: 2;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .header-controls {
        order: 1;
    }
}

@media (max-width: 480px) {
    .header-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Responsive design for scroll to top button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Responsive design for theme buttons */
@media (max-width: 768px) {
    .chat-theme-selector {
        margin-top: 1.5rem;
    }
    
    .theme-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 500px;
    }
    
    .theme-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .theme-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chat-theme-selector {
        margin-top: 1rem;
    }
    
    .theme-selector-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .theme-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        max-width: 300px;
    }
    
    .theme-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* FAQ Section Styles for GEO Optimization */
.faq-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--accent-primary);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    padding-top: 1rem;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Demo Form Modal Styles */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.demo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
}

.light-theme .demo-modal-overlay {
    background: rgba(0, 0, 0, 0.75);
}

.demo-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    padding-top: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
    z-index: 10001;
    /* Custom scrollbar styling matching custom-select */
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.15) transparent;
}

/* Custom scrollbar for modal - matching custom-select style */
.demo-modal-content::-webkit-scrollbar {
    width: 4px;
}

.demo-modal-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.demo-modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.demo-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Dark theme scrollbar */
.dark-theme .demo-modal-content {
    scrollbar-color: rgba(139, 92, 246, 0.2) transparent;
}

.dark-theme .demo-modal-content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
}

.dark-theme .demo-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Light theme scrollbar */
.light-theme .demo-modal-content {
    scrollbar-color: rgba(99, 102, 241, 0.12) transparent;
}

.light-theme .demo-modal-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.12);
}

.light-theme .demo-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.demo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
}

.demo-modal-close:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(90deg);
}

.demo-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-modal-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238b5cf6' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    position: relative;
    background-color: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.form-group select:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

.form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 25px rgba(99, 102, 241, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236366f1' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
}

/* Futuristic option styles - matching site theme with rounded corners */
.form-group select {
    overflow: hidden;
}

.form-group select option {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 1rem !important;
    border: none !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
    margin: 2px 0 !important;
}

/* First option - rounded top corners */
.form-group select option:first-of-type {
    border-radius: 12px 12px 0 0 !important;
    margin-top: 4px !important;
}

/* Last option - rounded bottom corners */
.form-group select option:last-of-type {
    border-radius: 0 0 12px 12px !important;
    margin-bottom: 4px !important;
}

/* Only one option - fully rounded */
.form-group select option:only-child {
    border-radius: 12px !important;
    margin: 4px 0 !important;
}

/* Dark theme options - seamless with background */
.dark-theme .form-group select option {
    background: rgba(26, 26, 46, 0.95) !important;
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
    border-radius: 8px !important;
    margin: 3px 8px !important;
}

.dark-theme .form-group select option:first-of-type {
    border-radius: 12px 12px 8px 8px !important;
    margin-top: 4px !important;
    margin-bottom: 3px !important;
}

.dark-theme .form-group select option:last-of-type {
    border-radius: 8px 8px 12px 12px !important;
    margin-bottom: 4px !important;
    margin-top: 3px !important;
}

.dark-theme .form-group select option:only-child {
    border-radius: 12px !important;
    margin: 4px 8px !important;
}

.dark-theme .form-group select option:hover,
.dark-theme .form-group select option:focus {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    padding-left: 1.5rem !important;
    border-left: 3px solid rgba(139, 92, 246, 0.6) !important;
}

/* Light theme options - with rounded corners */
.light-theme .form-group select option {
    background: rgba(248, 250, 252, 0.95) !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px !important;
    margin: 3px 8px !important;
}

.light-theme .form-group select option:first-of-type {
    border-radius: 12px 12px 8px 8px !important;
    margin-top: 4px !important;
    margin-bottom: 3px !important;
}

.light-theme .form-group select option:last-of-type {
    border-radius: 8px 8px 12px 12px !important;
    margin-bottom: 4px !important;
    margin-top: 3px !important;
}

.light-theme .form-group select option:only-child {
    border-radius: 12px !important;
    margin: 4px 8px !important;
}

.light-theme .form-group select option:hover,
.light-theme .form-group select option:focus {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%) !important;
    color: #1e293b !important;
    padding-left: 1.5rem !important;
    border-left: 3px solid rgba(99, 102, 241, 0.6) !important;
}

/* Selected option styling - subtle highlight matching site theme */
.form-group select:focus option:checked,
.form-group select option:checked {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
    border-left: 3px solid rgba(139, 92, 246, 0.8) !important;
}

.dark-theme .form-group select option:checked {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%) !important;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

.light-theme .form-group select option:checked {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%) !important;
    color: #1e293b !important;
    font-weight: 600 !important;
}

/* Windows Edge and IE specific fixes - matching theme */
@supports (-ms-ime-align: auto) {
    .form-group select option {
        background-color: rgba(26, 26, 46, 0.95) !important;
        color: #ffffff !important;
    }
    
    .light-theme .form-group select option {
        background-color: rgba(248, 250, 252, 0.95) !important;
        color: #1e293b !important;
    }
    
    .form-group select option:checked {
        background-color: rgba(99, 102, 241, 0.4) !important;
    }
}

/* Fix for Edge and IE */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .form-group select option {
        background-color: rgba(26, 26, 46, 0.95) !important;
        color: #ffffff !important;
    }
    
    .light-theme .form-group select option {
        background-color: rgba(248, 250, 252, 0.95) !important;
        color: #1e293b !important;
    }
    
    .form-group select option:checked {
        background-color: rgba(99, 102, 241, 0.4) !important;
    }
}

/* Windows-specific fix for native dropdown */
.form-group select::-ms-expand {
    display: none;
}

/* Force text color for Windows browsers */
.form-group select {
    color: var(--text-primary) !important;
}

.dark-theme .form-group select {
    color: #ffffff !important;
}

.light-theme .form-group select {
    color: #1e293b !important;
}

/* Container for dropdown to add rounded corners */
.form-group {
    position: relative;
}

/* Add rounded container effect for dropdown */
.form-group::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Futuristic glow effect on select */
.dark-theme .form-group select {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    overflow: visible;
}

.dark-theme .form-group select:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
}

.dark-theme .form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
}

.light-theme .form-group select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.light-theme .form-group select:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15), 0 0 15px rgba(139, 92, 246, 0.1);
}

.light-theme .form-group select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.2), 0 0 20px rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

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

/* Phone Input Group Styles */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-country-select {
    flex-shrink: 0;
    width: 140px;
    min-width: 140px;
}

.phone-country-select .custom-select-trigger {
    padding: 1rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    min-width: 140px;
}

.phone-country-select .custom-select-value {
    flex: 0 0 auto;
    font-weight: 500;
}

.country-flag {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.phone-country-select .custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
}

.phone-country-select .custom-select-option .country-flag {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.phone-number-input {
    flex: 1;
    min-width: 0;
}

/* Dark theme phone select */
.dark-theme .phone-country-select .custom-select-trigger {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.dark-theme .phone-country-select:hover .custom-select-trigger {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
}

.dark-theme .phone-country-select.active .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
}

/* Light theme phone select */
.light-theme .phone-country-select .custom-select-trigger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.light-theme .phone-country-select:hover .custom-select-trigger {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15), 0 0 15px rgba(139, 92, 246, 0.1);
}

.light-theme .phone-country-select.active .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.2), 0 0 20px rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.form-submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

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

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 2px solid #28a745;
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 2px solid #dc3545;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .demo-modal-content {
        padding: 2rem;
        padding-top: 2.5rem;
        width: 95%;
        max-height: 95vh;
    }
    
    .demo-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .demo-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
    }
    
    .form-submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .demo-modal-content {
        padding: 1.5rem;
        padding-top: 2rem;
        border-radius: 15px;
    }
    
    .demo-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .demo-modal-header p {
        font-size: 0.9rem;
    }
    
    .demo-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .phone-country-select {
        width: 100%;
        min-width: 100%;
    }
    
    .phone-country-select .custom-select-trigger {
        width: 100%;
        min-width: 100%;
    }
}

/* Custom Select Dropdown Styles - Cross-browser compatible */
.custom-select {
    position: relative;
    width: 100%;
    z-index: 10;
}

.custom-select-trigger {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.custom-select-trigger:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
}

.custom-select.active .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 25px rgba(99, 102, 241, 0.3);
}

.custom-select-value {
    flex: 1;
    text-align: left;
    color: var(--text-primary);
}

.custom-select-value.placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.custom-select-arrow {
    color: var(--accent-secondary);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    margin-left: 1rem;
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-top: 4px;
}

.custom-select.active .custom-select-options {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.custom-select-option {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.custom-select-option:first-child {
    border-radius: 12px 12px 0 0;
}

.custom-select-option:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.custom-select-option:only-child {
    border-radius: 12px;
    border-bottom: none;
}

.custom-select-option:hover,
.custom-select-option.hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--text-primary);
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-primary);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: var(--text-primary);
    font-weight: 600;
    border-left: 3px solid var(--accent-primary);
}

.dark-theme .custom-select-trigger {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.dark-theme .custom-select-trigger:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3), 0 0 20px rgba(99, 102, 241, 0.15);
}

.dark-theme .custom-select.active .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 8px 25px rgba(99, 102, 241, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
}

.dark-theme .custom-select-options {
    background: rgba(26, 26, 46, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.dark-theme .custom-select-option:hover,
.dark-theme .custom-select-option.hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.dark-theme .custom-select-option.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(139, 92, 246, 0.35) 100%);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
}

.light-theme .custom-select-trigger {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.light-theme .custom-select-trigger:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15), 0 0 15px rgba(139, 92, 246, 0.1);
}

.light-theme .custom-select.active .custom-select-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 25px rgba(99, 102, 241, 0.2), 0 0 20px rgba(139, 92, 246, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.light-theme .custom-select-options {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.light-theme .custom-select-option:hover,
.light-theme .custom-select-option.hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.light-theme .custom-select-option.selected {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: #1e293b;
}

/* Custom scrollbar for dropdown - subtle and unobtrusive */
.custom-select-options {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.15) transparent;
}

.custom-select-options::-webkit-scrollbar {
    width: 4px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 2px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.25);
}

/* Dark theme scrollbar */
.dark-theme .custom-select-options {
    scrollbar-color: rgba(139, 92, 246, 0.2) transparent;
}

.dark-theme .custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
}

.dark-theme .custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* Light theme scrollbar */
.light-theme .custom-select-options {
    scrollbar-color: rgba(99, 102, 241, 0.12) transparent;
}

.light-theme .custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.12);
}

.light-theme .custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-select-trigger {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .custom-select-option {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}