/* ======================================
   PREMIUM GLOBAL STYLESHEET
   ON-TRACK TECHNICAL SERVICES LTD
====================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #f5f7fa;
    color: #222;
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(5, 17, 34, 0.92) !important;
    backdrop-filter: blur(12px);
    padding: 15px 0;
    transition: 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: white !important;
    margin-left: 15px;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    width: 0;
    height: 2px;
    background: #ff7a00;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ================= HERO ================= */
.hero {
    min-height: 100vh;
    background:
    linear-gradient(rgba(5,17,34,0.8), rgba(5,17,34,0.8)),
    url('/images/electrical.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    animation: fadeUp 1.2s ease;
}

.hero h1 {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: auto;
    opacity: 0.9;
}

.hero-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff6600, #ff8c00);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s ease;
    box-shadow: 0 10px 25px rgba(255,102,0,0.4);
}

.hero-btn:hover {
    transform: translateY(-5px);
    color: white;
}

/* ================= SECTION TITLE ================= */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #0b1f3a;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

/* ================= GLASS CARDS ================= */
.premium-card {
    background: rgba(255,255,255,0.85);
    border-radius: 25px;
    padding: 35px;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(255,102,0,0.1);
    border-radius: 50%;
}

.premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.premium-card i {
    font-size: 50px;
    color: #ff6600;
    margin-bottom: 20px;
}

.premium-card h4 {
    font-weight: 700;
    margin-bottom: 15px;
}

/* ================= PREMIUM PROJECTS SECTION ================= */

.project-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    height: 420px;
    background: #000;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    transition: all 0.5s ease;
}

.project-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.75);
}

/* DARK OVERLAY */

.project-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,17,34,0.96) 5%,
        rgba(5,17,34,0.45) 45%,
        rgba(5,17,34,0.05) 100%
    );
    z-index: 1;
    transition: 0.5s ease;
}

/* HOVER EFFECTS */

.project-showcase:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}

.project-showcase:hover img {
    transform: scale(1.12);
}

.project-showcase:hover::before {
    background: linear-gradient(
        to top,
        rgba(5,17,34,0.98) 10%,
        rgba(5,17,34,0.55) 50%,
        rgba(5,17,34,0.1) 100%
    );
}

/* ================= PROJECT OVERLAY ================= */

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 35px;
}

.project-overlay div {
    transform: translateY(20px);
    transition: 0.5s ease;
}

.project-showcase:hover .project-overlay div {
    transform: translateY(0);
}

/* ================= PROJECT TEXT ================= */

.project-overlay h5 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.project-overlay p {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 320px;
}

/* ================= GALLERY HERO ================= */
.gallery-hero {
    position: relative;
    background: url('/images/electrical.jpeg') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.gallery-hero-content {
    position: relative;
    text-align: center;
}

/* ================= GALLERY CARD ================= */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px; /* matches project style */
    height: 320px;
    background: #000;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    transition: all 0.5s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: brightness(0.8);
}

/* overlay (MATCH PROJECT STYLE EXACTLY) */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,17,34,0.95) 10%,
        rgba(5,17,34,0.4) 60%,
        rgba(5,17,34,0.1) 100%
    );
    z-index: 1;
}

.gallery-card:hover {
    transform: translateY(-10px);
}

.gallery-card:hover img {
    transform: scale(1.12);
}

/* TEXT OVERLAY */
.gallery-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.gallery-overlay h5 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px) {

.project-showcase {
    height: 360px;
}

}

@media(max-width: 768px) {

.project-showcase {
    height: 320px;
}

.project-overlay {
    padding: 25px;
}

.project-overlay h5 {
    font-size: 22px;
}

.project-overlay p {
    font-size: 14px;
}

}

/* ================= STATS ================= */
.stats-section {
    background: linear-gradient(135deg, #071426, #102b50);
    color: white;
    padding: 100px 0;
}

.stat-box {
    text-align: center;
}

.stat-box h2 {
    font-size: 60px;
    font-weight: 800;
    color: #ff7a00;
}

.stat-box p {
    font-size: 18px;
}

/* ================= CTA ================= */
.cta-section {
    background:
    linear-gradient(rgba(11,31,58,0.88), rgba(11,31,58,0.88)),
    url('https://images.unsplash.com/photo-1517048676732-d65bc937f952');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ================= FOOTER ================= */
.footer {
    background: #071426;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 1s ease forwards;
}

/* ================= FLOATING WHATSAPP ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {

.hero h1 {
    font-size: 42px;
}

.hero p {
    font-size: 16px;
}

.section-title h2 {
    font-size: 32px;
}

.cta-section h2 {
    font-size: 36px;
}

}


/* ================= LIGHTBOX ================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ff7a00;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}