/* Responsive Styles */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1280px;
    }
}

/* Desktop (1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 250px;
        gap: 3rem;
    }
    
    .nav-menu ul {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
}

/* Tablet Portrait (1194px) - Specifically for iPads */
@media (max-width: 1194px) {
    .container {
        max-width: 960px;
    }
    
    .header-container {
        max-width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide Let's Talk button on tablet */
    .header-cta,
    .cta-button {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Center contact info while maintaining left alignment for tablet */
    .contact-cards-container {
        display: flex;
        justify-content: center;
    }
    
    .contact-info-list {
        text-align: left;
        max-width: 400px;
    }
    
    /* Center Trimite button for tablet */
    .contact-form {
        display: flex;
        flex-direction: column;
    }
    
    .contact-form button[type="submit"] {
        align-self: center;
        width: fit-content;
        margin: 0 auto;
    }
    
    .contact-text-wrapper {
        order: 1;
        text-align: center;
    }
    
    .contact-form-wrapper {
        order: 2;
    }
    
    .contact-main-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .design-grid,
    .design-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Apply mobile optimizations for tablet portrait */
    
    /* Enhanced touch targets for tablet */
    .btn,
    .btn-primary,
    .btn-secondary,
    .tab-btn,
    .cta-button,
    button[type="submit"] {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 8px;
    }
    
    /* Mobile menu improvements for tablet */
    .mobile-menu-toggle {
        padding: 15px;
        touch-action: manipulation;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tab navigation optimization for tablet */
    .tab-navigation {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 14px 20px;
        min-height: 48px;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    /* Form enhancements for tablet */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .form-row {
        margin-bottom: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    /* Contact form padding for tablet */
    .contact-form {
        padding: 2rem;
    }
    
    /* Social icons with proper touch targets */
    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        touch-action: manipulation;
    }
    
    /* Pricing card title centering for tablet */
    .pricing-card .card-header {
        text-align: center;
    }
    
    .pricing-card .card-header h4,
    .pricing-card .card-subtitle {
        text-align: center;
    }
    
    /* About section mobile optimizations for tablet */
    .about-content-grid {
        display: flex;
        flex-direction: column;
    }
    
    .about-left-column {
        display: flex;
        flex-direction: column;
    }
    
    /* Hide desktop image on tablet portrait */
    .about-right-column {
        display: none;
    }
    
    /* Add mobile-only image after title for tablet */
    .about-left-column .section-title::after {
        content: "";
        display: block;
        width: 350px;
        height: 350px;
        margin: 1rem auto 1rem auto;
        background-image: url('../img/Valentin-Beardly-Brands.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    /* Adjust title margins for balanced spacing */
    .about-left-column .section-title h2 {
        margin-bottom: 1rem;
    }
    
    /* Control about text spacing */
    .about-left-column .about-text {
        margin: 1rem 0 2rem 0;
    }
    
    .about-content p {
        margin-bottom: 1.25rem;
    }
    
    /* Services list optimization - TWO COLUMNS FOR TABLET */
    .services-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce CTA spacing */
    .about-left-column .call-cta-wrapper {
        margin-top: 1.5rem;
    }
    
    /* Photo grid optimization for tablet */
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .photo-item {
        border-radius: 10px;
        min-height: 200px;
    }
    
    .photo-item img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Mobile navigation for tablet */
    .mobile-nav a {
        padding: 1.5rem 0;
        font-size: 1.3rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .mobile-menu-close {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Enhanced footer for tablet */
    .footer-section h6 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-contact li {
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
}

/* Tablet Portrait (1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    .header-container {
        max-width: 100%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Center contact info while maintaining left alignment for tablet */
    .contact-cards-container {
        display: flex;
        justify-content: center;
    }
    
    .contact-info-list {
        text-align: left;
        max-width: 400px;
    }
    
    /* Center Trimite button for tablet */
    .contact-form {
        display: flex;
        flex-direction: column;
    }
    
    .contact-form button[type="submit"] {
        align-self: center;
        width: fit-content;
        margin: 0 auto;
    }
    
    .contact-text-wrapper {
        order: 1;
        text-align: center;
    }
    
    .contact-form-wrapper {
        order: 2;
    }
    
    .contact-main-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .design-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Apply mobile optimizations for tablet portrait */
    
    /* Enhanced touch targets for tablet */
    .btn,
    .btn-primary,
    .btn-secondary,
    .tab-btn,
    .cta-button,
    button[type="submit"] {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 8px;
    }
    
    /* Mobile menu improvements for tablet */
    .mobile-menu-toggle {
        padding: 15px;
        touch-action: manipulation;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Tab navigation optimization for tablet */
    .tab-navigation {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        padding: 14px 20px;
        min-height: 48px;
        border-radius: 8px;
        touch-action: manipulation;
    }
    
    /* Form enhancements for tablet */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .form-row {
        margin-bottom: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    /* Contact form padding for tablet */
    .contact-form {
        padding: 2rem;
    }
    
    /* Social icons with proper touch targets */
    .footer-social a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        touch-action: manipulation;
    }
    
    /* Pricing card title centering for tablet */
    .pricing-card .card-header {
        text-align: center;
    }
    
    .pricing-card .card-header h4,
    .pricing-card .card-subtitle {
        text-align: center;
    }
    
    /* About section mobile optimizations for tablet */
    .about-content-grid {
        display: flex;
        flex-direction: column;
    }
    
    .about-left-column {
        display: flex;
        flex-direction: column;
    }
    
    /* Hide desktop image on tablet portrait */
    .about-right-column {
        display: none;
    }
    
    /* Add mobile-only image after title for tablet */
    .about-left-column .section-title::after {
        content: "";
        display: block;
        width: 350px;
        height: 350px;
        margin: 1rem auto 1rem auto;
        background-image: url('../img/Valentin-Beardly-Brands.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    /* Adjust title margins for balanced spacing */
    .about-left-column .section-title h2 {
        margin-bottom: 1rem;
    }
    
    /* Control about text spacing */
    .about-left-column .about-text {
        margin: 1rem 0 2rem 0;
    }
    
    .about-content p {
        margin-bottom: 1.25rem;
    }
    
    /* Services list optimization */
    .services-columns {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce CTA spacing */
    .about-left-column .call-cta-wrapper {
        margin-top: 1.5rem;
    }
    
    /* Photo grid optimization for tablet */
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .photo-item {
        border-radius: 10px;
        min-height: 200px;
    }
    
    .photo-item img {
        height: 200px;
        object-fit: cover;
    }
    
    /* Mobile navigation for tablet */
    .mobile-nav a {
        padding: 1.5rem 0;
        font-size: 1.3rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .mobile-menu-close {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Enhanced footer for tablet */
    .footer-section h6 {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-contact li {
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
}

/* Mobile Landscape (880px) */
@media (max-width: 880px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-stats {
        flex-direction: column;
        max-width: 300px;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    /* Fix pricing grid width */
    .pricing-grid,
    .design-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        min-width: 0; /* Override any min-width constraints */
    }
    
    .pricing-section .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Content sections improvements */
    .about-section,
    .services-section,
    .marketing-digital-section {
        padding: 60px 0;
    }
    
    .about-grid,
    .marketing-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .about-content h2,
    .marketing-content h3 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: 1.5rem;
    }
    
    .about-content p,
    .marketing-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .services-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-content {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-content h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .service-content p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .pricing-grid,
    .design-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-main-card {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .photo-video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Apply key mobile optimizations for 880px breakpoint */
    
    /* Enhanced buttons and touch targets */
    .btn,
    .btn-primary,
    .btn-secondary,
    .tab-btn,
    .cta-button,
    button[type="submit"] {
        padding: 14px 22px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        border-radius: 8px;
    }
    
    /* Form enhancements */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .form-row {
        margin-bottom: 1.75rem;
    }
    
    /* Mobile menu optimization */
    .mobile-menu-toggle {
        padding: 15px;
        min-width: 48px;
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Pricing card centering */
    .pricing-card .card-header {
        text-align: center;
    }
    
    .pricing-card .card-header h4,
    .pricing-card .card-subtitle {
        text-align: center;
    }
}

/* Mobile Portrait (767px) */
@media (max-width: 767px) {
    .header-container {
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .site-logo img {
        height: 50px;
    }
    
    /* Mobile menu button improvements */
    .mobile-menu-toggle {
        padding: 15px;
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background-color: var(--noxfolio-headline-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile menu overlay improvements */
    .mobile-menu-content {
        width: 100%;
        padding: 2rem 1.5rem;
    }
    
    /* Hide Let's Talk button on mobile */
    .header-cta,
    .cta-button {
        display: none;
    }
    
    .mobile-nav a {
        padding: 1.25rem 0;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .mobile-menu-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
    
    /* Enhanced photo grid for mobile */
    .photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    /* Slow down marquee on mobile */
    .scroll-content {
        animation: scroll-left 120s linear infinite !important;
    }
    
    .photo-item {
        border-radius: 8px;
        min-height: 150px;
    }
    
    .photo-item img {
        height: 150px;
        object-fit: cover;
    }
    
    /* Video container for mobile */
    .video-container {
        border-radius: 10px;
        margin: 1rem 0;
    }
    
    .hero-section {
        padding-top: calc(70px + 15px); /* Navigation height + extra clearance */
        min-height: 80vh; /* Increased height for better content visibility */
        height: auto;
        max-height: none;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: center;
        text-align: center;
        padding-top: 20px; /* Additional spacing from header */
        padding-bottom: 25px; /* Extra bottom padding to prevent marquee cutoff */
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-stats {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    h3 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-title {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        text-align: center;
    }
    
    /* Enhanced content sections for mobile */
    .about-section,
    .services-section,
    .marketing-digital-section {
        padding: 50px 0;
    }
    
    /* Remove glowing animation on mobile */
    .call-cta-button {
        animation: none !important;
    }
    
    /* Fix CTA label text on mobile */
    .cta-label {
        font-size: 14px !important;
        margin-bottom: 0.5rem;
    }
    
    .cta-label::before {
        content: "Sună acum";
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .cta-label {
        text-indent: -9999px;
        line-height: 0;
        position: relative;
        height: auto;
    }
    
    .cta-label::before {
        text-indent: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        line-height: 1.2;
    }
    
    .cta-content {
        gap: 0.5rem;
    }
    
    .about-grid,
    .marketing-grid {
        gap: 2rem;
        text-align: center;
    }
    
    .about-content h2,
    .marketing-content h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    /* Override title margin for about section specifically */
    .about-left-column .section-title h2 {
        margin-bottom: 0.75rem;
    }
    
    .about-content p,
    .marketing-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Reduce spacing between about text and services list */
    .about-left-column .about-text {
        margin: 0.75rem 0 1.5rem 0;
    }
    
    .services-columns {
        gap: 1.5rem;
    }
    
    /* Make services list single column on mobile */
    .services-columns {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1rem;
    }
    
    .services-col {
        margin-bottom: 0;
    }
    
    .services-col .check-list {
        margin-bottom: 0;
    }
    
    .service-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .service-content h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Tab navigation for mobile */
    .tab-navigation {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 16px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 8px;
    }
    
    .tab-content {
        padding: 1.5rem 0;
    }
    
    .about-grid {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    
    /* Reorder about section elements on mobile */
    .about-content-grid {
        display: flex;
        flex-direction: column;
    }
    
    .about-left-column {
        display: flex;
        flex-direction: column;
    }
    
    /* Hide desktop image on mobile */
    .about-right-column {
        display: none;
    }
    
    /* Add mobile-only image after title */
    .about-left-column .section-title::after {
        content: "";
        display: block;
        width: 300px;
        height: 300px;
        margin: 0.75rem auto 0.75rem auto;
        background-image: url('../img/Valentin-Beardly-Brands.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    /* Specific ordering for mobile layout */
    .about-left-column .section-title {
        order: 1;
    }
    
    .about-left-column .about-text {
        order: 2;
    }
    
    .about-left-column .services-columns {
        order: 3;
    }
    
    .about-left-column .call-cta-wrapper {
        order: 4;
        margin-top: 1rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Enhanced footer for mobile */
    .site-footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h6 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        order: -1; /* Show logo first */
    }
    
    .footer-logo img {
        height: 60px;
        margin-bottom: 1rem;
        width: auto;
        object-fit: contain;
    }
    
    .footer-contact li {
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .footer-social a {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        touch-action: manipulation;
    }
    
    .footer-projects {
        gap: 1rem;
        align-items: center;
    }
    
    .project-logo-placeholder {
        padding: 10px 16px;
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .tab-btn,
    .cta-button,
    button[type="submit"] {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        font-weight: 600;
        border-radius: 8px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Enhanced form spacing for mobile */
    .form-row {
        margin-bottom: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 8px;
        min-height: 48px;
    }
    
    .contact-cards-container {
        display: grid;
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 2rem;
    }
    
    /* Center contact info items on mobile */
    .contact-info-list {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-info-item {
        text-align: left;
        margin: 0;
        max-width: 300px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .info-content {
        text-align: left;
    }
    
    .contact-card {
        flex: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile (480px) */
/* Very Small Mobile Devices (iPhone SE, Galaxy S8+, Galaxy Z Fold 5, iPhone 12 Pro) */
@media (max-width: 413px) {
    .hero-section {
        padding-top: calc(70px + 30px) !important; /* Navigation height + extra clearance */
        min-height: 90vh !important; /* Increased height for small screens */
        height: auto;
        max-height: none;
        background-attachment: scroll;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        text-align: center;
        padding-top: 15px;
        padding-bottom: 40px; /* Extra bottom padding to clear marquee */
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content .description {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    /* Content sections for small mobile */
    .about-section,
    .services-section,
    .marketing-digital-section {
        padding: 40px 0;
    }
    
    .about-content h2,
    .marketing-content h3 {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .about-content p,
    .marketing-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    /* Reduce spacing between about text and services list on small mobile */
    .about-left-column .about-text {
        margin: 0.5rem 0 1rem 0;
    }
    
    /* Adjust image spacing for small mobile */
    .about-left-column .section-title::after {
        margin: 0.5rem auto 0.5rem auto;
        width: 280px;
        height: 280px;
    }
    
    /* Adjust title spacing for small mobile */
    .about-left-column .section-title h2 {
        margin-bottom: 0.5rem;
    }
    
    /* Reduce spacing between checklist and CTA on small mobile */
    .services-columns {
        margin-bottom: 0.75rem;
    }
    
    .about-left-column .call-cta-wrapper {
        margin-top: 0.75rem;
    }
    
    .service-content {
        padding: 1.25rem;
        text-align: center;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Center "Solicită o ofertă" buttons in photo-video section on small mobile */
    .photo-video-content .content-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .photo-video-content .btn-primary {
        align-self: center;
        width: fit-content;
        margin: 0 auto;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    /* Enhanced hero section for mobile */
    .hero-section {
        min-height: 85vh; /* Increased for better content visibility */
        height: auto;
        max-height: none;
        text-align: center;
        padding-top: calc(70px + 25px); /* Navigation height + extra clearance */
        padding-bottom: 60px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-stats {
        order: 2;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-content .subtitle {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-actions {
        margin-bottom: 2rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem;
        display: block;
    }
    
    /* Enhanced photo grid for smaller mobile */
    .photo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .photo-item {
        border-radius: 6px;
        min-height: 120px;
    }
    
    .photo-item img {
        height: 120px;
        object-fit: cover;
    }
    
    /* Video container for small mobile */
    .video-container {
        border-radius: 8px;
        margin: 1rem 0;
    }
    
    .stat-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-suffix {
        font-size: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Center pricing card titles and subtitles on mobile */
    .pricing-card .card-header {
        text-align: center;
    }
    
    .pricing-card .card-header h4,
    .pricing-card .card-subtitle {
        text-align: center;
    }
    
    /* Additional mobile pricing fixes */
    .pricing-section {
        overflow-x: hidden;
    }
    
    .pricing-grid {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    /* Shorten pricing button text on mobile */
    .pricing-card .btn span {
        font-size: 0;
    }
    
    .pricing-card .btn span::after {
        content: "Contactează-ne";
        font-size: 14px;
        display: inline;
    }
    
    .design-card {
        padding: 1.5rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo img {
        height: 50px;
        margin-bottom: 0.75rem;
        width: auto;
        object-fit: contain;
    }
    
    .footer-contact li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-logo-placeholder {
        padding: 8px 14px;
        min-height: 40px;
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.85rem;
    }
    
    .mobile-menu-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    /* Center contact info on small mobile */
    .contact-info-item {
        text-align: left;
        margin: 0;
        max-width: 280px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    
    .info-content {
        text-align: left;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}

/* Extra Small Mobile (320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .header-container {
        padding: 8px 10px;
    }
    
    .site-logo img {
        height: 40px;
    }
    
    /* Single column photo grid for very small screens */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .photo-item {
        min-height: 200px;
    }
    
    .photo-item img {
        height: 200px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn,
    .btn-primary,
    .btn-secondary,
    .tab-btn,
    .cta-button,
    button[type="submit"] {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .stat-box {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .pricing-card {
        padding: 1rem;
    }
    
    /* Center pricing card titles and subtitles on small mobile */
    .pricing-card .card-header {
        text-align: center;
    }
    
    .pricing-card .card-header h4,
    .pricing-card .card-subtitle {
        text-align: center;
    }
    
    .design-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 0.75rem;
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .features-list li {
        font-size: 0.9rem;
    }
    
    /* Optimize footer social icons for very small screens */
    .footer-social {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .hero-stats {
        flex-direction: row;
    }
    
    .stat-box {
        padding: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img,
    .footer-logo img,
    .mobile-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
    }
    
    .site-header,
    .mobile-menu-overlay,
    .back-to-top,
    .contact-form {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default */
}

/* Light Mode Preference */
@media (prefers-color-scheme: light) {
    :root {
        --noxfolio-dark-color: #ffffff;
        --noxfolio-dark-light-color: #f8f9fa;
        --noxfolio-secondary-color: #f8f9fa;
        --noxfolio-headline-color: #1f1f1f;
        --noxfolio-body-color: #666666;
        --noxfolio-border-color: #e5e5e5;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Visible Support */
@supports selector(:focus-visible) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
    }
    
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 2px solid var(--noxfolio-primary-color);
        outline-offset: 2px;
    }
}

/* Container Queries (for future support) */
@container (max-width: 400px) {
    .pricing-card {
        padding: 1rem;
    }
    
    .design-card {
        padding: 1rem;
    }
}

/* Grid Fallback for Older Browsers */
@supports not (display: grid) {
    .hero-grid,
    .about-grid,
    .pricing-grid,
    .design-grid,
    .photo-video-grid,
    .contact-grid,
    .blog-grid,
    .footer-content {
        display: flex;
        flex-wrap: wrap;
    }
    
    .hero-grid > *,
    .about-grid > *,
    .contact-grid > * {
        flex: 1;
        min-width: 300px;
    }
    
    .pricing-grid > *,
    .design-grid > *,
    .design-cards-grid > *,
    .photo-video-content,
    .blog-grid > * {
        flex: 1;
        min-width: 300px;
        margin-bottom: 2rem;
    }
    
    .photo-video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Center "Solicită o ofertă" buttons in photo-video section on mobile */
    .photo-video-content .content-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .photo-video-content .btn-primary {
        align-self: center;
        width: fit-content;
        margin: 0 auto;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .footer-content > * {
        flex: 1;
        min-width: 200px;
    }
}