/**
 * CoreDou Custom Design System & Colors
 */

:root {
    --primary-color: #002147;     /* Oxford Blue */
    --secondary-color: #D2B48C;   /* Tan */
    --bg-color: #FFFFFF;          /* Pure White */
    --accent-color: #F5F7FA;      /* Light Gray */
    --text-dark: #1E293B;         /* Dark Slate */
    --text-muted: #64748B;        /* Muted Gray */
    --font-family: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Body Setup */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography Adjustments */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

p {
    line-height: 1.7;
    color: var(--text-muted);
}

/* Header & Glassmorphic Navigation */
.navbar-coredou {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-smooth);
    padding: 15px 0;
}

.navbar-coredou.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 33, 71, 0.05);
}

.navbar-brand-text {
    font-weight: 800;
    color: var(--primary-color) !important;
    letter-spacing: 0.5px;
}

.navbar-brand-text span {
    color: var(--secondary-color);
}

.nav-link-coredou {
    color: var(--primary-color) !important;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
}

.nav-link-coredou::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link-coredou:hover::after,
.nav-link-coredou.active::after {
    width: 70%;
}

.nav-link-coredou:hover {
    color: var(--secondary-color) !important;
}

/* Buttons Styling */
.btn-coredou-primary {
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

.btn-coredou-primary:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.btn-coredou-secondary {
    background-color: var(--secondary-color);
    color: white !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid var(--secondary-color);
    transition: var(--transition-smooth);
}

.btn-coredou-secondary:hover {
    background-color: transparent;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

.btn-coredou-outline {
    background-color: transparent;
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    background: radial-gradient(circle at 80% 20%, rgba(210, 180, 140, 0.08) 0%, rgba(0, 33, 71, 0.02) 100%), var(--bg-color);
    overflow: hidden;
}

/* Background animated network simulation */
.network-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 33, 71, 0.05) 0%, rgba(210, 180, 140, 0.05) 100%);
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 { width: 300px; height: 300px; top: -50px; right: -50px; }
.shape-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; animation-duration: 25s; }
.shape-3 { width: 100px; height: 100px; top: 40%; left: 10%; animation-duration: 15s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(30px) rotate(180deg); }
}

/* Icon Floating Tech Grid */
.tech-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.08);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 10px;
    transition: var(--transition-smooth);
}

.tech-icon-box:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Section Spacing */
.section-padding {
    padding: 100px 0;
}

/* Why Choose Us & Services Cards */
.card-coredou {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    height: 100%;
}

.card-coredou:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 33, 71, 0.08);
    border-color: rgba(210, 180, 140, 0.3);
}

.card-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.card-coredou:hover .card-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Stats Counter */
.stats-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

/* Process Timeline (Our Process) */
.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '\f061'; /* FontAwesome arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 30px;
    right: -15%;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.process-step:last-child::after {
    display: none;
}

@media (max-width: 991px) {
    .process-step::after {
        content: '\f063'; /* Down arrow for tablets/mobiles */
        top: auto;
        bottom: -20px;
        right: 50%;
        transform: translateX(50%);
    }
    .process-step {
        margin-bottom: 40px;
    }
}

.process-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border: 2px solid var(--secondary-color);
    transition: var(--transition-smooth);
}

.process-step:hover .process-icon {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(360deg);
}

/* Custom Testimonial Slider styling */
.swiper-testimonials {
    padding: 20px 20px 60px 20px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 33, 71, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
}

/* Partners Logo Grid */
.partner-logo {
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition-smooth);
    max-height: 50px;
    object-fit: contain;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001228 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

/* Footer Section */
.footer-coredou {
    background-color: #0b1320;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-coredou h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.footer-social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Sub-page Headers */
.page-header-coredou {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.9)), url('../images/page-header-bg.jpg') center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header-coredou h1 {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Timeline component (About us) */
.timeline-coredou {
    position: relative;
    padding: 40px 0;
}

.timeline-coredou::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--secondary-color);
    position: absolute;
    top: 10px;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .timeline-coredou::before {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 40px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-badge {
        left: 10px !important;
    }
}

/* Filters for Portfolio / Products / Services */
.filter-btn {
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    margin: 5px;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Messenger / WhatsApp Chat Overlays */
.chat-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-widget-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

.chat-widget-btn:hover {
    transform: scale(1.1) translateY(-3px);
    color: white;
}

.chat-messenger {
    background: #0084FF;
}

.chat-whatsapp {
    background: #25D366;
}

/* Light / Dark Mode Styling for Dashboard */
body.dark-mode {
    --bg-color: #0f172a;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

body.dark-mode .navbar-coredou {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
}

body.dark-mode .nav-link-coredou {
    color: #f8fafc !important;
}

body.dark-mode .card-coredou,
body.dark-mode .testimonial-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .process-icon {
    background-color: #334155;
    color: #f8fafc;
}
