/* Custom styles that extend Tailwind */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

.rounded-4xl {
    border-radius: 2rem;
}

/* Navigation styles */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

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

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

/* Hero Section */
.hero-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
}

/* Hero Background Elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.15));
    top: -200px;
    right: -100px;
    animation: float-slow 15s ease-in-out infinite alternate;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(99, 102, 241, 0.1));
    bottom: -150px;
    left: -100px;
    animation: float-slow 12s ease-in-out infinite alternate-reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.08));
    top: 40%;
    left: 30%;
    animation: float-slow 20s ease-in-out infinite alternate;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Hero Content */
.hero-content-wrapper {
    padding: 9rem 0 7rem;
    position: relative;
    z-index: 2;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.hero-headline {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 540px;
    line-height: 1.6;
}

/* Hero Image */
.hero-image-col {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: relative;
    margin-right: -5rem;
    transform: translateY(2rem);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.15;
    border-radius: 1.5rem;
    z-index: -1;
    top: 1.5rem;
    left: 1.5rem;
    transition: all 0.5s ease;
}

.hero-image {
    border-radius: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-lg);
    max-width: 650px;
    transform: perspective(1000px) rotateY(-5deg);
}

/* Floating Elements */
.hero-floating-element {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.hero-element-1 {
    top: 20%;
    left: -80px;
    animation-delay: 0.5s;
}

.hero-element-2 {
    bottom: 25%;
    left: -60px;
    animation-delay: 1s;
}

.hero-floating-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 220px;
}

.hero-floating-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Hero Stats */
.hero-stats {
    margin-top: 3rem;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-avatars {
    display: flex;
}

.hero-stat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
    margin-right: -10px;
}

.hero-stat-icon {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.hero-stat-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-color);
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

/* Animation for floating elements */
@keyframes float-slow {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.service-card:hover::after {
    opacity: 1;
}

/* Platform Cards */
.platform-card {
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.platform-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--shadow-lg);
    color: white;
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card i {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.platform-card:hover i {
    transform: scale(1.2) translateY(-5px);
    color: white !important;
}

.platform-card:hover h5,
.platform-card:hover p {
    color: white;
}

.platform-card h5,
.platform-card p {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.platform-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.3;
    z-index: -1;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
}

.service-card:hover .service-icon::after {
    transform: scale(1.4);
    opacity: 0.2;
}

.service-icon i {
    font-size: 1.75rem;
    color: white;
}

/* Video Section */
.video-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: 0;
}

.video-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper p {
    color: #6c757d;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.ratio {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Calculator Card */
.calculator-card {
    border: none;
    border-radius: 2rem;
    background: white;
    overflow: hidden;
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.calculator-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

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

.form-control {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background-color: white;
}

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


/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-weight: 500;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background-position: right center;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    border-radius: 1rem;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Additional utility classes */
.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 7rem 0 4rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-card {
        height: 200px;
        padding: 1.5rem;
    }
    
    .service-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Footer styling */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}
