/* Custom CSS for NeuroApp Website */

:root {
    --primary-color: #0033CC;
    --secondary-color: #0052FF;
    --accent-color: #F5A623;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #334155;
    overflow-x: hidden;
    padding-top: 76px;
    /* Account for fixed navbar */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
}

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

/* Navigation */
#mainNavbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNavbar.scrolled {
    background: rgba(30, 41, 59, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand .logo-container {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.btn-primary {
    color: white !important;
    background: var(--gradient);
    border: none;
}

.navbar-nav .nav-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 51, 204, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: var(--dark-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    opacity: 0.9;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%230033CC' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

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

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.floating-elements {
    position: relative;
    height: 400px;
    margin-top: 2rem;
}

.tech-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    font-weight: 600;
    animation: floatTech 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tech-card.flutter {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tech-card.ai {
    top: 10%;
    right: 20%;
    animation-delay: -1.5s;
}

.tech-card.nodejs {
    bottom: 30%;
    left: 20%;
    animation-delay: -3s;
}

.tech-card.aws {
    bottom: 20%;
    right: 10%;
    animation-delay: -4.5s;
}

@keyframes floatTech {

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

    33% {
        transform: translateY(-10px) rotate(2deg);
    }

    66% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

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

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

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Stats Section */
.stats-section {
    background: var(--gradient);
}

.stat-item {
    padding: 1rem;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 51, 204, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: #64748b;
}

/* Clients Section */
.clients-section {
    padding: 5rem 0;
}

.client-logo {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.placeholder-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 51, 204, 0.3);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.text-muted {
    color: #94a3b8 !important;
}

footer .social-links a {
    transition: transform 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
        /* Adjust for mobile navbar height */
    }

    .hero-section {
        text-align: center;
    }

    .floating-elements {
        height: 200px;
    }

    .tech-card {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 65px;
        /* Adjust for smaller mobile screens */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .client-logo {
        height: 120px;
        padding: 1rem;
    }
}

/* Utility Classes */
.bg-gradient {
    background: var(--gradient);
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Page Styles */
.mission-card p,
.vision-card p,
.tech-item p,
.value-card p {
    color: #64748b !important;
}

.mission-card h3,
.vision-card h3,
.tech-item h5,
.value-card h5 {
    color: #1e293b !important;
}

.about-section,
.about-section p,
.about-section h2,
.about-section h3 {
    color: #1e293b !important;
}

/* Min viewport height helper */
.min-vh-50 {
    min-height: 50vh;
}


/* CEO Message Section */
.ceo-message-section {
    background: #f8fafc;
}

.ceo-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.ceo-profile img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.ceo-message-content {
    position: relative;
}

.quote-icon {
    opacity: 0.2;
}

.ceo-message-content p {
    color: #475569;
    line-height: 1.8;
}

.ceo-message-content .lead {
    color: #1e293b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ceo-card {
        padding: 2rem 1.5rem;
    }

    .ceo-profile img {
        width: 150px;
        height: 150px;
    }
}

/* Team Section Carousel */
.team-carousel-wrapper {
    position: relative;
}

.team-carousel {
    gap: 2rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

.team-carousel::-webkit-scrollbar {
    height: 8px;
}

.team-carousel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.team-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.team-carousel::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.team-card-wrapper {
    width: 350px;
}

.team-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.team-image-wrapper {
    position: relative;
    display: inline-block;
}

.team-image-wrapper img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #f1f5f9;
    transition: border-color 0.3s ease;
}

.team-card:hover .team-image-wrapper img {
    border-color: var(--primary-color);
}

.team-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Scroll Buttons */
.team-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-scroll-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.team-scroll-left {
    left: -25px;
}

.team-scroll-right {
    right: -25px;
}

@media (max-width: 768px) {
    .team-card {
        padding: 2rem 1.5rem;
    }

    .team-card-wrapper {
        width: 300px;
    }

    .team-image-wrapper img {
        width: 150px;
        height: 150px;
    }

    .team-scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .team-scroll-left {
        left: -15px;
    }

    .team-scroll-right {
        right: -15px;
    }
}