/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

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

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background-color: var(--light-color);
    padding-top: 76px;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
}

.hero-section .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Services Section */
.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Services Page Styles */
.services-header {
    background-color: var(--light-color);
    padding: 100px 0 50px;
}

.service-item {
    padding: 50px 0;
}

.service-content h2 {
    color: var(--primary-color);
}

.service-content ul li {
    margin-bottom: 1rem;
}

/* Pricing Cards */
.card {
    border: none;
    border-radius: 1rem;
    transition: all 0.2s;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.card-title {
    margin: 0.5rem 0;
    font-size: 1.5rem;
    letter-spacing: .1rem;
    font-weight: bold;
}

.card-price {
    font-size: 2.5rem;
}

.period {
    font-size: 0.8rem;
}

.card-body .fa-ul {
    margin-left: 1.5rem;
    margin-bottom: 2rem;
}

.card-body .fa-ul li {
    margin-bottom: 1rem;
}

.card.border-primary {
    border: 1px solid var(--primary-color) !important;
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .card:hover {
        transform: scale(1.05);
    }
    .card.border-primary:hover {
        transform: scale(1.1);
    }
}

/* Portfolio Section */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

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

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

/* Portfolio Page Styles */
.portfolio-header {
    background-color: var(--light-color);
    padding: 100px 0 50px;
}

.portfolio-filter .nav-pills .nav-link {
    color: var(--dark-color);
    border-radius: 50px;
    padding: 8px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.portfolio-filter .nav-pills .nav-link.active,
.portfolio-filter .nav-pills .nav-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.portfolio-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

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

.portfolio-overlay h4 {
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay h4,
.portfolio-card:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* Project Process */
.process-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
}

.process-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.process-card h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* About Section */
#about ul li {
    margin-bottom: 1rem;
}

#about ul li i {
    margin-right: 10px;
}

/* Contact Section */
.form-control {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
.social-links a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        height: auto;
        padding: 100px 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* Blog Styles */
.blog-header {
    background-color: var(--light-color);
    padding: 100px 0 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.blog-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    font-size: 0.75rem;
    background-color: rgba(0, 123, 255, 0.08);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

.blog-read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.blog-read-more i {
    transition: transform 0.2s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.75rem;
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.widget-search .input-group {
    border-radius: 8px;
    overflow: hidden;
}

.widget-search .form-control {
    border-right: none;
}

.widget-search .btn {
    border-left: none;
    background: var(--light-color);
    border-color: #ddd;
    color: var(--secondary-color);
}

.widget-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-tag-btn {
    font-size: 0.85rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    cursor: pointer;
}

.widget-tag-btn.active, .widget-tag-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.recent-post-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-post-info h6 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.recent-post-info h6 a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* Blog Detail Specific */
.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content img {
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.blog-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    background-color: var(--light-color);
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

