/* ==========================================================
   GLOBAL STYLES
   ========================================================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #fff;
    background: #0f172a;
    /* Default dark background */
}

/* Page specific backgrounds */
.home-page {
    background: #fff;
    color: #000;
}

/* Index has no body bg in original, but hero covers it */
.calc-page {
    background: #0f1720;
}

.amc-page,
.service-page {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.project-page,
.services-page {
    background: #0f172a;
}

/* NAVBAR */
.navbar {
    background: #212529 !important;
}

.nav-center {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 22px;
    color: #fff;
    transition: .3s;
}

.nav-link i {
    transition: .3s;
}

.nav-link:hover i {
    transform: translateY(-5px) scale(1.2);
    color: #00c6ff;
}

/* LOGO GLOW */
.logo-glow,
.navbar-logo,
.company-logo,
.logo {
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 6px #00c6ff);
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 25px #00c6ff);
        transform: scale(1.05);
    }
}

/* WHATSAPP FLOAT */
.whatsapp-float,
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 34px;
    line-height: 65px;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(37, 211, 102, .8);
    animation: waGlow 1.5s infinite alternate;
}

@keyframes waGlow {
    from {
        box-shadow: 0 0 10px rgba(37, 211, 102, .6);
    }

    to {
        box-shadow: 0 0 30px rgba(37, 211, 102, 1);
    }
}

/* PAGE HEADER */
.page-header {
    text-align: center;
    padding: 50px 20px 20px;
}

.page-header h1 {
    font-size: 2.6rem;
    background: linear-gradient(90deg, #00c6ff, #ffdd00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================
   HERO SECTION (Index)
   ========================================================== */
.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) brightness(.6);
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    margin-top: 18px;
    font-size: 3rem;
    background: linear-gradient(90deg, #00c6ff, #ffdd00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .btn {
    margin-top: 20px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 18px;
}

/* ==========================================================
   CARDS (Projects & Services)
   ========================================================== */
.projects-section,
.services-section {
    padding: 40px 20px 70px;
}

.project-card,
.service-card {
    background: #1f2937;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    transition: .35s;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
}

.project-card:hover,
.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 198, 255, .6);
}

.project-icon,
.service-icon {
    font-size: 45px;
    color: #00c6ff;
    margin-bottom: 15px;
}

.status {
    color: #4ade80;
    font-weight: bold;
}

/* ==========================================================
   CALCULATOR
   ========================================================== */
.calculator {
    max-width: 1000px;
    margin: 20px auto 60px;
    background: #1a2330;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 198, 255, .3);
}

.table {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    background: #111;
    padding: 10px;
    border-radius: 8px;
}

.label {
    font-size: 12px;
    color: #00c6ff;
}

select,
input {
    width: 100%;
    padding: 7px;
    border-radius: 6px;
    border: none;
    background: #0f1720;
    color: white;
}

.section {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.calc-btn {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
}

.result-box {
    background: #111;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #00c6ff;
}

.result-title {
    font-size: 12px;
    color: #aaa;
}

.result-value {
    font-size: 22px;
    color: #00ffcc;
    font-weight: bold;
}

/* ==========================================================
   AMC & GALLERY PAGES
   ========================================================== */
.video-header {
    position: relative;
    height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(8px) brightness(0.6);
    z-index: 0;
}

.video-overlay {
    position: relative;
    z-index: 2;
}

.section-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

h2 {
    color: #00c6ff;
}

.carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-item {
    height: 450px;
    background: #000;
    /* Black background to fill gaps if image doesn't cover */
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    /* Changed to contain to avoid cropping important work details */
    transition: 0.5s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

/* Custom Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* ==========================================================
   MODERN FOOTER
   ========================================================== */
footer {
    background: #020617;
    padding: 40px 0 20px;
    color: #fff;
}

.footer-title {
    color: #00c6ff;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-page {
    background: #f4f6f9 !important;
}

.contact-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-icon {
    font-size: 26px;
    color: #212529;
    margin-right: 10px;
}

.contact-page .form-control {
    border-radius: 8px;
}

.btn-send {
    background: #212529;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
}

.btn-send:hover {
    background: #00c6ff;
    color: #000;
}

.map-frame {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
   MEDIA QUERIES
   ========================================================== */
@media(max-width:768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .table {
        grid-template-columns: repeat(2, 1fr);
    }
}