:root {
    /* Brand Colors */
    --primary-color: #ffb703;
    /* Vivid Yellow/Orange */
    --secondary-color: #023047;
    /* Deep Navy text/accents */
    --dark-bg: #0a192f;
    /* Main dark background */
    --card-bg: #112240;
    /* Slightly lighter dark for cards */
    --text-light: #ccd6f6;
    /* Off-white text */
    --text-muted: #8892b0;
    /* Muted text */
    --accent-color: #219ebc;
    /* Blue accent */
    --white: #ffffff;

    /* Spacing & Layout */
    --section-padding: 80px 0;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--secondary-color);
    overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-dark-custom {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    /* Reduced padding for compact look */
    transition: var(--transition-speed);
}

/* NEW: Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-rj {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-right: 10px;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 1px;
    line-height: 1.1;
    border-left: 2px solid var(--primary-color);
    padding-left: 8px;
}

.nav-link {
    color: var(--secondary-color) !important;
    font-weight: 600;
    margin-left: 15px;
    transition: var(--transition-speed);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-custom {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    transition: var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-custom:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Updated Hero Slider */
/* Updated Hero Slider */
.hero-slider .carousel-item {
    height: 100vh;
    min-height: 600px;
    background-color: var(--dark-bg);
    position: relative;
    /* Context for absolute image */
}

.hero-slider .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.4;
    /* Dark overlay effect */
    z-index: 0;
}

.carousel-caption {
    bottom: 0;
    top: 100px;
    /* Offset for fixed navbar */
    left: 10%;
    right: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    text-align: left;
    padding-bottom: 40px;
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    opacity: 0;
    /* Animation start state */
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.5s;
}

.carousel-caption p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.carousel-caption .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 1.1s;
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Common */
.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

/* Services - Impulsive Hover */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    height: 100%;
    border-bottom: 4px solid transparent;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.4s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Projects */
.project-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.project-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(2, 48, 71, 0.95), transparent);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.project-overlay h4 {
    color: var(--primary-color);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Feature/Why Us */
.feature-box {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
}

/* Contact */
.contact-section {
    background-color: #f8f9fa;
}

.contact-info-box {
    background: var(--secondary-color);
    padding: 40px;
    color: var(--white);
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: center;
}

/* Footer Fixes */
footer {
    background: var(--dark-bg);
    color: var(--white) !important;
    /* Force white text */
    padding: 60px 0 20px;
}

footer h4,
footer h5 {
    color: var(--white) !important;
}

footer .text-muted {
    color: var(--text-light) !important;
    /* Override Bootstrap muted */
}

footer a {
    color: var(--text-light) !important;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
    /* Slight nudge on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {

    /* lg and down */
    .hero-slider .carousel-item {
        height: auto;
        min-height: 600px;
        /* Increased to fit text */
    }

    .carousel-caption {
        top: 80px;
        left: 5%;
        right: 5%;
    }

    .carousel-caption h1 {
        font-size: 2.8rem;
    }

    .navbar-collapse {
        background: var(--white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {

    /* md */
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {

    /* sm and down */
    .brand-rj {
        font-size: 2rem;
    }

    .hero-slider .carousel-item {
        min-height: 550px;
        /* Ensure space for vertical text */
    }

    .carousel-caption {
        top: 70px;
        /* Mobile navbar height approx */
        padding-bottom: 20px;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
        /* Smaller font for mobile prevention of overflow */
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Expertise Section Dark */
.bg-dark-section {
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.text-light-muted {
    color: #a8b2d1;
    line-height: 1.8;
}

.expertise-img-wrapper {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.expertise-img-wrapper:hover {
    transform: translateY(-5px);
}

.expertise-img {
    border: 1px solid rgba(255, 183, 3, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.expertise-blob {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    filter: blur(20px);
}

.expertise-blob.blob-right {
    left: auto;
    right: -20px;
    top: auto;
    bottom: -20px;
}

.expertise-content h3 {
    font-size: 2rem;
    font-weight: 700;
}

.link-arrow {
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* About & Mission Refinements */
.section-title-simple {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.mission-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Responsive Tweaks for New Sections */
@media (max-width: 991px) {
    .expertise-content.text-lg-end {
        text-align: left !important;
    }

    .expertise-content.text-lg-end .icon-box {
        margin-left: 0 !important;
    }

    .expertise-row.flex-row-reverse {
        flex-direction: column-reverse !important;
        /* Stack normally on mobile */
    }

    .expertise-row {
        flex-direction: column !important;
    }

    .section-title-simple {
        font-size: 1.8rem;
    }

    .expertise-content h3 {
        font-size: 1.5rem;
    }
}

/* Contact Section Redesign */
.contact-gradient-bg {
    /* Vibrant Blue Gradient */
    background: #0072ff;
    /* Fallback */
    background: -webkit-linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    position: relative;
    /* Ensure text is visible on dark bg */
    color: var(--white) !important;
}

.contact-gradient-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
    pointer-events: none;
}

.icon-circle {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.contact-info-item:hover .icon-circle {
    transform: scale(1.1);
}

.social-link {
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.form-control-lg {
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.2);
    background-color: #fff !important;
}

.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 183, 3, 0.3) !important;
}

/* Ensure placeholder text matches the light input vibe */
.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Call to Action Section with Image Background */
.cta-section {
    background-image: url('../images/cta_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    padding: 100px 0;
    color: var(--white);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.85);
    /* Deep dark blue overlay */
    z-index: 1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
}