/* Responsive Media Queries for Metasocial Agency Website */

/* Default Hide for Hero CTA buttons (only displayed on mobile/tablet) */
.hero-btns {
    display: none;
}

/* Hamburger Menu Icon styling */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Drawer Overlay Navigation */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 12, 0.98); /* Matching board.jpeg dark background color */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 50px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-navlink {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

.mobile-navlink:hover {
    color: #11B495;
}

/* --- TABLET BREAKPOINT (Max-width: 992px) --- */
@media (max-width: 992px) {
    /* Navigation Bar */
    .nav {
        padding: 0px 20px;
    }
    
    .home {
        height: auto !important;
        padding-bottom: 60px;
    }
    
    .nav-links {
        display: none; /* Hide navigation links, replaced by Hamburger */
    }
    
    .logo {
        width: auto;
    }
    
    .nav-btns {
        display: none !important; /* Shift CTA buttons out of nav */
    }

    .hamburger-menu {
        display: flex; /* Display hamburger */
    }

    /* Hero Section CTA Button shifting */
    .hero-btns {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 32px;
    }

    .hero-btns .call-btn {
        background-color: white;
        color: black;
        padding: 15px 22px;
        border-radius: 6px;
        font-weight: 500;
        font-size: 14px;
        border: 1px solid rgba(0, 0, 0, 0.2);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hero-btns .call-btn:hover {
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .hero-btns .chat-btn {
        background-color: black;
        color: white;
        padding: 15px 22px;
        border-radius: 6px;
        font-weight: 400;
        font-size: 14px;
        border: 1px solid black;
        cursor: pointer;
    }

    /* Hero Section */
    .homepage {
        height: auto;
        min-height: 25vh;
        margin-top: 40px;
        text-align: center;
        padding: 0 20px;
    }

    .home-heading {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .home-description {
        font-size: 14px;
        margin-top: 15px;
    }

    .home-description br {
        display: none; /* Allow natural text flow */
    }

    /* Overlapping Criss-Cross Posters (laptop view replica scaled down) */
    .posters {
        width: 100%;
        margin-top: 60px; /* Pushed further down for spacing */
        transform: scale(0.72); /* Made slightly bigger as requested */
        transform-origin: center top;
        height: 270px; /* Adjusted height for the scale */
    }

    /* About Section */
    .about {
        height: auto;
        padding: 80px 20px;
    }

    .about-heading {
        font-size: 32px;
        letter-spacing: -1px;
        height: auto;
        margin-bottom: 20px;
    }

    .about-description {
        width: 85%; /* Spaced properly from both sides */
        height: auto;
        margin-top: 20px;
        gap: 35px;
        text-align: center; /* Centered layout */
        align-items: center;
    }

    .question {
        font-size: 24px;
        letter-spacing: -1px;
        text-align: center; /* Centered question text */
        justify-content: center; /* Centered flex items */
    }

    .red, .red-1 {
        width: auto; /* Shrink to fit text width, preventing left-pull */
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .answer {
        font-size: 16px;
        letter-spacing: -0.5px;
        line-height: 1.6;
        text-align: center; /* Centered answer copy */
    }

    /* Services Section */
    .services {
        padding: 0px 20px 60px 20px;
        margin-top: 20px;
    }

    .service-about {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 30px;
        align-items: flex-start;
        padding: 10px 0;
    }

    .service-opening {
        width: 100%;
    }

    .sa-heading {
        font-size: 48px;
        letter-spacing: -1.5px;
    }

    .star {
        display: none; /* Hide svg star to prevent clutter */
    }

    .service-header {
        height: auto;
        min-height: 70px;
        padding: 15px 0px;
    }

    .number {
        font-size: 24px;
        width: 40px;
    }

    .service-name {
        font-size: 24px;
    }

    .service-desc {
        margin-left: 40px;
        width: 85%;
        font-size: 16px;
    }

    .service-gallery {
        padding-left: 40px;
        gap: 16px;
    }

    .gallery-card {
        flex: 0 0 320px;
        height: 400px;
        border-radius: 20px;
    }

    /* Process Section */
    .process-section {
        padding: 0px 20px 60px 20px;
        margin-top: 60px;
    }

    .process-about {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        margin-bottom: 40px;
        padding: 10px 0px;
    }

    .process-opening {
        width: 100%;
    }

    .pa-heading {
        font-size: 44px;
        letter-spacing: -1.5px;
    }

    .process-icon {
        display: none;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0;
    }

    /* Work Section */
    .work-section {
        padding: 0 20px 60px;
    }

    .work-card {
        flex-direction: column-reverse;
        height: auto;
        min-height: 480px;
        padding: 48px 28px 40px;
        gap: 40px;
    }

    .work-left,
    .topic-scroller-container,
    .cta-container {
        width: 100%;
    }

    .work-left {
        gap: 36px;
    }

    .work-intro {
        text-align: center;
        max-width: none;
    }

    .work-intro-title {
        font-size: 32px;
    }

    .work-intro-subtitle {
        font-size: 15px;
        max-width: none;
        margin-top: 10px;
    }

    .topic-scroller-container {
        height: 200px;
        margin-top: 0;
        padding-bottom: 0;
    }

    .scroller-viewport {
        height: 200px;
    }

    .scroller-item {
        height: 64px;
    }

    .cta-container {
        height: auto;
        align-items: center;
        text-align: center;
        gap: 32px;
        padding: 0;
    }

    .cta-heading {
        font-size: 36px;
        letter-spacing: -1.1px;
    }

    .schedule-call-btn {
        padding: 20px 36px;
        font-size: 22px;
        border-radius: 18px;
    }

    .cta-icon {
        width: 30px;
        height: 30px;
    }

    /* Footer Section */
    .footer {
        height: auto;
        padding: 60px 0 20px 0;
    }

    .marquee {
        height: auto;
        margin-bottom: 40px;
    }

    .marquee-heading {
        font-size: 12px;
        padding: 0 20px;
        height: auto;
        margin-bottom: 12px;
    }

    .marquee-move {
        font-size: 70px;
    }

    .footer-nav {
        flex-direction: column;
        height: auto;
        gap: 50px;
        padding: 0 20px;
        margin-top: 20px;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .footer-left {
        align-items: flex-start;
        gap: 30px;
    }

    .footer-description > div {
        width: 100%;
        font-size: 20px;
        text-align: left;
    }

    .reachout {
        height: auto;
        gap: 6px;
    }

    .reach-heading {
        font-size: 13px;
    }

    .phoneno > a,
    .email > a {
        font-size: 20px;
    }

    .footer-right {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 30px;
    }

    .ventures, 
    .navigation, 
    .socials {
        width: 28%;
        min-width: 120px;
        align-items: flex-start;
        text-align: left;
    }

    .footer-nav-heading {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .footer-links {
        align-items: flex-start;
        gap: 8px;
    }

    .footer-link {
        font-size: 18px;
    }

    .brand {
        margin-top: 40px;
    }

    .branding {
        flex-direction: column-reverse;
        height: auto;
        padding: 30px 20px;
        gap: 16px;
    }

    .brandname {
        font-size: 120px;
        height: auto;
        padding: 40px 20px 20px;
    }

    .brandname > span {
        font-size: 50px;
    }
}

/* --- SMALL TABLET & PHONE BREAKPOINT (Max-width: 768px) --- */
@media (max-width: 768px) {
    /* Navigation Bar */
    .nav {
        height: 12vh;
    }

    /* Hero Section */
    .home-heading {
        font-size: 30px;
    }

    /* About Section */
    .about-description {
        width: 88%; /* Proper spacing from both sides */
    }
}

/* --- MOBILE PHONE BREAKPOINT (Max-width: 576px) --- */
@media (max-width: 576px) {
    /* Hero Section CTA buttons */
    .hero-btns {
        margin-top: 24px;
        gap: 10px;
    }

    .hero-btns .call-btn,
    .hero-btns .chat-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    /* Hero Section */
    .homepage {
        margin-top: 30px;
    }

    .home-heading {
        font-size: 26px;
        letter-spacing: -0.5px;
    }

    .home-description {
        font-size: 13px;
    }

    /* Overlapping Posters (even smaller scale factor for phones) */
    .posters {
        margin-top: 40px; /* Spaced properly below CTA buttons */
        transform: scale(0.38); /* Scaled down for mobile screen widths */
        transform-origin: center top;
        height: 165px; /* Adjusted height for the scale */
        margin-bottom: 0px;
    }

    /* About Section */
    .about-description {
        width: 90%; /* Center alignment with proper side spacing */
    }

    .question {
        font-size: 20px;
    }

    .answer {
        font-size: 15px;
    }

    /* Services Section */
    .sa-heading {
        font-size: 36px;
    }

    .sa-para {
        font-size: 15px;
    }

    .service-header {
        padding: 10px 0;
    }

    .number {
        font-size: 18px;
        width: 30px;
    }

    .service-name {
        font-size: 18px;
    }

    .service-desc {
        margin-left: 30px;
        width: 90%;
        font-size: 14px;
    }

    .service-gallery {
        padding-left: 30px;
        gap: 12px;
    }

    .gallery-card {
        flex: 0 0 260px;
        height: 320px;
    }

    /* Process Section */
    .pa-heading {
        font-size: 36px;
    }

    .pa-para {
        font-size: 15px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .process-card {
        padding: 30px 20px;
        gap: 16px;
    }

    .process-num {
        font-size: 32px;
    }

    .process-title {
        font-size: 18px;
    }

    .process-desc {
        font-size: 14px;
    }

    /* Work Section */
    .work-intro-title {
        font-size: 24px;
    }

    .work-intro-subtitle {
        font-size: 14px;
    }

    .cta-heading {
        font-size: 30px;
    }

    .schedule-call-btn {
        padding: 16px 28px;
        font-size: 18px;
        gap: 12px;
    }

    .cta-icon {
        width: 24px;
        height: 24px;
    }

    /* Footer Section */
    .marquee-move {
        font-size: 48px;
    }

    .footer-left {
        gap: 20px;
    }

    .footer-description > div {
        font-size: 18px;
    }

    .phoneno > a,
    .email > a {
        font-size: 18px;
    }

    .footer-right {
        gap: 24px;
    }

    .ventures, 
    .navigation, 
    .socials {
        width: 100%;
    }

    .brandname {
        font-size: 55px;
        padding: 30px 10px 10px;
    }

    .brandname > span {
        font-size: 24px;
    }
}
