/**
 * VisionQuest LLC - Custom Styles
 *
 * @package    VisionQuest
 * @subpackage Public/CSS
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   Base Styles
   ======================================== */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 80px !important;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

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

.hero-section h1 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
}

.hero-image {
    /* animation removed */
}

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

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* ========================================
   Cards
   ======================================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

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

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

/* ========================================
   Sections
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials-section .card {
    border-left: 4px solid var(--primary-color);
}

.testimonial-avatar {
    font-weight: bold;
    font-size: 1.25rem;
}

/* ========================================
   Stats Box
   ======================================== */
.stats-box {
    border-left: 4px solid var(--primary-color);
}

.stats-box h2 {
    font-size: 2.5rem;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--dark-color);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--white) !important;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* ========================================
   Forms
   ======================================== */
.form-control {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ========================================
   Utilities
   ======================================== */
.min-vh-50 {
    min-height: 50vh;
}

.opacity-25 {
    opacity: 0.25;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* ========================================
   Page Headers
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ========================================
   Portfolio Grid
   ======================================== */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* ========================================
   Blog Cards
   ======================================== */
.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-card .card-title a {
    color: var(--dark-color);
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

/* ========================================
   Contact Form
   ======================================== */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ========================================
   Admin Styles
   ======================================== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--dark-color);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }

    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-box {
        padding: 2rem !important;
    }
}
