/* ============================================
   Samrat Builders - Responsive Stylesheet
   ============================================ */

/* Large Tablets & Small Desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    h4 {
        font-size: 19px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2::after {
        width: 60px;
        height: 3px;
    }

    /* Navigation */
    .navbar {
        padding: 14px 0;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 20px;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 78px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 0;
        box-shadow: var(--shadow-xl);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 18px;
        width: 100%;
        padding: 16px 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu .btn {
        width: 100%;
        margin-top: 16px;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(9px, -9px);
    }

    /* Hero Section */
    .hero {
        min-height: 550px;
        height: 85vh;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .hero-content p {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grids */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Cards */
    .category-card {
        padding: 36px 24px;
    }

    .category-icon {
        font-size: 48px;
    }

    .feature-card {
        padding: 32px 24px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .project-image {
        height: 240px;
    }

    .project-content {
        padding: 24px;
    }

    .project-details {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }

    .project-detail-item {
        text-align: left;
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--bg-light);
    }

    .project-detail-item:last-child {
        border-bottom: none;
    }

    .project-price {
        font-size: 24px;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 28px;
    }

    .cta-section p {
        font-size: 17px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px 22px;
        font-size: 14px;
    }

    /* Floating Buttons */
    .floating-buttons {
        bottom: 24px;
        right: 24px;
        gap: 12px;
    }

    .floating-btn {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    /* Advantage Items */
    .advantage-item {
        padding: 20px;
    }

    .advantage-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    /* Gallery */
    .gallery-item {
        height: 240px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 36px;
    }

    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title p {
        font-size: 16px;
    }

    /* Logo */
    .logo img {
        height: 45px;
    }

    .logo-text {
        font-size: 18px;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* Cards */
    .category-card {
        padding: 28px 20px;
    }

    .category-icon {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .category-card p {
        font-size: 14px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 18px;
    }

    .feature-card h4 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 14px;
    }

    /* Projects */
    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    .project-price {
        font-size: 22px;
    }

    .project-badge {
        padding: 6px 16px;
        font-size: 11px;
        top: 16px;
        right: 16px;
    }

    /* CTA Section */
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 15px;
        margin-bottom: 28px;
    }

    /* Advantages */
    .advantage-item {
        padding: 18px;
        gap: 16px;
    }

    .advantage-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .advantage-content h4 {
        font-size: 17px;
    }

    .advantage-content p {
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 24px;
    }

    .footer-content {
        gap: 32px;
    }

    .footer-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .footer-section p,
    .footer-links a,
    .contact-item {
        font-size: 14px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Floating Buttons */
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-btn {
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    /* Gallery */
    .gallery-item {
        height: 220px;
    }

    .gallery-overlay i {
        font-size: 48px;
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: 10px;
    }

    .filter-btn {
        padding: 9px 18px;
        font-size: 13px;
    }

    /* Forms */
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }

    .form-group label {
        font-size: 14px;
    }
}

/* Landscape Mobile Devices */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .section {
        padding: 40px 0;
    }

    .nav-menu {
        height: calc(100vh - 70px);
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section {
        padding: 40px 0;
    }

    .btn {
        padding: 11px 20px;
        font-size: 13px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .category-card,
    .feature-card {
        padding: 24px 16px;
    }

    .project-content {
        padding: 18px;
    }
}

/* Print Styles */
@media print {
    .header,
    .floating-buttons,
    .mobile-menu-toggle,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
    }

    .section {
        padding: 20px 0;
    }
}