/* Responsive Design */
@media screen and (max-width: 1200px) {
    .nav-container,
    .project-grid,
    .features-grid,
    .footer-content {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-desktop {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 2000;
        height: 70px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-mobile {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        position: relative;
        z-index: 2000;
    }

    .mobile-right {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--button-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 2001;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem;
        z-index: 1999;
        overflow-y: auto;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links li {
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        color: var(--button-color);
        text-decoration: none;
        padding: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
    }

    /* Common Page Elements */
    .hero {
        margin-top: 70px;
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Blog Page */
    .hero-blog {
        margin-top: 70px;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-position: center;
        background-size: cover;
    }

    .blog-section {
        padding: 2rem 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .mobile-menu {
        display: none;
    }

    .nav-links {
        display: flex !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Responsive Styles */
@media screen and (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-content h2 {
        font-size: 1.3rem;
    }

    .blog-image {
        height: 200px;
    }
}

/* Blog Article Responsive Styles */
@media screen and (max-width: 768px) {
    .hero-blog-article {
        height: 400px;
    }

    .hero-blog-article h1 {
        font-size: 2.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .share-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .share-button {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }
}

/* Blog Page Mobile Styles */
@media screen and (max-width: 768px) {
    .hero-blog {
        margin-top: 70px;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-position: center;
        background-size: cover;
    }

    .blog-section {
        padding: 2rem 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }
}

/* Footer Quick Links Responsive */
@media screen and (max-width: 768px) {
    .quick-links h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .quick-links ul li {
        margin-bottom: 10px;
    }

    .quick-links ul li a {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
        gap: 1rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-phone {
        font-size: 0.9rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-content h2 {
        font-size: 1.2rem;
    }

    .blog-image {
        height: 180px;
    }

    .hero-blog-article {
        height: 350px;
    }

    .hero-blog-article h1 {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 0 15px;
    }
}
