/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 1
 CORE MOBILE RESET + BASE SYSTEM
=========================================================*/


/* جلوگیری از مشکلات عرض در موبایل */

html,
body{


max-width:100%;


overflow-x:hidden;


}




*{


box-sizing:border-box;


}





img,
video,
iframe{


max-width:100%;


height:auto;


}






/*=========================================================
 MOBILE BASE VARIABLES
=========================================================*/


:root{


--mrai-mobile-padding:20px;


--mrai-mobile-radius:22px;


--mrai-mobile-gap:20px;


--mrai-mobile-title:28px;


--mrai-mobile-text:15px;


}






/*=========================================================
 MAIN CONTAINERS
=========================================================*/


.container,
.section,
.hero,
.mrai-project-analyzer,
.mrai-web-authority{


width:100%;


max-width:100%;


}



.container{


padding-left:

var(--mrai-mobile-padding);


padding-right:

var(--mrai-mobile-padding);


}






/*=========================================================
 MOBILE TEXT SYSTEM
=========================================================*/


p{


line-height:2;


}





h1,
h2,
h3,
h4{


word-break:break-word;


}





/*=========================================================
 TOUCH OPTIMIZATION
=========================================================*/


button,
a{


-webkit-tap-highlight-color:transparent;


touch-action:manipulation;


}





/*=========================================================
 REMOVE MOBILE HORIZONTAL BUGS
=========================================================*/


section,
div{


max-width:100%;


}





pre,
code{


max-width:100%;


overflow-x:auto;


}






/*=========================================================
 SAFE MOBILE MODE
=========================================================*/


