/* Root Variables for Theming */
:root[data-bs-theme="dark"] {
    --primary-orange: #ff5e00;
    --dark-orange: #c82800;
    --bg-body: #111315;
    --text-body: #f8f9fa;
    --nav-bg: rgba(17, 19, 21, 0.95);
    --nav-bg-solid: rgba(17, 19, 21, 0.98);
    --border-color: rgba(255, 255, 255, 0.05);
    --footer-bg: #0b0c0e;
}

:root[data-bs-theme="light"] {
    --primary-orange: #ff5e00;
    --dark-orange: #c82800;
    --bg-body: #f8f9fa;
    --text-body: #212529;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-solid: rgba(255, 255, 255, 0.98);
    --border-color: rgba(0, 0, 0, 0.1);
    --footer-bg: #e9ecef;
}

/* Base Body Styles */
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Navbar Styles --- */
.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: var(--text-body);
    opacity: 0.8;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-orange);
}

/* --- Custom Buttons --- */
.btn-custom {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.2);
}

.btn-custom:hover, .btn-custom:focus {
    opacity: 0.9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 94, 0, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

[data-bs-theme="light"] .btn-outline-custom:hover {
    background: linear-gradient(20deg, var(--primary-orange), var(--dark-orange));
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}


/* --- Typography & Layout Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, #ffffff, var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dynamically adjust gradient weight on light theme for visibility */
[data-bs-theme="light"] .text-gradient {
    background: linear-gradient(346deg, #111315, var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.text-orange {
    color: var(--primary-orange);
}

.section-padding {
    padding: 80px 0;
}

.bg-orange-gradient {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
}

.bg-custom-orange {
    background-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.4);
}

/* --- Component Specific Styles --- */

/* Card Hover Effects (Home Page / Generic) */
.card-hover-effect {
    transition: all 0.3s ease;
}
.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-orange) !important;
}
[data-bs-theme="dark"] .card-hover-effect:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
}

/* Service Cards (Services Page) */
.service-card {
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 94, 0, 0.4) !important;
    background: rgba(255, 94, 0, 0.05) !important;
}

/* Form Inputs (Contact Page) */
.custom-input:focus {
    background-color: var(--bs-body-bg) !important;
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 94, 0, 0.25) !important;
    color: var(--text-body) !important;
}
.custom-input::placeholder {
    color: var(--text-body) !important;
    opacity: 0.3 !important;
}

/* --- Footer --- */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-link {
    color: #8bb9da;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-link:hover {
    color: var(--primary-orange);
}

/* --- Portfolio Marquee Styles --- */
@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.portfolio-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}
.portfolio-track {
    display: flex;
    width: max-content;
    animation: scrollLeft 40s linear infinite;
}
.portfolio-track:hover {
    animation-play-state: paused;
}
.portfolio-item {
    width: 280px;
    margin-right: 20px;
    flex-shrink: 0;
}
.portfolio-item .card-img-top {
    height: 160px;
    object-fit: cover;
}
.portfolio-item .card-body {
    padding: 1.25rem;
}
