/* Custom Styles */
:root {
    --primary-color: #8b7fd8;
    --primary-hover: #7366c4;
    --primary-light: #a89ee8;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --text-dark: #2d2d3a;
    --text-muted: #9494a8;
    --bg-light: #faf9ff;
    --bg-white: #ffffff;
    --border-color: #ebe9f5;
    --shadow-sm: 0 1px 3px 0 rgba(139, 127, 216, 0.06);
    --shadow-md: 0 2px 6px 0 rgba(139, 127, 216, 0.08);
    --shadow-lg: 0 3px 10px 0 rgba(139, 127, 216, 0.1);
    --shadow-xl: 0 4px 12px 0 rgba(139, 127, 216, 0.12);
    --shadow-colored: 0 3px 12px -2px rgba(139, 127, 216, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    background: linear-gradient(180deg, #faf9ff 0%, #f5f3ff 100%);
}

/* Navigation */
.navbar {
    padding: 1.25rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff !important;
    border-bottom: 2px solid rgba(139, 127, 216, 0.12);
    box-shadow: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

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

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 100px;
    background: #f5f3ff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(139, 127, 216, 0.06);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: rgba(240, 147, 251, 0.05);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-section h1 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

.stat-card {
    padding: 2rem;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 2px solid rgba(139, 127, 216, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

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

.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(139, 127, 216, 0.12) !important;
    border-radius: 1.25rem !important;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--primary-color) !important;
    background: #ffffff;
}

.service-card .card-body {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 127, 216, 0.1) !important;
    transition: all 0.3s ease;
    box-shadow: none;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
    background: var(--primary-color) !important;
}

.service-card:hover .icon-box i {
    color: #ffffff !important;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #faf9ff;
}

/* Vanta.js NET Animation Section */
.vanta-net-section {
    position: relative;
    overflow: hidden;
}

.vanta-net-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 249, 255, 0.7);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
}

.vanta-net-section .container {
    position: relative;
    z-index: 1;
}

.feature-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateX(8px);
    background: #ffffff;
    border-color: rgba(139, 127, 216, 0.15);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #f5f3ff;
    position: relative;
    overflow: hidden;
}

.form-control {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(139, 127, 216, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 127, 216, 0.1);
    outline: none;
    background: #ffffff;
}

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

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.875rem 2.25rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Footer */
.footer {
    background: #faf9ff;
    border: 2px solid rgba(139, 127, 216, 0.12);
    border-radius: 1.25rem;
    width: 98%;
    margin: 2rem auto;
}

.footer a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px);
}

.social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.contact-info .card {
    border-radius: 1rem !important;
    border: 2px solid rgba(139, 127, 216, 0.12) !important;
    transition: all 0.3s ease;
    background: #ffffff !important;
}

.contact-info .card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .services-section,
    .features-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .btn-lg {
        padding: 0.675rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Card Shadows */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Utility Classes */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf9ff;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger animation delays for multiple items */
.scroll-animate:nth-child(1) {
    transition-delay: 0s;
}

.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.scroll-animate:nth-child(4) {
    transition-delay: 0.3s;
}

.scroll-animate:nth-child(5) {
    transition-delay: 0.4s;
}

.scroll-animate:nth-child(6) {
    transition-delay: 0.5s;
}