/* CSS Variables */
:root {
    --primary: #2d3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --gray: #95a5a6;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Improved Touch Targets for Mobile */
button, 
a, 
input, 
select, 
textarea {
    font-size: 16px; /* Prevents zoom on iOS */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons - Improved for Mobile */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    min-height: 48px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Navigation - Mobile First */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

/* Improved Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Mobile Optimized */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.25rem;
    color: var(--light);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1; /* Move image above text on mobile */
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--white);
}

.image-placeholder.large {
    width: 300px;
    height: 300px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.service-link:hover {
    gap: 1rem;
}

/* Featured Work */
.featured-work {
    padding: 80px 0;
}

.portfolio-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin-bottom: 0.5rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.portfolio-link:hover {
    gap: 1rem;
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--light);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gray);
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    padding: 0.25rem 0;
    display: block;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

/* Page Hero */
.page-hero {
    padding: 120px 0 60px;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--light);
}

/* About Content */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.skills-section {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background-color: var(--light);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--secondary);
    width: 0;
    transition: width 1s ease;
}

/* Services Details */
.services-details {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features i {
    color: var(--secondary);
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pricing-card {
    background-color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--secondary);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Portfolio Filters */
.portfolio-filters {
    padding: 40px 0 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 10px 16px;
    background-color: transparent;
    border: 2px solid var(--dark);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    min-height: 44px; /* Touch target */
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--dark);
    color: var(--white);
}

/* Portfolio Grid */
.portfolio-grid {
    padding: 40px 0 80px;
}

.portfolio-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Contact Content */
.contact-content {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.social-links.large {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    min-height: 48px; /* Touch target */
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--light);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.faq-item {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Blog Grid */
.blog-grid {
    padding: 80px 0;
}

.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.blog-link:hover {
    gap: 1rem;
}

/* Enhanced Mobile Responsive Design */
@media (min-width: 480px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    html {
        font-size: 17px;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        box-shadow: none;
        padding: 0;
        width: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 3rem;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .portfolio-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .service-detail:nth-child(even) .service-detail-content {
        order: 2;
    }
    
    .service-detail:nth-child(even) .service-detail-image {
        order: 1;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .portfolio-items {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-posts {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-placeholder {
        width: 300px;
        height: 300px;
        font-size: 5rem;
    }
    
    .image-placeholder.large {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        display: block;
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Prevent horizontal scrolling */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content h2 {
        font-size: 1.1rem;
    }
    
    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .filter-buttons {
        gap: 0.25rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Improved mobile performance */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for iOS */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}
/* Blog Content */
.blog-content {
    padding: 80px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.blog-post {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

.blog-image {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
}

.blog-post.featured .blog-image {
    height: 300px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-post.featured .blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-content h2, .blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h2 {
    font-size: 1.75rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.blog-link:hover {
    gap: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    background-color: var(--light);
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.page-link.next {
    width: auto;
    padding: 0 1rem;
    gap: 0.5rem;
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
    color: var(--primary);
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
}

/* Categories List */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.75rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.categories-list a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.categories-list span {
    background-color: var(--light);
    color: var(--dark);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light);
}

.recent-posts a {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.recent-posts a:hover {
    color: var(--secondary);
}

.recent-posts span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Newsletter */
.newsletter p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* Responsive Design for Blog */
@media (min-width: 768px) {
    .blog-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr 1fr;
    }
    
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-meta {
        gap: 0.5rem;
    }
    
    .blog-meta span {
        font-size: 0.8rem;
    }
}
/* Blog Post Specific Styles */
.blog-post-content {
    padding: 80px 0;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--light);
}

.breadcrumb a {
    color: var(--light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: var(--secondary);
}

.page-hero .blog-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.page-hero .blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.post-main {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light);
}

.post-content {
    padding: 2rem;
}

.intro {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content strong {
    color: var(--primary);
    font-weight: 600;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image .image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 250px;
    border-radius: 8px;
    margin: 0 auto;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
}

blockquote p {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.conclusion {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid var(--accent);
}

.conclusion h3 {
    margin-top: 0;
    color: var(--primary);
}

pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light);
}

.post-tags span {
    font-weight: 600;
    color: var(--dark);
}

.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: 8px;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--dark);
}

.share-btn:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
    margin: 2rem 0;
}

.author-image .image-placeholder.small {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.author-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.author-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--dark);
}

.author-social a:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Comments Section */
.comments-section {
    padding: 0 2rem 2rem;
}

.comments-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light);
}

.comment-avatar .image-placeholder.x-small {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-header h5 {
    margin-bottom: 0;
    color: var(--primary);
}

.comment-header span {
    font-size: 0.85rem;
    color: var(--gray);
}

.reply-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.reply-link:hover {
    color: var(--primary);
}

/* Comment Form */
.comment-form {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light);
    border-radius: 8px;
}

.comment-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background-color: var(--light);
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive Design for Blog Posts */
@media (min-width: 768px) {
    .post-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .page-hero .blog-meta {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .post-content {
        padding: 3rem;
    }
    
    .comments-section, .author-bio {
        padding: 0 3rem 3rem;
    }
    
    .comment-form {
        margin: 3rem 3rem 0;
    }
}

@media (max-width: 767px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-hero .blog-meta {
        gap: 1rem;
    }
    
    .page-hero .blog-meta span {
        font-size: 0.85rem;
    }
}
/* Comment Replies */
.comment-reply {
    margin-top: 1.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--light);
}

.comment-reply .comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-reply .comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Enhanced Comment Styling */
.comment {
    position: relative;
}

.reply-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
}

.reply-link:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Mobile Responsiveness for Comments */
@media (max-width: 767px) {
    .comment-reply {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 1rem;
    }
}
/* Portfolio Detail Page Styles */
.project-overview {
    padding: 80px 0;
}

.project-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--light);
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 3rem;
}

.main-image {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image .image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    position: relative;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 2rem;
    text-align: center;
}

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.thumbnail .image-placeholder.small {
    width: 80px;
    height: 80px;
    font-size: 1.5rem;
}

/* Project Description */
.project-description {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-item h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Technical Details */
.technical-details {
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.tech-stack {
    margin-bottom: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--gray);
}

.development-process ul {
    list-style: none;
    padding-left: 0;
}

.development-process li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.development-process li:before {
    content: "▸";
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Challenges */
.challenges {
    margin: 2rem 0;
}

.challenge-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
}

.challenge-item h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.challenge-item strong {
    color: var(--secondary);
}

/* Project Results */
.project-results {
    background: var(--light);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.result-item {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
}

.testimonial {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    border-left: 4px solid var(--accent);
}

/* Project Navigation */
.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--light);
    color: var(--dark);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Project Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-info, .project-links, .technologies-used, .project-services {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.project-info h3, .project-links h3, .technologies-used h3, .project-services h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: var(--dark);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
    font-weight: 600;
}

.project-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateX(5px);
}

.project-link.live:hover {
    background: #28a745;
}

.project-link.github:hover {
    background: #333;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-item {
    background: var(--light);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.services-list {
    list-style: none;
    padding: 0;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light);
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list i {
    color: var(--secondary);
}

/* Related Projects */
.related-projects {
    padding: 80px 0;
    background: var(--light);
}

/* Responsive Design */
@media (min-width: 768px) {
    .project-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .project-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .project-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-thumbnails {
        justify-content: flex-start;
    }
}