/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #2e59d9;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 72px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: #6c757d;
    margin-bottom: 30px;
}

.lead {
    font-weight: 400;
}

/* Navigation */
.navbar {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s;
}

.navbar-brand img {
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: rgba(46, 89, 217, 0.9) !important;
}

.navbar.scrolled .navbar-brand img {
    height: 30px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: calc(100% - 2rem);
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.9) 0%, rgba(46, 89, 217, 0.9) 100%), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
}

.hero-section h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .btn-outline-light:hover {
    color: var(--primary-color);
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 28px;
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 89, 217, 0.9);
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    color: white;
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.3s;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(0);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border: 5px solid rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    color: var(--warning-color);
}

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0 rgba(58, 59, 69, 0.2);
}

.blog-card .card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

/* Contact Form */
.contact-form-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    background-color: white;
}

.contact-info .fa-2x {
    width: 40px;
}

/* Footer */
footer a {
    transition: all 0.3s;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 99;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 80px 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 30px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}