:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --text-light: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-brand img {
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.logo-white,
.logo-dark {
    height: 40px;
}

.navbar.scrolled .logo-white {
    display: none !important;
}

.navbar.scrolled .logo-dark {
    display: block !important;
}

.navbar:not(.scrolled) .logo-white {
    display: block !important;
}

.navbar:not(.scrolled) .logo-dark {
    display: none !important;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: #1e293b !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(30, 41, 59, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

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

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::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"><stop offset="0%" stop-color="%236366f1" stop-opacity="0.1"/><stop offset="100%" stop-color="%236366f1" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>') no-repeat center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 120px 0 80px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lead {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* AI Globe Animation */
.ai-globe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.globe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
}

.globe-sphere {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.3), rgba(15, 23, 42, 0.8));
    box-shadow: 
        inset -50px -50px 100px rgba(99, 102, 241, 0.4),
        inset 50px 50px 100px rgba(236, 72, 153, 0.3),
        0 0 150px rgba(99, 102, 241, 0.5),
        0 0 300px rgba(99, 102, 241, 0.3);
    animation: globeRotate 20s linear infinite;
    position: relative;
}

.globe-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px, 20px 20px;
    animation: gridRotate 15s linear infinite reverse;
    opacity: 0.6;
}

@keyframes globeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gridRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Orbiting Lights */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.orbit-1 {
    width: 700px;
    height: 700px;
    animation: orbitRotate 10s linear infinite;
}

.orbit-2 {
    width: 800px;
    height: 800px;
    animation: orbitRotate 15s linear infinite reverse;
}

.orbit-3 {
    width: 650px;
    height: 900px;
    animation: orbitRotate 12s linear infinite;
    transform: translate(-50%, -50%) rotateX(60deg);
}

.orbit-4 {
    width: 750px;
    height: 750px;
    animation: orbitRotate 18s linear infinite reverse;
    transform: translate(-50%, -50%) rotateX(-60deg);
}

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

.light {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 1), rgba(236, 72, 153, 0.8));
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 40px rgba(99, 102, 241, 0.6),
        0 0 60px rgba(236, 72, 153, 0.4);
    animation: lightPulse 2s ease-in-out infinite;
}

.light-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.light-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.light-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.light-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes lightPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    right: 25%;
    animation: particleFloat 10s ease-in-out infinite;
    animation-delay: 2s;
}

.particle-3 {
    bottom: 30%;
    left: 30%;
    animation: particleFloat 12s ease-in-out infinite;
    animation-delay: 4s;
}

.particle-4 {
    top: 40%;
    right: 15%;
    animation: particleFloat 9s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(30px, -30px) scale(1.2);
        opacity: 1;
    }
    50% { 
        transform: translate(-20px, -60px) scale(0.8);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-40px, -30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Stats Section */
.stats {
    background: white;
    padding: 80px 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    background: #f8fafc;
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Flip Card Styles for On-Demand Expert Services */
.flip-card-container {
    perspective: 1000px;
    height: 500px;
    margin-bottom: 2rem;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.flip-card-container:hover .flip-card-front,
.flip-card-container:hover .flip-card-back {
    box-shadow: 0 15px 60px rgba(99, 102, 241, 0.4);
}

.flip-card-front {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    text-align: center;
}

.flip-card-back {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-front .service-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
}

.flip-card-front h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.flip-card-front p {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 0;
}

.flip-card-back h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    color: #cbd5e1;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: #6366f1;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.service-note {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Showcase Flip Cards */
#products-showcase .flip-card-container {
    height: 550px;
}

#products-showcase .flip-card-front {
    background: white !important;
    color: var(--dark-bg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#products-showcase .flip-card-front h4 {
    color: var(--dark-bg);
}

#products-showcase .flip-card-front p {
    color: var(--text-light);
}

#products-showcase .flip-card-front p strong {
    color: var(--dark-bg);
}

#products-showcase .flip-card-front .product-logo-container img {
    filter: none;
    transition: transform 0.3s ease;
}

#products-showcase .flip-card-container:hover .flip-card-front .product-logo-container img {
    transform: scale(1.05);
}

#products-showcase .flip-card-container:hover .flip-card-front {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
}

#products-showcase .flip-card-back {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--dark-bg);
    color: white;
}

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

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: #cbd5e1;
    line-height: 1.8;
}

/* CTA Section */
.cta {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

/* Contact Form Section */
.contact-section {
    background: #f8fafc;
    padding: 100px 0;
}

.contact-section .section-title h2 {
    color: var(--dark-bg);
}

.contact-section .section-subtitle {
    color: var(--text-light);
}

.contact-form {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact-form .required {
    color: #ef4444;
    margin-left: 2px;
}

.contact-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Only show invalid state after user has interacted (blurred) and field is not empty */
.contact-form .form-control:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #ef4444;
}

.contact-form .form-control:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Prevent showing invalid state on empty required fields until user interacts */
.contact-form .form-control:invalid:placeholder-shown {
    border-color: #e2e8f0;
}

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

.contact-form button[type="submit"] {
    padding: 15px 50px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 2rem;
    color: white;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.footer .social-links a i {
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 100px 0 60px;
    }
    
    .globe {
        width: 400px;
        height: 400px;
    }
    
    .orbit-1 {
        width: 500px;
        height: 500px;
    }
    
    .orbit-2 {
        width: 600px;
        height: 600px;
    }
    
    .orbit-3 {
        width: 450px;
        height: 650px;
    }
    
    .orbit-4 {
        width: 550px;
        height: 550px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .flip-card-container {
        height: 450px;
    }

    #products-showcase .flip-card-container {
        height: 500px;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 2rem 1.5rem;
    }
    
    .flip-card-front h4,
    .flip-card-back h4 {
        font-size: 1.3rem;
    }

    #products-showcase .product-logo-container img {
        max-width: 140px !important;
        max-height: 60px !important;
    }
    
    .service-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-form button[type="submit"] {
        width: 100%;
        padding: 12px 30px;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #334155;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

