/* Custom CSS for TechEvolve Landing Page */

/* Font Configuration */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Root Variables */
:root {
    --primary-green: #A7FF00;
    --primary-dark: #010202;
    --secondary-navy: #232B68;
    --accent-blue: #7A87FF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base Styles */
* {
    scroll-behavior: smooth;
}

html {
    background: linear-gradient(135deg, #010202 0%, #232B68 50%, #010202 100%) !important;
    min-height: 100vh;
}

body {
    overflow-x: hidden;
    background: linear-gradient(135deg, #010202 0%, #232B68 50%, #010202 100%) !important;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Ensure body background overrides any Tailwind classes */
body.text-white.font-inter {
    background: linear-gradient(135deg, #010202 0%, #232B68 50%, #010202 100%) !important;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #A7FF00 0%, #7A87FF 50%, #A7FF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(167, 255, 0, 0.1), rgba(122, 135, 255, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Fade In Up Animation */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Styles */
.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

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

/* Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(167, 255, 0, 0.3);
}

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

.cta-button:hover::before {
    left: 100%;
}

.secondary-button {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(167, 255, 0, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.secondary-button:hover::before {
    width: 100%;
}

/* Card Hover Effects */
.domain-card,
.about-card {
    transition: all 0.3s ease;
}

.domain-card:hover,
.about-card:hover {
    transform: translateY(-8px);
}

.domain-card:hover .bg-white\/5,
.about-card:hover .bg-white\/5,
.about-card:hover .bg-gradient-to-br {
    background: rgba(167, 255, 0, 0.05);
    border-color: rgba(167, 255, 0, 0.3);
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .floating-shapes .shape {
        display: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-shapes .shape {
        animation: none;
    }
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {

    .bg-white\/5,
    .bg-white\/10 {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }

    .text-gray-300 {
        color: #ffffff;
    }

    .text-gray-400 {
        color: #e5e5e5;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    z-index: 9999;
    transition: width 0.1s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #7A87FF;
}

/* Section Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: particle-float 8s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

#mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hover Effects for Interactive Elements */
.interactive-hover {
    transition: all 0.3s ease;
}

.interactive-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Text Selection Styling */
::selection {
    background: var(--primary-green);
    color: var(--primary-dark);
}

::-moz-selection {
    background: var(--primary-green);
    color: var(--primary-dark);
}

/* Animated Icons */
.animated-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animated-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.animated-icon:hover::before {
    opacity: 1;
}

.animated-icon i {
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    position: relative;
}

/* Icon Hover Animations */
.animated-icon:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.animated-icon:hover i {
    transform: scale(1.1);
}

/* Specific Icon Colors and Animations */
.icon-fintech {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    border-color: rgba(34, 197, 94, 0.3);
}

.icon-fintech i {
    color: #22c55e;
    animation: pulse-green 2s ease-in-out infinite;
}

.icon-fintech:hover {
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.icon-healthtech {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-color: rgba(239, 68, 68, 0.3);
}

.icon-healthtech i {
    color: #ef4444;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.icon-healthtech:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.icon-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

.icon-ai i {
    color: #a855f7;
    animation: rotate-pulse 3s ease-in-out infinite;
}

.icon-ai:hover {
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
}

.icon-blockchain {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.icon-blockchain i {
    color: #3b82f6;
    animation: float-rotate 4s ease-in-out infinite;
}

.icon-blockchain:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.icon-empathy {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
    border-color: rgba(236, 72, 153, 0.3);
}

.icon-empathy i {
    color: #ec4899;
    animation: gentle-bounce 2.5s ease-in-out infinite;
}

.icon-empathy:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
}

.icon-human {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.icon-human i {
    color: #f59e0b;
    animation: gentle-sway 3s ease-in-out infinite;
}

.icon-human:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

/* Icon Animation Keyframes */
@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.05);
    }
}

@keyframes rotate-pulse {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes float-rotate {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(180deg);
    }
}

@keyframes gentle-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes gentle-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

/* 3D Vector Abstract Animation */
.hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.vector-element {
    position: absolute;
    opacity: 0.6;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vector-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    animation: float-3d 8s ease-in-out infinite;
}

.vector-triangle-1 {
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(167, 255, 0, 0.15);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
    transform-origin: center;
}

.vector-triangle-2 {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(122, 135, 255, 0.2);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    transform-origin: center;
}

.vector-triangle-3 {
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(167, 255, 0, 0.1);
    top: 80%;
    right: 15%;
    animation-delay: 4s;
    transform-origin: center;
}

.vector-circle {
    border-radius: 50%;
    animation: pulse-3d 6s ease-in-out infinite;
}

.vector-circle-1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(122, 135, 255, 0.15) 0%, transparent 70%);
    border: 2px solid rgba(122, 135, 255, 0.2);
    top: 25%;
    right: 25%;
    animation-delay: 1s;
}

.vector-circle-2 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(167, 255, 0, 0.1) 0%, transparent 70%);
    border: 1px solid rgba(167, 255, 0, 0.3);
    top: 70%;
    right: 8%;
    animation-delay: 3s;
}

.vector-line {
    background: linear-gradient(45deg, rgba(167, 255, 0, 0.2), rgba(122, 135, 255, 0.2));
    animation: rotate-3d 10s linear infinite;
}

.vector-line-1 {
    width: 100px;
    height: 2px;
    top: 35%;
    right: 12%;
    animation-delay: 0.5s;
    transform-origin: left center;
}

.vector-line-2 {
    width: 80px;
    height: 1px;
    top: 55%;
    right: 18%;
    animation-delay: 2.5s;
    transform-origin: right center;
}

.vector-dot {
    border-radius: 50%;
    background: rgba(167, 255, 0, 0.4);
    animation: twinkle-3d 4s ease-in-out infinite;
}

.vector-dot-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

.vector-dot-2 {
    width: 6px;
    height: 6px;
    top: 45%;
    right: 5%;
    animation-delay: 3.5s;
}

.vector-dot-3 {
    width: 10px;
    height: 10px;
    top: 75%;
    right: 28%;
    animation-delay: 0.8s;
}

/* 3D Animation Keyframes */
@keyframes float-3d {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-15px) rotateX(10deg) rotateY(5deg);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-25px) rotateX(0deg) rotateY(10deg);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-10px) rotateX(-5deg) rotateY(5deg);
        opacity: 0.7;
    }
}

@keyframes pulse-3d {

    0%,
    100% {
        transform: scale(1) rotateZ(0deg);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1) rotateZ(180deg);
        opacity: 0.3;
    }
}