@media(max-width:768px){



body{


font-size:var(--mrai-mobile-text);


}





.container{


padding-left:18px;


padding-right:18px;


}





.section{


border-radius:var(--mrai-mobile-radius);


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 2
 LAYOUT FIX SYSTEM
=========================================================*/



/*=========================================================
 HERO MOBILE OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.hero{


min-height:auto;


padding:

70px 15px;


display:flex;


align-items:center;


justify-content:center;


}





.hero-content{


width:100%;


}





.glow{


width:250px;


height:250px;


filter:blur(100px);


}





h1{


font-size:

32px;


line-height:

1.8;


}





.hero p{


font-size:

15px;


line-height:

2.2;


padding:

0 5px;


}





.hero .btn{


width:100%;


margin:

8px 0;


}



}







/*=========================================================
 GRID SYSTEM FIX
=========================================================*/


@media(max-width:768px){



.grid,
.analyzer-options,
.result-services,
.recommendation-list{


display:grid;


grid-template-columns:

1fr;


gap:

18px;


}





.card,
.project-box,
.service-item{


width:100%;


}



}







/*=========================================================
 FLEX SYSTEM FIX
=========================================================*/


@media(max-width:768px){



.step{


flex-direction:column;


align-items:flex-start;


gap:12px;


}





.number{


flex-shrink:0;


}



}





@media(max-width:480px){



.step{


display:flex;


}



}







/*=========================================================
 SECTION SPACING
=========================================================*/


@media(max-width:768px){



.section{


margin-top:35px;


padding:25px 18px;


}





.section h2{


font-size:

24px;


line-height:

1.8;


}





.section p{


font-size:

14px;


}



}







/=========================================================
 PROJECT BOX MOBILE
=========================================================/


@media(max-width:768px){



.project-box{


padding:

25px 18px;


border-radius:

22px;


}





.project-box strong{


font-size:

14px;


line-height:

2.3;


}



}







/*=========================================================
 GLASS EFFECT OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.section,
.card,
.project-box,
.mrai-project-analyzer{


backdrop-filter:

blur(15px);


-webkit-backdrop-filter:

blur(15px);


}



}







/*=========================================================
 REMOVE OVERFLOW PROBLEMS
=========================================================*/


@media(max-width:768px){



.row,
.flex,
.hero-content,
.grid{


flex-wrap:wrap;


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 3
 TYPOGRAPHY + CONTENT READABILITY SYSTEM
=========================================================*/



/*=========================================================
 MOBILE FONT SCALE
=========================================================*/


@media(max-width:768px){



h1{


font-size:

32px;


line-height:

1.7;


letter-spacing:

-0.5px;


}





h2{


font-size:

25px;


line-height:

1.9;


}





h3{


font-size:

20px;


line-height:

1.8;


}





h4{


font-size:

17px;


line-height:

1.8;


}





p{


font-size:

15px;


line-height:

2.2;


color:#cbd5e1;


}



}







/*=========================================================
 HERO TEXT IMPROVEMENT
=========================================================*/


@media(max-width:768px){



.hero h1 span{


display:inline;


}





.hero p{


max-width:

100%;


margin:

20px auto;


}





.badge{


font-size:

12px;


padding:

8px 18px;


}



}







/*=========================================================
 SECTION CONTENT READING
=========================================================*/


@media(max-width:768px){



.section h2{


margin-bottom:

18px;


}





.section p{


text-align:

right;


}





.card h3{


font-size:

19px;


margin-bottom:

12px;


}





.card p{


font-size:

14px;


line-height:

2.3;


}



}







/=========================================================
 MOBILE BUTTON TYPOGRAPHY
=========================================================/


@media(max-width:768px){



.btn{


font-size:

15px;


font-weight:

800;


padding:

15px 25px;


border-radius:

18px;


}





.cta h2{


font-size:

25px;


line-height:

1.9;


}



}







/*=========================================================
 LONG TEXT CONTROL
=========================================================*/


@media(max-width:768px){



.project-box,
.result-main,
.result-details{


word-break:

break-word;


}





.project-box strong{


display:block;


}





.mrai-smart-message p{


font-size:

14px;


line-height:

2.2;


}



}







/=========================================================
 SMALL DEVICE TYPOGRAPHY
=========================================================/


@media(max-width:420px){



h1{


font-size:

27px;


}





h2{


font-size:

22px;


}





h3{


font-size:

18px;


}





p{


font-size:

14px;


}





.btn{


font-size:

14px;


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 4
 CARDS + SECTIONS MOBILE EXPERIENCE SYSTEM
=========================================================*/



/*=========================================================
 CARD SYSTEM OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.card{


padding:

22px 18px;


border-radius:

24px;


min-height:

auto;


transition:

.35s ease;


}





.card:hover{


transform:

translateY(-4px);


}





.card h3{


display:flex;


align-items:center;


gap:10px;


}





.card p{


margin-top:

10px;


}





}



@media(max-width:420px){



.card{


padding:

20px 15px;


border-radius:

20px;


}



}







/*=========================================================
 SERVICE BOX MOBILE
=========================================================*/


@media(max-width:768px){



.service-item{


padding:

20px 15px;


border-radius:

22px;


text-align:

center;


}





.service-item span{


font-size:

32px;


}



}







/*=========================================================
 AUTHORITY ENGINE MOBILE
=========================================================*/


@media(max-width:768px){



.mrai-web-authority{


margin:

40px 12px;


padding:

25px 15px;


border-radius:

28px;


}





.mrai-authority-header h2{


font-size:

24px;


}





.mrai-authority-grid,
.mrai-education-grid,
.advanced-grid{


grid-template-columns:

1fr;


gap:

15px;


}





.mrai-authority-card,
.mrai-education-card,
.advanced-card{


padding:

22px 16px;


border-radius:

22px;


}



}





/*=========================================================
 ANALYZER MOBILE INTEGRATION
=========================================================*/


@media(max-width:768px){



.mrai-project-analyzer{


margin:

40px 10px;


padding:

25px 15px;


border-radius:

28px;


}





.analyzer-header h2{


font-size:

23px;


}





.analyzer-option{


padding:

16px;


border-radius:

20px;


font-size:

14px;


}



}







/*=========================================================
 PROJECT SHOWCASE MOBILE
=========================================================*/


@media(max-width:768px){



.project-box{


display:

block;


}





.project-box br{


display:none;


}





.project-box strong{


line-height:

2.5;


}



}







/*=========================================================
 CTA SECTION MOBILE
=========================================================*/


@media(max-width:768px){



.cta{


margin:

50px 0 20px;


padding:

0 10px;


}





.cta h2{


font-size:

24px;


}





.cta .btn{


width:

100%;


max-width:

350px;


}



}







/*=========================================================
 MOBILE SHADOW OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.card,
.section,
.project-box,
.mrai-web-authority,
.mrai-project-analyzer{


box-shadow:


0 15px 45px rgba(0,0,0,.25);


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 5
 IMAGES + MEDIA + INTERACTIVE ELEMENTS
=========================================================*/



/*=========================================================
 IMAGE RESPONSIVE SYSTEM
=========================================================*/


@media(max-width:768px){



img{


display:block;


width:100%;


max-width:100%;


height:auto;


object-fit:cover;


}





.project-image,
.portfolio-image,
.service-image{


border-radius:

22px;


overflow:hidden;


}



}







/*=========================================================
 HERO MEDIA OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.hero img{


max-height:

320px;


object-fit:

contain;


margin:

20px auto;


}





.glow{


opacity:

.12;


}



}







/*=========================================================
 VIDEO + IFRAME MOBILE FIX
=========================================================*/


@media(max-width:768px){



iframe,
video{


width:

100%;


max-width:

100%;


border-radius:

20px;


}





video{


height:auto;


}



}







/*=========================================================
 BUTTON TOUCH EXPERIENCE
=========================================================*/


@media(max-width:768px){



button,
.btn,
a{


min-height:

48px;


display:

inline-flex;


align-items:center;


justify-content:center;


}





.btn:hover{


transform:

none;


}



}







/*=========================================================
 MOBILE NAVIGATION SUPPORT
=========================================================*/


@media(max-width:768px){



nav,
.menu,
.navigation{


max-width:

100%;


overflow-x:auto;


-webkit-overflow-scrolling:

touch;


}





nav a,
.menu a{


white-space:

nowrap;


}



}







/*=========================================================
 TOUCH CARD EXPERIENCE
=========================================================*/


@media(max-width:768px){



.card,
.project-box,
.service-item{


cursor:

pointer;


}





.card:active,
.service-item:active,
.project-box:active{


transform:

scale(.98);


transition:

.15s;


}



}







/*=========================================================
 MOBILE FORM ELEMENTS
=========================================================*/


@media(max-width:768px){



input,
textarea,
select{


width:

100%;


padding:

15px;


border-radius:

18px;


font-size:

16px;


}





textarea{


min-height:

140px;


}



}







/*=========================================================
 LAZY LOAD VISUAL SUPPORT
=========================================================*/


img[loading="lazy"]{


transition:

opacity .4s ease,

transform .4s ease;


}





img[loading="lazy"]:hover{


transform:

scale(1.02);


}







/*=========================================================
 MOBILE PERFORMANCE MODE
=========================================================*/


@media(max-width:768px){



.glow,
.mrai-project-analyzer::before,
.mrai-project-analyzer::after{


filter:

blur(50px);


}





.backdrop-filter,
.section,
.card{


-webkit-backdrop-filter:

blur(12px);


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 6
 NAVIGATION + HEADER MOBILE SYSTEM
=========================================================*/



/*=========================================================
 MOBILE HEADER FIX
=========================================================*/


@media(max-width:768px){



header,
.header,
.site-header{


width:100%;


position:relative;


padding:

15px 18px;


}





.logo,
.brand{


max-width:

180px;


}





.logo img,
.brand img{


width:

100%;


height:auto;


}





}





/*=========================================================
 MOBILE MENU SYSTEM
=========================================================*/


@media(max-width:768px){



.menu,
.nav-menu,
.navigation-menu{


display:flex;


flex-direction:column;


gap:15px;


padding:

20px;


border-radius:

25px;


background:

rgba(255,255,255,.06);



border:

1px solid rgba(255,255,255,.12);


}





.menu a,
.nav-menu a,
.navigation-menu a{


width:100%;


padding:

14px 18px;


border-radius:

15px;


font-size:

15px;


text-align:

center;


}



}







/*=========================================================
 MOBILE STICKY ACTION
=========================================================*/


@media(max-width:768px){



.mobile-action,
.mobile-contact-btn{


position:fixed;


bottom:20px;


left:20px;


right:20px;


z-index:999;


padding:

15px;


border-radius:

50px;


background:


linear-gradient(

135deg,

#00d4ff,

#2563eb

);



text-align:center;


font-weight:

900;


box-shadow:


0 20px 50px rgba(0,212,255,.35);


}





}







/*=========================================================
 MOBILE PAGE SPACING
=========================================================*/


@media(max-width:768px){



main{


padding-top:

10px;


}





section{


scroll-margin-top:

80px;


}





.hero{


padding-top:

50px;


padding-bottom:

40px;


}





}







/*=========================================================
 MOBILE GRID FINAL FIX
=========================================================*/


@media(max-width:768px){



[class*="grid"],

[class*="row"],

[class*="columns"]{


display:flex;


flex-direction:column;


width:100%;


}





[class*="col"],

[class*="column"]{


width:100%;


}



}







/*=========================================================
 MOBILE TEXT ALIGNMENT
=========================================================*/


@media(max-width:768px){



.hero-content,
.cta,
.section-header{


text-align:center;


}





.card,
.project-box{


text-align:right;


}



}







/*=========================================================
 SAFE AREA SUPPORT IOS
=========================================================*/


@supports(padding:max(0px)){



@media(max-width:768px){



body{


padding-bottom:

env(safe-area-inset-bottom);


}



}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 7
 PERFORMANCE MOBILE OPTIMIZATION
=========================================================*/


/*=========================================================
 MOBILE GPU OPTIMIZATION
=========================================================*/


@media(max-width:768px){



.hero,
.section,
.card,
.project-box,
.mrai-project-analyzer{


transform:

translateZ(0);


backface-visibility:

hidden;


}





.glow{


will-change:

transform,opacity;


}



}







/*=========================================================
 REDUCE HEAVY EFFECTS ON MOBILE
=========================================================*/


@media(max-width:768px){



.backdrop-filter,
.section,
.card{


backdrop-filter:

blur(10px);


-webkit-backdrop-filter:

blur(10px);


}





.glow{


filter:

blur(60px);


opacity:

.1;


}





}



@media(max-width:480px){



.glow{


display:none;


}





.mrai-project-analyzer::before,
.mrai-project-analyzer::after{


display:none;


}



}







/*=========================================================
 ANIMATION CONTROL
=========================================================*/


@media(max-width:768px){



.card,
.service-item,
.project-box{


transition:

transform .25s ease;


}





.card:hover,
.service-item:hover{


transform:

translateY(-3px);


}



}







/*=========================================================
 IMAGE PERFORMANCE
=========================================================*/


img{


content-visibility:

auto;


}





@media(max-width:768px){



img{


contain:

layout paint;


}



}







/*=========================================================
 SCROLL PERFORMANCE
=========================================================*/


html{


scroll-behavior:

smooth;


}





@media(max-width:768px){



html{


scroll-behavior:

auto;


}



}
/*=========================================================
 MRAI MOBILE RESPONSIVE ENGINE CSS
 PART 8
 FINAL DEVICE OPTIMIZATION + BROWSER COMPATIBILITY
=========================================================*/



/*=========================================================
 IOS SAFARI OPTIMIZATION
=========================================================*/


@supports (-webkit-touch-callout:none){



@media(max-width:768px){



body{


-webkit-text-size-adjust:

100%;


}





input,
textarea,
button{


-webkit-appearance:

none;


border-radius:

inherit;


}





}



}







/*=========================================================
 ANDROID CHROME OPTIMIZATION
=========================================================*/


@media(max-width:768px){



button,
a{


touch-action:

manipulation;


}





*{


-webkit-overflow-scrolling:

touch;


}



}







/*=========================================================
 SMALL SCREEN DEVICES
=========================================================*/


@media(max-width:380px){



.container{


padding-left:

12px;


padding-right:

12px;


}





.section{


padding:

20px 12px;


}





.hero h1{


font-size:

24px;


}





.hero p{


font-size:

13px;


}





.btn{


padding:

14px 20px;


font-size:

13px;


}



}







/*=========================================================
 LANDSCAPE MOBILE MODE
=========================================================*/


@media(max-width:900px) and (orientation:landscape){



.hero{


min-height:

auto;


padding:

40px 20px;


}





.section{


margin-top:

25px;


}





}



 /*=========================================================
 FINAL CONTENT PROTECTION
=========================================================*/


@media(max-width:768px){



table{


display:block;


overflow-x:auto;


}





pre{


white-space:

pre-wrap;


word-break:

break-word;


}





iframe{


min-height:

250px;


}



}







/*=========================================================
 ACCESSIBILITY MOBILE
=========================================================*/


@media(max-width:768px){



a:focus,
button:focus,
input:focus{


outline:

2px solid #00d4ff;


outline-offset:

3px;


}





}



 /*=========================================================
 MRAI MOBILE ENGINE SIGNATURE
=========================================================*/


.mrai-mobile-ready{


width:

100%;


max-width:

100%;


overflow:

hidden;


}
