/* ==========================================================================
   FIXRO - MAIN STYLESHEET
   ========================================================================== */

/* ==========================================================================
   CSS VARIABLES & ROOT STYLES
   ========================================================================== */

/**
 * CSS Custom Properties (Variables)
 * Usage: var(--rs-primary-color), var(--rs-bg-body), etc.
 */
:root, [data-bs-theme="light"] {
    --rs-bg-body: #787B7D;                    /* Main background color */
    --rs-primary-color: #D85B00;              /* Primary orange color */
    --rs-glass-black: #000000B5;              /* Semi-transparent black for glass effects */
    --rs-primary-color-light: #cd8755;        /* Light orange color */
    --rs-navbar-color-navlinks: #d9d9da;      /* Navbar link color */
    --rs-light-gry-color: #7D92A2;            /* Light gray color */
}

/* Dark theme variables (currently empty) */
[data-bs-theme="dark"] {
    /* Dark theme variables will be added here */
}

/* ==========================================================================
   FONT FACE DECLARATIONS
   ========================================================================== */

/**
 * Fanoos Font Family
 * Usage: font-family: 'fanoos';
 * Purpose: Custom Persian font for headings and titles
 */
@font-face {
    font-family: 'fanoos';
    src: url('/assets/fonts/fanoos.woff2') format('woff2'),
         url('/assets/fonts/fanoos.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

/**
 * Global Box Sizing Reset
 * Ensures consistent box-sizing across all elements
 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/**
 * HTML and Body Base Styles
 * Sets proper viewport height and prevents scrolling issues
 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/**
 * Body Base Styles
 * Sets RTL direction and default font family
 */
body {
    direction: rtl !important;
    background-color: var(--rs-bg-body);
    font-family: IRANSans !important;
    min-height: 100vh;
}

/* Mobile viewport fixes */
@media only screen and (max-width: 767px) {
    html, body {
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        overflow-x: hidden;
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }

    body {
        min-height: 100vh;
        min-height: 100dvh;
        min-height: calc(var(--vh, 1vh) * 100);
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        position: relative;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media only screen and (max-width: 767px) {
        html, body {
            height: -webkit-fill-available;
        }

        body {
            min-height: -webkit-fill-available;
        }
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/**
 * Text Color Utilities
 * Usage: <div class="text-light-gray">Content</div>
 */
.text-light-gray {
    color: var(--rs-navbar-color-navlinks);
}

.text-orange {
    color: var(--rs-primary-color);
}

.text-light-orange {
    color: var(--rs-primary-color-light);
}

/**
 * Font Family Utilities
 * Usage: <h1 class="fanoos">Title</h1>
 */
.fanoos {
    font-family: fanoos !important;
}

.iransans {
    font-family: IRANSans !important;
}

/**
 * Typography Utilities
 * Usage: <h1 class="display-1">Large Title</h1>
 */
.display-1 {
    font-size: 128px !important;
    font-weight: 700 !important;
}

.fs-title {
    font-size: 46px;
    font-weight: 700 !important;
}

.fs-7 {
    font-size: 14px !important;
}

/**
 * Text Effects
 * Usage: <h1 class="text-shadow">Shadowed Text</h1>
 */
.text-shadow {
    text-shadow: 0px 0px 11px black;
}

.text-justify {
    text-align: justify !important;
}

/**
 * Spacing Utilities
 * Usage: <div class="mt-6">Content with top margin</div>
 */
.mt-6 {
    margin-top: 6rem;
}

.mt-7 {
    margin-top: 7rem;
}

.me-6 {
    margin-left: 5rem !important;
}

.me-7 {
    margin-left: 7rem !important;
}

.me-10 {
    margin-left: 10rem !important;
}

.mb-6 {
    margin-bottom: 6rem;
}

/* ==========================================================================
   COMPONENT STYLES
   ========================================================================== */

/**
 * Primary Button Component
 * Usage: <button class="button-primary">Click Me</button>
 * Purpose: Main call-to-action button with glass effect
 */
.button-primary {
    background-color: var(--rs-glass-black) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--rs-primary-color) !important;
    border-radius: 0.5rem !important;
    color: white !important;
    padding: 8px 49px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.button-primary:hover {
    background-color: black !important;
    color: var(--rs-primary-color) !important;
    border-color: var(--rs-primary-color) !important;
    box-shadow: 0 0 20px 4px var(--rs-primary-color);
    text-decoration: none;
}



/* ==========================================================================
   NAVIGATION STYLES
   ========================================================================== */

/**
 * Main Navigation
 * Usage: <nav>Navigation content</nav>
 * Purpose: Primary navigation bar styling
 */
nav {
    background-color: var(--rs-glass-black);
    backdrop-filter: blur(10px);
    width: 653px;
    max-width: 100%;
    min-width: 412px;
    border-radius: 10px;
}

/**
 * Navigation Icons
 * Usage: <span class="icon-nav">Icon</span>
 */
.icon-nav {
    fill: white;
}

/**
 * Navigation Links
 * Usage: <a class="nav-link">Link text</a>
 */
.navbar-page ul li .nav-link {
    color: var(--rs-navbar-color-navlinks) !important;
    /* transition: .5s ease; */
    position: relative;
}

/*.navbar-page ul li .nav-link:before{*/
/*    content: "";*/
/*    position: absolute;*/
/*    width: 0;*/
/*    height: 3px;*/
/*    background-color:var(--rs-primary-color) ;*/
/*    border-radius: 1rem;*/
/*    transition: .5s width;*/
/*    bottom: 0;*/
/*}*/
.navbar-page ul li .nav-link:hover {
    color: var(--rs-primary-color) !important;
    /* transform: scale(1.1); */
    font-weight: bold;
    /* margin: 0 1rem; */
}

.navbar-page ul li .nav-link .icon-nav:hover {
    fill: var(--rs-primary-color) !important;
}



/* Navbar Logo Styling */
.navbar-logo {
    height: 30px;
    width: auto;
}

/* Remove navbar rounded edges on tablet and mobile - Bootstrap breakpoints */
@media (max-width: 992px) {
    .navbar-page {
        border-radius: 0 !important;
    }
    
    .navbar-page .navbar {
        border-radius: 0 !important;
    }
}

/*.navbar-page ul li .nav-link:hover:before{*/
/*    width: 100%;*/
/*    bottom: 0;*/
/*}*/

/* ==========================================================================
   SERVICES SECTION STYLES
   ========================================================================== */

/**
 * Services Section
 * Usage: <section id="service">Services content</section>
 * Purpose: Services section with map background
 */
#service {
    background: url("/assets/img/map.jpg") no-repeat center center;
    background-size: cover;
    padding: 2rem;
}

.content-service span {
    font-size: 30px;
    font-weight: 700 !important;
}

/* ==========================================================================
   LOGIN SECTION STYLES
   ========================================================================== */

/**
 * Login Section Content
 * Usage: <div class="content-section-login">Login content</div>
 */
.content-section-login {
    top: 50%;
    right: 9rem;
    transform: translateY(-50%);
}

/* ==========================================================================
   MOBILE NAVIGATION STYLES
   ========================================================================== */

/**
 * Mobile Navigation
 * Usage: <nav class="navbar-mobile">Mobile nav content</nav>
 */
.navbar-mobile {
    background: rgba(0, 0, 0, 0.71);
    backdrop-filter: blur(10px);
}

.svg-nav {
    fill: white;
}

.navbar-mobile ul li a .svg-nav:hover {
    fill: var(--rs-primary-color);
}

/* ==========================================================================
   CLEAN MOBILE NAVIGATION STYLES
   ========================================================================== */

.mobile-nav {
    position: relative;
    z-index: 1050;
}

/* Hamburger Button */
.mobile-nav-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(216, 91, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--rs-primary-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1051;
}

.mobile-nav-btn:hover {
    background: rgba(216, 91, 0, 0.2);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(216, 91, 0, 0.3);
}

.mobile-nav-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-nav-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--rs-primary-color);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-btn.active .hamburger-line {
    background: white;
}

/* Navigation Menu */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 100%);
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--rs-primary-color);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1052;
    overflow: hidden;
}

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

/* Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(216, 91, 0, 0.2);
    background: rgba(216, 91, 0, 0.05);
}

.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.typo-img {
    height: 24px;
    width: auto;
}

/* Close Button */
.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: rgba(216, 91, 0, 0.1);
    border: 1px solid rgba(216, 91, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--rs-primary-color);
}

.mobile-nav-close:hover {
    background: rgba(216, 91, 0, 0.2);
    border-color: var(--rs-primary-color);
    transform: scale(1.05);
}

/* Navigation Content */
.mobile-nav-content {
    flex: 1;
    padding: 2rem 0;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

.mobile-nav-item {
    margin: 1rem 0;
}

.mobile-nav-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 0 1rem;
}

.mobile-nav-link:hover {
    color: white;
    background: rgba(216, 91, 0, 0.1);
    transform: translateY(-2px);
}

.nav-icon {
    width: 28px;
    height: 28px;
    color: var(--rs-primary-color);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover .nav-icon {
    color: white;
    transform: scale(1.1);
}

.mobile-nav-link span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Backdrop */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1049;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 767.98px) {
    .mobile-nav-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-nav-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 18px;
    }
}

@media (max-width: 575.98px) {
    .mobile-nav-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 32px;
        height: 32px;
    }
    
    .hamburger-line {
        width: 16px;
    }
    
    .mobile-nav-header {
        padding: 1rem;
    }
    
    .mobile-nav-link {
        padding: 1rem;
        margin: 0 0.5rem;
    }
}

