/* SJW Software LLC Website Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --darker-color: #212529;
    --white-color: #ffffff;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 123, 255, 0.95) !important;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 50%, #004085 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

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

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: var(--dark-color);
}

.btn-outline-light:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

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

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

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

/* Icons */
.fa-2x {
    font-size: 2rem;
}

.fab {
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.2);
    color: var(--warning-color) !important;
}

/* Social Media Icons */
.social-icons a {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.text-light {
    color: rgba(255, 255, 255, 0.8) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

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

::-webkit-scrollbar-track {
    background: var(--light-color);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Animation classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure all sections are visible by default */
section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure all cards and content are visible */
.card, .display-5, .lead {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hover effects for interactive elements */
.nav-link, .btn, .card {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.btn:focus, .nav-link:focus {
    outline: 2px solid var(--warning-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar, .btn, .social-icons {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    section {
        padding: 1rem 0;
    }
}

/* Contact Form Notifications */
.notification {
    box-shadow: var(--shadow-lg);
    border: none;
    border-radius: 0.5rem;
    animation: slideInRight 0.3s ease-out;
}

.notification.alert-success {
    background-color: var(--success-color);
    color: white;
}

.notification.alert-danger {
    background-color: var(--danger-color);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Loading spinner for submit button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px; /* Set a fixed height for consistent layout */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.slide video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.slide:hover img,
.slide:hover video {
    transform: scale(1.02);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: left;
}

.slide-caption h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.slide-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.prev {
    left: -20px;
}

.next {
    right: -20px;
}

.prev:hover, .next:hover {
    background: rgba(0, 123, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Navigation dots */
.slideshow-dots {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--primary-color);
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .prev {
        left: -17px;
    }
    
    .next {
        right: -17px;
    }
    
    .slide-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .slide-caption h5 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.8rem;
    }
}
