:root {
    --primary-color: rgb(34, 48, 232);
    --klein-blue: var(--primary-color);
    --klein-blue-dark: rgba(var(--primary-color), 50%);
    --klein-blue-light: #rgba(var(--primary-color), 70%);
    --klein-blue-50: rgba(var(--primary-color), 20%);
}

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

.bg-kleinbg {
    background-image: url('/asset/kleinbg.svg');
    background-size: cover;
    background-position: center;
}

.text-klein-blue {
    color: var(--klein-blue);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--klein-blue);
    letter-spacing: -0.025em;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link-mobile:hover {
    color: var(--klein-blue);
}

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

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

.nav-link-mobile {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: color 0.3s;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--klein-blue);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 47, 167, 0.1);
}

.btn-primary:hover {
    background-color: var(--klein-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 47, 167, 0.15);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--klein-blue);
    font-weight: 600;
    border: 2px solid var(--klein-blue);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--klein-blue-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 47, 167, 0.1);
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 47, 167, 0.1);
}

.icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: var(--klein-blue-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Stats Counter */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Client Cards */
.client-card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    height: 100%;
}

.partner-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--klein-blue-50);
    border-radius: 0.5rem;
    font-weight: 500;
}

.partner-item i {
    margin-right: 0.75rem;
}

/* Testimonial Slider */
.testimonial-container {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.testimonial-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-control:hover {
    background: var(--klein-blue);
    color: white;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--klein-blue);
    transform: scale(1.2);
}

/* Product Tabs */
.product-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #4B5563;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-tab.active {
    color: var(--klein-blue);
    border-bottom-color: var(--klein-blue);
}

.tab-content {
    display: none;
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.product-card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
}

/* Product Animations */
.product-animation, .scan-animation, .chart-animation, .dna-animation {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Molecule Animation */
.molecule {
    position: relative;
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

.atom {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--klein-blue);
    box-shadow: 0 0 20px rgba(0, 47, 167, 0.4);
}

.atom-1 {
    top: 0;
    left: 80px;
    animation: pulse 2s ease-in-out infinite;
}

.atom-2 {
    top: 120px;
    left: 0;
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.atom-3 {
    top: 120px;
    left: 160px;
    animation: pulse 2s ease-in-out infinite 1s;
}

.bond {
    position: absolute;
    background: #a0aec0;
    height: 10px;
    transform-origin: left center;
}

.bond-1 {
    width: 120px;
    top: 20px;
    left: 100px;
    transform: rotate(60deg);
}

.bond-2 {
    width: 120px;
    top: 20px;
    left: 100px;
    transform: rotate(-60deg);
}

.bond-3 {
    width: 160px;
    top: 140px;
    left: 20px;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

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

/* Scan Animation */
.scan-container {
    position: relative;
    width: 240px;
    height: 200px;
    background: #f8fafc;
    border-radius: 1rem;
    overflow: hidden;
}

.scan-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f1f5f9 25%, transparent 25%, transparent 50%, #f1f5f9 50%, #f1f5f9 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.5;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--klein-blue);
    top: 0;
    animation: scan 3s ease-in-out infinite;
}

.scan-result {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-radius: 0.5rem;
    background: rgba(0, 47, 167, 0.1);
    border: 2px solid var(--klein-blue);
    opacity: 0;
    animation: reveal 3s ease-in-out infinite;
}

@keyframes scan {
    0% { top: 0; box-shadow: 0 0 10px rgba(0, 47, 167, 0.5); }
    50% { top: calc(100% - 4px); box-shadow: 0 0 20px rgba(0, 47, 167, 0.8); }
    100% { top: 0; box-shadow: 0 0 10px rgba(0, 47, 167, 0.5); }
}

@keyframes reveal {
    0%, 30% { opacity: 0; transform: scale(0.8); }
    50%, 80% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

/* Chart Animation */
.chart-animation {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 200px;
}

.chart-bar {
    width: 30px;
    border-radius: 4px 4px 0 0;
    background: var(--klein-blue);
    animation: grow 3s ease-in-out infinite;
}

.chart-bar-1 { height: 40%; animation-delay: 0s; }
.chart-bar-2 { height: 65%; animation-delay: 0.2s; }
.chart-bar-3 { height: 85%; animation-delay: 0.4s; }
.chart-bar-4 { height: 55%; animation-delay: 0.6s; }
.chart-bar-5 { height: 70%; animation-delay: 0.8s; }

@keyframes grow {
    0%, 100% { transform: scaleY(1); opacity: 0.8; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

/* DNA Animation */
.dna-strand {
    position: relative;
    width: 50px;
    height: 200px;
    animation: rotate 8s linear infinite;
}

.dna-pair {
    position: absolute;
    width: 100px;
    height: 20px;
    left: -25px;
    background: var(--klein-blue);
    border-radius: 10px;
}

.dna-pair::before, .dna-pair::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--klein-blue);
}

.dna-pair::before {
    left: -10px;
}

.dna-pair::after {
    right: -10px;
}

.dna-pair-1 { top: 20px; transform: rotate(30deg); animation-delay: 0s; }
.dna-pair-2 { top: 60px; transform: rotate(-30deg); animation-delay: 0.2s; }
.dna-pair-3 { top: 100px; transform: rotate(30deg); animation-delay: 0.4s; }
.dna-pair-4 { top: 140px; transform: rotate(-30deg); animation-delay: 0.6s; }
.dna-pair-5 { top: 180px; transform: rotate(30deg); animation-delay: 0.8s; }

/* Team Cards */
.team-card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 47, 167, 0.1);
}

.social-link {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background-color: var(--klein-blue-50);
    color: var(--klein-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--klein-blue);
    color: white;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--klein-blue);
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-container {
        padding: 0 2rem;
    }

    .product-animation, .scan-animation, .chart-animation, .dna-animation {
        height: 180px;
    }
}

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

.aspect-w-1 {
    position: relative;
    padding-bottom: 100%;
}

.aspect-h-1 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

.aspect-h-9 > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
