/* Custom CSS for EQR Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --purple-color: #6f42c1;
    --orange-color: #fd7e14;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 2rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-section .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards and Sections */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Feature Boxes */
.feature-box {
    border-radius: 10px;
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-box:hover {
    transform: scale(1.05);
}

/* Sample Cards */
.sample-card {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sample-card:hover {
    transform: translateY(-3px);
}

.sample-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Custom Background Colors */
.bg-purple {
    background-color: var(--purple-color) !important;
}

.bg-orange {
    background-color: var(--orange-color) !important;
}

/* Gradient Backgrounds for Sample Cards */
.bg-gradient-purple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
}

.bg-gradient-pink {
    background: linear-gradient(135deg, #e91e63, #ad1457) !important;
}

.bg-gradient-orange {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
}

.bg-gradient-yellow {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #2196f3, #1976d2) !important;
}

.bg-gradient-teal {
    background: linear-gradient(135deg, #00bcd4, #0097a7) !important;
}

.bg-gradient-green {
    background: linear-gradient(135deg, #4caf50, #388e3c) !important;
}

.bg-gradient-lime {
    background: linear-gradient(135deg, #8bc34a, #689f38) !important;
}

.bg-gradient-orange2 {
    background: linear-gradient(135deg, #ff5722, #d84315) !important;
}

.bg-gradient-pink2 {
    background: linear-gradient(135deg, #e91e63, #c2185b) !important;
}

.bg-gradient-purple2 {
    background: linear-gradient(135deg, #673ab7, #512da8) !important;
}

.bg-gradient-dark-teal {
    background: linear-gradient(135deg, #37474f, #263238) !important;
}

/* Success Paths Background */
.success-paths-bg {
    background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.success-paths-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.success-paths-bg .container {
    position: relative;
    z-index: 2;
}

/* Path Cards */
.path-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.path-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Section Spacing */
section {
    padding: 4rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.display-5 {
    font-size: 2rem;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .feature-box {
        margin-bottom: 1rem;
        min-height: 150px;
    }
    
    .sample-card {
        min-height: 100px;
        padding: 1rem;
    }
    
    .sample-card i {
        font-size: 1.5rem;
    }
    
    .sample-card h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.9rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Custom Spacing */
.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* Text Colors */
.text-purple {
    color: var(--purple-color) !important;
}

.text-orange {
    color: var(--orange-color) !important;
}

/* Box Shadows */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Utilities */
.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Overlay Effects */
.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.overlay-dark > * {
    position: relative;
    z-index: 2;
}
