/* Custom CSS for InfiniTree Website */

/* InfiniTree Logo CSS */
.infinitree-logo {
    width: 40px;
    height: 40px;
    position: relative;
    border: 3px solid #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981, #059669);
}

.infinitree-logo::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 8px;
    background: #065F46;
    bottom: 8px;
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

.infinitree-logo::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 4px;
    background: transparent;
    border: 2px solid #065F46;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(45deg);
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

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

/* Floating Background Elements */
.floating-element {
    position: absolute;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.floating-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Solution Cards Hover Effects */
.solution-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: #10B981;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.solution-card:hover .fa-chart-line,
.solution-card:hover .fa-brain,
.solution-card:hover .fa-microchip,
.solution-card:hover .fa-eye {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Tab System */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.tab {
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #F3F4F6;
}

.tab.tab-active {
    background-color: #10B981;
    color: white;
}

/* Statistics Animation */
.stat-value {
    transition: all 0.3s ease;
}

.stat-value.counting {
    color: #10B981;
    transform: scale(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Styles */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

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

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .floating-element {
        display: none;
    }
    
    .solution-card {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: loadIn 0.8s ease-out forwards;
}

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

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

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: #10B981;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Focus States for Accessibility */
.btn:focus,
.tab:focus,
a:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .floating-element,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
        color: black;
    }
}