/* ========================================
   USM Digital - Professional CSS
   Version 3.0 - Corporate Professional Design
   ======================================== */

:root {
    /* Primary Color Palette - Professional Blue */
    --primary: #0056b3;
    --primary-dark: #004085;
    --primary-light: #e7f3ff;
    --primary-rgb: 0, 86, 179;
    
    /* Secondary Colors */
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f0f0;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --section-padding: 80px;
    --container-padding: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.18);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ========================================
   Global Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Navigation
   ======================================== */

#mainNav {
    padding: 1rem 0;
    transition: var(--transition-base);
    background-color: var(--white);
}

#mainNav.scrolled {
    box-shadow: var(--shadow);
}

.navbar-brand img {
    transition: var(--transition-base);
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    transition: var(--transition-base);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section-professional {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section-professional::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.03) 0%, rgba(0, 86, 179, 0.08) 100%);
    z-index: 0;
}

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

.hero-section-professional h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-section-professional .lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
}

.hero-section-professional img {
    border-radius: var(--radius-lg);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ========================================
   Service Cards
   ======================================== */

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

.service-icon {
    display: inline-block;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card .lead {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.service-card img {
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

/* ========================================
   Feature Boxes
   ======================================== */

.feature-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid var(--gray-200);
}

.feature-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--primary-light);
    border-radius: 50%;
}

.feature-box h4 {
    font-size: 1.3rem;
}

/* ========================================
   Statistics Section
   ======================================== */

.stat-box h2 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact-info-card,
.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info-card {
    border-left: 4px solid var(--primary);
}

.contact-info-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-300);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* ========================================
   Newsletter Section
   ======================================== */

.newsletter-form .input-group {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1.25rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0;
}

/* ========================================
   Footer
   ======================================== */

footer {
    border-top: 1px solid var(--gray-200);
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a:hover {
    color: var(--primary);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: end;
}

/* ========================================
   Modal
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 1.5rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-section-professional h1 {
        font-size: 2.5rem;
    }
    
    .hero-section-professional .lead {
        font-size: 1.2rem;
    }
    
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .hero-section-professional h1 {
        font-size: 2rem;
    }
    
    .hero-section-professional .lead {
        font-size: 1.1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .stat-box h2 {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ========================================
   Utilities
   ======================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--section-padding) 0;
}

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

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Loading animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: var(--primary);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary);
    color: var(--white);
}
