/* Custom Styles for Shree Maruti Import & Export */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Custom Colors - Professional Scheme */
:root {
    --primary-color: #4a90a4;
    --primary-dark: #2d5f6b;
    --primary-light: #e8f4f8;
    --secondary-color: #f97316;
    --accent-color: #0f766e;
    --teal-color: #0891b2;
    --light-bg: #ffffff;
    --section-bg: #f8fafc;
    --card-bg: #ffffff;
    --dark-bg: #1e293b;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --text-muted: #64748b;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.navbar-brand .fw-bold {
    color: var(--primary-color) !important;
}

.navbar-brand small {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    color: var(--text-dark) !important;
}

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

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 164, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.05), rgba(15, 118, 110, 0.05));
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-section .container {
    height: 100%;
    overflow: hidden;
}

.hero-section .row {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .lead {
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    animation: float 3s ease-in-out infinite;
    max-width: 100%;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(20px); }
    50% { transform: translateY(0px); }
}

/* Placeholder Images */
.hero-placeholder {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--card-bg));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    animation: float 3s ease-in-out infinite;
    margin: 0 auto;
}

.about-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px var(--shadow-medium);
    color: var(--text-light);
}

.product-placeholder {
    background: linear-gradient(135deg, var(--primary-light), var(--section-bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.product-placeholder:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-light);
    transform: translateY(-5px);
}

.placeholder-content {
    text-align: center;
    color: inherit;
}

.placeholder-content h4,
.placeholder-content h5 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.placeholder-content p {
    color: inherit;
    opacity: 0.9;
    margin-bottom: 0;
}

/* About Section Visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.company-graphic {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.circle-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, var(--primary-color) 2px, transparent 2px),
        radial-gradient(circle at 25% 25%, var(--accent-color) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary-color) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px, 30px 30px;
    background-color: var(--primary-light);
    border-radius: 15px;
    opacity: 0.8;
}

.company-icon {
    font-size: 5rem;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Section Titles */
.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Stats Section */
.stats-section {
    background: var(--light-bg);
}

.stat-item {
    transition: transform 0.3s ease;
    padding: 2rem 1rem;
}

.stat-item:hover {
    transform: translateY(-10px);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color) !important;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Contact Section */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-bg), var(--primary-dark)) !important;
}

footer .text-muted {
    color: #94a3b8 !important;
}

footer h5, footer h6 {
    color: var(--text-light) !important;
}

footer p {
    color: #cbd5e1 !important;
}

.social-links a {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.1);
}

/* Back to Top Button */
#backToTop {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        height: 100vh;
        overflow: hidden;
        margin-top: 4rem;
    }
    
    .hero-section .container {
        height: 100%;
        padding: 2rem 15px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 0;
        position: relative;
        z-index: 10;
        width: 100%;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .hero-image img {
        max-height: 40vh;
        width: auto;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .navbar-brand .fw-bold {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .hero-section {
        height: 100vh;
        overflow: hidden;
        margin-top: 4rem;
    }
    
    .hero-section .container {
        height: 100%;
        padding: 3rem 15px 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        color: var(--text-light) !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        display: block !important;
        visibility: visible !important;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .hero-content .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    .hero-image img {
        max-width: 85%;
        max-height: 35vh;
        height: auto;
        object-fit: contain;
    }
    
    .stats-section .row {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 100vh;
        overflow: hidden;
        margin-top: 4rem;
    }
    
    .hero-section .container {
        height: 100%;
        padding: 2rem 15px 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-top: 0.8rem;
        margin-bottom: 1rem;
        color: var(--text-light) !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        display: block !important;
        visibility: visible !important;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stats-section {
        padding: 2rem 0;
    }
    
    .stat-item {
        padding: 1rem 0.5rem;
    }
    
    .stat-item i {
        font-size: 2rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .contact-item {
        padding: 1.5rem !important;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }
    
    .col,
    [class*="col-"] {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
        overflow: hidden;
        margin-top: 4rem;
    }
    
    .hero-section .container {
        height: 100%;
        padding: 1.5rem 15px 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        color: var(--text-light) !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        display: block !important;
        visibility: visible !important;
        margin-top: 0.5rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-image img {
        max-height: 30vh;
        max-width: 80%;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-brand .fw-bold {
        font-size: 0.8rem;
    }
    
    .navbar-brand small {
        font-size: 0.65rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Prevent horizontal overflow on very small screens */
    .hero-section,
    .container-fluid,
    .row {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Ensure all images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix table overflow on small screens */
    .table-responsive {
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Adjust form elements for small screens */
    .form-control,
    .form-select {
        font-size: 0.9rem;
    }
    
    /* Fix navbar collapse on very small screens */
    .navbar-collapse {
        max-width: 100%;
    }
    
    .navbar-nav {
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

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

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

/* Feature Items */
.feature-item {
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Product Grid Enhancements */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Enhanced Shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.shadow-custom-hover:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Enhancements */
.icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.icon-medium {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Border Animations */
.border-animate {
    position: relative;
    overflow: hidden;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transition: left 0.5s;
}

.border-animate:hover::before {
    left: 100%;
}
