/* style.css - Updated for Swapna Engineering & Trading Enterprise */

/* Global Styles */
body {
    padding-top: 76px; /* Prevents content from hiding behind fixed navbar */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Consistent Navigation Styling */
.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    font-weight: 600;
}

@media (max-width: 992px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    height: 80vh;
    margin-top: -76px; /* Counteracts the body padding for this section only */
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.page-header {
    background-color: #f8f9fa;
}

/* Style for the tab content lists */
.list-group-item {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 1.25rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd; /* Bootstrap primary color */
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 1px solid #dee2e6;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.product-card .card-footer {
    border-top: 1px solid #dee2e6;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card .fa-3x {
    color: #0d6efd;
    margin-top: 15px;
}

/* Team Cards */
.team-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0d6efd;
}

/* Feature Icons */
.feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* Test Mode Notice */
.test-mode-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #ffc107;
}

.test-mode-notice .btn-close {
    padding: 0.75rem;
}

/* Dashboard Styles */
.dashboard-card { 
    transition: transform 0.2s; 
    border: none; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    height: 100%; 
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
}

.logout-btn { 
    margin-left: 10px; 
}

.document-history { 
    max-height: 300px; 
    overflow-y: auto; 
}

/* Form Styling */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Enhancements */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer Styling */
footer {
    background: #2c3e50 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
        padding: 120px 0 80px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom spacing utilities */
.mb-section {
    margin-bottom: 5rem;
}

.pb-section {
    padding-bottom: 5rem;
}