/* ==========================================================================
   Root Variables & Color Palette
   ========================================================================== */
:root {
    --primary-orange: #FF6B00;
    --primary-hover: #e05e00;
    --light-brown: #f7efe3;
    --steel-gray: #4A5568;
    --dark-charcoal: #1A202C;
    --dark-footer: #111827;
    --body-bg: #FAF8F5;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   General Reset & Base Styles
   ========================================================================== */
body {
    font-family: var(--font-body);
    background-color: var(--body-bg);
    color: #333333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.bg-light-brown {
    background-color: var(--light-brown);
}

.btn-primary {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.custom-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.bg-primary {
    background-color: var(--primary-orange) !important;
}

.tracking-wider {
    letter-spacing: 1.5px;
}

.max-w-600 {
    max-width: 600px;
}

.section-heading {
    position: relative;
    padding-bottom: 12px;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-orange);
}

#about .section-heading::after {
    left: 0;
    transform: none;
}

/* ==========================================================================
   Loader
   ========================================================================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background-color: var(--dark-charcoal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-icon {
    font-size: 2rem;
    color: var(--primary-orange);
}

.brand-title {
    font-size: 1.2rem;
    line-height: 1;
    color: #ffffff;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--primary-orange);
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

.nav-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat fixed;
    position: relative;
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.92) 0%, rgba(26, 32, 44, 0.7) 100%);
}

.hero-title {
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.feature-card {
    background-color: #ffffff;
    border-top: 4px solid var(--primary-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* ==========================================================================
   About Section & Stats
   ========================================================================== */
.about-img-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.experience-badge {
    min-width: 140px;
}

.stat-item {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* ==========================================================================
   Recent Projects Gallery
   ========================================================================== */
.project-card {
    height: 280px;
}

.project-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.2) 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(255, 107, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-color: #E2E8F0;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-footer) !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-orange);
    color: #ffffff;
}

/* ==========================================================================
   Scroll To Top Button
   ========================================================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-orange);
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    background-color: var(--primary-hover);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-charcoal);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
}