/* =========================================================
   GLOBAL STYLES
========================================================= */

/* =========================
    BODY
===========================*/

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
}


/* PRELOADER OVERLAY */
#page-preloader {
    position: fixed;
    inset: 0;
    background: #0b0b0b; /* dark to match your theme */
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Hide animation */
#page-preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* Spinner */
#page-preloader .spinner {
    width: 55px;
    height: 55px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top-color: #0d6efd; /* Bootstrap primary */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* PRELOADER OVERLAY END */



/* =========================
   NAVBAR
========================= */

.main-navbar {
    background-color: #212529;
    padding: 0.9rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 1050;
}

.main-navbar .navbar-brand {
    font-size: 2.4rem;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.main-navbar .brand-accent {
    color: #fca311;
}

.main-navbar .nav-item {
    margin: 0 0.4rem;
}

.main-navbar .nav-link {
    color: #f8f9fa;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #fca311;
    font-weight: 600;
}

.navbar-cta {
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navbar-cta:hover {
    background-color: #ffb703;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin: 0.4rem 0;
    }

    .navbar-cta {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* ========================================================
   HERO SYSTEM (GLOBAL – HOME + INNER PAGES)
========================================================= */

@keyframes heroBgZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}


/* =========================
   SHARED PROJECT CARD (HOME + PROJECTS)
========================= */

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        rgba(0, 0, 0, 0.1)
    );
    color: #ffffff;
}

.project-info h6 {
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.project-info span {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* =========================
   SECTION REVEAL ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.reveal-active {
    animation: sectionFadeUp 0.9s ease-out forwards;
}

@keyframes sectionFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-stagger.reveal-active > * {
    animation: sectionFadeUp 0.7s ease-out forwards;
}

.reveal-stagger.reveal-active > *:nth-child(1) { animation-delay: 0.1s; }
.reveal-stagger.reveal-active > *:nth-child(2) { animation-delay: 0.2s; }
.reveal-stagger.reveal-active > *:nth-child(3) { animation-delay: 0.3s; }
.reveal-stagger.reveal-active > *:nth-child(4) { animation-delay: 0.4s; }

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: translateY(-3px);
}

/* =========================
   FOOTER
========================= */

.footer {
    background-color: #212529;
    color: #f8f9fa;
    font-size: 0.95rem;
}

/* Brand accent */
.footer .brand-accent {
    color: #fca311;
}

/* Footer links & spans */
.footer .footer-link,
.footer .contact-item,
.footer a {
    color: #f8f9fa;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Powered by link */
.footer .powered-by a {
    color: #afacac;
    font-size: 0.85rem; 
    display: inline-block;
    padding: 0.75rem 0;
}

/* Unified hover accent */
.footer .footer-link:hover,
.footer .contact-item:hover,
.footer a:hover {
    color: #fca311;
    text-decoration: none;
}

/* Footer icons inside text */
.footer i {
    color: #adb5bd;
    transition: color 0.3s ease;
}

.footer p:hover i {
    color: #fca311;
}

/* =========================
   SOCIAL ICONS
========================= */

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #fca311;
    color: #212529;
    transform: translateY(-3px);
}

/* =========================
   BACK TO TOP BUTTON
========================= */

#backToTopBtn {
    bottom: 25px;
    right: 25px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 1000;
}