/* ==========================================================================
   LAYOUT & CONTAINER STYLES
   ========================================================================== */





/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE STYLES
   ========================================================================== */

/**
 * Mobile Styles (max-width: 992px)
 * All mobile-specific styles and overrides
 */
@media only screen and (max-width: 992px) {
    /* Mobile Body Background */
    body {
        background: url("/assets/img/bg-mobile.jpg") no-repeat center center;
        background-size: cover;
        background-attachment: scroll !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
        min-height: 100dvh;
        min-height: calc(var(--vh, 1vh) * 100);
        height: 100vh;
        height: 100dvh;
        height: calc(var(--vh, 1vh) * 100);
        overflow-x: hidden;
        position: relative;
    }



    /* Mobile Navigation */
    nav {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Mobile Typography */
    .display-1 {
        font-size: 64px !important;
    }

    .fs-title {
        font-size: 32px !important;
    }

    .fs-sub-title {
        font-size: 24px !important;
    }

    .navbar-brand {
        font-size: 18px !important;
    }

    .navbar-logo {
        height: 24px;
        width: auto;
    }

    /* Mobile Services */
    #service {
        background: unset !important;
        position: relative;
        padding-bottom: 2rem !important;
        padding-right: 0;
        padding-left: 0;
        padding-top: 0;
    }

    #service:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        filter: blur(9px);
        background: inherit;
        z-index: 1;
    }

    /* Mobile Content Adjustments */
    .btn-smm {
        bottom: 4rem;
    }

    .content-service span {
        font-size: 24px !important;
    }

    .btn-login-section {
        width: 100% !important;
    }

    .content-section-login {
        right: 0 !important;
        width: 100% !important;
    }
}

/**
 * Tablet Styles (max-width: 1200px)
 * Tablet-specific adjustments
 */
@media only screen and (max-width: 1200px) {
    /* Tablet specific styles */
}

/**
 * Large Tablet Styles (max-width: 1400px)
 * Large tablet adjustments
 */
@media only screen and (max-width: 1400px) {
    /* Large tablet specific styles */
}

/* ==========================================================================
   RESPONSIVE DESIGN - DESKTOP STYLES
   ========================================================================== */

/**
 * Desktop Styles (min-width: 992px)
 * Desktop-specific adjustments
 */
@media (min-width: 992px) {
    .mt-lg-6 {
        margin-top: 6rem;
    }
}

/**
 * Large Desktop Styles (min-width: 1400px)
 * Large desktop adjustments
 */
@media (min-width: 1400px) {
    /* Large desktop specific styles */
}

/* ==========================================================================
   LEGACY STYLES (FOR BACKWARD COMPATIBILITY)
   ========================================================================== */

/**
 * Legacy About My Car Styles
 * These are kept for backward compatibility
 * Usage: <section id="aboutMyCar">Legacy content</section>
 */
#aboutMyCar {
    position: relative;
}

#aboutMyCar:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -4rem;
    width: 100%;
    height: 90%;
    background: rgba(0, 0, 0, 0.671);
    background-size: cover;
    z-index: 1;
}

.img-about-car {
    width: 100%;
    float: unset !important;
}

