/* Mobile-First Responsive Design for Maa Saryu Agency */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
    font-size: 16px;
}

/* Mobile-first Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Mobile Header Styles */
header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles - Mobile First */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.logo-img {
    height: 40px;
    width: 40px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.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(7px, -6px);
}

/* Mobile Navigation */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 1000;
}

.nav-menu.mobile-open {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: #ffca28;
    background: rgba(255, 202, 40, 0.1);
}

.mobile-get-quote {
    margin-top: 1rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Hide desktop menu on mobile */
.desktop-get-quote {
    display: none;
}

/* Contact Button Styles */
.contact-btn {
    background-color: #ffca28 !important;
    color: #1a237e !important;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.contact-btn:hover {
    background-color: #ffd54f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 202, 40, 0.3);
}

/* Mobile Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    min-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-background.active {
    opacity: 1;
}

.hero-background.transitioning {
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1.2s ease;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    animation: fadeInUp 1.4s ease;
}

.primary-btn,
.secondary-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    max-width: 250px;
}

.primary-btn {
    background-color: #ffca28;
    color: #1a237e;
}

.primary-btn:hover {
    background-color: #ffd54f;
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background: white;
    color: #1a237e;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffca28;
    border-color: white;
    transform: scale(1.2);
}

/* Hero Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 3;
}

.progress-bar {
    height: 100%;
    background: #ffca28;
    width: 0;
}

/* Progress Animation */
@keyframes slideProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* About Section - Mobile */
.about {
    background-color: #e8eaf6;
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 1rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: #444;
    text-align: center;
    line-height: 1.6;
}

.about-image {
    width: 100%;
    max-width: 400px;
    background-color: #c5cae9;
    height: 250px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a237e;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Services Section - Mobile */
.services {
    padding: 60px 0;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-icon {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a237e;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Mobile Footer - Completely Rewritten */
footer {
    background-color: #1a237e;
    color: white;
    padding: 30px 0 20px;
    font-size: 14px;
    width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.footer-column {
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffca28;
    font-weight: 600;
    text-align: center;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
    text-align: center;
}

.footer-column a {
    color: #e8eaf6;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    display: inline-block;
    padding: 2px 0;
}

.footer-column a:hover {
    color: #ffca28;
}

.footer-column p {
    color: #e8eaf6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    max-width: 100%;
    word-wrap: break-word;
}

/* Contact Info Styles - Mobile */
.contact-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ffca28;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-section-title {
    color: #ffca28;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid rgba(255, 202, 40, 0.3);
    padding-bottom: 0.5rem;
}

.contact-section-spaced {
    margin-top: 0;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    width: 100%;
    box-sizing: border-box;
}

.contact-icon {
    color: #ffca28;
    font-size: 1rem;
    margin-top: 0.1rem;
    min-width: 20px;
    flex-shrink: 0;
}

.contact-link {
    color: #e8eaf6;
    text-decoration: none;
    transition: color 0.3s;
    word-break: break-all;
    max-width: 100%;
}

.contact-link:hover {
    color: #ffca28;
}

.contact-text {
    color: #e8eaf6;
    line-height: 1.4;
    word-wrap: break-word;
    max-width: 100%;
}

/* Social Media Styles - Mobile */
.footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.footer-social-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 90%;
    max-width: 200px;
}

.footer-social-list a {
    color: #e8eaf6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-social-list a:hover {
    color: #ffca28;
}

.social-icon {
    font-weight: bold;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.facebook-icon {
    font-size: 20px;
    color: #1877f2;
}

.instagram-icon {
    font-size: 16px;
    color: #e4405f;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3949ab;
    color: #c5cae9;
    font-size: 0.9rem;
    width: 100%;
}

/* Gallery Component Mobile Optimizations */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Mobile-first breakpoints for Gallery components */
@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-column {
        padding: 0 15px;
    }
    
    .contact-section {
        padding: 1.25rem;
    }
}

/* Tablet Breakpoint (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    /* Header - Tablet */
    header {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-img {
        height: 45px;
        width: 45px;
    }

    /* Hero - Tablet */
    .hero {
        padding: 80px 0 60px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .primary-btn,
    .secondary-btn {
        width: auto;
        min-width: 180px;
    }

    /* About - Tablet */
    .about-content {
        flex-direction: row;
        gap: 3rem;
        text-align: left;
    }

    .about-text {
        flex: 1;
    }

    .about-text h2 {
        font-size: 2rem;
        text-align: left;
    }

    .about-text p {
        text-align: left;
    }

    .about-image {
        flex: 1;
        height: 300px;
    }

    /* Services - Tablet */
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Footer - Tablet */
    footer {
        padding: 40px 0 30px;
        font-size: 15px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-column {
        text-align: left;
        padding: 0;
    }

    .footer-column h3 {
        text-align: left;
        font-size: 1.2rem;
    }

    .footer-column ul li {
        text-align: left;
    }

    .footer-column p {
        text-align: left;
    }

    .contact-info-grid {
        flex-direction: row;
        gap: 1.5rem;
    }

    .contact-section {
        flex: 1;
        min-width: 200px;
    }

    .contact-section-title {
        text-align: left;
    }

    .footer-social-list {
        align-items: flex-start;
    }

    .footer-social-list li {
        justify-content: flex-start;
        max-width: none;
        width: auto;
        display: inline-flex;
    }
}

/* Desktop Breakpoint (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    /* Header - Desktop */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        transform: none;
        transition: none;
    }

    .nav-menu ul {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .mobile-get-quote {
        display: none;
    }

    .desktop-get-quote {
        display: block;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .logo-img {
        height: 48px;
        width: 48px;
    }

    /* Hero - Desktop */
    .hero {
        padding: 100px 0 80px;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.3rem;
    }

    .primary-btn,
    .secondary-btn {
        font-size: 1.1rem;
        padding: 14px 28px;
    }

    /* About - Desktop */
    .about {
        padding: 100px 0;
    }

    .about-content {
        gap: 4rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .about-image {
        height: 400px;
    }

    /* Services - Desktop */
    .services {
        padding: 100px 0;
    }

    .service-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .service-card {
        padding: 2.5rem;
    }

    .service-icon {
        font-size: 3rem;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Footer - Desktop */
    footer {
        padding: 60px 0 30px;
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }

    .footer-column {
        text-align: left;
    }

    .footer-column h3 {
        font-size: 1.3rem;
    }

    .contact-info-grid {
        display: block;
    }

    .contact-section {
        width: 100%;
        background: transparent;
        border-left: none;
        padding: 0;
        margin-bottom: 2rem;
    }

    .contact-section-title {
        text-align: left;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 1rem;
    }

    .footer-social-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-social-list li {
        background: transparent;
        padding: 0;
        width: auto;
        max-width: none;
    }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .about-text h2 {
        font-size: 3rem;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.mobile-menu-toggle:focus,
.nav-link:focus,
.primary-btn:focus,
.secondary-btn:focus,
.contact-btn:focus {
    outline: 2px solid #ffca28;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-background::before {
        opacity: 0.7;
    }
}