/* ========================
   DIVYANG MAIN STYLESHEET
   ======================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================
   HEADER STYLES
   ======================== */

.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-top {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 0;
    font-size: 13px;
}

.header-top a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.header-top a:hover {
    color: #FF6B35;
}

.header-middle {
    background-color: #f9f9f9;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.logobox {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.sitelogo img {
    max-width: 500px;
    height: auto;
}

.sitename {
    font-size: 16px;
    font-weight: 600;
    color: #282828;
}

/* Image Utilities */
.img-fluid {
    max-width: 100%;
    height: auto;
}

img {
    vertical-align: middle;
    border-style: none;
}

/* ========================
   NAVBAR STYLES
   ======================== */

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #FF6B35;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #FF6B35;
    border-bottom: 3px solid #FF6B35;
}

.navbar-collapse {
    justify-content: space-between;
}

/* ========================
   BUTTONS
   ======================== */

.btn-primary {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #e85a24;
    border-color: #e85a24;
    color: white;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-outline-primary {
    color: #FF6B35;
    border-color: #FF6B35;
}

.btn-outline-primary:hover {
    background-color: #FF6B35;
    border-color: #FF6B35;
    color: white;
}

/* ========================
   HERO SECTION
   ======================== */

#hero {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

#hero .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#hero .btn {
    margin-right: 10px;
    margin-top: 10px;
}

/* ========================
   CARDS & BOXES
   ======================== */

.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-body {
    padding: 25px;
}

.card-title {
    color: #FF6B35;
    margin-bottom: 15px;
}

.card-text {
    color: #666;
    font-size: 14px;
}

/* ========================
   SECTIONS
   ======================== */

section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
}

section .lead {
    color: #ffffff;
    font-size: 1.1rem;
}

/* ========================
   FOOTER
   ======================== */

footer {
    background-color: #282828;
    color: white;
    padding-top: 60px;
    padding-bottom: 20px;
    margin-top: 60px;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

footer a {
    color: #999;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: #FF6B35;
}

footer hr {
    border-color: #444;
    margin: 30px 0;
}

footer .text-muted {
    color: #999 !important;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #FF6B35;
}

/* ========================
   FORMS
   ======================== */

.form-control {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 14px;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #FF6B35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-check-input {
    margin-top: 5px;
}

label {
    color: #333;
    margin-bottom: 8px;
}

/* ========================
   TEXT UTILITIES
   ======================== */

.text-primary {
    color: #FF6B35 !important;
}

.text-muted {
    color: #666 !important;
}

.text-white {
    color: white !important;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.font-weight-600 {
    font-weight: 600;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 300;
}

.display-5 {
    font-size: 3rem;
    font-weight: 300;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ========================
   UTILITY CLASSES
   ======================== */

.bg-theme-colored {
    background-color: #FF6B35;
}

.bg-dark {
    background-color: #1a1a1a !important;
}

.bg-light {
    background-color: #f9f9f9 !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.rounded {
    border-radius: 8px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.small {
    font-size: 0.875rem;
}

/* ========================
   BADGES
   ======================== */

.badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

/* ========================
   ACCORDION
   ======================== */

.accordion .card {
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.accordion .card-header {
    background-color: #f9f9f9;
    padding: 0;
}

.accordion .btn-link {
    color: #333;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px;
    transition: 0.3s;
}

.accordion .btn-link:hover {
    color: #FF6B35;
    background-color: #f0f0f0;
}

.accordion .btn-link.collapsed {
    color: #FF6B35;
}

/* ========================
   PROGRESS BAR
   ======================== */

.progress {
    height: 25px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #FF6B35;
    border-radius: 5px;
}

/* ========================
   DROPDOWN MENU
   ======================== */

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

.dropdown-menu .dropdown-item {
    color: #333;
    padding: 10px 20px;
    transition: 0.3s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f9f9f9;
    color: #FF6B35;
}

/* ========================
   LIST STYLES
   ======================== */

.list-unstyled li {
    margin-bottom: 10px;
}

.list-inline-item {
    margin-right: 20px;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .navbar-collapse {
        flex-direction: column;
    }

    .navbar-nav {
        width: 100%;
    }

    .btn-block {
        width: 100%;
    }

    .header-middle {
        margin-bottom: 10px;
    }

    .row {
        margin-right: -10px;
        margin-left: -10px;
    }

    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    #hero h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ========================
   ANIMATIONS
   ======================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* ========================
   CUSTOM CLASSES
   ======================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-end {
    text-align: end;
}

.text-left {
    text-align: left;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.h-100 {
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-md-2 {
    flex: 0 0 16.666%;
    padding: 0 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-6,
    .col-md-8,
    .col-md-12 {
        flex: 0 0 100%;
        padding: 0 15px;
    }
}

/* ========================
   JAVASCRIPT ENHANCEMENTS
   ======================== */

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Form Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.is-valid {
    border-color: #28a745 !important;
}

/* Loading States */
.btn .fa-spinner {
    margin-right: 5px;
}

/* Smooth Transitions */
a, button, .card, .btn {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

/* Active Menu Styles */
.navbar-nav .active {
    color: #FF6B35 !important;
    font-weight: 600;
}

/* Preloader (if needed) */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#preloader .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive Enhancements */
@media (max-width: 991px) {
    #backToTop {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
    }
}
