:root {
    /* Blue tones */
    --clr-primary: #1e3a8a; /* Deep blue */
    --clr-primary-light: #3b82f6;
    --clr-primary-dark: #172554;
    
    /* Orange tones */
    --clr-accent: #f97316; /* Vibrant orange */
    --clr-accent-hover: #ea580c;
    --clr-accent-light: #fdba74;

    /* Neutrals */
    --clr-text: #334155;
    --clr-text-light: #64748b;
    --clr-bg: #f8fafc;
    --clr-white: #ffffff;
    
    /* Utilities */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--clr-primary-dark);
    margin-bottom: 15px;
}

.section-title h2 span {
    color: var(--clr-accent);
}

.section-title p {
    color: var(--clr-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: #f1f5f9;
}

/* Buttons */
.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--clr-accent);
}

.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--clr-white);
}

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

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 5px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.navbar.scrolled .nav-content {
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--clr-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--clr-accent);
    font-size: 2rem;
}

.logo span {
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 600;
    color: var(--clr-primary-dark);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--clr-accent);
}

.nav-links li a.btn-primary {
    color: var(--clr-white);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1599443015574-be5fe8c057f4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--clr-white);
    max-width: 800px;
}

.badge {
    background-color: rgba(249, 115, 22, 0.2);
    color: var(--clr-accent-light);
    border: 1px solid var(--clr-accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--clr-accent-light);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--clr-primary-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text h2 span {
    color: var(--clr-accent);
}

.about-text p {
    color: var(--clr-text-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
}

.about-features li i {
    color: var(--clr-accent);
    font-size: 1.3rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--clr-white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--clr-accent);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.glass-card:hover .service-icon {
    background-color: var(--clr-primary);
    color: var(--clr-white);
    transform: rotateY(360deg);
}

.glass-card h3 {
    color: var(--clr-primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.glass-card p {
    color: var(--clr-text-light);
}

/* Categories Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.cat-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.9) 0%, transparent 60%);
    opacity: 0.8;
    transition: var(--transition);
}

.cat-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.cat-content h3 {
    color: var(--clr-white);
    font-size: 1.8rem;
    font-weight: 600;
    transform: translateY(0);
    transition: var(--transition);
}

.cat-card:hover img {
    transform: scale(1.1);
}

.cat-card:hover::after {
    opacity: 1;
}

.cat-card:hover .cat-content h3 {
    color: var(--clr-accent-light);
}

/* Footer */
.footer {
    background-color: var(--clr-primary-dark);
    color: var(--clr-white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 2rem;
    color: var(--clr-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h2 i {
    color: var(--clr-accent);
}

.footer-brand h2 span {
    color: var(--clr-accent);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    max-width: 400px;
}

.footer-contact h3, .footer-map h3, .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--clr-accent-light);
    position: relative;
    padding-bottom: 10px;
}

.footer-map iframe {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    border: none;
}

.footer-contact h3::after, .footer-map h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
}

.footer-contact ul li i {
    color: var(--clr-accent);
    margin-top: 5px;
    font-size: 1.2rem;
}

.footer-contact a:hover {
    color: var(--clr-accent-light);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--clr-accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--clr-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h3 {
    color: var(--clr-primary-dark);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.team-info p {
    color: var(--clr-accent);
    font-weight: 600;
}

/* Knowledge Base Section */
.knowledge-base {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--clr-bg) 0%, #eef2ff 100%);
    padding: 100px 0 120px 0;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    /* Edge fading for a premium look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 30px;
    padding: 0 15px;
}

/* Right flow animation: Starts at -50% and moves to 0% */
.right-flow {
    animation: marquee-right 60s linear infinite;
}

@keyframes marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

/* Pause on hover for better readability */
.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.kb-card {
    flex: 0 0 320px; 
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px -5px rgba(30, 58, 138, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.kb-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition);
}

.kb-card:hover {
    border-color: var(--clr-accent-light);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.1), 0 0 25px rgba(249, 115, 22, 0.15);
    background: rgba(255, 255, 255, 0.95);
    z-index: 2;
}

.kb-card:hover::before {
    transform: scale(2);
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
}

.kb-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
    color: var(--clr-accent);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
    transform: rotate(-5deg);
}

.kb-card:hover .kb-icon {
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-hover));
    color: var(--clr-white);
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.3);
}

.kb-card h3 {
    color: var(--clr-primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 800;
}

.kb-card p {
    color: var(--clr-text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--clr-white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .navbar.scrolled .nav-links {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stats Section */
.bg-primary {
    background-color: var(--clr-primary-dark);
    color: var(--clr-white);
}

.bg-primary .section-title h2 {
    color: var(--clr-white);
}

.bg-primary .section-title p {
    color: rgba(255,255,255,0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--clr-accent-light);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--clr-white);
}

.stat-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--clr-white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clr-primary-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
}

.faq-question:hover {
    color: var(--clr-accent);
}

.faq-question i {
    color: var(--clr-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #fafafa;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--clr-text-light);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* KB Modal */
.kb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kb-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kb-modal-content {
    background: var(--clr-white);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.kb-modal-overlay.active .kb-modal-content {
    transform: translateY(0) scale(1);
}

.kb-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--clr-accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-modal-close:hover {
    background: var(--clr-accent);
    color: var(--clr-white);
    transform: rotate(90deg);
}

.kb-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.kb-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(249, 115, 22, 0.2));
    color: var(--clr-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
}

.kb-modal-header h3 {
    color: var(--clr-primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
}

.kb-modal-body p {
    color: var(--clr-text-light);
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: center;
}

.kb-modal-footer {
    text-align: center;
}
