/* ===================================
   RBG Engineering - Custom CSS
   Company Profile Website
   =================================== */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Navbar Sticky Effect */
.navbar.sticky-top {
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

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

/* Hero Slider - Modern Overlay */
#heroSlider .carousel-item {
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
}

#heroSlider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.50) 0%, rgba(33, 37, 41, 0.75) 30%);
    z-index: 1;
}

#heroSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#heroSlider .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 90%;
    max-width: 900px;
    text-align: center;
}

#heroSlider .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#heroSlider .carousel-caption .lead {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #heroSlider .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
    
    #heroSlider .carousel-caption h1 {
        font-size: 2rem;
    }
    
    #heroSlider .carousel-caption .lead {
        font-size: 1rem;
    }
}

/* Hero Features Section - Overlapping Cards */
.hero-features-section {
    position: relative;
    margin-top: -120px;
    z-index: 10;
    padding: 0 0 4rem 0;
}

.hero-feature-card {
    background: rgba(28, 78, 185, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-feature-card:hover {
    transform: translateY(-8px);
    background: #0b5ed7;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.hero-feature-card h5 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hero-features-section {
        margin-top: -100px;
        padding: 0 0 3rem 0;
    }
    
    .hero-feature-card {
        padding: 2rem 1.5rem;
    }
    
    .hero-feature-card h5 {
        font-size: 1.1rem;
    }
    
    .hero-feature-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .hero-features-section {
        margin-top: -80px;
        padding: 0 0 2rem 0;
    }
    
    .hero-feature-card {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-feature-card h5 {
        font-size: 1rem;
    }
    
    .hero-feature-card p {
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Card Hover Effects */
.card {
    border: none;
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
}

.hover-shadow {
    box-shadow: var(--shadow-sm);
}

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

.card-body {
    padding: 2rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    height: 100%;
    background: white;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover i {
    transform: scale(1.1);
    color: #0b5ed7;
}

.service-card h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Profile/About Section */
.about-section {
    padding: 6rem 0;
}

.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-section img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Statistics Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Project/Portfolio Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.95) 0%, rgba(33, 37, 41, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h5 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-overlay p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.project-info {
    padding: 1.5rem;
    background: white;
}

.project-info h5 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Client Logo Section */
.clients-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.client-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem;
}

.client-logo {
    max-height: 80px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Divider */
.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Service Icon Animation */
.service-icon i {
    transition: var(--transition);
}

.card:hover .service-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Form Styling */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Social Links */
.social-links a {
    display: inline-block;
    transition: var(--transition);
}

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

/* Badge Styling */
.badge {
    padding: 0.5rem 0.8rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-header h2, 
    .about-section h2 {
        font-size: 2.25rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .about-section {
        padding: 4rem 0;
    }
    
    .services-section {
        padding: 4rem 0;
    }
    
    .stats-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    #heroSlider .carousel-caption h1 {
        font-size: 2.25rem;
    }
    
    .section-header h2,
    .about-section h2,
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .section-header p,
    .about-section p,
    .cta-section p {
        font-size: 1rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .stat-item i {
        font-size: 2.5rem;
    }
    
    .service-card i {
        font-size: 3rem;
    }
    
    .project-card {
        height: 280px;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .about-section {
        padding: 3rem 0;
    }
    
    .services-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    #heroSlider .carousel-caption h1 {
        font-size: 1.75rem;
    }
    
    #heroSlider .carousel-caption .lead {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.95rem;
    }
    
    .service-card h5 {
        font-size: 1.1rem;
    }
    
    .project-card {
        height: 250px;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }
}

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

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

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* Map Container */
.map-container {
    width: 100%;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
    border: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
