:root {
    --primary: #003366;
    --primary-dark: #001f3f;
    --accent: #00aaff;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.navbar {
    background-color: var(--primary);
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.8);
}

.hero p {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
}

.btn-primary-custom {
    background-color: var(--accent);
    border: none;
    padding: 16px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: #0088cc;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,170,255,0.5);
}

section {
    padding:60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 5px;
    background: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.service-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px 25px;
    transition: all 0.4s;
    text-align: center;
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-bg {
    background-color: var(--light);
}

.portfolio-carousel .carousel-item img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-caption {
    background: rgba(0,0,0,0.65);
    border-radius: 8px;
    padding: 12px;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(0,170,255,0.25);
}

footer {
    background: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

footer a {
    color: var(--accent);
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.social-icons a {
    font-size: 1.8rem;
    margin: 0 15px;
}

/* Featured Projects Carousel Styling */
#portfolioCarousel {
    margin: 0 auto;
    max-width: 900px;
}

#portfolioCarousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

#portfolioCarousel .ratio {
    background: #000;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .hero { min-height: 80vh; }
    .hero h1 { font-size: 3.2rem; }
    .hero p { font-size: 1.4rem; }
    section { padding: 80px 0; }
    #portfolioCarousel .ratio { max-height: 280px !important; }
    #services .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding-bottom: 20px;
    }
    #services .row::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    #services .col-md-6 {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

.service-card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px 25px;
    transition: all 0.4s;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: white;   
    min-height: 380px; /* consistent height recommended for carousel */
    display: flex;
    flex-direction: column;
    justify-content: center;             /* Change text to white for contrast */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);   /* Dark overlay for readability */
    z-index: 1;
    border-radius: 12px;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card .service-icon {
    color: var(--accent);
}

.service-card h4 {
    color: white;
}

.service-card p {
    color: rgba(255,255,255,0.9);
}

.service-card .btn-primary-custom {
    background-color: var(--accent);
    color: white;
}

/* Optional: subtle scale on hover */
.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

@media (max-width: 576px) {
    .navbar { padding: 0.75rem 1rem; }
    .navbar-brand { font-size: 1.4rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.2rem; }
    .btn-primary-custom { padding: 12px 30px; font-size: 1rem; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }
    .section-title::after { width: 60px; }
    .service-card { min-height: auto; padding: 30px 20px; }
    .service-card h4 { font-size: 1.5rem; }
    .service-card p { font-size: 1rem; }
    .about-bg .lead { font-size: 1.1rem; }
    .contact-form { padding: 30px 20px; }
    .contact-form .form-control-lg { font-size: 1rem; }
    footer { padding: 40px 0 20px; }
    .social-icons a { margin: 0 10px; font-size: 1.5rem; }
    #portfolioCarousel .ratio { max-height: 200px !important; }
    #services .col-md-6 {
        flex: 0 0 90%;
        max-width: 90%;
    }
}