/* Custom CSS for RDEE Globals Website */

/* General Body and Font */
body {
    font-family: 'Poppins', sans-serif;
    color: #333; /* Dark grey for general text */
    background-color: #f8f9fa; /* Light background */
}

/* Primary Color Variables */
:root {
    --primary-color: #6200ee;
    --primary-color-dark: #4b00b3; /* Slightly darker for hover */
    --primary-color-light: #ede7f6; /* Lighter for backgrounds/icons */
    --secondary-color: #e9ecef; /* Bootstrap's light grey for badges */
    --text-dark: #212529; /* Bootstrap's default dark text */
    --text-muted: #6c757d; /* Bootstrap's default muted text */
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-primary-dark {
    color: var(--primary-color-dark) !important;
}

.text-primary-light {
    color: var(--primary-color-light) !important;
}

.bg-primary-light {
    background-color: var(--primary-color-light) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    transform: translateY(-2px); /* Soft lift effect */
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px); /* Soft lift effect */
}

/* Navbar */
.navbar-brand {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom right, var(--primary-color-light), #f8f9fa);
    padding-top: 80px; /* Adjust for sticky header */
    padding-bottom: 80px;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: calc(100vh - 72px); /* Adjust for sticky header height */
    }
}

/* Cards (General) */
.card {
    border-radius: 1rem; /* Rounded corners */
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Soft lift effect on hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow */
}

/* Service Card Specific */
.service-card .icon-box {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.service-card:hover .icon-box {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

/* Project Card Specific */
.project-card img {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.project-card .badge {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-weight: 500;
}

/* Testimonial Card Specific */
.testimonial-card img {
    border: 3px solid var(--primary-color-light);
}

.testimonial-card .text-warning {
    color: #ffc107 !important; /* Standard Bootstrap warning yellow for stars */
}

/* Forms */
.form-control.rounded-pill,
.form-control.rounded-4 {
    border-color: #ced4da;
    box-shadow: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control.rounded-pill:focus,
.form-control.rounded-4:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(98, 0, 238, 0.25); /* Primary color shadow */
}

/* Footer */
.footer .list-unstyled li a {
    transition: color 0.3s ease;
}

.footer .list-unstyled li a:hover,
.footer .hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.text-sm {
    font-size: 0.875em;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .display-4, .display-5, .display-6 {
        font-size: 2.5rem;
    }
    .lead {
        font-size: 1rem;
    }
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    .hero-section .btn {
        width: 100%;
    }
}