@keyframes rotate-3d {
    0% {
        transform: rotate(0deg) scaleX(1);
        opacity: 0.6;
    }

    25% {
        transform: rotate(90deg) scaleX(1.2);
        opacity: 0.8;
    }

    50% {
        transform: rotate(180deg) scaleX(1);
        opacity: 0.4;
    }

    75% {
        transform: rotate(270deg) scaleX(0.8);
        opacity: 0.7;
    }

    100% {
        transform: rotate(360deg) scaleX(1);
        opacity: 0.6;
    }
}

@keyframes twinkle-3d {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Mouse Movement Responsive Animation */
.hero-3d-container.mouse-active .vector-element {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Responsive adjustments for 3D elements */
@media (max-width: 768px) {
    .vector-triangle-1 {
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-bottom: 35px solid rgba(167, 255, 0, 0.15);
    }

    .vector-triangle-2 {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 26px solid rgba(122, 135, 255, 0.2);
    }

    .vector-triangle-3 {
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-bottom: 31px solid rgba(167, 255, 0, 0.1);
    }

    .vector-circle-1 {
        width: 60px;
        height: 60px;
    }

    .vector-circle-2 {
        width: 45px;
        height: 45px;
    }

    .vector-line-1 {
        width: 70px;
    }

    .vector-line-2 {
        width: 60px;
    }
}

/* Animated Illustrations for Case Studies */
.case-study-illustration {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(167, 255, 0, 0.1), rgba(122, 135, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-fintech {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
}

.illustration-healthtech {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 127, 0.1));
}

.illustration-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
}

.illustration-blockchain {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.1));
}

.illustration-vision {
    background: linear-gradient(135deg, rgba(122, 135, 255, 0.15), rgba(167, 255, 0, 0.05));
}

.illustration-mission {
    background: linear-gradient(135deg, rgba(167, 255, 0, 0.15), rgba(122, 135, 255, 0.05));
}

/* Custom Select Dropdown Styling */
select.appearance-none {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.illustration-element {
    position: absolute;
    border-radius: 50%;
    animation: float-illustration 6s ease-in-out infinite;
}

.illustration-element:nth-child(1) {
    width: 60px;
    height: 60px;
    background: rgba(167, 255, 0, 0.3);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.illustration-element:nth-child(2) {
    width: 40px;
    height: 40px;
    background: rgba(122, 135, 255, 0.4);
    top: 60%;
    right: 25%;
    animation-delay: 2s;
}

.illustration-element:nth-child(3) {
    width: 30px;
    height: 30px;
    background: rgba(167, 255, 0, 0.2);
    bottom: 30%;
    left: 60%;
    animation-delay: 4s;
}

.illustration-center-icon {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes float-illustration {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}