/*==================================
        TABLET
===================================*/

@media (max-width:992px){
.hero-container,
.about-wrapper{
    grid-template-columns:1fr;
    text-align:center;
}
}


/*==================================
        MOBILE
===================================*/

@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .navbar{
        display:none;
        position:absolute;
        top:100%;
        left:0;
        width:100%;
       background:var(--color-surface);
        border-top:1px solid #ddd;
        padding:20px 0;
    }

    .navbar.show{
        display:block;
    }

    .nav-list{
        flex-direction:column;
        gap:20px;
        align-items:center;
    }

}


/*==================================
      SMALL MOBILE
===================================*/

@media (max-width:576px){
.hero-title{

    font-size:2.3rem;

}

.section-header h2{

    font-size:2rem;

}
}
/*==================================
    CERTIFICATIONS RESPONSIVE
===================================*/

@media(max-width:768px){

.certifications-grid{

    grid-template-columns:1fr;

}

.certificate-buttons{

    flex-direction:column;

}

.certificate-buttons .btn{

    width:100%;

}

}

/* ==========================================
   GALLERY RESPONSIVE
========================================== */

@media (max-width: 768px) {

    /* Gallery images */

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-card {
        width: 100%;
    }


    /* Video gallery */

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-card {
        width: 100%;
    }

    .video-card video {
        width: 100%;
        aspect-ratio: 16 / 9;
    }


    /* Gallery hero */

    .gallery-hero {
        padding: 70px 0 50px;
    }

    .gallery-hero h1 {
        font-size: 2.3rem;
    }

    .gallery-hero-text {
        padding: 0 15px;
        font-size: 0.95rem;
    }


    /* Gallery filters */

    .gallery-filter .container {
        gap: 10px;
        padding: 0 15px;
    }

    .gallery-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

}

/* ==========================================
   GALLERY SMALL MOBILE
========================================== */

@media (max-width: 576px) {

    .gallery-grid-section,
    .video-gallery,
    .gallery-certificates,
    .behind-scenes,
    .future-gallery {
        padding: 60px 0;
    }

    .gallery-card img {
        height: auto;
        min-height: 280px;
    }

    .video-content {
        padding: 16px;
    }

    .video-content h3 {
        font-size: 1rem;
    }

    .video-content p {
        font-size: 0.9rem;
    }

}

/*=======================================================================
نسخه جدید کد ها 
==========================================================================
/*


/* ==========================================
   PHOENIX RESPONSIVE SYSTEM v2.0
   Premium Mobile & Tablet Experience
   ========================================== */


/* ==========================================
   TABLET
========================================== */

@media (max-width: 992px) {

    :root {
        --section-padding: 5rem 0;
    }

    .hero-container,
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-image {
        max-width: 420px;
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    /* General spacing */

    .container {
        width: calc(100% - 36px);
        margin-inline: auto;
    }

    :root {
        --section-padding: 4.5rem 0;
    }

    /* Hero */

    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 2.6rem);
        line-height: 1.35;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.9;
        max-width: 540px;
        margin-inline: auto;
    }

    .hero-image {
        width: 100%;
        max-width: 340px;
    }

    .hero-buttons {
        gap: 12px;
        margin-top: 1.5rem;
    }

    /* Section headings */

    .section-header {
        margin-bottom: 2.5rem;
        padding-inline: 8px;
    }

    .section-header h2 {
        font-size: 1.9rem;
        line-height: 1.4;
    }

    .section-header p {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    /* Navigation */

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;

        display: none;

        padding: 1.5rem 18px;

        background: var(--color-surface);
        border-top: 1px solid var(--color-border);

        box-shadow: var(--shadow-md);

        z-index: var(--z-navbar);
    }

    .navbar.show {
        display: block;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-md);
        text-align: center;
        transition: var(--transition);
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: var(--color-background);
        color: var(--color-primary);
    }

    /* Buttons */

    .btn {
        min-height: 46px;
        padding: 12px 20px;
    }

    /* Certifications */

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .certificate-buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Gallery */

    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery-card,
    .video-card {
        width: 100%;
    }

    .gallery-hero {
        padding: 4.5rem 0 3.5rem;
    }

    .gallery-hero h1 {
        font-size: 2.2rem;
        line-height: 1.4;
    }

    .gallery-hero-text {
        padding-inline: 8px;
        font-size: 0.95rem;
        line-height: 1.9;
    }

    .gallery-filter .container {
        gap: 10px;
        padding-inline: 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 576px) {

    :root {
        --section-padding: 3.8rem 0;
    }

    /* Hero */

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .hero-title {
        font-size: clamp(1.85rem, 8vw, 2.3rem);
        line-height: 1.45;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Headings */

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    /* General typography */

    body {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    /* Cards */

    .certificate-buttons {
        flex-direction: column;
    }

    .certificate-buttons .btn {
        width: 100%;
    }

    /* Gallery */

    .gallery-grid-section,
    .video-gallery,
    .gallery-certificates,
    .behind-scenes,
    .future-gallery {
        padding: 3.8rem 0;
    }

    .gallery-card img {
        height: auto;
        min-height: 250px;
    }

    .video-content {
        padding: 18px;
    }

    .video-content h3 {
        font-size: 1rem;
        line-height: 1.6;
    }

    .video-content p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

}


/* ==========================================
   EXTRA SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .container {
        width: calc(100% - 28px);
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }

    .btn {
        padding: 11px 16px;
        font-size: 0.9rem;
    }

    .gallery-btn {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

}





















/* ==========================================
   RTL MOBILE OVERFLOW FIX
========================================== */

@media (max-width: 768px) {

    html[dir="rtl"],
    html[dir="rtl"] body {
        max-width: 100%;
        overflow-x: clip;
    }

    html[dir="rtl"] .container {
        max-width: 100%;
        min-width: 0;
    }

    html[dir="rtl"] img,
    html[dir="rtl"] video,
    html[dir="rtl"] iframe {
        max-width: 100%;
    }

    html[dir="rtl"] .hero-container,
    html[dir="rtl"] .about-wrapper,
    html[dir="rtl"] .projects-grid,
    html[dir="rtl"] .skills-grid {
        min-width: 0;
        max-width: 100%;
    }

}


