/* J&H Manufacturers India Pvt. Ltd. - Main Stylesheet */

:root {
    --primary-color: #b88a1e;
    --secondary-color: #14110a;
    --gold-light: #f4d37a;
    --gold-soft: #f7edcf;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #6f5a22;
    --light-color: #f8f3e8;
    --dark-color: #070604;
    --white: #ffffff;
    --text-color: #18140c;
    --border-color: #dfd0a9;
    --muted-color: #706757;
    --surface-color: #fffdf8;
    --shadow-color: rgba(23, 18, 10, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fbf7ef;
}

/* Top Ribbon */
.top-ribbon {
    background: var(--dark-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-ribbon a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-ribbon a:hover {
    opacity: 0.8;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, #266ad0 0%, #276bd0 100%);
    padding: 15px 0;
    box-shadow: 0 8px 20px 0px rgb(5 7 13) !important;
}

.navbar-brand .logo {
    height: 90px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    padding: 8px 15px;
    margin: 0 5px;
    transition: all 0.3s;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff;
    opacity: 0.78;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: #ffffff;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.dropdown-item i {
    margin-right: 8px;
    width: 20px;
}

/* Hero Section / Carousel */
.hero-carousel {
    margin-top: 0;
}

.carousel-item {
    height: 560px;
    background-size: auto 100%;
    background-position: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(5, 7, 13, 0.78), rgba(0, 87, 217, 0.2));
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    z-index: 10;
    left: 10%;
    right: auto;
    max-width: 760px;
    text-align: left;
}

.hero-eyebrow {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 18px;
    padding: 7px 14px;
    text-transform: uppercase;
}

.carousel-caption h1 {
    font-size: 3.35rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 680px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary {
    box-shadow: 0 10px 24px rgb(0 0 0 / 83%);
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #003f9e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--muted-color);
    margin-top: 20px;
}

/* Feature Cards */
.feature-card {
    background: var(--surface-color);
    padding: 30px;
    border: 1px solid rgba(0, 87, 217, 0.1);
    border-radius: 8px;
    box-shadow: 0px 6px 8px 0px rgb(5 7 13 / 50%);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(5, 7, 13, 0.18);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--muted-color);
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: var(--white);
    border: 1px solid rgba(0, 87, 217, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 32px var(--shadow-color);
    transition: all 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    padding: 40px;
    text-align: center;
    font-size: 3rem;
}

.service-card .service-content {
    padding: 30px;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--muted-color);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card ul li {
    padding: 5px 0;
    color: var(--muted-color);
}

.portfolio-card {
    position: relative;
}

.portfolio-card::before {
    background: var(--primary-color);
    content: '';
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.portfolio-client-type {
    color: var(--dark-color);
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card ul li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* Leadership Cards */
.leadership-grid {
    align-items: stretch;
}

.leadership-card {
    background: var(--white);
    border: 1px solid rgba(0, 86, 179, 0.12);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgb(20 40 70 / 73%);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
}

.leadership-card::before {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    content: '';
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.leadership-card:hover {
    box-shadow: 0 18px 38px rgba(20, 40, 70, 0.2);
    transform: translateY(-6px);
}

.leader-photo-wrap {
    background: #eef5fb;
    padding: 18px 18px 18px;
    position: relative;
}

.leader-photo {
    width: 100%;
    height: 250px;
    border-radius: 8px 8px 8px 8px;
    box-shadow: 4px 6px 9px 0px rgb(0 0 0 / 61%);
    object-fit: fill;
    object-position: center top;
    display: block;
}

.leader-badge {
    background: var(--primary-color);
    border-radius: 999px;
    bottom: -18px;
    box-shadow: 0 8px 18px rgba(0, 86, 179, 0.25);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 14px;
    position: absolute;
    right: 30px;
    text-transform: uppercase;
}

.leadership-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 32px 28px 28px;
}

.leader-role {
    color: var(--secondary-color);
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.leadership-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.leadership-card p {
    color: #666;
}

.leadership-card h6 {
    color: var(--text-color);
    font-weight: 700;
    margin: 10px 0 0;
}

.achievement-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.achievement-list li {
    align-items: flex-start;
    color: #666;
    display: flex;
    gap: 8px;
    padding: 6px 0;
}

.achievement-list li i {
    color: var(--success-color);
    line-height: 1.6;
    margin-right: 0;
}

.company-note {
    background: var(--white);
    border-left: 5px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0px 11px 13px 0px rgb(0 0 0 / 14%), 0px 7px 10px 0 rgba(0, 0, 0, 0.12);
    padding: 30px;
}

.company-note i {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.company-note p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Gallery */
.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 35px;
}

.gallery-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0px 11px 13px 0px rgb(0 0 0 / 14%), 0px 7px 10px 0 rgba(0, 0, 0, 0.12);
    height: 100%;
    overflow: hidden;
    transition: all 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.gallery-card-body {
    padding: 22px;
}

.gallery-card-body span {
    color: var(--secondary-color);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gallery-card-body h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-card-body p {
    color: #666;
    margin-bottom: 0;
}

/* Viewer Announcement Popup */
.viewer-announcement-modal .modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.announcement-popup-image {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.viewer-announcement-modal .modal-body {
    padding: 28px;
    position: relative;
}

.viewer-announcement-modal h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 12px;
    padding-right: 30px;
}

.viewer-announcement-modal p {
    color: #555;
}

.announcement-close {
    position: absolute;
    right: 18px;
    top: 18px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 11px 13px 0px rgb(0 0 0 / 14%), 0px 7px 10px 0 rgba(0, 0, 0, 0.12);
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 11px 13px 0px rgb(0 0 0 / 14%), 0px 7px 10px 0 rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}

.contact-info-box .icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.contact-info-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-info-box p {
    color: #666;
    margin-bottom: 0;
}

/* Login Pages */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
}

.login-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px;
    text-align: center;
}

.login-header h3 {
    margin: 0;
    font-weight: 600;
}

.login-body {
    padding: 40px;
}

.login-body .form-group {
    margin-bottom: 20px;
}

.login-body label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.login-body .btn-login {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s;
}

.login-body .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.login-footer {
    text-align: center;
    padding: 20px;
    background: var(--light-color);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
    background: var(--light-color);
    min-height: 100vh;
}

.dashboard-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 250px;
    z-index: 100;
}

.dashboard-content {
    margin-left: 250px;
    padding: 30px;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary-color);
    color: var(--white);
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
}

.dashboard-header {
    background: var(--white);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: -30px -30px 30px -30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.8rem;
    color: var(--white);
    float: left;
    margin-right: 20px;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.stat-card .stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card .stat-content p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Data Tables */
.table-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-card h5 {
    margin: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--text-color);
}

.badge {
    padding: 5px 10px;
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: auto;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--white) !important;
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: relative;
    }
    
    .dashboard-content {
        margin-left: 0;
    }
}

/* Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color)) !important;
}

/* Black Gold White Theme */
.top-ribbon {
    background: #070604;
    border-bottom: 1px solid rgba(244, 211, 122, 0.35);
    color: #f8f3e8;
}

.top-ribbon a,
.footer a {
    color: #f8f3e8;
}

.social-links a {
    background: rgba(244, 211, 122, 0.16);
    border: 1px solid rgba(244, 211, 122, 0.24);
}

.social-links a:hover {
    background: var(--gold-light);
    color: var(--dark-color);
}

.navbar {
    background: linear-gradient(100deg, #050403 0%, #161008 52%, #0b0905 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 12px 26px rgba(7, 6, 4, 0.45) !important;
}

.navbar-brand .logo {
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35));
}

