/* Color Palette & Custom Utilities */
:root {
    --bs-primary: #0d6efd; /* Trustworthy Blue */
    --bs-primary-rgb: 13, 110, 253;
    --bs-success-rgb: 25, 135, 84;
    --bs-warning-rgb: 255, 193, 7;
    --dark-blue: #0b1c3f;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
    scroll-behavior: smooth;
    background-color: #212529; /* Fallback baseline dark tone */
}

/* Custom Soft Badges */
.bg-primary-soft { background-color: rgba(var(--bs-primary-rgb), 0.1); }
.bg-success-soft { background-color: rgba(var(--bs-success-rgb), 0.1); }
.bg-warning-soft { background-color: rgba(var(--bs-warning-rgb), 0.1); }
.bg-secondary-soft { background-color: #f0f2f5; }

.text-light-muted { color: #a0aec0; }
.fs-7 { font-size: 0.85rem; }
.fw-extra-bold { font-weight: 800; }

/* Sticky Mobile Bar Guard */
@media (max-width: 991.98px) { /* Fixed syntax unit from 's' to 'px' */
    .sticky-top-mobile {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
    nav.sticky-top {
        top: 40px;
    }
    
    /* Responsive position layout balances */
    .navbar.fixed-top {
        top: 80px !important; 
    }
    body {
        padding-top: 150px !important; 
    }
    header.masthead, .hero-section {
        padding-top: 2rem !important; 
    }
}

/* Animation */
.blink {
    animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
    50% { opacity: 0.4; }
}

/* Custom Component Styling */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

.feature-card, .service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05) !important;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.icon-box-sm {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Horizontal Timeline Track for desktop view */
@media (min-width: 768px) {
    .process-timeline::before {
        content: '';
        position: absolute;
        top: 35px;
        left: 15%;
        width: 70%;
        height: 2px;
        background-color: #e2e8f0;
        z-index: 0;
    }
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.2rem;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

/* Footer Interaction */
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover, .hover-white:hover {
    color: #ffffff !important;
}

.fixed-top + .fixed-top {
    z-index: 1020; 
}
.hover-info:hover {
    color: #0dcaf0 !important;
    transition: color 0.2s ease-in-out;
}
.transition-lift {
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.transition-lift:hover {
    transform: translateY(-4px);
    border-color: rgba(13, 202, 240, 0.4) !important;
}
.absolute-blur-background {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(13,202,240,0.08) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

/* Custom Portfolio Interactions */
.project-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 202, 240, 0.5) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.portfolio-img-container {
    position: relative;
}
.portfolio-img {
    transition: transform 0.5s ease;
}
.project-card:hover .portfolio-img {
    transform: scale(1.05);
}

/* Elegant Reveal Overlay */
.portfolio-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.project-card:hover .portfolio-overlay {
    opacity: 1;
}
.bg-gradient-dark {
    background: linear-gradient(180deg, rgba(21, 25, 29, 0) 0%, rgba(17, 17, 17, 1) 100%);
}

/* Touch-Swipe Scrolling Layout strictly on Mobile Devices */
@media (max-width: 767.98px) {
    .custom-portfolio-scroll {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; 
    }
    .custom-portfolio-scroll::-webkit-scrollbar {
        display: none; 
    }
    .custom-portfolio-scroll .col {
        scroll-snap-align: center;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Fixes the hero vertical alignment and spacing */
.hero-section {
    min-height: 70vh; 
    display: flex;
    align-items: center;
}
.hero-section .col-lg-7 {
    padding-top: 0px; 
    margin-top: -20px; 
}
.hero-section .badge {
    margin-top: 10px;
}

/* Forces a rich dark background on the hero section */
.hero-section.bg-dark {
    background-color: #12141c !important; 
    padding-top: 20px !important; 
}
.hero-section .text-muted {
    color: #a0aec0 !important; 
}

/* Navigation Mechanics Configurations */
.custom-nav {
    margin-top: 0px !important;
    z-index: 1050 !important; 
    position: relative;
}

@media (min-width: 992px) {
    .custom-nav {
        margin-top: 50px !important; 
    }
}

.navbar-collapse {
    background-color: #212529; 
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.navbar-toggler {
    position: relative;
    z-index: 1060 !important;
}

.navbar-toggler {
    position: relative;
    z-index: 1060 !important;
    pointer-events: auto !important; /* Forces the browser to allow clicks on this button */
}