/* =========================================
   GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Forcing pure black to kill the Bootstrap grey gap */
body, body.bg-dark {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000 !important; 
    color: #fff;
    overflow-x: hidden;
}

/* =========================================
   UNIVERSAL NAVBAR
   ========================================= */
.custom-navbar {
    background-color: #000000 !important;
    border-bottom: 3px solid #00ff88 !important; /* Force neon green */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-brand img {
    transition: filter 0.3s;
}

.navbar-brand img:hover {
    filter: brightness(0) invert(0) drop-shadow(0 0 10px #00ff88);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
    margin-left: 20px;
    display: inline-flex; /* Aligns SVG icons with text */
    align-items: center;
    gap: 8px;
}

.navbar-nav .nav-link svg {
    width: 18px;
    height: 18px;
}

.navbar-nav .nav-link:hover {
    color: #00ff88 !important;
}

.navbar-nav .nav-link.active {
    color: #00ccff !important;
}

.navbar-toggler {
    border-color: #00ff88 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 255, 136, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* =========================================
   UNIVERSAL FOOTER
   ========================================= */
footer {
    background: #000 !important;
    border-top: 3px solid #00ff88 !important;
    padding-top: 40px;
}

footer h5 {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(90deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

footer a {
    color: #ddd !important;
    transition: color 0.3s;
}

footer a:hover {
    color: #00ff88 !important;
}

/* Footer Contact Button */
.btn-outline-light {
    background: #00ff88 !important; /* Solid neon green */
    color: #000000 !important; /* Black text */
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 255, 136, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.6);
    color: #000000 !important;
}

/* =========================================
   HOMEPAGE CAROUSEL
   ========================================= */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2; /* Ensures the active slide is on top */
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    filter: brightness(1);
}

.text-overlay {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 60px;
    margin-left: 80px;
    background: transparent;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.carousel-slide.active .text-overlay {
    transform: translateX(0);
    opacity: 1;
}

.text-overlay h2 {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.text-overlay p {
    font-size: 18px;
    line-height: 1.6;
    color:#ddd;
    margin-bottom: 30px;
}

/* Fallback for the old carousel button setup just in case */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #00ff88 !important; /* Solid neon green */
    color: #000000 !important; /* Pure black text */
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
    color: #000000 !important;
}

.carousel-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 15px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.carousel-dot.active {
    background: #00ff88;
    border-color: #00ff88;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(0, 255, 136, 0.7);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 30px;
    padding: 20px 25px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    user-select: none;
}

.nav-arrow:hover {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

.nav-arrow.prev {
    left: 30px;
}

.nav-arrow.next {
    right: 30px;
}

/* =========================================
   CAROUSEL BUTTONS (Ultra-Specific Override)
   ========================================= */
a.btn.btn-hero {
    background-color: #00ff88 !important; /* Solid neon green */
    color: #000000 !important; /* Pure black text */
    font-weight: bold !important;
    border: none !important; /* Removed border since it's a solid block */
    padding: 12px 35px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s !important;
}

a.btn.btn-hero:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6) !important;
    background-color: #00ccff !important; /* Optional cyan shift on hover, or you can change to #00ff88 */
    color: #000000 !important; 
}

.hero-gradient-text {
    color: #00ff88 !important; /* Forces the text to be neon green */
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4); /* Adds a cool neon glow effect */
}

/* =========================================
   MEDIA QUERIES (Mobile Adjustments)
   ========================================= */
@media (max-width: 768px) {
    /* Shrink the carousel height on phones */
    .carousel-inner {
        height: 60vh !important; /* Drops the height from 100% to 60% */
        min-height: 450px; /* Prevents it from getting too tiny on very small phones */
    }

    /* Keep the navbar spacing correct */
    .custom-navbar {
        padding: 15px 20px !important;
    }
    
    /* Adjust text size and position to fit the newly shrunken images */
    .hero-content {
        padding-top: 20px;
    }

   /* Force images to focus perfectly on the center on phones */
    .carousel-item img {
        object-position: center center !important;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }

    .carousel-caption {
        padding-left: 5% !important;
        padding-right: 5% !important;
        bottom: 20px !important; /* Nudges the text up slightly */
    }

    .btn-hero {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
}