.navbar-nav .nav-link {
    color: #fffdf8;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold-light);
    opacity: 1;
}

.navbar-nav .nav-link.active::after {
    background: var(--gold-light);
}

.dropdown-menu {
    border: 1px solid rgba(184, 138, 30, 0.22);
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 18px 34px rgba(23, 18, 10, 0.16);
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.carousel-item::before {
    background: linear-gradient(100deg, rgba(7, 6, 4, 0.88), rgba(63, 44, 10, 0.64), rgba(7, 6, 4, 0.44));
}

.hero-eyebrow {
    background: rgba(244, 211, 122, 0.18);
    border-color: rgba(244, 211, 122, 0.42);
    color: var(--gold-light);
}

.carousel-caption h1 {
    color: #fffdf8;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.carousel-caption p {
    color: rgba(255, 253, 248, 0.92);
}

.bg-light,
section.bg-light {
    background-color: var(--light-color) !important;
}

.section-title h2,
.table-card h5,
.feature-card h4,
.service-card h4,
.leadership-card h4,
.gallery-card-body h4,
.contact-info-box h5 {
    color: #17120a;
}

.section-title h2::after,
.portfolio-card::before,
.leadership-card::before {
    background: linear-gradient(90deg, var(--primary-color), var(--gold-light), var(--primary-color));
}

.section-title p,
.feature-card p,
.service-card p,
.service-card ul li,
.gallery-card-body p,
.contact-info-box p,
.leadership-card p,
.achievement-list li,
.company-note p {
    color: var(--muted-color);
}

.feature-card,
.service-card,
.leadership-card,
.gallery-card,
.contact-form,
.contact-info-box,
.company-note,
.table-card,
.stat-card {
    background: var(--surface-color);
    border: 1px solid rgba(184, 138, 30, 0.22);
    box-shadow: 0 16px 38px rgba(23, 18, 10, 0.13);
}

.feature-card:hover,
.service-card:hover,
.leadership-card:hover,
.gallery-card:hover,
.stat-card:hover {
    box-shadow: 0 24px 52px rgba(23, 18, 10, 0.2);
}

.feature-card .icon,
.service-card .service-icon,
.contact-info-box .icon,
.stat-card.primary .stat-icon,
.sidebar-header,
.login-header {
    background: linear-gradient(135deg, #0b0905 0%, #2a1d08 58%, var(--primary-color) 100%);
    color: #fffdf8;
}

.leader-photo-wrap {
    background: linear-gradient(135deg, #f9f1dc, #fffdf8);
}

.leader-badge,
.portfolio-client-type,
.leader-role,
.gallery-card-body span {
    color: #8b6514;
}

.btn-primary,
.btn-info,
.btn-warning,
.login-body .btn-login {
    background: linear-gradient(135deg, var(--gold-light), var(--primary-color));
    border-color: var(--primary-color);
    box-shadow: 0 12px 26px rgba(122, 88, 16, 0.24);
    color: #17120a;
}

.btn-primary:hover,
.btn-info:hover,
.btn-warning:hover,
.login-body .btn-login:hover {
    background: linear-gradient(135deg, #ffe49a, #9f7417);
    border-color: #9f7417;
    color: #17120a;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: #8b6514;
}

.btn-outline-primary:hover,
.btn-outline-light:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: #17120a;
}

.btn-secondary {
    background: #2a2114;
    border-color: #2a2114;
    color: #fffdf8;
}

.text-primary {
    color: #8b6514 !important;
}

.bg-primary {
    background: var(--primary-color) !important;
    color: #17120a !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #070604, #2a1d08 54%, var(--primary-color)) !important;
}

.login-container {
    background: linear-gradient(135deg, #070604, #211606 58%, #b88a1e);
}

.login-card {
    border: 1px solid rgba(244, 211, 122, 0.34);
    box-shadow: 0 24px 60px rgba(7, 6, 4, 0.34);
}

.login-footer {
    background: var(--light-color);
}

.dashboard-container {
    background: linear-gradient(135deg, #f8f3e8 0%, #fffdf8 44%, #f4e6be 100%);
}

.dashboard-sidebar {
    background: linear-gradient(180deg, #070604 0%, #151007 64%, #2b1d07 100%);
    border-right: 1px solid rgba(244, 211, 122, 0.2);
    box-shadow: 8px 0 28px rgba(7, 6, 4, 0.18);
}

.sidebar-header {
    border-bottom: 1px solid rgba(244, 211, 122, 0.28);
}

.sidebar-menu li a {
    color: rgba(255, 253, 248, 0.8);
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(244, 211, 122, 0.12);
    border-left-color: var(--gold-light);
    color: #fffdf8;
}

.dashboard-header {
    background: rgba(255, 253, 248, 0.96);
    border-bottom: 1px solid rgba(184, 138, 30, 0.22);
    box-shadow: 0 10px 26px rgba(23, 18, 10, 0.09);
}

.dashboard-header h2 {
    color: #17120a;
    font-weight: 800;
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success .stat-icon,
.stat-card.warning .stat-icon,
.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #17120a, #5d4310, var(--primary-color));
}

.table thead th {
    background: var(--gold-soft);
    color: #17120a;
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(244, 211, 122, 0.12);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 138, 30, 0.22);
}

.badge.bg-success {
    background: #176b42 !important;
}

.badge.bg-secondary {
    background: #6b6252 !important;
}

.footer.bg-dark,
.footer {
    background: linear-gradient(135deg, #070604 0%, #141008 58%, #2c1e08 100%) !important;
    border-top: 3px solid var(--primary-color);
}

.footer h5 {
    color: var(--gold-light);
}

.footer a:hover {
    color: var(--gold-light) !important;
}

.viewer-announcement-modal .modal-content {
    background: #fffdf8;
    border: 2px solid var(--primary-color);
    box-shadow: 0 28px 70px rgba(7, 6, 4, 0.34);
}

.viewer-announcement-modal .modal-body {
    background: linear-gradient(180deg, #fffdf8, #f8f0db);
}

.viewer-announcement-modal h4 {
    color: #17120a;
}

.viewer-announcement-modal p {
    color: var(--muted-color);
}

.announcement-popup-image {
    border-bottom: 3px solid var(--primary-color);
}

.theme-toggle {
    border: 1px solid rgba(184, 138, 30, 0.28);
    color: #17120a;
}

/* ================================================
   DARK THEME - Gold & Black Theme Support
   ================================================ */

/* Dark Theme Root Variables */
body.dark-theme {
    --primary-color: #ffd700;        /* Bright Gold */
    --secondary-color: #1a1410;      /* Very Dark Brown */
    --gold-light: #ffed4e;           /* Lighter Gold */
    --gold-soft: #3d3a2f;            /* Dark Gold */
    --success-color: #4caf50;        /* Brighter Green */
    --danger-color: #ff5252;         /* Brighter Red */
    --warning-color: #ffb74d;        /* Brighter Amber */
    --info-color: #ffb74d;           /* Gold Info */
    --light-color: #2a2620;          /* Dark Light */
    --dark-color: #0f0c0a;           /* Absolute Dark */
    --white: #ffffff;
    --text-color: #e8e0d0;           /* Light Tan */
    --border-color: #3d3a2f;         /* Dark Border */
    --muted-color: #a89968;          /* Muted Gold */
    --surface-color: #1f1a15;        /* Dark Surface */
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Dark Theme Body */
body.dark-theme {
    background-color: #0f0c0a;
    color: var(--text-color);
}

html.dark-theme {
    background-color: #0f0c0a;
}

/* Dark Theme - Top Ribbon */
body.dark-theme .top-ribbon {
    background: #000000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

body.dark-theme .top-ribbon a {
    color: #ffd700;
}

body.dark-theme .top-ribbon a:hover {
    color: #ffed4e;
    opacity: 1;
}

/* Dark Theme - Social Links */
body.dark-theme .social-links a {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

body.dark-theme .social-links a:hover {
    background: #ffd700;
    color: #0f0c0a;
}

/* Dark Theme - Navigation */
body.dark-theme .navbar {
    background: linear-gradient(90deg, #1a1410 0%, #2a2620 100%);
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

body.dark-theme .navbar-nav .nav-link {
    color: #e8e0d0;
}

body.dark-theme .navbar-nav .nav-link:hover,
body.dark-theme .navbar-nav .nav-link.active {
    color: #ffd700;
}

body.dark-theme .navbar-nav .nav-link.active::after {
    background: #ffd700;
}

body.dark-theme .dropdown-menu {
    background: #1f1a15;
    border: 1px solid #ffd700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-theme .dropdown-item {
    color: #e8e0d0;
}

body.dark-theme .dropdown-item:hover {
    background: #ffd700;
    color: #0f0c0a;
}

/* Dark Theme - Carousel */
body.dark-theme .carousel-caption h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

body.dark-theme .hero-eyebrow {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #ffd700;
}

/* Dark Theme - Buttons */
body.dark-theme .btn-primary {
    background: #ffd700;
    color: #0f0c0a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

body.dark-theme .btn-primary:hover {
    background: #ffed4e;
    color: #0f0c0a;
}

body.dark-theme .btn-outline-light {
    border-color: #ffd700;
    color: #ffd700;
}

body.dark-theme .btn-outline-light:hover {
    background: #ffd700;
    color: #0f0c0a;
}

body.dark-theme .btn-outline-primary {
    border-color: #ffd700;
    color: #ffd700;
}

body.dark-theme .btn-outline-primary:hover {
    background: #ffd700;
    color: #0f0c0a;
}

/* Dark Theme - Sections */
body.dark-theme .section-title h2 {
    color: #ffd700;
}

body.dark-theme .section-title h2::after {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

body.dark-theme .section-title p {
    color: #a89968;
}

/* Dark Theme - Feature Cards */
body.dark-theme .feature-card {
    background: #1f1a15;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.7);
}

body.dark-theme .feature-card:hover {
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.2);
}

body.dark-theme .feature-card h4 {
    color: #ffd700;
}

body.dark-theme .feature-card p {
    color: #a89968;
}

/* Dark Theme - Service Cards */
body.dark-theme .service-card {
    background: #1f1a15;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

body.dark-theme .service-card:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

body.dark-theme .service-card .service-icon {
    background: linear-gradient(135deg, #ffd700, #1a1410);
}

body.dark-theme .service-card h4 {
    color: #ffd700;
}

body.dark-theme .service-card p,
body.dark-theme .service-card ul li {
    color: #a89968;
}

body.dark-theme .service-card ul li i {
    color: #4caf50;
}

/* Dark Theme - Portfolio Card */
body.dark-theme .portfolio-card::before {
    background: #ffd700;
}

body.dark-theme .portfolio-client-type {
    color: #ffd700;
}

/* Dark Theme - Leadership Cards */
body.dark-theme .leadership-card {
    background: #1f1a15;
    border-color: rgba(255, 215, 0, 0.15);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

body.dark-theme .leadership-card::before {
    background: linear-gradient(135deg, #ffd700, #1a1410);
}

body.dark-theme .leader-photo-wrap {
    background: #2a2620;
}

body.dark-theme .leader-badge {
    background: #ffd700;
    color: #0f0c0a;
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.3);
}

body.dark-theme .leader-role {
    color: #ffd700;
}

body.dark-theme .leadership-card h4 {
    color: #ffd700;
}

body.dark-theme .leadership-card p,
body.dark-theme .achievement-list li {
    color: #a89968;
}

body.dark-theme .achievement-list li i {
    color: #4caf50;
}

/* Dark Theme - Gallery */
body.dark-theme .gallery-card {
    background: #1f1a15;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0px 11px 13px rgba(0, 0, 0, 0.6);
}

body.dark-theme .gallery-card:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

body.dark-theme .gallery-card-body span {
    color: #ffd700;
}

body.dark-theme .gallery-card-body h4 {
    color: #ffd700;
}

body.dark-theme .gallery-card-body p {
    color: #a89968;
}

/* Dark Theme - Company Note */
body.dark-theme .company-note {
    background: #1f1a15;
    border-left-color: #ffd700;
    box-shadow: 0px 11px 13px rgba(0, 0, 0, 0.6);
}

body.dark-theme .company-note i {
    color: #ffd700;
}

body.dark-theme .company-note p {
    color: #a89968;
}

/* Dark Theme - Contact Form */
body.dark-theme .contact-form {
    background: #1f1a15;
    box-shadow: 0px 11px 13px rgba(0, 0, 0, 0.6);
}

body.dark-theme .form-control {
    background: #2a2620;
    border-color: rgba(255, 215, 0, 0.2);
    color: #e8e0d0;
}

body.dark-theme .form-control:focus {
    background: #2a2620;
    border-color: #ffd700;
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
    color: #e8e0d0;
}

body.dark-theme .form-control::placeholder {
    color: #706757;
}

/* Dark Theme - Contact Info Box */
body.dark-theme .contact-info-box {
    background: #1f1a15;
    box-shadow: 0px 11px 13px rgba(0, 0, 0, 0.6);
}

body.dark-theme .contact-info-box .icon {
    background: linear-gradient(135deg, #ffd700, #1a1410);
}

body.dark-theme .contact-info-box h5 {
    color: #ffd700;
}

body.dark-theme .contact-info-box p {
    color: #a89968;
}

/* Dark Theme - Login */
body.dark-theme .login-container {
    background: linear-gradient(135deg, #1a1410, #0f0c0a);
}

body.dark-theme .login-card {
    background: #1f1a15;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

body.dark-theme .login-header {
    background: linear-gradient(135deg, #ffd700, #1a1410);
    color: #0f0c0a;
}

body.dark-theme .login-body {
    background: #1f1a15;
}

body.dark-theme .login-body label {
    color: #e8e0d0;
}

body.dark-theme .login-body .form-control {
    background: #2a2620;
    border-color: rgba(255, 215, 0, 0.2);
    color: #e8e0d0;
}

body.dark-theme .login-body .btn-login {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #0f0c0a;
    border: none;
}

body.dark-theme .login-body .btn-login:hover {
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

body.dark-theme .login-footer {
    background: #2a2620;
    border-top: 1px solid #ffd700;
}

body.dark-theme .login-footer a {
    color: #ffd700;
}

/* Dark Theme - Dashboard */
body.dark-theme .dashboard-container {
    background: #0f0c0a;
}

body.dark-theme .dashboard-sidebar {
    background: #000000;
    border-right: 1px solid #ffd700;
}

body.dark-theme .sidebar-header {
    background: linear-gradient(135deg, #ffd700, #1a1410);
    color: #0f0c0a;
}

body.dark-theme .sidebar-menu li a {
    color: #a89968;
}

body.dark-theme .sidebar-menu li a:hover,
body.dark-theme .sidebar-menu li a.active {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: #ffd700;
    color: #ffd700;
}

body.dark-theme .dashboard-header {
    background: #1f1a15;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid #ffd700;
    color: #e8e0d0;
}

body.dark-theme .dashboard-content {
    background: #0f0c0a;
}

/* Dark Theme - Tables */
body.dark-theme .table {
    background: #1f1a15;
    color: #e8e0d0;
    border-color: rgba(255, 215, 0, 0.15);
}

body.dark-theme .table th {
    background: #2a2620;
    border-color: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    font-weight: 700;
}

body.dark-theme .table td {
    border-color: rgba(255, 215, 0, 0.15);
}

body.dark-theme .table tbody tr:hover {
    background: rgba(255, 215, 0, 0.08);
}

/* Dark Theme - Alerts */
body.dark-theme .alert-success {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
    color: #90ee90;
}

body.dark-theme .alert-danger {
    background: rgba(255, 82, 82, 0.2);
    border-color: #ff5252;
    color: #ff9999;
}

body.dark-theme .alert-warning {
    background: rgba(255, 180, 77, 0.2);
    border-color: #ffb74d;
    color: #ffd699;
}

body.dark-theme .alert-info {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #ffed4e;
}

/* Dark Theme - Modals */
body.dark-theme .modal-content {
    background: #1f1a15;
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #e8e0d0;
}

body.dark-theme .modal-header {
    background: #2a2620;
    border-bottom: 1px solid #ffd700;
    color: #ffd700;
}

body.dark-theme .modal-body {
    color: #e8e0d0;
}

body.dark-theme .modal-footer {
    border-top: 1px solid #ffd700;
}

body.dark-theme .close {
    color: #ffd700;
}

/* Dark Theme - Announcement Popup */
body.dark-theme .announcement-popup-image {
    border-bottom-color: #ffd700;
}

body.dark-theme .viewer-announcement-modal .modal-content {
    background: #1f1a15;
}

body.dark-theme .viewer-announcement-modal h4 {
    color: #ffd700;
}

body.dark-theme .viewer-announcement-modal p {
    color: #a89968;
}

/* Dark Theme - Theme Toggle Button */
body.dark-theme .theme-toggle {
    background: #1f1a15;
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

body.dark-theme .theme-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

body.dark-theme .theme-toggle.dark-active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

body.dark-theme .theme-toggle i {
    color: #ffd700;
}

/* Dark Theme - Text Utilities */
body.dark-theme .text-muted {
    color: #a89968;
}

body.dark-theme .text-secondary {
    color: #a89968;
}

body.dark-theme .text-dark {
    color: #e8e0d0;
}

/* Dark Theme - Badges */
body.dark-theme .badge-primary {
    background: #ffd700;
    color: #0f0c0a;
}

body.dark-theme .badge-secondary {
    background: #a89968;
    color: #0f0c0a;
}

/* Dark Theme - Links */
body.dark-theme a {
    color: #ffd700;
}

body.dark-theme a:hover {
    color: #ffed4e;
}

/* Dark Theme - Bootstrap Utilities */
body.dark-theme .bg-light {
    background: #2a2620;
}

body.dark-theme .bg-white {
    background: #1f1a15;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

body.dark-theme hr {
    border-color: rgba(255, 215, 0, 0.15);
}

/* Dark Theme - Smooth Transitions */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-theme,
body.dark-theme * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ================================================
   END OF DARK THEME STYLES
   ================================================ */

/* ================================================
   LIGHT THEME - Default Light Theme Styles
   ================================================ */

/* Light Theme Root Variables */
html.light-theme,
body.light-theme {
    --primary-color: #b88a1e;
    --secondary-color: #14110a;
    --gold-light: #f4d37a;
    --gold-soft: #f7edcf;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #6f5a22;
    --light-color: #f8f3e8;
    --dark-color: #070604;
    --white: #ffffff;
    --text-color: #18140c;
    --border-color: #dfd0a9;
    --muted-color: #706757;
    --surface-color: #fffdf8;
    --shadow-color: rgba(23, 18, 10, 0.16);
}

/* Light Theme Body */
html.light-theme {
    background-color: #fbf7ef;
}

body.light-theme {
    background-color: #fbf7ef;
    color: var(--text-color);
}

/* Light Theme - Theme Toggle Button */
body.light-theme .theme-toggle {
    background: 1px solid rgb(184 138 30 / 85%);
    border: 1px solid rgba(184, 138, 30, 0.28);
    color: #17120a;
}

body.light-theme .theme-toggle:hover {
    background: rgb(255 247 229 / 87%);
    border-color: #b88a1e;
}

body.light-theme .theme-toggle.dark-active {
    background: rgba(184, 138, 30, 0.15);
    border-color: #b88a1e;
}

body.light-theme .theme-toggle i {
    color: #17120a;
}
