/* ======================= */
/* Root & Global Styles (deep steel blue / grayish blue theme) */
/* ======================= */
:root {
    --primary: #2b3a4b;
    --secondary: #3a7ca5;
    --light: #f5f7fa;
    --dark: #1e1e1e;
    --success: #28a745;
    --info: #5dade2;
    --muted: #6c7a86;
    --btn-hover: #326a8d;
    --navbar-height: 64px;
}

/* ---------- Base Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--light);
    padding-top: var(--navbar-height);
}

main { flex: 1 0 auto; }

footer {
    flex-shrink: 0;
    background-color: var(--primary);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

/* ======================= */
/* Navbar */
.navbar {
    background-color: rgba(255,255,255,0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    background-color: var(--secondary);
    bottom: 0; left: 0;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }

/* ======================= */
/* HERO / SLIDER STYLES */
#home.hero {
    height: calc(100vh - var(--navbar-height));
    min-height: 480px;
    overflow: hidden;
    position: relative;
}

/* Ensure slides/images fill container properly */
.slider, .slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Caption text on top of image */
.caption {
    position: absolute;
    z-index: 55;
    left: 10%;
    bottom: 12%;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* CONTROLS (visible circular buttons) */
.controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    transform: translateY(-50%);
    z-index: 60;
    pointer-events: none;
}

.controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--primary);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(11,32,50,0.12);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease;
}

.controls button:hover,
.controls button:focus {
    transform: translateY(-3px) scale(1.03);
    outline: none;
    box-shadow: 0 10px 28px rgba(11,32,50,0.18);
}

/* Dots */
.dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    text-align: center;
    z-index: 60;
}

.dots button {
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 12px rgba(11,32,50,0.08);
    cursor: pointer;
    transition: transform .16s ease, background-color .2s ease;
}

.dots button.active {
    background: var(--secondary);
    transform: scale(1.08);
}

/* ======================= */
/* Buttons */
.btn-custom {
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-custom:hover {
    background-color: var(--btn-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ======================= */
/* General Sections */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section, .section h2, .section-title {
    scroll-margin-top: calc(var(--navbar-height) + 12px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary);
}

.section-title p {
    color: var(--muted);
    margin-top: 10px;
}

/* ======================= */
/* Services Section */
#services.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#services .container { flex: 1; }

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
    align-items: stretch;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .18s ease, box-shadow .18s ease;
    min-height: 120px;
    border: 1px solid rgba(43,58,75,0.04);
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(43,58,75,0.12);
}

.service-image {
    flex: 0 0 42%;
    min-width: 140px;
    max-width: 260px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.service-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 600;
}

.service-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ✨ Icon Hover Glow ✨ */
.service-icon i {
    font-size: 3.8rem;
    color: var(--secondary);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 4px rgba(58,124,165,0));
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(58,124,165,0.6));
}

/* Line clamp (cross-browser) */
@supports (-webkit-line-clamp: 1) or (line-clamp: 1) {
  .service-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.service-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(58,124,165,0.12);
}

/* ======================= */
/* Industries Section */
.industries-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.industries-container .card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    opacity: 0;
}

.industries-container .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.industries-container .card-icon {
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.industries-container .card-icon img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.industries-container .card-content {
    padding: 20px;
}

.industries-container .card-content h4 {
    font-size: 1.2rem;
    margin: 12px 0 8px;
    font-weight: 600;
    color: var(--primary);
}

.industries-container .card-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.4;
}

/* ======================= */
/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.2s; }
.fade-in:nth-child(2) { animation-delay: 0.4s; }
.fade-in:nth-child(3) { animation-delay: 0.6s; }
.fade-in:nth-child(4) { animation-delay: 0.8s; }
.fade-in:nth-child(5) { animation-delay: 1s; }
.fade-in:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ======================= */
/* CONTACT FORM SECTION */
/* ======================= */
.contact-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(11,32,50,0.06);
    padding: 22px;
    margin-bottom: 28px;
}

.contact-card h2 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 1.35rem;
}

.contact-card .lead {
    color: var(--muted);
    margin-bottom: 14px;
}

/* Inputs */
.form-control, .form-select, textarea.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e9ee;
    background: #fff;
    font-size: 0.96rem;
    color: var(--dark);
    transition: box-shadow .15s, border-color .15s;
    outline: none;
    display: block;
}

.form-control:focus, .form-select:focus, textarea.form-control:focus {
    border-color: rgba(43,122,238,0.36);
    box-shadow: 0 8px 24px rgba(43,122,238,0.06);
}

/* Form groups & layout */
.contact-card .form-group {
    margin-top: 12px;
}

/* Buttons */
.contact-card .btn-custom {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
}
.contact-card .btn-custom[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Alerts */
.form-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.form-alert.error {
    background: #fff1f0;
    color: #7f1d1d;
    border: 1px solid #ffd0d0;
}

.form-alert.success {
    background: #f0fff4;
    color: #065f46;
    border: 1px solid #b7f5d6;
}

/* small hint text */
.contact-card .hint {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1400px) {
    .industries-container { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .industries-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .services-container { grid-template-columns: repeat(2, 1fr); }
    .service-image { flex: 0 0 44%; }
}
@media (max-width: 768px) {
    #services.section { min-height: auto; }
    .industries-container { grid-template-columns: repeat(2, 1fr); }
    .services-container { grid-template-columns: repeat(2, 1fr); }
    #home.hero { min-height: 360px; }
    .controls button { width: 40px; height: 40px; font-size: 1rem; }
    .dots button { width: 10px; height: 10px; margin: 0 4px; }
    .contact-card { padding: 18px; }
}
@media (max-width: 576px) {
    .industries-container { grid-template-columns: 1fr; }
    .services-container { grid-template-columns: 1fr; }
    .service-card { flex-direction: column; min-height: unset; }
    .service-image { width: 100%; height: 180px; }
    .service-body { padding: 14px 16px; }
    .caption { bottom: 15%; left: 5%; }
    .caption h1 { font-size: 1.6rem; }
    .caption p { font-size: 0.9rem; }
}
