/* 
 * Shreemarsh Industries - Custom CSS Stylesheet
 * Light Industrial Theme with Custom Colors
 * Bootstrap 5 Integration
 */

/* ================================
   ROOT VARIABLES & COLOR SCHEME
   ================================ */

:root {
    /* Primary Colors */
    --primary-blue: #E0311D;
    --dark-blue: #c41f0a;
    --light-blue: #f5e4e0;
    
    /* Backgrounds */
    --light-bg: #f8f9fa;
    --section-grey: #f5f5f5;
    
    /* Text Colors */
    --heading-color: #212529;
    --body-text: #737373;
    --muted-text: #999999;
    
    /* Accent */
    --accent-yellow: #ffc107;
    
    /* Borders */
    --border-light: #e9ecef;
    --border-dark: #dee2e6;
    
    /* Font */
    --font-family: 'Poppins', sans-serif;
}

/* ================================
   GLOBAL STYLES
   ================================ */

* {
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--body-text);
    background-color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

p {
    color: var(--body-text);
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none !important;
}

/* ================================
   NAVIGATION BAR
   ================================ */

.navbar {
    font-weight: 500;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.3rem !important;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--body-text) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
    background-color: #f0f3ff;
}

.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
    background-color: #f0f3ff;
    font-weight: 600;
}

/* ================================
   CARDS
   ================================ */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.card-hover {
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--heading-color);
    font-weight: 600;
}

.card-text {
    color: var(--body-text);
    line-height: 1.8;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid #737373;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

/* Custom accent button styled with primary blue theme */
.btn-accent {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #ffffff;
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ================================
   FORMS
   ================================ */

.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control-lg,
.form-select-lg {
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.form-label {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ================================
   SECTIONS
   ================================ */

section {
    background-color: #ffffff;
}

section.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f6 100%);
    padding: 4rem 0;
}

.hero-section h1 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* ================================
   FOOTER
   ================================ */

footer {
    background-color: var(--section-grey);
    color: var(--body-text);
    margin-top: 4rem;
    padding-top: 3rem;
}

footer h5 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--body-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

footer hr {
    color: #d1d5db;
    margin: 2rem 0;
    border: 1px solid #d1d5db;
}

footer p {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* ================================
   UTILITY CLASSES
   ================================ */

.text-primary {
    color: var(--primary-blue) !important;
}

.text-muted {
    color: var(--muted-text) !important;
}

.bg-light-grey {
    background-color: var(--section-grey);
}

.bg-light {
    background-color: var(--light-bg);
}

.rounded-3 {
    border-radius: 15px;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fw-bold {
    font-weight: 500;
}

.fw-light {
    font-weight: 400;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablets */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .card-body {
        padding: 1rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 0.95rem;
    }
}

/* ================================
   ANIMATIONS
   ================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* ================================
   HOVER EFFECTS
   ================================ */

.card-hover:hover {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   ACCESSIBILITY
   ================================ */

:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    body {
        background-color: #ffffff;
    }

    .navbar,
    footer,
    .btn {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* ================================
   CUSTOM SCROLLBAR
   ================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* ================================
   NAVBAR ACTIVE STATE
   ================================ */

.navbar .nav-link.active {
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
}

/* ================================
   SECTION PADDING
   ================================ */

section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* ================================
   CONTAINER & SPACING
   ================================ */

.container {
    max-width: 1140px;
}

.container-fluid {
    max-width: 100%;
}

/* ================================
   TEXT UTILITIES
   ================================ */

.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.text-end {
    text-align: right;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================================
   GRADIENT BACKGROUNDS
   ================================ */

.gradient-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: #ffffff;
}

.gradient-section {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--section-grey) 100%);
}

/* ================================
   BORDER RADIUS UTILITIES
   ================================ */

.rounded-3 {
    border-radius: 15px;
}

.rounded-4 {
    border-radius: 20px;
}

.rounded-5 {
    border-radius: 25px;
}

/* ================================
   BOX SHADOW UTILITIES
   ================================ */

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

/* End of Custom CSS */
