/* Custom styles */
:root {
    --brown-dark: #4A3C32;
    --brown-medium: #6B5744;
    --brown-light: #8B7355;
    --blue-dark: #2C4A5A;
    --blue-medium: #3D6478;
    --blue-light: #5C8DA3;
    --green-accent: #3C6E47;
    --warm-bg: #F5F2EF;
    --warm-brown-bg: #EBE6E0;
}

html {
    scroll-behavior: smooth;
}

.hero-bg {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--brown-dark) 100%);
    color: white;
}

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

/* Backgrounds */
.bg-warm {
    background-color: var(--warm-bg);
}

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

/* Custom accent colors */
.accent-primary {
    color: var(--blue-medium);
}

.accent-secondary {
    color: var(--brown-medium);
}

.accent-green {
    color: var(--green-accent);
}

.border-accent {
    border-color: var(--blue-medium);
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

.experience-item {
    animation: slideIn 0.6s ease-out;
    animation-fill-mode: both;
}

.experience-item:nth-child(1) { animation-delay: 0.1s; }
.experience-item:nth-child(2) { animation-delay: 0.2s; }
.experience-item:nth-child(3) { animation-delay: 0.3s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }

/* Hero animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-avatar {
    transition: transform 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
}

.hero-name {
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--blue-medium);
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* New class for lighter card background */
.lighter-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact links */
.contact-link {
    color: var(--blue-dark);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--green-accent);
    transform: translateY(-3px);
}

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

::-webkit-scrollbar-track {
    background: var(--warm-bg);
}

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

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

/* Investment cards */
.investment-card {
    transition: all 0.3s ease;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.logo-container {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tensorwave-container {
    background-color: #0A2540;
    border-radius: 8px;
    padding: 0.75rem;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.investment-card a {
    text-decoration: none;
    color: inherit;
}

.investment-card p {
    line-height: 1.6;
    text-align: center;
    margin-top: 0.75rem;
}

.location-header {
    text-align: center;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.investment-card img {
    object-fit: contain;
    max-height: 100%;
    width: auto;
    height: auto;
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card i {
    transition: transform 0.3s ease;
}

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

/* Theme colors */
.text-brown-dark { color: var(--brown-dark); }
.text-brown-medium { color: var(--brown-medium); }
.text-brown-light { color: var(--brown-light); }
.text-blue-dark { color: var(--blue-dark); }
.text-blue-medium { color: var(--blue-medium); }
.text-blue-light { color: var(--blue-light); }

.bg-brown-dark { background-color: var(--brown-dark); }
.bg-brown-medium { background-color: var(--brown-medium); }
.bg-brown-light { background-color: var(--brown-light); }
.bg-blue-dark { background-color: var(--blue-dark); }
.bg-blue-medium { background-color: var(--blue-medium); }
.bg-blue-light { background-color: var(--blue-light); }

.hover\:bg-brown-dark:hover { background-color: var(--brown-dark); }
.hover\:bg-blue-dark:hover { background-color: var(--blue-dark); }

/* Testimonials */
.testimonial-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem;
    margin: -1rem;
}

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .testimonial-section {
        padding: 5rem 0;
        overflow: hidden;
    }

    .testimonial-container {
        display: flex;
        gap: 2rem;
        padding: 1rem;
        margin: -1rem;
        animation: scroll-left 90s linear infinite;
        width: fit-content;
    }

    .testimonial-card {
        flex: 0 0 auto;
        width: 24rem;
        margin-right: 2rem;
        opacity: 1 !important;
        display: block !important;
    }

    .desktop-only {
        display: block;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-26rem * 5)); /* width + margin-right of 5 cards */
        }
    }
}

@media (max-width: 768px) {
    .testimonial-section {
        padding: 2rem 1rem;
    }

    .testimonial-container {
        display: block;
        animation: none;
        max-width: 32rem;
        margin: -1rem auto;
        padding: 1rem;
    }

    .testimonial-card {
        width: 100%;
        margin: 0 auto;
        opacity: 0;
        display: none;
        transition: opacity 0.3s ease;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .testimonial-card.active {
        opacity: 1;
        display: block;
        position: relative;
    }

    .testimonial-controls {
        display: flex !important;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--blue-medium);
        opacity: 0.3;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .testimonial-dot.active {
        opacity: 1;
    }

    .desktop-only {
        display: none;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

/* Mobile testimonials */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 2rem 1rem;
    }

    .testimonial-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        animation: none;
    }

    .testimonial-card {
        width: 100%;
        margin: 0;
        opacity: 0;
        display: none;
        transition: opacity 0.3s ease;
    }

    .testimonial-card.active {
        opacity: 1;
        display: block;
    }

    .testimonial-controls {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--blue-medium);
        opacity: 0.3;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    .testimonial-dot.active {
        opacity: 1;
    }

    .animate-scroll-left {
        animation: none;
    }
}
